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*/package in.shop2020.model.v1.catalog;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class CatalogService {public interface Iface extends in.shop2020.generic.GenericService.Iface {/*** Availability and inventory attributes** @param item*/public long addItem(Item item) throws CatalogServiceException, org.apache.thrift.TException;public long updateItem(Item item) throws CatalogServiceException, org.apache.thrift.TException;/*** 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.** @param itemId*/public ItemShippingInfo isActive(long itemId) throws CatalogServiceException, org.apache.thrift.TException;public Map<Long,Boolean> getItemsStatus(List<Long> itemIds) throws CatalogServiceException, org.apache.thrift.TException;public String getItemStatusDescription(long itemId) throws CatalogServiceException, org.apache.thrift.TException;public void startItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException;public void retireItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException;public void changeItemStatus(long item_id, long timestamp, status newstatus) throws CatalogServiceException, org.apache.thrift.TException;public Item getItem(long item_id) throws CatalogServiceException, org.apache.thrift.TException;public Map<Long,Item> getItems(List<Long> item_ids) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getValidItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getAllItems(boolean isActive) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getAllItemsByStatus(status itemStatus) throws CatalogServiceException, org.apache.thrift.TException;public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, boolean isAndroid) throws CatalogServiceException, org.apache.thrift.TException;public Map<Long,Double> getVatRates(long itemId, long categoryId) throws CatalogServiceException, org.apache.thrift.TException;/*** Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.** @param offset* @param limit*/public List<Item> getAllItemsInRange(long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException;/*** 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.** @param itemStatus* @param offset* @param limit*/public List<Item> getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException;/*** Gets a count of all items by status** @param useStatus* @param itemStatus*/public int getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException;public List<Item> getBestSellers() throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;public long getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getBestDeals() throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;public long getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getComingSoon() throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;public long getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException;/*** Returns a list of items sorted in the descending order by start date.* The list is limited to the 'latest_arrivals_count' configuraiton parameter.*/public List<Item> getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException;/*** 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.** @param beginIndex* @param totalItems* @param brand* @param categories*/public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws CatalogServiceException, org.apache.thrift.TException;/*** Get the total number of latest arrivals we are willing to show.* The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.*/public long getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException;public long generateNewEntityID() throws org.apache.thrift.TException;/*** All category related functions** @param category*/public boolean addCategory(Category category) throws org.apache.thrift.TException;public Category getCategory(long id) throws org.apache.thrift.TException;public List<Category> getAllCategories() throws org.apache.thrift.TException;/*** Returns the list of similar items.** @param itemId*/public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException;/*** Adds similar item.** @param itemId* @param catalogItemId*/public Item addSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;/*** Tag Related** @param displayName* @param itemId*/public boolean addTag(String displayName, long itemId) throws org.apache.thrift.TException;public boolean deleteEntityTag(String displayName, long itemId) throws org.apache.thrift.TException;public boolean deleteTag(String displayName) throws org.apache.thrift.TException;public List<String> getAllTags() throws org.apache.thrift.TException;public List<Long> getAllEntitiesByTagName(String displayName) throws org.apache.thrift.TException;public Map<Long,List<String>> getAllEntityTags() throws org.apache.thrift.TException;/*** Banner Related** @param bannerCongregate*/public boolean addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException;public boolean updateBanner(Banner banner) throws org.apache.thrift.TException;public List<Banner> getAllBanners() throws org.apache.thrift.TException;public boolean deleteBanner(String bannerName, BannerType bannerType) throws org.apache.thrift.TException;public Banner getBannerDetails(String bannerName, BannerType bannerType) throws org.apache.thrift.TException;public Map<String,List<Banner>> getActiveBanners() throws org.apache.thrift.TException;public boolean addBannerMap(List<BannerMap> bannerMaps) throws org.apache.thrift.TException;public boolean updateBannerMap(BannerMap bannerMap) throws org.apache.thrift.TException;public boolean deleteBannerMap(String bannerName) throws org.apache.thrift.TException;public List<BannerMap> getBannerMapDetails(String bannerName, BannerType bannerType) throws org.apache.thrift.TException;public void addBannerUri(List<BannerUriMapping> bannerUriMappings) throws org.apache.thrift.TException;public List<BannerUriMapping> getUriMapping(String bannerName, BannerType bannerType) throws org.apache.thrift.TException;public void addCampaign(Campaign campaign) throws org.apache.thrift.TException;public List<Campaign> getCampaigns(String campaignName) throws org.apache.thrift.TException;public void deleteCampaign(long campaignId) throws org.apache.thrift.TException;public List<String> getAllCampaigns() throws org.apache.thrift.TException;public Map<String,List<Banner>> getActiveBannersForMobileSite() throws org.apache.thrift.TException;/*** Delete similar item.** @param itemId* @param catalogItemId*/public boolean deleteSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;/*** Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)* If yes, returns the itemId else returns 0** @param brand* @param modelNumber* @param modelName* @param color*/public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException;/*** Check wether item is risky and change status if inventory is not available for risky items** @param itemId*/public void validateRiskyStatus(long itemId) throws org.apache.thrift.TException;/*** Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.** @param itemId* @param risky*/public void changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException;/*** Returns list of items marked as risky.*/public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException;/*** Returns list of items with any status except PHASED_OUT and filtered by category, brand.** @param category* @param brand*/public List<Item> getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException;/*** Returns list of catalog ids of items with same similarity index as of the given itemId** @param beginIndex* @param totalItems* @param itemId*/public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException;/*** Add user requests for out of stock items. Once user will ask for notify me an entry will** @param itemId* @param email*/public boolean addProductNotification(long itemId, String email) throws org.apache.thrift.TException;/*** Send the product notifications to the users for items which has stock.*/public boolean sendProductNotifications() throws org.apache.thrift.TException;/*** Returns list of brand names for a given category Id** @param categoryId*/public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException;/*** Returns list of brand names*/public List<String> getAllBrands() throws org.apache.thrift.TException;/*** Return list of all sources*/public List<Source> getAllSources() throws org.apache.thrift.TException;/*** Returns the pricing information of an item. If no information is found, exception will be thrown.** @param itemId* @param sourceId*/public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws CatalogServiceException, org.apache.thrift.TException;/*** 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.** @param sourceItemPricing*/public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws CatalogServiceException, org.apache.thrift.TException;/*** Returns the list of source pricing information of an item.* Raises an exception if item not found corresponding to itemId** @param itemId*/public List<SourceItemPricing> getAllSourcePricing(long itemId) throws CatalogServiceException, org.apache.thrift.TException;/*** Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.** @param item_id* @param sourceId*/public Item getItemForSource(long item_id, long sourceId) throws CatalogServiceException, org.apache.thrift.TException;/*** Searches items matching the the given terms in the catalog and returns results within the specified range.** @param searchTerms* @param offset* @param limit*/public List<Item> searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException;/*** Gets the count of search results for the given search terms so that the user can go through all the pages.** @param searchTerms*/public int getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException;/*** Returns a list of product notifications added after a supplied datetime** @param startDateTime*/public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException;/*** Returns a list of count of requests for product notification against each item** @param startDateTime* @param categoryId*/public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime, long categoryId) throws org.apache.thrift.TException;/*** This method adds a log to authorize table with Item Id, username who authorized the change, reason.** @param itemId* @param username* @param reason*/public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException;public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException;public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException;public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException;public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;public double getVatPercentageForItem(long itemId, long stateId, double price) throws CatalogServiceException, org.apache.thrift.TException;public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;public List<Item> getAllAliveItems() throws org.apache.thrift.TException;/*** This method returns the insurance amount needed to insure the given item for a given quantity.** @param itemId* @param price* @param insurerId* @param quantity*/public long getInsuranceAmount(long itemId, double price, long insurerId, long quantity) throws org.apache.thrift.TException;public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;public void updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException;public long getFreebieForItem(long itemId) throws org.apache.thrift.TException;public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException;public void addOrUpdateBrandInfo(BrandInfo brandInfo) throws org.apache.thrift.TException;public Map<String,BrandInfo> getBrandInfo() throws org.apache.thrift.TException;public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException;public List<StorePricing> getStorePricings(List<Long> itemIds) throws org.apache.thrift.TException;public void updateStorePricing(StorePricing sp, boolean allColors) throws org.apache.thrift.TException;public List<Amazonlisted> getAllAmazonListedItems() throws org.apache.thrift.TException;public List<Amazonlisted> searchAmazonItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException;public long getAmazonSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;public long getCountForAmazonlistedItems() throws org.apache.thrift.TException;public Amazonlisted getAmazonItemDetails(long itemId) throws org.apache.thrift.TException;public void updateAmazonItemDetails(Amazonlisted amazonlisted) throws org.apache.thrift.TException;public void addAmazonItem(Amazonlisted amazonlisted) throws org.apache.thrift.TException;public List<Item> getAsinItems() throws org.apache.thrift.TException;public List<Amazonlisted> getAllFbaListedItems() throws org.apache.thrift.TException;public List<Amazonlisted> getAllNonFbaListedItems() throws org.apache.thrift.TException;public boolean updateItemInventory(long itemId, long holdInventory, long defaultInventory) throws org.apache.thrift.TException;public boolean updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException;public List<Category> getAllParentCategories() throws org.apache.thrift.TException;public void addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException;public void addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException;public void addEbayItem(EbayItem ebayItem) throws org.apache.thrift.TException;public EbayItem getEbayItem(String listingId) throws org.apache.thrift.TException;public void updateEbayItem(EbayItem ebayItem) throws org.apache.thrift.TException;public List<Amazonlisted> getAmazonListedItems(long offset, long limit) throws org.apache.thrift.TException;public boolean updateAmazonAttributesInBulk(Map<Long,Amazonlisted> amazonlisted) throws org.apache.thrift.TException;public List<Amazonlisted> getAllItemstoListOnFba() throws org.apache.thrift.TException;public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException;public boolean addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException;public SnapdealItem getSnapdealItem(long item_id) throws org.apache.thrift.TException;public SnapdealItemDetails getSnapdealItemDetails(long item_id) throws org.apache.thrift.TException;public List<SnapdealItemDetails> getAllSnapdealItems() throws org.apache.thrift.TException;public List<SnapdealItemDetails> getSnapdealItems(long offset, long limit) throws org.apache.thrift.TException;public List<SnapdealItemDetails> searchSnapdealItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException;public long getCountForSnapdealItems() throws org.apache.thrift.TException;public long getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;public long getPrefferedInsurerForItem(long itemId, InsurerType insurerType) throws org.apache.thrift.TException;public SnapdealItem getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal) throws org.apache.thrift.TException;public ProductFeedSubmit getProductFeedSubmit(long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;public boolean addProductFeedSubmit(ProductFeedSubmit productFeedSubmit) throws CatalogServiceException, org.apache.thrift.TException;public boolean updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit) throws CatalogServiceException, org.apache.thrift.TException;public boolean deleteProductFeedSubmit(long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;public List<ProductFeedSubmit> getAllProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException;public MarketplaceItems getMarketplacedetailsForItem(long itemId, long sourceId) throws org.apache.thrift.TException;public boolean updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem) throws org.apache.thrift.TException;public MarketplacePercentage getCostingForMarketplace(long source, long item_id) throws org.apache.thrift.TException;public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException;public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException;public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException;public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException;public List<FlipkartItem> getAllFlipkartItems() throws org.apache.thrift.TException;public boolean addOrUpdateFlipkartItem(FlipkartItem flipkartitem) throws org.apache.thrift.TException;public FlipkartItem getFlipkartItem(long item_id) throws org.apache.thrift.TException;public FlipkartItemDetails getFlipkartItemDetails(long item_id) throws org.apache.thrift.TException;public List<FlipkartItemDetails> getFlipkartItems(long offset, long limit) throws org.apache.thrift.TException;public List<FlipkartItemDetails> searchFlipkartItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException;public long getCountForFlipkartItems() throws org.apache.thrift.TException;public long getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException;public List<MarketplaceHistory> getMarketplaceHistory(long source, long offset, long itemId) throws org.apache.thrift.TException;public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException;public List<Amazonlisted> getAllFbbPricingItems() throws org.apache.thrift.TException;public long getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException;public List<MarketplaceHistory> getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException;public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException;public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException;public Map<Long,PrivateDeal> getAllActivePrivateDeals(List<Long> itemIds, long daysDelta) throws org.apache.thrift.TException;public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;public int getPrivateDealsCount() throws org.apache.thrift.TException;public AmazonOutOfSync getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException;public List<PdPriceComp> getAllPrivateDealsComparison() throws org.apache.thrift.TException;public List<SnapdealItem> getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException;public List<FlipkartItem> getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException;public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap) throws org.apache.thrift.TException;public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException;public List<String> addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws CatalogServiceException, org.apache.thrift.TException;public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException;public boolean updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException;public boolean markPartiallyActive(long itemId, long categoryId) throws org.apache.thrift.TException;public boolean updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException;public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException;public List<Amazonlisted> getAllItemstoListOnFbg() throws org.apache.thrift.TException;public List<Amazonlisted> getAllFbgListedItems() throws org.apache.thrift.TException;public Map<Long,Map<String,Long>> checkServices(Map<Long,Map<String,Long>> lines) throws CatalogServiceException, org.apache.thrift.TException;public void addHsItem(List<HsItem> hsItems) throws org.apache.thrift.TException;public HsItem getHsItem(String hsItemId) throws org.apache.thrift.TException;public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;public DtrPricing getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException;public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException;public List<Amazonlisted> getAllFbdListedItems() throws org.apache.thrift.TException;public Map<Long,List<BulkItemPricing>> getBulkPricingForItems(List<Long> itemIds) throws org.apache.thrift.TException;public BulkItemPricing addBulkPricingForItem(BulkItemPricing bulkItemPricing) throws org.apache.thrift.TException;public boolean deleteBulkPricingForItemById(long id) throws org.apache.thrift.TException;public boolean deleteBulkPricingForItem(long item_id) throws org.apache.thrift.TException;public List<BulkItemPricing> getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException;public boolean updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException;public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException;public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws CatalogServiceException, org.apache.thrift.TException;public Map<String,Long> getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;public Map<Long,Map<String,Long>> getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;public Map<Long,GstRate> getStateTaxRate(List<Long> itemIds, long stateId) throws org.apache.thrift.TException;public Map<Long,Double> getIgstTaxRate(List<Long> itemIds) throws org.apache.thrift.TException;public void persistGstRate(List<StateGstRate> stateGstRates) throws org.apache.thrift.TException;public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;public Map<Long,Double> getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException;}public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;public void updateItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItem_call> resultHandler) throws org.apache.thrift.TException;public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isActive_call> resultHandler) throws org.apache.thrift.TException;public void getItemsStatus(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsStatus_call> resultHandler) throws org.apache.thrift.TException;public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException;public void startItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startItemOn_call> resultHandler) throws org.apache.thrift.TException;public void retireItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireItemOn_call> resultHandler) throws org.apache.thrift.TException;public void changeItemStatus(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;public void getItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItem_call> resultHandler) throws org.apache.thrift.TException;public void getItems(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItems_call> resultHandler) throws org.apache.thrift.TException;public void getItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException;public void getValidItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException;public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException;public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, boolean isAndroid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException;public void getVatRates(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatRates_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemsInRange(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsInRange_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemsByStatusInRange(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatusInRange_call> resultHandler) throws org.apache.thrift.TException;public void getItemCountByStatus(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemCountByStatus_call> resultHandler) throws org.apache.thrift.TException;public void getBestSellers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellers_call> resultHandler) throws org.apache.thrift.TException;public void getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellersCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getBestSellersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellersCount_call> resultHandler) throws org.apache.thrift.TException;public void getBestDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDeals_call> resultHandler) throws org.apache.thrift.TException;public void getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getBestDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDealsCount_call> resultHandler) throws org.apache.thrift.TException;public void getComingSoon(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoon_call> resultHandler) throws org.apache.thrift.TException;public void getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoonCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getComingSoonCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoonCount_call> resultHandler) throws org.apache.thrift.TException;public void getLatestArrivals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivals_call> resultHandler) throws org.apache.thrift.TException;public void getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivalsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getLatestArrivalsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivalsCount_call> resultHandler) throws org.apache.thrift.TException;public void generateNewEntityID(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.generateNewEntityID_call> resultHandler) throws org.apache.thrift.TException;public void addCategory(Category category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCategory_call> resultHandler) throws org.apache.thrift.TException;public void getCategory(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCategory_call> resultHandler) throws org.apache.thrift.TException;public void getAllCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCategories_call> resultHandler) throws org.apache.thrift.TException;public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException;public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSimilarItem_call> resultHandler) throws org.apache.thrift.TException;public void addTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addTag_call> resultHandler) throws org.apache.thrift.TException;public void deleteEntityTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteEntityTag_call> resultHandler) throws org.apache.thrift.TException;public void deleteTag(String displayName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteTag_call> resultHandler) throws org.apache.thrift.TException;public void getAllTags(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllTags_call> resultHandler) throws org.apache.thrift.TException;public void getAllEntitiesByTagName(String displayName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllEntitiesByTagName_call> resultHandler) throws org.apache.thrift.TException;public void getAllEntityTags(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllEntityTags_call> resultHandler) throws org.apache.thrift.TException;public void addBanner(BannerCongregate bannerCongregate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBanner_call> resultHandler) throws org.apache.thrift.TException;public void updateBanner(Banner banner, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBanner_call> resultHandler) throws org.apache.thrift.TException;public void getAllBanners(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBanners_call> resultHandler) throws org.apache.thrift.TException;public void deleteBanner(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBanner_call> resultHandler) throws org.apache.thrift.TException;public void getBannerDetails(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBannerDetails_call> resultHandler) throws org.apache.thrift.TException;public void getActiveBanners(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveBanners_call> resultHandler) throws org.apache.thrift.TException;public void addBannerMap(List<BannerMap> bannerMaps, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBannerMap_call> resultHandler) throws org.apache.thrift.TException;public void updateBannerMap(BannerMap bannerMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBannerMap_call> resultHandler) throws org.apache.thrift.TException;public void deleteBannerMap(String bannerName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBannerMap_call> resultHandler) throws org.apache.thrift.TException;public void getBannerMapDetails(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBannerMapDetails_call> resultHandler) throws org.apache.thrift.TException;public void addBannerUri(List<BannerUriMapping> bannerUriMappings, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBannerUri_call> resultHandler) throws org.apache.thrift.TException;public void getUriMapping(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUriMapping_call> resultHandler) throws org.apache.thrift.TException;public void addCampaign(Campaign campaign, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCampaign_call> resultHandler) throws org.apache.thrift.TException;public void getCampaigns(String campaignName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCampaigns_call> resultHandler) throws org.apache.thrift.TException;public void deleteCampaign(long campaignId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteCampaign_call> resultHandler) throws org.apache.thrift.TException;public void getAllCampaigns(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCampaigns_call> resultHandler) throws org.apache.thrift.TException;public void getActiveBannersForMobileSite(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveBannersForMobileSite_call> resultHandler) throws org.apache.thrift.TException;public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException;public void checkSimilarItem(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkSimilarItem_call> resultHandler) throws org.apache.thrift.TException;public void validateRiskyStatus(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateRiskyStatus_call> resultHandler) throws org.apache.thrift.TException;public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;public void getItemsForMasterSheet(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsForMasterSheet_call> resultHandler) throws org.apache.thrift.TException;public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addProductNotification_call> resultHandler) throws org.apache.thrift.TException;public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException;public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException;public void getAllBrands(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrands_call> resultHandler) throws org.apache.thrift.TException;public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSources_call> resultHandler) throws org.apache.thrift.TException;public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException;public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException;public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException;public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemForSource_call> resultHandler) throws org.apache.thrift.TException;public void searchItemsInRange(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchItemsInRange_call> resultHandler) throws org.apache.thrift.TException;public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;public void getProductNotificationRequestCount(long startDateTime, long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;public void getVatPercentageForItem(long itemId, long stateId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;public void getAllAliveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAliveItems_call> resultHandler) throws org.apache.thrift.TException;public void getInsuranceAmount(long itemId, double price, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException;public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;public void updateInsuranceDeclaredAmount(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateInsuranceDeclaredAmount_call> resultHandler) throws org.apache.thrift.TException;public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;public void addOrUpdateBrandInfo(BrandInfo brandInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateBrandInfo_call> resultHandler) throws org.apache.thrift.TException;public void getBrandInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBrandInfo_call> resultHandler) throws org.apache.thrift.TException;public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStorePricing_call> resultHandler) throws org.apache.thrift.TException;public void getStorePricings(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStorePricings_call> resultHandler) throws org.apache.thrift.TException;public void updateStorePricing(StorePricing sp, boolean allColors, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateStorePricing_call> resultHandler) throws org.apache.thrift.TException;public void getAllAmazonListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException;public void searchAmazonItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchAmazonItems_call> resultHandler) throws org.apache.thrift.TException;public void getAmazonSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;public void getCountForAmazonlistedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForAmazonlistedItems_call> resultHandler) throws org.apache.thrift.TException;public void getAmazonItemDetails(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException;public void updateAmazonItemDetails(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException;public void addAmazonItem(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonItem_call> resultHandler) throws org.apache.thrift.TException;public void getAsinItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAsinItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllFbaListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbaListedItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllNonFbaListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllNonFbaListedItems_call> resultHandler) throws org.apache.thrift.TException;public void updateItemInventory(long itemId, long holdInventory, long defaultInventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemInventory_call> resultHandler) throws org.apache.thrift.TException;public void updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonFeeds_call> resultHandler) throws org.apache.thrift.TException;public void getAllParentCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllParentCategories_call> resultHandler) throws org.apache.thrift.TException;public void addPageViewEvent(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPageViewEvent_call> resultHandler) throws org.apache.thrift.TException;public void addCartEvent(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCartEvent_call> resultHandler) throws org.apache.thrift.TException;public void addEbayItem(EbayItem ebayItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addEbayItem_call> resultHandler) throws org.apache.thrift.TException;public void getEbayItem(String listingId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEbayItem_call> resultHandler) throws org.apache.thrift.TException;public void updateEbayItem(EbayItem ebayItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateEbayItem_call> resultHandler) throws org.apache.thrift.TException;public void getAmazonListedItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException;public void updateAmazonAttributesInBulk(Map<Long,Amazonlisted> amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonAttributesInBulk_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemstoListOnFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFba_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAsin_call> resultHandler) throws org.apache.thrift.TException;public void addOrUpdateSnapdealItem(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;public void getSnapdealItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;public void getSnapdealItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItemDetails_call> resultHandler) throws org.apache.thrift.TException;public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;public void getSnapdealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;public void searchSnapdealItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;public void getCountForSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;public void getSnapdealSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;public void getPrefferedInsurerForItem(long itemId, InsurerType insurerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrefferedInsurerForItem_call> resultHandler) throws org.apache.thrift.TException;public void getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItembySkuAtSnapdeal_call> resultHandler) throws org.apache.thrift.TException;public void getProductFeedSubmit(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException;public void addProductFeedSubmit(ProductFeedSubmit productFeedSubmit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException;public void updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException;public void deleteProductFeedSubmit(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException;public void getAllProductFeedSubmit(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException;public void getMarketplacedetailsForItem(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplacedetailsForItem_call> resultHandler) throws org.apache.thrift.TException;public void updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketplaceAttributesForItem_call> resultHandler) throws org.apache.thrift.TException;public void getCostingForMarketplace(long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingForMarketplace_call> resultHandler) throws org.apache.thrift.TException;public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException;public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException;public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNlcAtMarketplaces_call> resultHandler) throws org.apache.thrift.TException;public void getAllFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;public void addOrUpdateFlipkartItem(FlipkartItem flipkartitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFlipkartItem_call> resultHandler) throws org.apache.thrift.TException;public void getFlipkartItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItem_call> resultHandler) throws org.apache.thrift.TException;public void getFlipkartItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemDetails_call> resultHandler) throws org.apache.thrift.TException;public void getFlipkartItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;public void searchFlipkartItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;public void getCountForFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;public void getFlipkartSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;public void getMarketplaceHistory(long source, long offset, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException;public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllFbbPricingItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbPricingItems_call> resultHandler) throws org.apache.thrift.TException;public void getCountForMarketplaceHistory(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException;public void getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplaceHistoryByDate_call> resultHandler) throws org.apache.thrift.TException;public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException;public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllActivePrivateDeals(List<Long> itemIds, long daysDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException;public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getPrivateDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCount_call> resultHandler) throws org.apache.thrift.TException;public void getAmazonOutSyncItems(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOutSyncItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllPrivateDealsComparison(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPrivateDealsComparison_call> resultHandler) throws org.apache.thrift.TException;public void getAllSnapdealMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException;public void getAllFlipkartMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFlipkartMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException;public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;public void getPreviousCompetitorScraping(long delta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPreviousCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;public void getUploadResultById(long uploadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUploadResultById_call> resultHandler) throws org.apache.thrift.TException;public void addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException;public void getAmazonPromotion(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException;public void updateAmazonPromotion(List<AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException;public void markPartiallyActive(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPartiallyActive_call> resultHandler) throws org.apache.thrift.TException;public void updateItemStateVat(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStateVat_call> resultHandler) throws org.apache.thrift.TException;public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemstoListOnFbg(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbg_call> resultHandler) throws org.apache.thrift.TException;public void getAllFbgListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbgListedItems_call> resultHandler) throws org.apache.thrift.TException;public void checkServices(Map<Long,Map<String,Long>> lines, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkServices_call> resultHandler) throws org.apache.thrift.TException;public void addHsItem(List<HsItem> hsItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addHsItem_call> resultHandler) throws org.apache.thrift.TException;public void getHsItem(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsItem_call> resultHandler) throws org.apache.thrift.TException;public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException;public void getAllFbdListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbdListedItems_call> resultHandler) throws org.apache.thrift.TException;public void getBulkPricingForItems(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBulkPricingForItems_call> resultHandler) throws org.apache.thrift.TException;public void addBulkPricingForItem(BulkItemPricing bulkItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException;public void deleteBulkPricingForItemById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBulkPricingForItemById_call> resultHandler) throws org.apache.thrift.TException;public void deleteBulkPricingForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException;public void getBulkPricingByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBulkPricingByItemId_call> resultHandler) throws org.apache.thrift.TException;public void updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBulkPricesOnProduction_call> resultHandler) throws org.apache.thrift.TException;public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException;public void getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException;public void getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItemList_call> resultHandler) throws org.apache.thrift.TException;public void getStateTaxRate(List<Long> itemIds, long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateTaxRate_call> resultHandler) throws org.apache.thrift.TException;public void getIgstTaxRate(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgstTaxRate_call> resultHandler) throws org.apache.thrift.TException;public void persistGstRate(List<StateGstRate> stateGstRates, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.persistGstRate_call> resultHandler) throws org.apache.thrift.TException;public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;public void getAllFofoDeals(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFofoDeals_call> resultHandler) throws org.apache.thrift.TException;}public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {public Factory() {}public Client getClient(org.apache.thrift.protocol.TProtocol prot) {return new Client(prot);}public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {return new Client(iprot, oprot);}}public Client(org.apache.thrift.protocol.TProtocol prot){super(prot, prot);}public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {super(iprot, oprot);}public long addItem(Item item) throws CatalogServiceException, org.apache.thrift.TException{send_addItem(item);return recv_addItem();}public void send_addItem(Item item) throws org.apache.thrift.TException{addItem_args args = new addItem_args();args.setItem(item);sendBase("addItem", args);}public long recv_addItem() throws CatalogServiceException, org.apache.thrift.TException{addItem_result result = new addItem_result();receiveBase(result, "addItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItem failed: unknown result");}public long updateItem(Item item) throws CatalogServiceException, org.apache.thrift.TException{send_updateItem(item);return recv_updateItem();}public void send_updateItem(Item item) throws org.apache.thrift.TException{updateItem_args args = new updateItem_args();args.setItem(item);sendBase("updateItem", args);}public long recv_updateItem() throws CatalogServiceException, org.apache.thrift.TException{updateItem_result result = new updateItem_result();receiveBase(result, "updateItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");}public ItemShippingInfo isActive(long itemId) throws CatalogServiceException, org.apache.thrift.TException{send_isActive(itemId);return recv_isActive();}public void send_isActive(long itemId) throws org.apache.thrift.TException{isActive_args args = new isActive_args();args.setItemId(itemId);sendBase("isActive", args);}public ItemShippingInfo recv_isActive() throws CatalogServiceException, org.apache.thrift.TException{isActive_result result = new isActive_result();receiveBase(result, "isActive");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isActive failed: unknown result");}public Map<Long,Boolean> getItemsStatus(List<Long> itemIds) throws CatalogServiceException, org.apache.thrift.TException{send_getItemsStatus(itemIds);return recv_getItemsStatus();}public void send_getItemsStatus(List<Long> itemIds) throws org.apache.thrift.TException{getItemsStatus_args args = new getItemsStatus_args();args.setItemIds(itemIds);sendBase("getItemsStatus", args);}public Map<Long,Boolean> recv_getItemsStatus() throws CatalogServiceException, org.apache.thrift.TException{getItemsStatus_result result = new getItemsStatus_result();receiveBase(result, "getItemsStatus");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");}public String getItemStatusDescription(long itemId) throws CatalogServiceException, org.apache.thrift.TException{send_getItemStatusDescription(itemId);return recv_getItemStatusDescription();}public void send_getItemStatusDescription(long itemId) throws org.apache.thrift.TException{getItemStatusDescription_args args = new getItemStatusDescription_args();args.setItemId(itemId);sendBase("getItemStatusDescription", args);}public String recv_getItemStatusDescription() throws CatalogServiceException, org.apache.thrift.TException{getItemStatusDescription_result result = new getItemStatusDescription_result();receiveBase(result, "getItemStatusDescription");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");}public void startItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException{send_startItemOn(item_id, timestamp);recv_startItemOn();}public void send_startItemOn(long item_id, long timestamp) throws org.apache.thrift.TException{startItemOn_args args = new startItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);sendBase("startItemOn", args);}public void recv_startItemOn() throws CatalogServiceException, org.apache.thrift.TException{startItemOn_result result = new startItemOn_result();receiveBase(result, "startItemOn");if (result.cex != null) {throw result.cex;}return;}public void retireItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException{send_retireItemOn(item_id, timestamp);recv_retireItemOn();}public void send_retireItemOn(long item_id, long timestamp) throws org.apache.thrift.TException{retireItemOn_args args = new retireItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);sendBase("retireItemOn", args);}public void recv_retireItemOn() throws CatalogServiceException, org.apache.thrift.TException{retireItemOn_result result = new retireItemOn_result();receiveBase(result, "retireItemOn");if (result.cex != null) {throw result.cex;}return;}public void changeItemStatus(long item_id, long timestamp, status newstatus) throws CatalogServiceException, org.apache.thrift.TException{send_changeItemStatus(item_id, timestamp, newstatus);recv_changeItemStatus();}public void send_changeItemStatus(long item_id, long timestamp, status newstatus) throws org.apache.thrift.TException{changeItemStatus_args args = new changeItemStatus_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.setNewstatus(newstatus);sendBase("changeItemStatus", args);}public void recv_changeItemStatus() throws CatalogServiceException, org.apache.thrift.TException{changeItemStatus_result result = new changeItemStatus_result();receiveBase(result, "changeItemStatus");if (result.cex != null) {throw result.cex;}return;}public Item getItem(long item_id) throws CatalogServiceException, org.apache.thrift.TException{send_getItem(item_id);return recv_getItem();}public void send_getItem(long item_id) throws org.apache.thrift.TException{getItem_args args = new getItem_args();args.setItem_id(item_id);sendBase("getItem", args);}public Item recv_getItem() throws CatalogServiceException, org.apache.thrift.TException{getItem_result result = new getItem_result();receiveBase(result, "getItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItem failed: unknown result");}public Map<Long,Item> getItems(List<Long> item_ids) throws CatalogServiceException, org.apache.thrift.TException{send_getItems(item_ids);return recv_getItems();}public void send_getItems(List<Long> item_ids) throws org.apache.thrift.TException{getItems_args args = new getItems_args();args.setItem_ids(item_ids);sendBase("getItems", args);}public Map<Long,Item> recv_getItems() throws CatalogServiceException, org.apache.thrift.TException{getItems_result result = new getItems_result();receiveBase(result, "getItems");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItems failed: unknown result");}public List<Item> getItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException{send_getItemsByCatalogId(catalog_item_id);return recv_getItemsByCatalogId();}public void send_getItemsByCatalogId(long catalog_item_id) throws org.apache.thrift.TException{getItemsByCatalogId_args args = new getItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);sendBase("getItemsByCatalogId", args);}public List<Item> recv_getItemsByCatalogId() throws CatalogServiceException, org.apache.thrift.TException{getItemsByCatalogId_result result = new getItemsByCatalogId_result();receiveBase(result, "getItemsByCatalogId");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");}public List<Item> getValidItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException{send_getValidItemsByCatalogId(catalog_item_id);return recv_getValidItemsByCatalogId();}public void send_getValidItemsByCatalogId(long catalog_item_id) throws org.apache.thrift.TException{getValidItemsByCatalogId_args args = new getValidItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);sendBase("getValidItemsByCatalogId", args);}public List<Item> recv_getValidItemsByCatalogId() throws CatalogServiceException, org.apache.thrift.TException{getValidItemsByCatalogId_result result = new getValidItemsByCatalogId_result();receiveBase(result, "getValidItemsByCatalogId");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");}public List<Item> getAllItems(boolean isActive) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItems(isActive);return recv_getAllItems();}public void send_getAllItems(boolean isActive) throws org.apache.thrift.TException{getAllItems_args args = new getAllItems_args();args.setIsActive(isActive);sendBase("getAllItems", args);}public List<Item> recv_getAllItems() throws CatalogServiceException, org.apache.thrift.TException{getAllItems_result result = new getAllItems_result();receiveBase(result, "getAllItems");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");}public List<Item> getAllItemsByStatus(status itemStatus) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItemsByStatus(itemStatus);return recv_getAllItemsByStatus();}public void send_getAllItemsByStatus(status itemStatus) throws org.apache.thrift.TException{getAllItemsByStatus_args args = new getAllItemsByStatus_args();args.setItemStatus(itemStatus);sendBase("getAllItemsByStatus", args);}public List<Item> recv_getAllItemsByStatus() throws CatalogServiceException, org.apache.thrift.TException{getAllItemsByStatus_result result = new getAllItemsByStatus_result();receiveBase(result, "getAllItemsByStatus");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");}public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, boolean isAndroid) throws CatalogServiceException, org.apache.thrift.TException{send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid);return recv_markItemAsContentComplete();}public void send_markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, boolean isAndroid) throws org.apache.thrift.TException{markItemAsContentComplete_args args = new markItemAsContentComplete_args();args.setEntityId(entityId);args.setCategory(category);args.setBrand(brand);args.setModelName(modelName);args.setModelNumber(modelNumber);args.setIsAndroid(isAndroid);sendBase("markItemAsContentComplete", args);}public boolean recv_markItemAsContentComplete() throws CatalogServiceException, org.apache.thrift.TException{markItemAsContentComplete_result result = new markItemAsContentComplete_result();receiveBase(result, "markItemAsContentComplete");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");}public Map<Long,Double> getVatRates(long itemId, long categoryId) throws CatalogServiceException, org.apache.thrift.TException{send_getVatRates(itemId, categoryId);return recv_getVatRates();}public void send_getVatRates(long itemId, long categoryId) throws org.apache.thrift.TException{getVatRates_args args = new getVatRates_args();args.setItemId(itemId);args.setCategoryId(categoryId);sendBase("getVatRates", args);}public Map<Long,Double> recv_getVatRates() throws CatalogServiceException, org.apache.thrift.TException{getVatRates_result result = new getVatRates_result();receiveBase(result, "getVatRates");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");}public List<Item> getAllItemsInRange(long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItemsInRange(offset, limit);return recv_getAllItemsInRange();}public void send_getAllItemsInRange(long offset, long limit) throws org.apache.thrift.TException{getAllItemsInRange_args args = new getAllItemsInRange_args();args.setOffset(offset);args.setLimit(limit);sendBase("getAllItemsInRange", args);}public List<Item> recv_getAllItemsInRange() throws CatalogServiceException, org.apache.thrift.TException{getAllItemsInRange_result result = new getAllItemsInRange_result();receiveBase(result, "getAllItemsInRange");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");}public List<Item> getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItemsByStatusInRange(itemStatus, offset, limit);return recv_getAllItemsByStatusInRange();}public void send_getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws org.apache.thrift.TException{getAllItemsByStatusInRange_args args = new getAllItemsByStatusInRange_args();args.setItemStatus(itemStatus);args.setOffset(offset);args.setLimit(limit);sendBase("getAllItemsByStatusInRange", args);}public List<Item> recv_getAllItemsByStatusInRange() throws CatalogServiceException, org.apache.thrift.TException{getAllItemsByStatusInRange_result result = new getAllItemsByStatusInRange_result();receiveBase(result, "getAllItemsByStatusInRange");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");}public int getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException{send_getItemCountByStatus(useStatus, itemStatus);return recv_getItemCountByStatus();}public void send_getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException{getItemCountByStatus_args args = new getItemCountByStatus_args();args.setUseStatus(useStatus);args.setItemStatus(itemStatus);sendBase("getItemCountByStatus", args);}public int recv_getItemCountByStatus() throws org.apache.thrift.TException{getItemCountByStatus_result result = new getItemCountByStatus_result();receiveBase(result, "getItemCountByStatus");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");}public List<Item> getBestSellers() throws CatalogServiceException, org.apache.thrift.TException{send_getBestSellers();return recv_getBestSellers();}public void send_getBestSellers() throws org.apache.thrift.TException{getBestSellers_args args = new getBestSellers_args();sendBase("getBestSellers", args);}public List<Item> recv_getBestSellers() throws CatalogServiceException, org.apache.thrift.TException{getBestSellers_result result = new getBestSellers_result();receiveBase(result, "getBestSellers");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");}public List<Long> getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException{send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category);return recv_getBestSellersCatalogIds();}public void send_getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException{getBestSellersCatalogIds_args args = new getBestSellersCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);sendBase("getBestSellersCatalogIds", args);}public List<Long> recv_getBestSellersCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getBestSellersCatalogIds_result result = new getBestSellersCatalogIds_result();receiveBase(result, "getBestSellersCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");}public long getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException{send_getBestSellersCount();return recv_getBestSellersCount();}public void send_getBestSellersCount() throws org.apache.thrift.TException{getBestSellersCount_args args = new getBestSellersCount_args();sendBase("getBestSellersCount", args);}public long recv_getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException{getBestSellersCount_result result = new getBestSellersCount_result();receiveBase(result, "getBestSellersCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");}public List<Item> getBestDeals() throws CatalogServiceException, org.apache.thrift.TException{send_getBestDeals();return recv_getBestDeals();}public void send_getBestDeals() throws org.apache.thrift.TException{getBestDeals_args args = new getBestDeals_args();sendBase("getBestDeals", args);}public List<Item> recv_getBestDeals() throws CatalogServiceException, org.apache.thrift.TException{getBestDeals_result result = new getBestDeals_result();receiveBase(result, "getBestDeals");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");}public List<Long> getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException{send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category);return recv_getBestDealsCatalogIds();}public void send_getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException{getBestDealsCatalogIds_args args = new getBestDealsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);sendBase("getBestDealsCatalogIds", args);}public List<Long> recv_getBestDealsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getBestDealsCatalogIds_result result = new getBestDealsCatalogIds_result();receiveBase(result, "getBestDealsCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");}public long getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException{send_getBestDealsCount();return recv_getBestDealsCount();}public void send_getBestDealsCount() throws org.apache.thrift.TException{getBestDealsCount_args args = new getBestDealsCount_args();sendBase("getBestDealsCount", args);}public long recv_getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException{getBestDealsCount_result result = new getBestDealsCount_result();receiveBase(result, "getBestDealsCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");}public List<Item> getComingSoon() throws CatalogServiceException, org.apache.thrift.TException{send_getComingSoon();return recv_getComingSoon();}public void send_getComingSoon() throws org.apache.thrift.TException{getComingSoon_args args = new getComingSoon_args();sendBase("getComingSoon", args);}public List<Item> recv_getComingSoon() throws CatalogServiceException, org.apache.thrift.TException{getComingSoon_result result = new getComingSoon_result();receiveBase(result, "getComingSoon");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");}public List<Long> getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException{send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category);return recv_getComingSoonCatalogIds();}public void send_getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException{getComingSoonCatalogIds_args args = new getComingSoonCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);sendBase("getComingSoonCatalogIds", args);}public List<Long> recv_getComingSoonCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getComingSoonCatalogIds_result result = new getComingSoonCatalogIds_result();receiveBase(result, "getComingSoonCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");}public long getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException{send_getComingSoonCount();return recv_getComingSoonCount();}public void send_getComingSoonCount() throws org.apache.thrift.TException{getComingSoonCount_args args = new getComingSoonCount_args();sendBase("getComingSoonCount", args);}public long recv_getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException{getComingSoonCount_result result = new getComingSoonCount_result();receiveBase(result, "getComingSoonCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");}public List<Item> getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException{send_getLatestArrivals();return recv_getLatestArrivals();}public void send_getLatestArrivals() throws org.apache.thrift.TException{getLatestArrivals_args args = new getLatestArrivals_args();sendBase("getLatestArrivals", args);}public List<Item> recv_getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException{getLatestArrivals_result result = new getLatestArrivals_result();receiveBase(result, "getLatestArrivals");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");}public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws CatalogServiceException, org.apache.thrift.TException{send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories);return recv_getLatestArrivalsCatalogIds();}public void send_getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws org.apache.thrift.TException{getLatestArrivalsCatalogIds_args args = new getLatestArrivalsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategories(categories);sendBase("getLatestArrivalsCatalogIds", args);}public List<Long> recv_getLatestArrivalsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getLatestArrivalsCatalogIds_result result = new getLatestArrivalsCatalogIds_result();receiveBase(result, "getLatestArrivalsCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");}public long getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException{send_getLatestArrivalsCount();return recv_getLatestArrivalsCount();}public void send_getLatestArrivalsCount() throws org.apache.thrift.TException{getLatestArrivalsCount_args args = new getLatestArrivalsCount_args();sendBase("getLatestArrivalsCount", args);}public long recv_getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException{getLatestArrivalsCount_result result = new getLatestArrivalsCount_result();receiveBase(result, "getLatestArrivalsCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");}public long generateNewEntityID() throws org.apache.thrift.TException{send_generateNewEntityID();return recv_generateNewEntityID();}public void send_generateNewEntityID() throws org.apache.thrift.TException{generateNewEntityID_args args = new generateNewEntityID_args();sendBase("generateNewEntityID", args);}public long recv_generateNewEntityID() throws org.apache.thrift.TException{generateNewEntityID_result result = new generateNewEntityID_result();receiveBase(result, "generateNewEntityID");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");}public boolean addCategory(Category category) throws org.apache.thrift.TException{send_addCategory(category);return recv_addCategory();}public void send_addCategory(Category category) throws org.apache.thrift.TException{addCategory_args args = new addCategory_args();args.setCategory(category);sendBase("addCategory", args);}public boolean recv_addCategory() throws org.apache.thrift.TException{addCategory_result result = new addCategory_result();receiveBase(result, "addCategory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");}public Category getCategory(long id) throws org.apache.thrift.TException{send_getCategory(id);return recv_getCategory();}public void send_getCategory(long id) throws org.apache.thrift.TException{getCategory_args args = new getCategory_args();args.setId(id);sendBase("getCategory", args);}public Category recv_getCategory() throws org.apache.thrift.TException{getCategory_result result = new getCategory_result();receiveBase(result, "getCategory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");}public List<Category> getAllCategories() throws org.apache.thrift.TException{send_getAllCategories();return recv_getAllCategories();}public void send_getAllCategories() throws org.apache.thrift.TException{getAllCategories_args args = new getAllCategories_args();sendBase("getAllCategories", args);}public List<Category> recv_getAllCategories() throws org.apache.thrift.TException{getAllCategories_result result = new getAllCategories_result();receiveBase(result, "getAllCategories");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");}public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException{send_getAllSimilarItems(itemId);return recv_getAllSimilarItems();}public void send_getAllSimilarItems(long itemId) throws org.apache.thrift.TException{getAllSimilarItems_args args = new getAllSimilarItems_args();args.setItemId(itemId);sendBase("getAllSimilarItems", args);}public List<Item> recv_getAllSimilarItems() throws org.apache.thrift.TException{getAllSimilarItems_result result = new getAllSimilarItems_result();receiveBase(result, "getAllSimilarItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");}public Item addSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException{send_addSimilarItem(itemId, catalogItemId);return recv_addSimilarItem();}public void send_addSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException{addSimilarItem_args args = new addSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);sendBase("addSimilarItem", args);}public Item recv_addSimilarItem() throws CatalogServiceException, org.apache.thrift.TException{addSimilarItem_result result = new addSimilarItem_result();receiveBase(result, "addSimilarItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");}public boolean addTag(String displayName, long itemId) throws org.apache.thrift.TException{send_addTag(displayName, itemId);return recv_addTag();}public void send_addTag(String displayName, long itemId) throws org.apache.thrift.TException{addTag_args args = new addTag_args();args.setDisplayName(displayName);args.setItemId(itemId);sendBase("addTag", args);}public boolean recv_addTag() throws org.apache.thrift.TException{addTag_result result = new addTag_result();receiveBase(result, "addTag");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addTag failed: unknown result");}public boolean deleteEntityTag(String displayName, long itemId) throws org.apache.thrift.TException{send_deleteEntityTag(displayName, itemId);return recv_deleteEntityTag();}public void send_deleteEntityTag(String displayName, long itemId) throws org.apache.thrift.TException{deleteEntityTag_args args = new deleteEntityTag_args();args.setDisplayName(displayName);args.setItemId(itemId);sendBase("deleteEntityTag", args);}public boolean recv_deleteEntityTag() throws org.apache.thrift.TException{deleteEntityTag_result result = new deleteEntityTag_result();receiveBase(result, "deleteEntityTag");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");}public boolean deleteTag(String displayName) throws org.apache.thrift.TException{send_deleteTag(displayName);return recv_deleteTag();}public void send_deleteTag(String displayName) throws org.apache.thrift.TException{deleteTag_args args = new deleteTag_args();args.setDisplayName(displayName);sendBase("deleteTag", args);}public boolean recv_deleteTag() throws org.apache.thrift.TException{deleteTag_result result = new deleteTag_result();receiveBase(result, "deleteTag");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");}public List<String> getAllTags() throws org.apache.thrift.TException{send_getAllTags();return recv_getAllTags();}public void send_getAllTags() throws org.apache.thrift.TException{getAllTags_args args = new getAllTags_args();sendBase("getAllTags", args);}public List<String> recv_getAllTags() throws org.apache.thrift.TException{getAllTags_result result = new getAllTags_result();receiveBase(result, "getAllTags");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");}public List<Long> getAllEntitiesByTagName(String displayName) throws org.apache.thrift.TException{send_getAllEntitiesByTagName(displayName);return recv_getAllEntitiesByTagName();}public void send_getAllEntitiesByTagName(String displayName) throws org.apache.thrift.TException{getAllEntitiesByTagName_args args = new getAllEntitiesByTagName_args();args.setDisplayName(displayName);sendBase("getAllEntitiesByTagName", args);}public List<Long> recv_getAllEntitiesByTagName() throws org.apache.thrift.TException{getAllEntitiesByTagName_result result = new getAllEntitiesByTagName_result();receiveBase(result, "getAllEntitiesByTagName");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");}public Map<Long,List<String>> getAllEntityTags() throws org.apache.thrift.TException{send_getAllEntityTags();return recv_getAllEntityTags();}public void send_getAllEntityTags() throws org.apache.thrift.TException{getAllEntityTags_args args = new getAllEntityTags_args();sendBase("getAllEntityTags", args);}public Map<Long,List<String>> recv_getAllEntityTags() throws org.apache.thrift.TException{getAllEntityTags_result result = new getAllEntityTags_result();receiveBase(result, "getAllEntityTags");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");}public boolean addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException{send_addBanner(bannerCongregate);return recv_addBanner();}public void send_addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException{addBanner_args args = new addBanner_args();args.setBannerCongregate(bannerCongregate);sendBase("addBanner", args);}public boolean recv_addBanner() throws org.apache.thrift.TException{addBanner_result result = new addBanner_result();receiveBase(result, "addBanner");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");}public boolean updateBanner(Banner banner) throws org.apache.thrift.TException{send_updateBanner(banner);return recv_updateBanner();}public void send_updateBanner(Banner banner) throws org.apache.thrift.TException{updateBanner_args args = new updateBanner_args();args.setBanner(banner);sendBase("updateBanner", args);}public boolean recv_updateBanner() throws org.apache.thrift.TException{updateBanner_result result = new updateBanner_result();receiveBase(result, "updateBanner");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");}public List<Banner> getAllBanners() throws org.apache.thrift.TException{send_getAllBanners();return recv_getAllBanners();}public void send_getAllBanners() throws org.apache.thrift.TException{getAllBanners_args args = new getAllBanners_args();sendBase("getAllBanners", args);}public List<Banner> recv_getAllBanners() throws org.apache.thrift.TException{getAllBanners_result result = new getAllBanners_result();receiveBase(result, "getAllBanners");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");}public boolean deleteBanner(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{send_deleteBanner(bannerName, bannerType);return recv_deleteBanner();}public void send_deleteBanner(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{deleteBanner_args args = new deleteBanner_args();args.setBannerName(bannerName);args.setBannerType(bannerType);sendBase("deleteBanner", args);}public boolean recv_deleteBanner() throws org.apache.thrift.TException{deleteBanner_result result = new deleteBanner_result();receiveBase(result, "deleteBanner");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");}public Banner getBannerDetails(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{send_getBannerDetails(bannerName, bannerType);return recv_getBannerDetails();}public void send_getBannerDetails(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{getBannerDetails_args args = new getBannerDetails_args();args.setBannerName(bannerName);args.setBannerType(bannerType);sendBase("getBannerDetails", args);}public Banner recv_getBannerDetails() throws org.apache.thrift.TException{getBannerDetails_result result = new getBannerDetails_result();receiveBase(result, "getBannerDetails");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");}public Map<String,List<Banner>> getActiveBanners() throws org.apache.thrift.TException{send_getActiveBanners();return recv_getActiveBanners();}public void send_getActiveBanners() throws org.apache.thrift.TException{getActiveBanners_args args = new getActiveBanners_args();sendBase("getActiveBanners", args);}public Map<String,List<Banner>> recv_getActiveBanners() throws org.apache.thrift.TException{getActiveBanners_result result = new getActiveBanners_result();receiveBase(result, "getActiveBanners");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");}public boolean addBannerMap(List<BannerMap> bannerMaps) throws org.apache.thrift.TException{send_addBannerMap(bannerMaps);return recv_addBannerMap();}public void send_addBannerMap(List<BannerMap> bannerMaps) throws org.apache.thrift.TException{addBannerMap_args args = new addBannerMap_args();args.setBannerMaps(bannerMaps);sendBase("addBannerMap", args);}public boolean recv_addBannerMap() throws org.apache.thrift.TException{addBannerMap_result result = new addBannerMap_result();receiveBase(result, "addBannerMap");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");}public boolean updateBannerMap(BannerMap bannerMap) throws org.apache.thrift.TException{send_updateBannerMap(bannerMap);return recv_updateBannerMap();}public void send_updateBannerMap(BannerMap bannerMap) throws org.apache.thrift.TException{updateBannerMap_args args = new updateBannerMap_args();args.setBannerMap(bannerMap);sendBase("updateBannerMap", args);}public boolean recv_updateBannerMap() throws org.apache.thrift.TException{updateBannerMap_result result = new updateBannerMap_result();receiveBase(result, "updateBannerMap");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");}public boolean deleteBannerMap(String bannerName) throws org.apache.thrift.TException{send_deleteBannerMap(bannerName);return recv_deleteBannerMap();}public void send_deleteBannerMap(String bannerName) throws org.apache.thrift.TException{deleteBannerMap_args args = new deleteBannerMap_args();args.setBannerName(bannerName);sendBase("deleteBannerMap", args);}public boolean recv_deleteBannerMap() throws org.apache.thrift.TException{deleteBannerMap_result result = new deleteBannerMap_result();receiveBase(result, "deleteBannerMap");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");}public List<BannerMap> getBannerMapDetails(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{send_getBannerMapDetails(bannerName, bannerType);return recv_getBannerMapDetails();}public void send_getBannerMapDetails(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{getBannerMapDetails_args args = new getBannerMapDetails_args();args.setBannerName(bannerName);args.setBannerType(bannerType);sendBase("getBannerMapDetails", args);}public List<BannerMap> recv_getBannerMapDetails() throws org.apache.thrift.TException{getBannerMapDetails_result result = new getBannerMapDetails_result();receiveBase(result, "getBannerMapDetails");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");}public void addBannerUri(List<BannerUriMapping> bannerUriMappings) throws org.apache.thrift.TException{send_addBannerUri(bannerUriMappings);recv_addBannerUri();}public void send_addBannerUri(List<BannerUriMapping> bannerUriMappings) throws org.apache.thrift.TException{addBannerUri_args args = new addBannerUri_args();args.setBannerUriMappings(bannerUriMappings);sendBase("addBannerUri", args);}public void recv_addBannerUri() throws org.apache.thrift.TException{addBannerUri_result result = new addBannerUri_result();receiveBase(result, "addBannerUri");return;}public List<BannerUriMapping> getUriMapping(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{send_getUriMapping(bannerName, bannerType);return recv_getUriMapping();}public void send_getUriMapping(String bannerName, BannerType bannerType) throws org.apache.thrift.TException{getUriMapping_args args = new getUriMapping_args();args.setBannerName(bannerName);args.setBannerType(bannerType);sendBase("getUriMapping", args);}public List<BannerUriMapping> recv_getUriMapping() throws org.apache.thrift.TException{getUriMapping_result result = new getUriMapping_result();receiveBase(result, "getUriMapping");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");}public void addCampaign(Campaign campaign) throws org.apache.thrift.TException{send_addCampaign(campaign);recv_addCampaign();}public void send_addCampaign(Campaign campaign) throws org.apache.thrift.TException{addCampaign_args args = new addCampaign_args();args.setCampaign(campaign);sendBase("addCampaign", args);}public void recv_addCampaign() throws org.apache.thrift.TException{addCampaign_result result = new addCampaign_result();receiveBase(result, "addCampaign");return;}public List<Campaign> getCampaigns(String campaignName) throws org.apache.thrift.TException{send_getCampaigns(campaignName);return recv_getCampaigns();}public void send_getCampaigns(String campaignName) throws org.apache.thrift.TException{getCampaigns_args args = new getCampaigns_args();args.setCampaignName(campaignName);sendBase("getCampaigns", args);}public List<Campaign> recv_getCampaigns() throws org.apache.thrift.TException{getCampaigns_result result = new getCampaigns_result();receiveBase(result, "getCampaigns");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");}public void deleteCampaign(long campaignId) throws org.apache.thrift.TException{send_deleteCampaign(campaignId);recv_deleteCampaign();}public void send_deleteCampaign(long campaignId) throws org.apache.thrift.TException{deleteCampaign_args args = new deleteCampaign_args();args.setCampaignId(campaignId);sendBase("deleteCampaign", args);}public void recv_deleteCampaign() throws org.apache.thrift.TException{deleteCampaign_result result = new deleteCampaign_result();receiveBase(result, "deleteCampaign");return;}public List<String> getAllCampaigns() throws org.apache.thrift.TException{send_getAllCampaigns();return recv_getAllCampaigns();}public void send_getAllCampaigns() throws org.apache.thrift.TException{getAllCampaigns_args args = new getAllCampaigns_args();sendBase("getAllCampaigns", args);}public List<String> recv_getAllCampaigns() throws org.apache.thrift.TException{getAllCampaigns_result result = new getAllCampaigns_result();receiveBase(result, "getAllCampaigns");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");}public Map<String,List<Banner>> getActiveBannersForMobileSite() throws org.apache.thrift.TException{send_getActiveBannersForMobileSite();return recv_getActiveBannersForMobileSite();}public void send_getActiveBannersForMobileSite() throws org.apache.thrift.TException{getActiveBannersForMobileSite_args args = new getActiveBannersForMobileSite_args();sendBase("getActiveBannersForMobileSite", args);}public Map<String,List<Banner>> recv_getActiveBannersForMobileSite() throws org.apache.thrift.TException{getActiveBannersForMobileSite_result result = new getActiveBannersForMobileSite_result();receiveBase(result, "getActiveBannersForMobileSite");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");}public boolean deleteSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException{send_deleteSimilarItem(itemId, catalogItemId);return recv_deleteSimilarItem();}public void send_deleteSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException{deleteSimilarItem_args args = new deleteSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);sendBase("deleteSimilarItem", args);}public boolean recv_deleteSimilarItem() throws CatalogServiceException, org.apache.thrift.TException{deleteSimilarItem_result result = new deleteSimilarItem_result();receiveBase(result, "deleteSimilarItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");}public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException{send_checkSimilarItem(brand, modelNumber, modelName, color);return recv_checkSimilarItem();}public void send_checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException{checkSimilarItem_args args = new checkSimilarItem_args();args.setBrand(brand);args.setModelNumber(modelNumber);args.setModelName(modelName);args.setColor(color);sendBase("checkSimilarItem", args);}public long recv_checkSimilarItem() throws org.apache.thrift.TException{checkSimilarItem_result result = new checkSimilarItem_result();receiveBase(result, "checkSimilarItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");}public void validateRiskyStatus(long itemId) throws org.apache.thrift.TException{send_validateRiskyStatus(itemId);recv_validateRiskyStatus();}public void send_validateRiskyStatus(long itemId) throws org.apache.thrift.TException{validateRiskyStatus_args args = new validateRiskyStatus_args();args.setItemId(itemId);sendBase("validateRiskyStatus", args);}public void recv_validateRiskyStatus() throws org.apache.thrift.TException{validateRiskyStatus_result result = new validateRiskyStatus_result();receiveBase(result, "validateRiskyStatus");return;}public void changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException{send_changeItemRiskyFlag(itemId, risky);recv_changeItemRiskyFlag();}public void send_changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException{changeItemRiskyFlag_args args = new changeItemRiskyFlag_args();args.setItemId(itemId);args.setRisky(risky);sendBase("changeItemRiskyFlag", args);}public void recv_changeItemRiskyFlag() throws org.apache.thrift.TException{changeItemRiskyFlag_result result = new changeItemRiskyFlag_result();receiveBase(result, "changeItemRiskyFlag");return;}public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException{send_getItemsByRiskyFlag();return recv_getItemsByRiskyFlag();}public void send_getItemsByRiskyFlag() throws org.apache.thrift.TException{getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();sendBase("getItemsByRiskyFlag", args);}public List<Item> recv_getItemsByRiskyFlag() throws org.apache.thrift.TException{getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();receiveBase(result, "getItemsByRiskyFlag");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");}public List<Item> getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException{send_getItemsForMasterSheet(category, brand);return recv_getItemsForMasterSheet();}public void send_getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException{getItemsForMasterSheet_args args = new getItemsForMasterSheet_args();args.setCategory(category);args.setBrand(brand);sendBase("getItemsForMasterSheet", args);}public List<Item> recv_getItemsForMasterSheet() throws org.apache.thrift.TException{getItemsForMasterSheet_result result = new getItemsForMasterSheet_result();receiveBase(result, "getItemsForMasterSheet");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");}public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException{send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId);return recv_getSimilarItemsCatalogIds();}public void send_getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException{getSimilarItemsCatalogIds_args args = new getSimilarItemsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setItemId(itemId);sendBase("getSimilarItemsCatalogIds", args);}public List<Long> recv_getSimilarItemsCatalogIds() throws org.apache.thrift.TException{getSimilarItemsCatalogIds_result result = new getSimilarItemsCatalogIds_result();receiveBase(result, "getSimilarItemsCatalogIds");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");}public boolean addProductNotification(long itemId, String email) throws org.apache.thrift.TException{send_addProductNotification(itemId, email);return recv_addProductNotification();}public void send_addProductNotification(long itemId, String email) throws org.apache.thrift.TException{addProductNotification_args args = new addProductNotification_args();args.setItemId(itemId);args.setEmail(email);sendBase("addProductNotification", args);}public boolean recv_addProductNotification() throws org.apache.thrift.TException{addProductNotification_result result = new addProductNotification_result();receiveBase(result, "addProductNotification");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");}public boolean sendProductNotifications() throws org.apache.thrift.TException{send_sendProductNotifications();return recv_sendProductNotifications();}public void send_sendProductNotifications() throws org.apache.thrift.TException{sendProductNotifications_args args = new sendProductNotifications_args();sendBase("sendProductNotifications", args);}public boolean recv_sendProductNotifications() throws org.apache.thrift.TException{sendProductNotifications_result result = new sendProductNotifications_result();receiveBase(result, "sendProductNotifications");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");}public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException{send_getAllBrandsByCategory(categoryId);return recv_getAllBrandsByCategory();}public void send_getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException{getAllBrandsByCategory_args args = new getAllBrandsByCategory_args();args.setCategoryId(categoryId);sendBase("getAllBrandsByCategory", args);}public List<String> recv_getAllBrandsByCategory() throws org.apache.thrift.TException{getAllBrandsByCategory_result result = new getAllBrandsByCategory_result();receiveBase(result, "getAllBrandsByCategory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");}public List<String> getAllBrands() throws org.apache.thrift.TException{send_getAllBrands();return recv_getAllBrands();}public void send_getAllBrands() throws org.apache.thrift.TException{getAllBrands_args args = new getAllBrands_args();sendBase("getAllBrands", args);}public List<String> recv_getAllBrands() throws org.apache.thrift.TException{getAllBrands_result result = new getAllBrands_result();receiveBase(result, "getAllBrands");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");}public List<Source> getAllSources() throws org.apache.thrift.TException{send_getAllSources();return recv_getAllSources();}public void send_getAllSources() throws org.apache.thrift.TException{getAllSources_args args = new getAllSources_args();sendBase("getAllSources", args);}public List<Source> recv_getAllSources() throws org.apache.thrift.TException{getAllSources_result result = new getAllSources_result();receiveBase(result, "getAllSources");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");}public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws CatalogServiceException, org.apache.thrift.TException{send_getItemPricingBySource(itemId, sourceId);return recv_getItemPricingBySource();}public void send_getItemPricingBySource(long itemId, long sourceId) throws org.apache.thrift.TException{getItemPricingBySource_args args = new getItemPricingBySource_args();args.setItemId(itemId);args.setSourceId(sourceId);sendBase("getItemPricingBySource", args);}public SourceItemPricing recv_getItemPricingBySource() throws CatalogServiceException, org.apache.thrift.TException{getItemPricingBySource_result result = new getItemPricingBySource_result();receiveBase(result, "getItemPricingBySource");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");}public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws CatalogServiceException, org.apache.thrift.TException{send_addSourceItemPricing(sourceItemPricing);recv_addSourceItemPricing();}public void send_addSourceItemPricing(SourceItemPricing sourceItemPricing) throws org.apache.thrift.TException{addSourceItemPricing_args args = new addSourceItemPricing_args();args.setSourceItemPricing(sourceItemPricing);sendBase("addSourceItemPricing", args);}public void recv_addSourceItemPricing() throws CatalogServiceException, org.apache.thrift.TException{addSourceItemPricing_result result = new addSourceItemPricing_result();receiveBase(result, "addSourceItemPricing");if (result.cex != null) {throw result.cex;}return;}public List<SourceItemPricing> getAllSourcePricing(long itemId) throws CatalogServiceException, org.apache.thrift.TException{send_getAllSourcePricing(itemId);return recv_getAllSourcePricing();}public void send_getAllSourcePricing(long itemId) throws org.apache.thrift.TException{getAllSourcePricing_args args = new getAllSourcePricing_args();args.setItemId(itemId);sendBase("getAllSourcePricing", args);}public List<SourceItemPricing> recv_getAllSourcePricing() throws CatalogServiceException, org.apache.thrift.TException{getAllSourcePricing_result result = new getAllSourcePricing_result();receiveBase(result, "getAllSourcePricing");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");}public Item getItemForSource(long item_id, long sourceId) throws CatalogServiceException, org.apache.thrift.TException{send_getItemForSource(item_id, sourceId);return recv_getItemForSource();}public void send_getItemForSource(long item_id, long sourceId) throws org.apache.thrift.TException{getItemForSource_args args = new getItemForSource_args();args.setItem_id(item_id);args.setSourceId(sourceId);sendBase("getItemForSource", args);}public Item recv_getItemForSource() throws CatalogServiceException, org.apache.thrift.TException{getItemForSource_result result = new getItemForSource_result();receiveBase(result, "getItemForSource");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");}public List<Item> searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException{send_searchItemsInRange(searchTerms, offset, limit);return recv_searchItemsInRange();}public void send_searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException{searchItemsInRange_args args = new searchItemsInRange_args();args.setSearchTerms(searchTerms);args.setOffset(offset);args.setLimit(limit);sendBase("searchItemsInRange", args);}public List<Item> recv_searchItemsInRange() throws org.apache.thrift.TException{searchItemsInRange_result result = new searchItemsInRange_result();receiveBase(result, "searchItemsInRange");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");}public int getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException{send_getSearchResultCount(searchTerms);return recv_getSearchResultCount();}public void send_getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException{getSearchResultCount_args args = new getSearchResultCount_args();args.setSearchTerms(searchTerms);sendBase("getSearchResultCount", args);}public int recv_getSearchResultCount() throws org.apache.thrift.TException{getSearchResultCount_result result = new getSearchResultCount_result();receiveBase(result, "getSearchResultCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");}public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException{send_getProductNotifications(startDateTime);return recv_getProductNotifications();}public void send_getProductNotifications(long startDateTime) throws org.apache.thrift.TException{getProductNotifications_args args = new getProductNotifications_args();args.setStartDateTime(startDateTime);sendBase("getProductNotifications", args);}public List<ProductNotificationRequest> recv_getProductNotifications() throws org.apache.thrift.TException{getProductNotifications_result result = new getProductNotifications_result();receiveBase(result, "getProductNotifications");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");}public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime, long categoryId) throws org.apache.thrift.TException{send_getProductNotificationRequestCount(startDateTime, categoryId);return recv_getProductNotificationRequestCount();}public void send_getProductNotificationRequestCount(long startDateTime, long categoryId) throws org.apache.thrift.TException{getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();args.setStartDateTime(startDateTime);args.setCategoryId(categoryId);sendBase("getProductNotificationRequestCount", args);}public List<ProductNotificationRequestCount> recv_getProductNotificationRequestCount() throws org.apache.thrift.TException{getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();receiveBase(result, "getProductNotificationRequestCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");}public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException{send_addAuthorizationLog(itemId, username, reason);return recv_addAuthorizationLog();}public void send_addAuthorizationLog(long itemId, String username, String reason) throws org.apache.thrift.TException{addAuthorizationLog_args args = new addAuthorizationLog_args();args.setItemId(itemId);args.setUsername(username);args.setReason(reason);sendBase("addAuthorizationLog", args);}public boolean recv_addAuthorizationLog() throws CatalogServiceException, org.apache.thrift.TException{addAuthorizationLog_result result = new addAuthorizationLog_result();receiveBase(result, "addAuthorizationLog");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");}public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException{send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);return recv_addupdateVoucherForItem();}public void send_addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws org.apache.thrift.TException{addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);args.setVoucherAmount(voucherAmount);sendBase("addupdateVoucherForItem", args);}public boolean recv_addupdateVoucherForItem() throws CatalogServiceException, org.apache.thrift.TException{addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();receiveBase(result, "addupdateVoucherForItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");}public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException{send_deleteVoucherForItem(catalog_item_id, voucherType);return recv_deleteVoucherForItem();}public void send_deleteVoucherForItem(long catalog_item_id, long voucherType) throws org.apache.thrift.TException{deleteVoucherForItem_args args = new deleteVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);sendBase("deleteVoucherForItem", args);}public boolean recv_deleteVoucherForItem() throws CatalogServiceException, org.apache.thrift.TException{deleteVoucherForItem_result result = new deleteVoucherForItem_result();receiveBase(result, "deleteVoucherForItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");}public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException{send_getVoucherAmount(itemId, voucherType);return recv_getVoucherAmount();}public void send_getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException{getVoucherAmount_args args = new getVoucherAmount_args();args.setItemId(itemId);args.setVoucherType(voucherType);sendBase("getVoucherAmount", args);}public long recv_getVoucherAmount() throws org.apache.thrift.TException{getVoucherAmount_result result = new getVoucherAmount_result();receiveBase(result, "getVoucherAmount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");}public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException{send_getAllItemVouchers(itemId);return recv_getAllItemVouchers();}public void send_getAllItemVouchers(long itemId) throws org.apache.thrift.TException{getAllItemVouchers_args args = new getAllItemVouchers_args();args.setItemId(itemId);sendBase("getAllItemVouchers", args);}public List<VoucherItemMapping> recv_getAllItemVouchers() throws org.apache.thrift.TException{getAllItemVouchers_result result = new getAllItemVouchers_result();receiveBase(result, "getAllItemVouchers");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");}public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException{send_isValidCatalogItemId(catalog_item_id);return recv_isValidCatalogItemId();}public void send_isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException{isValidCatalogItemId_args args = new isValidCatalogItemId_args();args.setCatalog_item_id(catalog_item_id);sendBase("isValidCatalogItemId", args);}public boolean recv_isValidCatalogItemId() throws org.apache.thrift.TException{isValidCatalogItemId_result result = new isValidCatalogItemId_result();receiveBase(result, "isValidCatalogItemId");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");}public double getVatPercentageForItem(long itemId, long stateId, double price) throws CatalogServiceException, org.apache.thrift.TException{send_getVatPercentageForItem(itemId, stateId, price);return recv_getVatPercentageForItem();}public void send_getVatPercentageForItem(long itemId, long stateId, double price) throws org.apache.thrift.TException{getVatPercentageForItem_args args = new getVatPercentageForItem_args();args.setItemId(itemId);args.setStateId(stateId);args.setPrice(price);sendBase("getVatPercentageForItem", args);}public double recv_getVatPercentageForItem() throws CatalogServiceException, org.apache.thrift.TException{getVatPercentageForItem_result result = new getVatPercentageForItem_result();receiveBase(result, "getVatPercentageForItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");}public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException{send_getVatAmountForItem(itemId, price);return recv_getVatAmountForItem();}public void send_getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException{getVatAmountForItem_args args = new getVatAmountForItem_args();args.setItemId(itemId);args.setPrice(price);sendBase("getVatAmountForItem", args);}public double recv_getVatAmountForItem() throws org.apache.thrift.TException{getVatAmountForItem_result result = new getVatAmountForItem_result();receiveBase(result, "getVatAmountForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");}public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException{send_getAllIgnoredInventoryUpdateItemsList(offset, limit);return recv_getAllIgnoredInventoryUpdateItemsList();}public void send_getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException{getAllIgnoredInventoryUpdateItemsList_args args = new getAllIgnoredInventoryUpdateItemsList_args();args.setOffset(offset);args.setLimit(limit);sendBase("getAllIgnoredInventoryUpdateItemsList", args);}public List<Item> recv_getAllIgnoredInventoryUpdateItemsList() throws org.apache.thrift.TException{getAllIgnoredInventoryUpdateItemsList_result result = new getAllIgnoredInventoryUpdateItemsList_result();receiveBase(result, "getAllIgnoredInventoryUpdateItemsList");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");}public List<Item> getAllAliveItems() throws org.apache.thrift.TException{send_getAllAliveItems();return recv_getAllAliveItems();}public void send_getAllAliveItems() throws org.apache.thrift.TException{getAllAliveItems_args args = new getAllAliveItems_args();sendBase("getAllAliveItems", args);}public List<Item> recv_getAllAliveItems() throws org.apache.thrift.TException{getAllAliveItems_result result = new getAllAliveItems_result();receiveBase(result, "getAllAliveItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");}public long getInsuranceAmount(long itemId, double price, long insurerId, long quantity) throws org.apache.thrift.TException{send_getInsuranceAmount(itemId, price, insurerId, quantity);return recv_getInsuranceAmount();}public void send_getInsuranceAmount(long itemId, double price, long insurerId, long quantity) throws org.apache.thrift.TException{getInsuranceAmount_args args = new getInsuranceAmount_args();args.setItemId(itemId);args.setPrice(price);args.setInsurerId(insurerId);args.setQuantity(quantity);sendBase("getInsuranceAmount", args);}public long recv_getInsuranceAmount() throws org.apache.thrift.TException{getInsuranceAmount_result result = new getInsuranceAmount_result();receiveBase(result, "getInsuranceAmount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");}public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException{send_getInsurer(insurerId);return recv_getInsurer();}public void send_getInsurer(long insurerId) throws org.apache.thrift.TException{getInsurer_args args = new getInsurer_args();args.setInsurerId(insurerId);sendBase("getInsurer", args);}public Insurer recv_getInsurer() throws org.apache.thrift.TException{getInsurer_result result = new getInsurer_result();receiveBase(result, "getInsurer");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");}public List<Insurer> getAllInsurers() throws org.apache.thrift.TException{send_getAllInsurers();return recv_getAllInsurers();}public void send_getAllInsurers() throws org.apache.thrift.TException{getAllInsurers_args args = new getAllInsurers_args();sendBase("getAllInsurers", args);}public List<Insurer> recv_getAllInsurers() throws org.apache.thrift.TException{getAllInsurers_result result = new getAllInsurers_result();receiveBase(result, "getAllInsurers");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");}public void updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException{send_updateInsuranceDeclaredAmount(insurerId, amount);recv_updateInsuranceDeclaredAmount();}public void send_updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException{updateInsuranceDeclaredAmount_args args = new updateInsuranceDeclaredAmount_args();args.setInsurerId(insurerId);args.setAmount(amount);sendBase("updateInsuranceDeclaredAmount", args);}public void recv_updateInsuranceDeclaredAmount() throws org.apache.thrift.TException{updateInsuranceDeclaredAmount_result result = new updateInsuranceDeclaredAmount_result();receiveBase(result, "updateInsuranceDeclaredAmount");return;}public long getFreebieForItem(long itemId) throws org.apache.thrift.TException{send_getFreebieForItem(itemId);return recv_getFreebieForItem();}public void send_getFreebieForItem(long itemId) throws org.apache.thrift.TException{getFreebieForItem_args args = new getFreebieForItem_args();args.setItemId(itemId);sendBase("getFreebieForItem", args);}public long recv_getFreebieForItem() throws org.apache.thrift.TException{getFreebieForItem_result result = new getFreebieForItem_result();receiveBase(result, "getFreebieForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");}public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException{send_addOrUpdateFreebieForItem(freebieItem);recv_addOrUpdateFreebieForItem();}public void send_addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException{addOrUpdateFreebieForItem_args args = new addOrUpdateFreebieForItem_args();args.setFreebieItem(freebieItem);sendBase("addOrUpdateFreebieForItem", args);}public void recv_addOrUpdateFreebieForItem() throws org.apache.thrift.TException{addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();receiveBase(result, "addOrUpdateFreebieForItem");return;}public void addOrUpdateBrandInfo(BrandInfo brandInfo) throws org.apache.thrift.TException{send_addOrUpdateBrandInfo(brandInfo);recv_addOrUpdateBrandInfo();}public void send_addOrUpdateBrandInfo(BrandInfo brandInfo) throws org.apache.thrift.TException{addOrUpdateBrandInfo_args args = new addOrUpdateBrandInfo_args();args.setBrandInfo(brandInfo);sendBase("addOrUpdateBrandInfo", args);}public void recv_addOrUpdateBrandInfo() throws org.apache.thrift.TException{addOrUpdateBrandInfo_result result = new addOrUpdateBrandInfo_result();receiveBase(result, "addOrUpdateBrandInfo");return;}public Map<String,BrandInfo> getBrandInfo() throws org.apache.thrift.TException{send_getBrandInfo();return recv_getBrandInfo();}public void send_getBrandInfo() throws org.apache.thrift.TException{getBrandInfo_args args = new getBrandInfo_args();sendBase("getBrandInfo", args);}public Map<String,BrandInfo> recv_getBrandInfo() throws org.apache.thrift.TException{getBrandInfo_result result = new getBrandInfo_result();receiveBase(result, "getBrandInfo");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");}public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException{send_getStorePricing(itemId);return recv_getStorePricing();}public void send_getStorePricing(long itemId) throws org.apache.thrift.TException{getStorePricing_args args = new getStorePricing_args();args.setItemId(itemId);sendBase("getStorePricing", args);}public StorePricing recv_getStorePricing() throws org.apache.thrift.TException{getStorePricing_result result = new getStorePricing_result();receiveBase(result, "getStorePricing");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");}public List<StorePricing> getStorePricings(List<Long> itemIds) throws org.apache.thrift.TException{send_getStorePricings(itemIds);return recv_getStorePricings();}public void send_getStorePricings(List<Long> itemIds) throws org.apache.thrift.TException{getStorePricings_args args = new getStorePricings_args();args.setItemIds(itemIds);sendBase("getStorePricings", args);}public List<StorePricing> recv_getStorePricings() throws org.apache.thrift.TException{getStorePricings_result result = new getStorePricings_result();receiveBase(result, "getStorePricings");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");}public void updateStorePricing(StorePricing sp, boolean allColors) throws org.apache.thrift.TException{send_updateStorePricing(sp, allColors);recv_updateStorePricing();}public void send_updateStorePricing(StorePricing sp, boolean allColors) throws org.apache.thrift.TException{updateStorePricing_args args = new updateStorePricing_args();args.setSp(sp);args.setAllColors(allColors);sendBase("updateStorePricing", args);}public void recv_updateStorePricing() throws org.apache.thrift.TException{updateStorePricing_result result = new updateStorePricing_result();receiveBase(result, "updateStorePricing");return;}public List<Amazonlisted> getAllAmazonListedItems() throws org.apache.thrift.TException{send_getAllAmazonListedItems();return recv_getAllAmazonListedItems();}public void send_getAllAmazonListedItems() throws org.apache.thrift.TException{getAllAmazonListedItems_args args = new getAllAmazonListedItems_args();sendBase("getAllAmazonListedItems", args);}public List<Amazonlisted> recv_getAllAmazonListedItems() throws org.apache.thrift.TException{getAllAmazonListedItems_result result = new getAllAmazonListedItems_result();receiveBase(result, "getAllAmazonListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");}public List<Amazonlisted> searchAmazonItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException{send_searchAmazonItems(searchTerm, offset, limit);return recv_searchAmazonItems();}public void send_searchAmazonItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException{searchAmazonItems_args args = new searchAmazonItems_args();args.setSearchTerm(searchTerm);args.setOffset(offset);args.setLimit(limit);sendBase("searchAmazonItems", args);}public List<Amazonlisted> recv_searchAmazonItems() throws org.apache.thrift.TException{searchAmazonItems_result result = new searchAmazonItems_result();receiveBase(result, "searchAmazonItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");}public long getAmazonSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException{send_getAmazonSearchResultCount(searchTerm);return recv_getAmazonSearchResultCount();}public void send_getAmazonSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException{getAmazonSearchResultCount_args args = new getAmazonSearchResultCount_args();args.setSearchTerm(searchTerm);sendBase("getAmazonSearchResultCount", args);}public long recv_getAmazonSearchResultCount() throws org.apache.thrift.TException{getAmazonSearchResultCount_result result = new getAmazonSearchResultCount_result();receiveBase(result, "getAmazonSearchResultCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");}public long getCountForAmazonlistedItems() throws org.apache.thrift.TException{send_getCountForAmazonlistedItems();return recv_getCountForAmazonlistedItems();}public void send_getCountForAmazonlistedItems() throws org.apache.thrift.TException{getCountForAmazonlistedItems_args args = new getCountForAmazonlistedItems_args();sendBase("getCountForAmazonlistedItems", args);}public long recv_getCountForAmazonlistedItems() throws org.apache.thrift.TException{getCountForAmazonlistedItems_result result = new getCountForAmazonlistedItems_result();receiveBase(result, "getCountForAmazonlistedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");}public Amazonlisted getAmazonItemDetails(long itemId) throws org.apache.thrift.TException{send_getAmazonItemDetails(itemId);return recv_getAmazonItemDetails();}public void send_getAmazonItemDetails(long itemId) throws org.apache.thrift.TException{getAmazonItemDetails_args args = new getAmazonItemDetails_args();args.setItemId(itemId);sendBase("getAmazonItemDetails", args);}public Amazonlisted recv_getAmazonItemDetails() throws org.apache.thrift.TException{getAmazonItemDetails_result result = new getAmazonItemDetails_result();receiveBase(result, "getAmazonItemDetails");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");}public void updateAmazonItemDetails(Amazonlisted amazonlisted) throws org.apache.thrift.TException{send_updateAmazonItemDetails(amazonlisted);recv_updateAmazonItemDetails();}public void send_updateAmazonItemDetails(Amazonlisted amazonlisted) throws org.apache.thrift.TException{updateAmazonItemDetails_args args = new updateAmazonItemDetails_args();args.setAmazonlisted(amazonlisted);sendBase("updateAmazonItemDetails", args);}public void recv_updateAmazonItemDetails() throws org.apache.thrift.TException{updateAmazonItemDetails_result result = new updateAmazonItemDetails_result();receiveBase(result, "updateAmazonItemDetails");return;}public void addAmazonItem(Amazonlisted amazonlisted) throws org.apache.thrift.TException{send_addAmazonItem(amazonlisted);recv_addAmazonItem();}public void send_addAmazonItem(Amazonlisted amazonlisted) throws org.apache.thrift.TException{addAmazonItem_args args = new addAmazonItem_args();args.setAmazonlisted(amazonlisted);sendBase("addAmazonItem", args);}public void recv_addAmazonItem() throws org.apache.thrift.TException{addAmazonItem_result result = new addAmazonItem_result();receiveBase(result, "addAmazonItem");return;}public List<Item> getAsinItems() throws org.apache.thrift.TException{send_getAsinItems();return recv_getAsinItems();}public void send_getAsinItems() throws org.apache.thrift.TException{getAsinItems_args args = new getAsinItems_args();sendBase("getAsinItems", args);}public List<Item> recv_getAsinItems() throws org.apache.thrift.TException{getAsinItems_result result = new getAsinItems_result();receiveBase(result, "getAsinItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");}public List<Amazonlisted> getAllFbaListedItems() throws org.apache.thrift.TException{send_getAllFbaListedItems();return recv_getAllFbaListedItems();}public void send_getAllFbaListedItems() throws org.apache.thrift.TException{getAllFbaListedItems_args args = new getAllFbaListedItems_args();sendBase("getAllFbaListedItems", args);}public List<Amazonlisted> recv_getAllFbaListedItems() throws org.apache.thrift.TException{getAllFbaListedItems_result result = new getAllFbaListedItems_result();receiveBase(result, "getAllFbaListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");}public List<Amazonlisted> getAllNonFbaListedItems() throws org.apache.thrift.TException{send_getAllNonFbaListedItems();return recv_getAllNonFbaListedItems();}public void send_getAllNonFbaListedItems() throws org.apache.thrift.TException{getAllNonFbaListedItems_args args = new getAllNonFbaListedItems_args();sendBase("getAllNonFbaListedItems", args);}public List<Amazonlisted> recv_getAllNonFbaListedItems() throws org.apache.thrift.TException{getAllNonFbaListedItems_result result = new getAllNonFbaListedItems_result();receiveBase(result, "getAllNonFbaListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");}public boolean updateItemInventory(long itemId, long holdInventory, long defaultInventory) throws org.apache.thrift.TException{send_updateItemInventory(itemId, holdInventory, defaultInventory);return recv_updateItemInventory();}public void send_updateItemInventory(long itemId, long holdInventory, long defaultInventory) throws org.apache.thrift.TException{updateItemInventory_args args = new updateItemInventory_args();args.setItemId(itemId);args.setHoldInventory(holdInventory);args.setDefaultInventory(defaultInventory);sendBase("updateItemInventory", args);}public boolean recv_updateItemInventory() throws org.apache.thrift.TException{updateItemInventory_result result = new updateItemInventory_result();receiveBase(result, "updateItemInventory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");}public boolean updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException{send_updateTimestampForAmazonFeeds(type, sku, timestamp);return recv_updateTimestampForAmazonFeeds();}public void send_updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException{updateTimestampForAmazonFeeds_args args = new updateTimestampForAmazonFeeds_args();args.setType(type);args.setSku(sku);args.setTimestamp(timestamp);sendBase("updateTimestampForAmazonFeeds", args);}public boolean recv_updateTimestampForAmazonFeeds() throws org.apache.thrift.TException{updateTimestampForAmazonFeeds_result result = new updateTimestampForAmazonFeeds_result();receiveBase(result, "updateTimestampForAmazonFeeds");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");}public List<Category> getAllParentCategories() throws org.apache.thrift.TException{send_getAllParentCategories();return recv_getAllParentCategories();}public void send_getAllParentCategories() throws org.apache.thrift.TException{getAllParentCategories_args args = new getAllParentCategories_args();sendBase("getAllParentCategories", args);}public List<Category> recv_getAllParentCategories() throws org.apache.thrift.TException{getAllParentCategories_result result = new getAllParentCategories_result();receiveBase(result, "getAllParentCategories");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");}public void addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException{send_addPageViewEvent(pageViewEvents);recv_addPageViewEvent();}public void send_addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException{addPageViewEvent_args args = new addPageViewEvent_args();args.setPageViewEvents(pageViewEvents);sendBase("addPageViewEvent", args);}public void recv_addPageViewEvent() throws org.apache.thrift.TException{addPageViewEvent_result result = new addPageViewEvent_result();receiveBase(result, "addPageViewEvent");return;}public void addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException{send_addCartEvent(cartEvents);recv_addCartEvent();}public void send_addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException{addCartEvent_args args = new addCartEvent_args();args.setCartEvents(cartEvents);sendBase("addCartEvent", args);}public void recv_addCartEvent() throws org.apache.thrift.TException{addCartEvent_result result = new addCartEvent_result();receiveBase(result, "addCartEvent");return;}public void addEbayItem(EbayItem ebayItem) throws org.apache.thrift.TException{send_addEbayItem(ebayItem);recv_addEbayItem();}public void send_addEbayItem(EbayItem ebayItem) throws org.apache.thrift.TException{addEbayItem_args args = new addEbayItem_args();args.setEbayItem(ebayItem);sendBase("addEbayItem", args);}public void recv_addEbayItem() throws org.apache.thrift.TException{addEbayItem_result result = new addEbayItem_result();receiveBase(result, "addEbayItem");return;}public EbayItem getEbayItem(String listingId) throws org.apache.thrift.TException{send_getEbayItem(listingId);return recv_getEbayItem();}public void send_getEbayItem(String listingId) throws org.apache.thrift.TException{getEbayItem_args args = new getEbayItem_args();args.setListingId(listingId);sendBase("getEbayItem", args);}public EbayItem recv_getEbayItem() throws org.apache.thrift.TException{getEbayItem_result result = new getEbayItem_result();receiveBase(result, "getEbayItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");}public void updateEbayItem(EbayItem ebayItem) throws org.apache.thrift.TException{send_updateEbayItem(ebayItem);recv_updateEbayItem();}public void send_updateEbayItem(EbayItem ebayItem) throws org.apache.thrift.TException{updateEbayItem_args args = new updateEbayItem_args();args.setEbayItem(ebayItem);sendBase("updateEbayItem", args);}public void recv_updateEbayItem() throws org.apache.thrift.TException{updateEbayItem_result result = new updateEbayItem_result();receiveBase(result, "updateEbayItem");return;}public List<Amazonlisted> getAmazonListedItems(long offset, long limit) throws org.apache.thrift.TException{send_getAmazonListedItems(offset, limit);return recv_getAmazonListedItems();}public void send_getAmazonListedItems(long offset, long limit) throws org.apache.thrift.TException{getAmazonListedItems_args args = new getAmazonListedItems_args();args.setOffset(offset);args.setLimit(limit);sendBase("getAmazonListedItems", args);}public List<Amazonlisted> recv_getAmazonListedItems() throws org.apache.thrift.TException{getAmazonListedItems_result result = new getAmazonListedItems_result();receiveBase(result, "getAmazonListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");}public boolean updateAmazonAttributesInBulk(Map<Long,Amazonlisted> amazonlisted) throws org.apache.thrift.TException{send_updateAmazonAttributesInBulk(amazonlisted);return recv_updateAmazonAttributesInBulk();}public void send_updateAmazonAttributesInBulk(Map<Long,Amazonlisted> amazonlisted) throws org.apache.thrift.TException{updateAmazonAttributesInBulk_args args = new updateAmazonAttributesInBulk_args();args.setAmazonlisted(amazonlisted);sendBase("updateAmazonAttributesInBulk", args);}public boolean recv_updateAmazonAttributesInBulk() throws org.apache.thrift.TException{updateAmazonAttributesInBulk_result result = new updateAmazonAttributesInBulk_result();receiveBase(result, "updateAmazonAttributesInBulk");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");}public List<Amazonlisted> getAllItemstoListOnFba() throws org.apache.thrift.TException{send_getAllItemstoListOnFba();return recv_getAllItemstoListOnFba();}public void send_getAllItemstoListOnFba() throws org.apache.thrift.TException{getAllItemstoListOnFba_args args = new getAllItemstoListOnFba_args();sendBase("getAllItemstoListOnFba", args);}public List<Amazonlisted> recv_getAllItemstoListOnFba() throws org.apache.thrift.TException{getAllItemstoListOnFba_result result = new getAllItemstoListOnFba_result();receiveBase(result, "getAllItemstoListOnFba");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");}public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException{send_getAllItemstoListOnNonFba();return recv_getAllItemstoListOnNonFba();}public void send_getAllItemstoListOnNonFba() throws org.apache.thrift.TException{getAllItemstoListOnNonFba_args args = new getAllItemstoListOnNonFba_args();sendBase("getAllItemstoListOnNonFba", args);}public List<Amazonlisted> recv_getAllItemstoListOnNonFba() throws org.apache.thrift.TException{getAllItemstoListOnNonFba_result result = new getAllItemstoListOnNonFba_result();receiveBase(result, "getAllItemstoListOnNonFba");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");}public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException{send_updateAsin(item);recv_updateAsin();}public void send_updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException{updateAsin_args args = new updateAsin_args();args.setItem(item);sendBase("updateAsin", args);}public void recv_updateAsin() throws org.apache.thrift.TException{updateAsin_result result = new updateAsin_result();receiveBase(result, "updateAsin");return;}public boolean addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException{send_addOrUpdateSnapdealItem(snapdealitem);return recv_addOrUpdateSnapdealItem();}public void send_addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException{addOrUpdateSnapdealItem_args args = new addOrUpdateSnapdealItem_args();args.setSnapdealitem(snapdealitem);sendBase("addOrUpdateSnapdealItem", args);}public boolean recv_addOrUpdateSnapdealItem() throws org.apache.thrift.TException{addOrUpdateSnapdealItem_result result = new addOrUpdateSnapdealItem_result();receiveBase(result, "addOrUpdateSnapdealItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");}public SnapdealItem getSnapdealItem(long item_id) throws org.apache.thrift.TException{send_getSnapdealItem(item_id);return recv_getSnapdealItem();}public void send_getSnapdealItem(long item_id) throws org.apache.thrift.TException{getSnapdealItem_args args = new getSnapdealItem_args();args.setItem_id(item_id);sendBase("getSnapdealItem", args);}public SnapdealItem recv_getSnapdealItem() throws org.apache.thrift.TException{getSnapdealItem_result result = new getSnapdealItem_result();receiveBase(result, "getSnapdealItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");}public SnapdealItemDetails getSnapdealItemDetails(long item_id) throws org.apache.thrift.TException{send_getSnapdealItemDetails(item_id);return recv_getSnapdealItemDetails();}public void send_getSnapdealItemDetails(long item_id) throws org.apache.thrift.TException{getSnapdealItemDetails_args args = new getSnapdealItemDetails_args();args.setItem_id(item_id);sendBase("getSnapdealItemDetails", args);}public SnapdealItemDetails recv_getSnapdealItemDetails() throws org.apache.thrift.TException{getSnapdealItemDetails_result result = new getSnapdealItemDetails_result();receiveBase(result, "getSnapdealItemDetails");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");}public List<SnapdealItemDetails> getAllSnapdealItems() throws org.apache.thrift.TException{send_getAllSnapdealItems();return recv_getAllSnapdealItems();}public void send_getAllSnapdealItems() throws org.apache.thrift.TException{getAllSnapdealItems_args args = new getAllSnapdealItems_args();sendBase("getAllSnapdealItems", args);}public List<SnapdealItemDetails> recv_getAllSnapdealItems() throws org.apache.thrift.TException{getAllSnapdealItems_result result = new getAllSnapdealItems_result();receiveBase(result, "getAllSnapdealItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");}public List<SnapdealItemDetails> getSnapdealItems(long offset, long limit) throws org.apache.thrift.TException{send_getSnapdealItems(offset, limit);return recv_getSnapdealItems();}public void send_getSnapdealItems(long offset, long limit) throws org.apache.thrift.TException{getSnapdealItems_args args = new getSnapdealItems_args();args.setOffset(offset);args.setLimit(limit);sendBase("getSnapdealItems", args);}public List<SnapdealItemDetails> recv_getSnapdealItems() throws org.apache.thrift.TException{getSnapdealItems_result result = new getSnapdealItems_result();receiveBase(result, "getSnapdealItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");}public List<SnapdealItemDetails> searchSnapdealItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException{send_searchSnapdealItems(searchTerm, offset, limit);return recv_searchSnapdealItems();}public void send_searchSnapdealItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException{searchSnapdealItems_args args = new searchSnapdealItems_args();args.setSearchTerm(searchTerm);args.setOffset(offset);args.setLimit(limit);sendBase("searchSnapdealItems", args);}public List<SnapdealItemDetails> recv_searchSnapdealItems() throws org.apache.thrift.TException{searchSnapdealItems_result result = new searchSnapdealItems_result();receiveBase(result, "searchSnapdealItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");}public long getCountForSnapdealItems() throws org.apache.thrift.TException{send_getCountForSnapdealItems();return recv_getCountForSnapdealItems();}public void send_getCountForSnapdealItems() throws org.apache.thrift.TException{getCountForSnapdealItems_args args = new getCountForSnapdealItems_args();sendBase("getCountForSnapdealItems", args);}public long recv_getCountForSnapdealItems() throws org.apache.thrift.TException{getCountForSnapdealItems_result result = new getCountForSnapdealItems_result();receiveBase(result, "getCountForSnapdealItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");}public long getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException{send_getSnapdealSearchResultCount(searchTerm);return recv_getSnapdealSearchResultCount();}public void send_getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException{getSnapdealSearchResultCount_args args = new getSnapdealSearchResultCount_args();args.setSearchTerm(searchTerm);sendBase("getSnapdealSearchResultCount", args);}public long recv_getSnapdealSearchResultCount() throws org.apache.thrift.TException{getSnapdealSearchResultCount_result result = new getSnapdealSearchResultCount_result();receiveBase(result, "getSnapdealSearchResultCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");}public long getPrefferedInsurerForItem(long itemId, InsurerType insurerType) throws org.apache.thrift.TException{send_getPrefferedInsurerForItem(itemId, insurerType);return recv_getPrefferedInsurerForItem();}public void send_getPrefferedInsurerForItem(long itemId, InsurerType insurerType) throws org.apache.thrift.TException{getPrefferedInsurerForItem_args args = new getPrefferedInsurerForItem_args();args.setItemId(itemId);args.setInsurerType(insurerType);sendBase("getPrefferedInsurerForItem", args);}public long recv_getPrefferedInsurerForItem() throws org.apache.thrift.TException{getPrefferedInsurerForItem_result result = new getPrefferedInsurerForItem_result();receiveBase(result, "getPrefferedInsurerForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");}public SnapdealItem getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal) throws org.apache.thrift.TException{send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal);return recv_getSnapdealItembySkuAtSnapdeal();}public void send_getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal) throws org.apache.thrift.TException{getSnapdealItembySkuAtSnapdeal_args args = new getSnapdealItembySkuAtSnapdeal_args();args.setSkuAtSnapdeal(skuAtSnapdeal);sendBase("getSnapdealItembySkuAtSnapdeal", args);}public SnapdealItem recv_getSnapdealItembySkuAtSnapdeal() throws org.apache.thrift.TException{getSnapdealItembySkuAtSnapdeal_result result = new getSnapdealItembySkuAtSnapdeal_result();receiveBase(result, "getSnapdealItembySkuAtSnapdeal");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");}public ProductFeedSubmit getProductFeedSubmit(long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException{send_getProductFeedSubmit(catalogItemId);return recv_getProductFeedSubmit();}public void send_getProductFeedSubmit(long catalogItemId) throws org.apache.thrift.TException{getProductFeedSubmit_args args = new getProductFeedSubmit_args();args.setCatalogItemId(catalogItemId);sendBase("getProductFeedSubmit", args);}public ProductFeedSubmit recv_getProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException{getProductFeedSubmit_result result = new getProductFeedSubmit_result();receiveBase(result, "getProductFeedSubmit");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");}public boolean addProductFeedSubmit(ProductFeedSubmit productFeedSubmit) throws CatalogServiceException, org.apache.thrift.TException{send_addProductFeedSubmit(productFeedSubmit);return recv_addProductFeedSubmit();}public void send_addProductFeedSubmit(ProductFeedSubmit productFeedSubmit) throws org.apache.thrift.TException{addProductFeedSubmit_args args = new addProductFeedSubmit_args();args.setProductFeedSubmit(productFeedSubmit);sendBase("addProductFeedSubmit", args);}public boolean recv_addProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException{addProductFeedSubmit_result result = new addProductFeedSubmit_result();receiveBase(result, "addProductFeedSubmit");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");}public boolean updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit) throws CatalogServiceException, org.apache.thrift.TException{send_updateProductFeedSubmit(productFeedSubmit);return recv_updateProductFeedSubmit();}public void send_updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit) throws org.apache.thrift.TException{updateProductFeedSubmit_args args = new updateProductFeedSubmit_args();args.setProductFeedSubmit(productFeedSubmit);sendBase("updateProductFeedSubmit", args);}public boolean recv_updateProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException{updateProductFeedSubmit_result result = new updateProductFeedSubmit_result();receiveBase(result, "updateProductFeedSubmit");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");}public boolean deleteProductFeedSubmit(long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException{send_deleteProductFeedSubmit(catalogItemId);return recv_deleteProductFeedSubmit();}public void send_deleteProductFeedSubmit(long catalogItemId) throws org.apache.thrift.TException{deleteProductFeedSubmit_args args = new deleteProductFeedSubmit_args();args.setCatalogItemId(catalogItemId);sendBase("deleteProductFeedSubmit", args);}public boolean recv_deleteProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException{deleteProductFeedSubmit_result result = new deleteProductFeedSubmit_result();receiveBase(result, "deleteProductFeedSubmit");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");}public List<ProductFeedSubmit> getAllProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException{send_getAllProductFeedSubmit();return recv_getAllProductFeedSubmit();}public void send_getAllProductFeedSubmit() throws org.apache.thrift.TException{getAllProductFeedSubmit_args args = new getAllProductFeedSubmit_args();sendBase("getAllProductFeedSubmit", args);}public List<ProductFeedSubmit> recv_getAllProductFeedSubmit() throws CatalogServiceException, org.apache.thrift.TException{getAllProductFeedSubmit_result result = new getAllProductFeedSubmit_result();receiveBase(result, "getAllProductFeedSubmit");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");}public MarketplaceItems getMarketplacedetailsForItem(long itemId, long sourceId) throws org.apache.thrift.TException{send_getMarketplacedetailsForItem(itemId, sourceId);return recv_getMarketplacedetailsForItem();}public void send_getMarketplacedetailsForItem(long itemId, long sourceId) throws org.apache.thrift.TException{getMarketplacedetailsForItem_args args = new getMarketplacedetailsForItem_args();args.setItemId(itemId);args.setSourceId(sourceId);sendBase("getMarketplacedetailsForItem", args);}public MarketplaceItems recv_getMarketplacedetailsForItem() throws org.apache.thrift.TException{getMarketplacedetailsForItem_result result = new getMarketplacedetailsForItem_result();receiveBase(result, "getMarketplacedetailsForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");}public boolean updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem) throws org.apache.thrift.TException{send_updateMarketplaceAttributesForItem(marketPlaceItem);return recv_updateMarketplaceAttributesForItem();}public void send_updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem) throws org.apache.thrift.TException{updateMarketplaceAttributesForItem_args args = new updateMarketplaceAttributesForItem_args();args.setMarketPlaceItem(marketPlaceItem);sendBase("updateMarketplaceAttributesForItem", args);}public boolean recv_updateMarketplaceAttributesForItem() throws org.apache.thrift.TException{updateMarketplaceAttributesForItem_result result = new updateMarketplaceAttributesForItem_result();receiveBase(result, "updateMarketplaceAttributesForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");}public MarketplacePercentage getCostingForMarketplace(long source, long item_id) throws org.apache.thrift.TException{send_getCostingForMarketplace(source, item_id);return recv_getCostingForMarketplace();}public void send_getCostingForMarketplace(long source, long item_id) throws org.apache.thrift.TException{getCostingForMarketplace_args args = new getCostingForMarketplace_args();args.setSource(source);args.setItem_id(item_id);sendBase("getCostingForMarketplace", args);}public MarketplacePercentage recv_getCostingForMarketplace() throws org.apache.thrift.TException{getCostingForMarketplace_result result = new getCostingForMarketplace_result();receiveBase(result, "getCostingForMarketplace");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");}public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException{send_getMarketPlaceItemsForPriceUpdate(source);return recv_getMarketPlaceItemsForPriceUpdate();}public void send_getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException{getMarketPlaceItemsForPriceUpdate_args args = new getMarketPlaceItemsForPriceUpdate_args();args.setSource(source);sendBase("getMarketPlaceItemsForPriceUpdate", args);}public List<MarketPlaceItemPrice> recv_getMarketPlaceItemsForPriceUpdate() throws org.apache.thrift.TException{getMarketPlaceItemsForPriceUpdate_result result = new getMarketPlaceItemsForPriceUpdate_result();receiveBase(result, "getMarketPlaceItemsForPriceUpdate");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");}public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException{send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source);recv_updateMarketPlacePriceUpdateStatus();}public void send_updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException{updateMarketPlacePriceUpdateStatus_args args = new updateMarketPlacePriceUpdateStatus_args();args.setSkulist(skulist);args.setTimestamp(timestamp);args.setSource(source);sendBase("updateMarketPlacePriceUpdateStatus", args);}public void recv_updateMarketPlacePriceUpdateStatus() throws org.apache.thrift.TException{updateMarketPlacePriceUpdateStatus_result result = new updateMarketPlacePriceUpdateStatus_result();receiveBase(result, "updateMarketPlacePriceUpdateStatus");return;}public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException{send_updateItemHoldInventory(itemHoldMap);recv_updateItemHoldInventory();}public void send_updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException{updateItemHoldInventory_args args = new updateItemHoldInventory_args();args.setItemHoldMap(itemHoldMap);sendBase("updateItemHoldInventory", args);}public void recv_updateItemHoldInventory() throws org.apache.thrift.TException{updateItemHoldInventory_result result = new updateItemHoldInventory_result();receiveBase(result, "updateItemHoldInventory");return;}public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException{send_updateNlcAtMarketplaces(item_id, vendor_id, nlc);recv_updateNlcAtMarketplaces();}public void send_updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException{updateNlcAtMarketplaces_args args = new updateNlcAtMarketplaces_args();args.setItem_id(item_id);args.setVendor_id(vendor_id);args.setNlc(nlc);sendBase("updateNlcAtMarketplaces", args);}public void recv_updateNlcAtMarketplaces() throws org.apache.thrift.TException{updateNlcAtMarketplaces_result result = new updateNlcAtMarketplaces_result();receiveBase(result, "updateNlcAtMarketplaces");return;}public List<FlipkartItem> getAllFlipkartItems() throws org.apache.thrift.TException{send_getAllFlipkartItems();return recv_getAllFlipkartItems();}public void send_getAllFlipkartItems() throws org.apache.thrift.TException{getAllFlipkartItems_args args = new getAllFlipkartItems_args();sendBase("getAllFlipkartItems", args);}public List<FlipkartItem> recv_getAllFlipkartItems() throws org.apache.thrift.TException{getAllFlipkartItems_result result = new getAllFlipkartItems_result();receiveBase(result, "getAllFlipkartItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");}public boolean addOrUpdateFlipkartItem(FlipkartItem flipkartitem) throws org.apache.thrift.TException{send_addOrUpdateFlipkartItem(flipkartitem);return recv_addOrUpdateFlipkartItem();}public void send_addOrUpdateFlipkartItem(FlipkartItem flipkartitem) throws org.apache.thrift.TException{addOrUpdateFlipkartItem_args args = new addOrUpdateFlipkartItem_args();args.setFlipkartitem(flipkartitem);sendBase("addOrUpdateFlipkartItem", args);}public boolean recv_addOrUpdateFlipkartItem() throws org.apache.thrift.TException{addOrUpdateFlipkartItem_result result = new addOrUpdateFlipkartItem_result();receiveBase(result, "addOrUpdateFlipkartItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");}public FlipkartItem getFlipkartItem(long item_id) throws org.apache.thrift.TException{send_getFlipkartItem(item_id);return recv_getFlipkartItem();}public void send_getFlipkartItem(long item_id) throws org.apache.thrift.TException{getFlipkartItem_args args = new getFlipkartItem_args();args.setItem_id(item_id);sendBase("getFlipkartItem", args);}public FlipkartItem recv_getFlipkartItem() throws org.apache.thrift.TException{getFlipkartItem_result result = new getFlipkartItem_result();receiveBase(result, "getFlipkartItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");}public FlipkartItemDetails getFlipkartItemDetails(long item_id) throws org.apache.thrift.TException{send_getFlipkartItemDetails(item_id);return recv_getFlipkartItemDetails();}public void send_getFlipkartItemDetails(long item_id) throws org.apache.thrift.TException{getFlipkartItemDetails_args args = new getFlipkartItemDetails_args();args.setItem_id(item_id);sendBase("getFlipkartItemDetails", args);}public FlipkartItemDetails recv_getFlipkartItemDetails() throws org.apache.thrift.TException{getFlipkartItemDetails_result result = new getFlipkartItemDetails_result();receiveBase(result, "getFlipkartItemDetails");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");}public List<FlipkartItemDetails> getFlipkartItems(long offset, long limit) throws org.apache.thrift.TException{send_getFlipkartItems(offset, limit);return recv_getFlipkartItems();}public void send_getFlipkartItems(long offset, long limit) throws org.apache.thrift.TException{getFlipkartItems_args args = new getFlipkartItems_args();args.setOffset(offset);args.setLimit(limit);sendBase("getFlipkartItems", args);}public List<FlipkartItemDetails> recv_getFlipkartItems() throws org.apache.thrift.TException{getFlipkartItems_result result = new getFlipkartItems_result();receiveBase(result, "getFlipkartItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");}public List<FlipkartItemDetails> searchFlipkartItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException{send_searchFlipkartItems(searchTerm, offset, limit);return recv_searchFlipkartItems();}public void send_searchFlipkartItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException{searchFlipkartItems_args args = new searchFlipkartItems_args();args.setSearchTerm(searchTerm);args.setOffset(offset);args.setLimit(limit);sendBase("searchFlipkartItems", args);}public List<FlipkartItemDetails> recv_searchFlipkartItems() throws org.apache.thrift.TException{searchFlipkartItems_result result = new searchFlipkartItems_result();receiveBase(result, "searchFlipkartItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");}public long getCountForFlipkartItems() throws org.apache.thrift.TException{send_getCountForFlipkartItems();return recv_getCountForFlipkartItems();}public void send_getCountForFlipkartItems() throws org.apache.thrift.TException{getCountForFlipkartItems_args args = new getCountForFlipkartItems_args();sendBase("getCountForFlipkartItems", args);}public long recv_getCountForFlipkartItems() throws org.apache.thrift.TException{getCountForFlipkartItems_result result = new getCountForFlipkartItems_result();receiveBase(result, "getCountForFlipkartItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");}public long getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException{send_getFlipkartSearchResultCount(searchTerm);return recv_getFlipkartSearchResultCount();}public void send_getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException{getFlipkartSearchResultCount_args args = new getFlipkartSearchResultCount_args();args.setSearchTerm(searchTerm);sendBase("getFlipkartSearchResultCount", args);}public long recv_getFlipkartSearchResultCount() throws org.apache.thrift.TException{getFlipkartSearchResultCount_result result = new getFlipkartSearchResultCount_result();receiveBase(result, "getFlipkartSearchResultCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");}public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException{send_getAllFkItems();return recv_getAllFkItems();}public void send_getAllFkItems() throws org.apache.thrift.TException{getAllFkItems_args args = new getAllFkItems_args();sendBase("getAllFkItems", args);}public List<FlipkartItemDetails> recv_getAllFkItems() throws org.apache.thrift.TException{getAllFkItems_result result = new getAllFkItems_result();receiveBase(result, "getAllFkItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");}public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException{send_getFlipkartItemBySkyAtFlipkart(sku);return recv_getFlipkartItemBySkyAtFlipkart();}public void send_getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException{getFlipkartItemBySkyAtFlipkart_args args = new getFlipkartItemBySkyAtFlipkart_args();args.setSku(sku);sendBase("getFlipkartItemBySkyAtFlipkart", args);}public FlipkartItem recv_getFlipkartItemBySkyAtFlipkart() throws org.apache.thrift.TException{getFlipkartItemBySkyAtFlipkart_result result = new getFlipkartItemBySkyAtFlipkart_result();receiveBase(result, "getFlipkartItemBySkyAtFlipkart");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");}public List<MarketplaceHistory> getMarketplaceHistory(long source, long offset, long itemId) throws org.apache.thrift.TException{send_getMarketplaceHistory(source, offset, itemId);return recv_getMarketplaceHistory();}public void send_getMarketplaceHistory(long source, long offset, long itemId) throws org.apache.thrift.TException{getMarketplaceHistory_args args = new getMarketplaceHistory_args();args.setSource(source);args.setOffset(offset);args.setItemId(itemId);sendBase("getMarketplaceHistory", args);}public List<MarketplaceHistory> recv_getMarketplaceHistory() throws org.apache.thrift.TException{getMarketplaceHistory_result result = new getMarketplaceHistory_result();receiveBase(result, "getMarketplaceHistory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");}public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException{send_getAllFbbListedItems();return recv_getAllFbbListedItems();}public void send_getAllFbbListedItems() throws org.apache.thrift.TException{getAllFbbListedItems_args args = new getAllFbbListedItems_args();sendBase("getAllFbbListedItems", args);}public List<Amazonlisted> recv_getAllFbbListedItems() throws org.apache.thrift.TException{getAllFbbListedItems_result result = new getAllFbbListedItems_result();receiveBase(result, "getAllFbbListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");}public List<Amazonlisted> getAllFbbPricingItems() throws org.apache.thrift.TException{send_getAllFbbPricingItems();return recv_getAllFbbPricingItems();}public void send_getAllFbbPricingItems() throws org.apache.thrift.TException{getAllFbbPricingItems_args args = new getAllFbbPricingItems_args();sendBase("getAllFbbPricingItems", args);}public List<Amazonlisted> recv_getAllFbbPricingItems() throws org.apache.thrift.TException{getAllFbbPricingItems_result result = new getAllFbbPricingItems_result();receiveBase(result, "getAllFbbPricingItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");}public long getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException{send_getCountForMarketplaceHistory(source, itemId);return recv_getCountForMarketplaceHistory();}public void send_getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException{getCountForMarketplaceHistory_args args = new getCountForMarketplaceHistory_args();args.setSource(source);args.setItemId(itemId);sendBase("getCountForMarketplaceHistory", args);}public long recv_getCountForMarketplaceHistory() throws org.apache.thrift.TException{getCountForMarketplaceHistory_result result = new getCountForMarketplaceHistory_result();receiveBase(result, "getCountForMarketplaceHistory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");}public List<MarketplaceHistory> getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException{send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId);return recv_getMarketplaceHistoryByDate();}public void send_getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException{getMarketplaceHistoryByDate_args args = new getMarketplaceHistoryByDate_args();args.setSource(source);args.setStartDate(startDate);args.setEndDate(endDate);args.setOffset(offset);args.setLimit(limit);args.setItemId(itemId);sendBase("getMarketplaceHistoryByDate", args);}public List<MarketplaceHistory> recv_getMarketplaceHistoryByDate() throws org.apache.thrift.TException{getMarketplaceHistoryByDate_result result = new getMarketplaceHistoryByDate_result();receiveBase(result, "getMarketplaceHistoryByDate");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");}public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException{send_getPrivateDealDetails(item_id);return recv_getPrivateDealDetails();}public void send_getPrivateDealDetails(long item_id) throws org.apache.thrift.TException{getPrivateDealDetails_args args = new getPrivateDealDetails_args();args.setItem_id(item_id);sendBase("getPrivateDealDetails", args);}public PrivateDeal recv_getPrivateDealDetails() throws org.apache.thrift.TException{getPrivateDealDetails_result result = new getPrivateDealDetails_result();receiveBase(result, "getPrivateDealDetails");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");}public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException{send_getPrivateDealItems(offset, limit);return recv_getPrivateDealItems();}public void send_getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException{getPrivateDealItems_args args = new getPrivateDealItems_args();args.setOffset(offset);args.setLimit(limit);sendBase("getPrivateDealItems", args);}public List<Item> recv_getPrivateDealItems() throws org.apache.thrift.TException{getPrivateDealItems_result result = new getPrivateDealItems_result();receiveBase(result, "getPrivateDealItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");}public Map<Long,PrivateDeal> getAllActivePrivateDeals(List<Long> itemIds, long daysDelta) throws org.apache.thrift.TException{send_getAllActivePrivateDeals(itemIds, daysDelta);return recv_getAllActivePrivateDeals();}public void send_getAllActivePrivateDeals(List<Long> itemIds, long daysDelta) throws org.apache.thrift.TException{getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();args.setItemIds(itemIds);args.setDaysDelta(daysDelta);sendBase("getAllActivePrivateDeals", args);}public Map<Long,PrivateDeal> recv_getAllActivePrivateDeals() throws org.apache.thrift.TException{getAllActivePrivateDeals_result result = new getAllActivePrivateDeals_result();receiveBase(result, "getAllActivePrivateDeals");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");}public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException{send_addOrUpdatePrivateDeal(privateDeal);return recv_addOrUpdatePrivateDeal();}public void send_addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException{addOrUpdatePrivateDeal_args args = new addOrUpdatePrivateDeal_args();args.setPrivateDeal(privateDeal);sendBase("addOrUpdatePrivateDeal", args);}public boolean recv_addOrUpdatePrivateDeal() throws org.apache.thrift.TException{addOrUpdatePrivateDeal_result result = new addOrUpdatePrivateDeal_result();receiveBase(result, "addOrUpdatePrivateDeal");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");}public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException{send_getPrivateDealsCatalogIds(beginIndex, totalItems);return recv_getPrivateDealsCatalogIds();}public void send_getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws org.apache.thrift.TException{getPrivateDealsCatalogIds_args args = new getPrivateDealsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);sendBase("getPrivateDealsCatalogIds", args);}public List<Long> recv_getPrivateDealsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getPrivateDealsCatalogIds_result result = new getPrivateDealsCatalogIds_result();receiveBase(result, "getPrivateDealsCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");}public int getPrivateDealsCount() throws org.apache.thrift.TException{send_getPrivateDealsCount();return recv_getPrivateDealsCount();}public void send_getPrivateDealsCount() throws org.apache.thrift.TException{getPrivateDealsCount_args args = new getPrivateDealsCount_args();sendBase("getPrivateDealsCount", args);}public int recv_getPrivateDealsCount() throws org.apache.thrift.TException{getPrivateDealsCount_result result = new getPrivateDealsCount_result();receiveBase(result, "getPrivateDealsCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");}public AmazonOutOfSync getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException{send_getAmazonOutSyncItems(item_id);return recv_getAmazonOutSyncItems();}public void send_getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException{getAmazonOutSyncItems_args args = new getAmazonOutSyncItems_args();args.setItem_id(item_id);sendBase("getAmazonOutSyncItems", args);}public AmazonOutOfSync recv_getAmazonOutSyncItems() throws org.apache.thrift.TException{getAmazonOutSyncItems_result result = new getAmazonOutSyncItems_result();receiveBase(result, "getAmazonOutSyncItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");}public List<PdPriceComp> getAllPrivateDealsComparison() throws org.apache.thrift.TException{send_getAllPrivateDealsComparison();return recv_getAllPrivateDealsComparison();}public void send_getAllPrivateDealsComparison() throws org.apache.thrift.TException{getAllPrivateDealsComparison_args args = new getAllPrivateDealsComparison_args();sendBase("getAllPrivateDealsComparison", args);}public List<PdPriceComp> recv_getAllPrivateDealsComparison() throws org.apache.thrift.TException{getAllPrivateDealsComparison_result result = new getAllPrivateDealsComparison_result();receiveBase(result, "getAllPrivateDealsComparison");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");}public List<SnapdealItem> getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException{send_getAllSnapdealMarketplaceItem();return recv_getAllSnapdealMarketplaceItem();}public void send_getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException{getAllSnapdealMarketplaceItem_args args = new getAllSnapdealMarketplaceItem_args();sendBase("getAllSnapdealMarketplaceItem", args);}public List<SnapdealItem> recv_getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException{getAllSnapdealMarketplaceItem_result result = new getAllSnapdealMarketplaceItem_result();receiveBase(result, "getAllSnapdealMarketplaceItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");}public List<FlipkartItem> getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException{send_getAllFlipkartMarketplaceItem();return recv_getAllFlipkartMarketplaceItem();}public void send_getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException{getAllFlipkartMarketplaceItem_args args = new getAllFlipkartMarketplaceItem_args();sendBase("getAllFlipkartMarketplaceItem", args);}public List<FlipkartItem> recv_getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException{getAllFlipkartMarketplaceItem_result result = new getAllFlipkartMarketplaceItem_result();receiveBase(result, "getAllFlipkartMarketplaceItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");}public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap) throws org.apache.thrift.TException{send_addCompetitorScraping(competitorPricingMap);recv_addCompetitorScraping();}public void send_addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap) throws org.apache.thrift.TException{addCompetitorScraping_args args = new addCompetitorScraping_args();args.setCompetitorPricingMap(competitorPricingMap);sendBase("addCompetitorScraping", args);}public void recv_addCompetitorScraping() throws org.apache.thrift.TException{addCompetitorScraping_result result = new addCompetitorScraping_result();receiveBase(result, "addCompetitorScraping");return;}public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException{send_getPreviousCompetitorScraping(delta);return recv_getPreviousCompetitorScraping();}public void send_getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException{getPreviousCompetitorScraping_args args = new getPreviousCompetitorScraping_args();args.setDelta(delta);sendBase("getPreviousCompetitorScraping", args);}public List<CompetitorPricing> recv_getPreviousCompetitorScraping() throws org.apache.thrift.TException{getPreviousCompetitorScraping_result result = new getPreviousCompetitorScraping_result();receiveBase(result, "getPreviousCompetitorScraping");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");}public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException{send_getUploadResultById(uploadId);return recv_getUploadResultById();}public void send_getUploadResultById(long uploadId) throws org.apache.thrift.TException{getUploadResultById_args args = new getUploadResultById_args();args.setUploadId(uploadId);sendBase("getUploadResultById", args);}public List<CompetitorPricing> recv_getUploadResultById() throws org.apache.thrift.TException{getUploadResultById_result result = new getUploadResultById_result();receiveBase(result, "getUploadResultById");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");}public List<String> addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws CatalogServiceException, org.apache.thrift.TException{send_addAmazonPromotion(amazonPromotions);return recv_addAmazonPromotion();}public void send_addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException{addAmazonPromotion_args args = new addAmazonPromotion_args();args.setAmazonPromotions(amazonPromotions);sendBase("addAmazonPromotion", args);}public List<String> recv_addAmazonPromotion() throws CatalogServiceException, org.apache.thrift.TException{addAmazonPromotion_result result = new addAmazonPromotion_result();receiveBase(result, "addAmazonPromotion");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");}public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException{send_getAmazonPromotion(startDate, endDate);return recv_getAmazonPromotion();}public void send_getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException{getAmazonPromotion_args args = new getAmazonPromotion_args();args.setStartDate(startDate);args.setEndDate(endDate);sendBase("getAmazonPromotion", args);}public List<AmazonPromotion> recv_getAmazonPromotion() throws org.apache.thrift.TException{getAmazonPromotion_result result = new getAmazonPromotion_result();receiveBase(result, "getAmazonPromotion");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");}public boolean updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException{send_updateAmazonPromotion(amazonPromotions);return recv_updateAmazonPromotion();}public void send_updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException{updateAmazonPromotion_args args = new updateAmazonPromotion_args();args.setAmazonPromotions(amazonPromotions);sendBase("updateAmazonPromotion", args);}public boolean recv_updateAmazonPromotion() throws org.apache.thrift.TException{updateAmazonPromotion_result result = new updateAmazonPromotion_result();receiveBase(result, "updateAmazonPromotion");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");}public boolean markPartiallyActive(long itemId, long categoryId) throws org.apache.thrift.TException{send_markPartiallyActive(itemId, categoryId);return recv_markPartiallyActive();}public void send_markPartiallyActive(long itemId, long categoryId) throws org.apache.thrift.TException{markPartiallyActive_args args = new markPartiallyActive_args();args.setItemId(itemId);args.setCategoryId(categoryId);sendBase("markPartiallyActive", args);}public boolean recv_markPartiallyActive() throws org.apache.thrift.TException{markPartiallyActive_result result = new markPartiallyActive_result();receiveBase(result, "markPartiallyActive");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");}public boolean updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException{send_updateItemStateVat(itemId, statevat);return recv_updateItemStateVat();}public void send_updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException{updateItemStateVat_args args = new updateItemStateVat_args();args.setItemId(itemId);args.setStatevat(statevat);sendBase("updateItemStateVat", args);}public boolean recv_updateItemStateVat() throws org.apache.thrift.TException{updateItemStateVat_result result = new updateItemStateVat_result();receiveBase(result, "updateItemStateVat");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");}public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException{send_getExAffiliateItemInfo();return recv_getExAffiliateItemInfo();}public void send_getExAffiliateItemInfo() throws org.apache.thrift.TException{getExAffiliateItemInfo_args args = new getExAffiliateItemInfo_args();sendBase("getExAffiliateItemInfo", args);}public Map<Long,ExclusiveAffiliateItemInfo> recv_getExAffiliateItemInfo() throws org.apache.thrift.TException{getExAffiliateItemInfo_result result = new getExAffiliateItemInfo_result();receiveBase(result, "getExAffiliateItemInfo");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");}public List<Amazonlisted> getAllItemstoListOnFbg() throws org.apache.thrift.TException{send_getAllItemstoListOnFbg();return recv_getAllItemstoListOnFbg();}public void send_getAllItemstoListOnFbg() throws org.apache.thrift.TException{getAllItemstoListOnFbg_args args = new getAllItemstoListOnFbg_args();sendBase("getAllItemstoListOnFbg", args);}public List<Amazonlisted> recv_getAllItemstoListOnFbg() throws org.apache.thrift.TException{getAllItemstoListOnFbg_result result = new getAllItemstoListOnFbg_result();receiveBase(result, "getAllItemstoListOnFbg");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");}public List<Amazonlisted> getAllFbgListedItems() throws org.apache.thrift.TException{send_getAllFbgListedItems();return recv_getAllFbgListedItems();}public void send_getAllFbgListedItems() throws org.apache.thrift.TException{getAllFbgListedItems_args args = new getAllFbgListedItems_args();sendBase("getAllFbgListedItems", args);}public List<Amazonlisted> recv_getAllFbgListedItems() throws org.apache.thrift.TException{getAllFbgListedItems_result result = new getAllFbgListedItems_result();receiveBase(result, "getAllFbgListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");}public Map<Long,Map<String,Long>> checkServices(Map<Long,Map<String,Long>> lines) throws CatalogServiceException, org.apache.thrift.TException{send_checkServices(lines);return recv_checkServices();}public void send_checkServices(Map<Long,Map<String,Long>> lines) throws org.apache.thrift.TException{checkServices_args args = new checkServices_args();args.setLines(lines);sendBase("checkServices", args);}public Map<Long,Map<String,Long>> recv_checkServices() throws CatalogServiceException, org.apache.thrift.TException{checkServices_result result = new checkServices_result();receiveBase(result, "checkServices");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");}public void addHsItem(List<HsItem> hsItems) throws org.apache.thrift.TException{send_addHsItem(hsItems);recv_addHsItem();}public void send_addHsItem(List<HsItem> hsItems) throws org.apache.thrift.TException{addHsItem_args args = new addHsItem_args();args.setHsItems(hsItems);sendBase("addHsItem", args);}public void recv_addHsItem() throws org.apache.thrift.TException{addHsItem_result result = new addHsItem_result();receiveBase(result, "addHsItem");return;}public HsItem getHsItem(String hsItemId) throws org.apache.thrift.TException{send_getHsItem(hsItemId);return recv_getHsItem();}public void send_getHsItem(String hsItemId) throws org.apache.thrift.TException{getHsItem_args args = new getHsItem_args();args.setHsItemId(hsItemId);sendBase("getHsItem", args);}public HsItem recv_getHsItem() throws org.apache.thrift.TException{getHsItem_result result = new getHsItem_result();receiveBase(result, "getHsItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHsItem failed: unknown result");}public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException{send_updateHsItem(hsItem);recv_updateHsItem();}public void send_updateHsItem(HsItem hsItem) throws org.apache.thrift.TException{updateHsItem_args args = new updateHsItem_args();args.setHsItem(hsItem);sendBase("updateHsItem", args);}public void recv_updateHsItem() throws org.apache.thrift.TException{updateHsItem_result result = new updateHsItem_result();receiveBase(result, "updateHsItem");return;}public DtrPricing getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException{send_getPricingForDtr(catalogItemId);return recv_getPricingForDtr();}public void send_getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException{getPricingForDtr_args args = new getPricingForDtr_args();args.setCatalogItemId(catalogItemId);sendBase("getPricingForDtr", args);}public DtrPricing recv_getPricingForDtr() throws org.apache.thrift.TException{getPricingForDtr_result result = new getPricingForDtr_result();receiveBase(result, "getPricingForDtr");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");}public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException{send_getAllItemstoListOnFbd();return recv_getAllItemstoListOnFbd();}public void send_getAllItemstoListOnFbd() throws org.apache.thrift.TException{getAllItemstoListOnFbd_args args = new getAllItemstoListOnFbd_args();sendBase("getAllItemstoListOnFbd", args);}public List<Amazonlisted> recv_getAllItemstoListOnFbd() throws org.apache.thrift.TException{getAllItemstoListOnFbd_result result = new getAllItemstoListOnFbd_result();receiveBase(result, "getAllItemstoListOnFbd");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");}public List<Amazonlisted> getAllFbdListedItems() throws org.apache.thrift.TException{send_getAllFbdListedItems();return recv_getAllFbdListedItems();}public void send_getAllFbdListedItems() throws org.apache.thrift.TException{getAllFbdListedItems_args args = new getAllFbdListedItems_args();sendBase("getAllFbdListedItems", args);}public List<Amazonlisted> recv_getAllFbdListedItems() throws org.apache.thrift.TException{getAllFbdListedItems_result result = new getAllFbdListedItems_result();receiveBase(result, "getAllFbdListedItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbdListedItems failed: unknown result");}public Map<Long,List<BulkItemPricing>> getBulkPricingForItems(List<Long> itemIds) throws org.apache.thrift.TException{send_getBulkPricingForItems(itemIds);return recv_getBulkPricingForItems();}public void send_getBulkPricingForItems(List<Long> itemIds) throws org.apache.thrift.TException{getBulkPricingForItems_args args = new getBulkPricingForItems_args();args.setItemIds(itemIds);sendBase("getBulkPricingForItems", args);}public Map<Long,List<BulkItemPricing>> recv_getBulkPricingForItems() throws org.apache.thrift.TException{getBulkPricingForItems_result result = new getBulkPricingForItems_result();receiveBase(result, "getBulkPricingForItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBulkPricingForItems failed: unknown result");}public BulkItemPricing addBulkPricingForItem(BulkItemPricing bulkItemPricing) throws org.apache.thrift.TException{send_addBulkPricingForItem(bulkItemPricing);return recv_addBulkPricingForItem();}public void send_addBulkPricingForItem(BulkItemPricing bulkItemPricing) throws org.apache.thrift.TException{addBulkPricingForItem_args args = new addBulkPricingForItem_args();args.setBulkItemPricing(bulkItemPricing);sendBase("addBulkPricingForItem", args);}public BulkItemPricing recv_addBulkPricingForItem() throws org.apache.thrift.TException{addBulkPricingForItem_result result = new addBulkPricingForItem_result();receiveBase(result, "addBulkPricingForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBulkPricingForItem failed: unknown result");}public boolean deleteBulkPricingForItemById(long id) throws org.apache.thrift.TException{send_deleteBulkPricingForItemById(id);return recv_deleteBulkPricingForItemById();}public void send_deleteBulkPricingForItemById(long id) throws org.apache.thrift.TException{deleteBulkPricingForItemById_args args = new deleteBulkPricingForItemById_args();args.setId(id);sendBase("deleteBulkPricingForItemById", args);}public boolean recv_deleteBulkPricingForItemById() throws org.apache.thrift.TException{deleteBulkPricingForItemById_result result = new deleteBulkPricingForItemById_result();receiveBase(result, "deleteBulkPricingForItemById");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBulkPricingForItemById failed: unknown result");}public boolean deleteBulkPricingForItem(long item_id) throws org.apache.thrift.TException{send_deleteBulkPricingForItem(item_id);return recv_deleteBulkPricingForItem();}public void send_deleteBulkPricingForItem(long item_id) throws org.apache.thrift.TException{deleteBulkPricingForItem_args args = new deleteBulkPricingForItem_args();args.setItem_id(item_id);sendBase("deleteBulkPricingForItem", args);}public boolean recv_deleteBulkPricingForItem() throws org.apache.thrift.TException{deleteBulkPricingForItem_result result = new deleteBulkPricingForItem_result();receiveBase(result, "deleteBulkPricingForItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBulkPricingForItem failed: unknown result");}public List<BulkItemPricing> getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException{send_getBulkPricingByItemId(item_id);return recv_getBulkPricingByItemId();}public void send_getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException{getBulkPricingByItemId_args args = new getBulkPricingByItemId_args();args.setItem_id(item_id);sendBase("getBulkPricingByItemId", args);}public List<BulkItemPricing> recv_getBulkPricingByItemId() throws org.apache.thrift.TException{getBulkPricingByItemId_result result = new getBulkPricingByItemId_result();receiveBase(result, "getBulkPricingByItemId");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBulkPricingByItemId failed: unknown result");}public boolean updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException{send_updateBulkPricesOnProduction(item_id, bulkItemPricingList);return recv_updateBulkPricesOnProduction();}public void send_updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException{updateBulkPricesOnProduction_args args = new updateBulkPricesOnProduction_args();args.setItem_id(item_id);args.setBulkItemPricingList(bulkItemPricingList);sendBase("updateBulkPricesOnProduction", args);}public boolean recv_updateBulkPricesOnProduction() throws org.apache.thrift.TException{updateBulkPricesOnProduction_result result = new updateBulkPricesOnProduction_result();receiveBase(result, "updateBulkPricesOnProduction");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateBulkPricesOnProduction failed: unknown result");}public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException{send_getCartByValue(cartIds);return recv_getCartByValue();}public void send_getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException{getCartByValue_args args = new getCartByValue_args();args.setCartIds(cartIds);sendBase("getCartByValue", args);}public List<Long> recv_getCartByValue() throws org.apache.thrift.TException{getCartByValue_result result = new getCartByValue_result();receiveBase(result, "getCartByValue");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");}public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException{send_updateItemPricing(itemPricingList);return recv_updateItemPricing();}public void send_updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException{updateItemPricing_args args = new updateItemPricing_args();args.setItemPricingList(itemPricingList);sendBase("updateItemPricing", args);}public boolean recv_updateItemPricing() throws org.apache.thrift.TException{updateItemPricing_result result = new updateItemPricing_result();receiveBase(result, "updateItemPricing");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemPricing failed: unknown result");}public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws CatalogServiceException, org.apache.thrift.TException{send_bulkUpdateCatalog(bulkUploadCatalog);recv_bulkUpdateCatalog();}public void send_bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws org.apache.thrift.TException{bulkUpdateCatalog_args args = new bulkUpdateCatalog_args();args.setBulkUploadCatalog(bulkUploadCatalog);sendBase("bulkUpdateCatalog", args);}public void recv_bulkUpdateCatalog() throws CatalogServiceException, org.apache.thrift.TException{bulkUpdateCatalog_result result = new bulkUpdateCatalog_result();receiveBase(result, "bulkUpdateCatalog");if (result.cex != null) {throw result.cex;}return;}public Map<String,Long> getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException{send_getWarrantyInfoForItem(catalogItemId, itemCondition);return recv_getWarrantyInfoForItem();}public void send_getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition) throws org.apache.thrift.TException{getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();args.setCatalogItemId(catalogItemId);args.setItemCondition(itemCondition);sendBase("getWarrantyInfoForItem", args);}public Map<String,Long> recv_getWarrantyInfoForItem() throws CatalogServiceException, org.apache.thrift.TException{getWarrantyInfoForItem_result result = new getWarrantyInfoForItem_result();receiveBase(result, "getWarrantyInfoForItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarrantyInfoForItem failed: unknown result");}public Map<Long,Map<String,Long>> getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException{send_getWarrantyInfoForItemList(catalogItemIds, itemCondition);return recv_getWarrantyInfoForItemList();}public void send_getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws org.apache.thrift.TException{getWarrantyInfoForItemList_args args = new getWarrantyInfoForItemList_args();args.setCatalogItemIds(catalogItemIds);args.setItemCondition(itemCondition);sendBase("getWarrantyInfoForItemList", args);}public Map<Long,Map<String,Long>> recv_getWarrantyInfoForItemList() throws CatalogServiceException, org.apache.thrift.TException{getWarrantyInfoForItemList_result result = new getWarrantyInfoForItemList_result();receiveBase(result, "getWarrantyInfoForItemList");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarrantyInfoForItemList failed: unknown result");}public Map<Long,GstRate> getStateTaxRate(List<Long> itemIds, long stateId) throws org.apache.thrift.TException{send_getStateTaxRate(itemIds, stateId);return recv_getStateTaxRate();}public void send_getStateTaxRate(List<Long> itemIds, long stateId) throws org.apache.thrift.TException{getStateTaxRate_args args = new getStateTaxRate_args();args.setItemIds(itemIds);args.setStateId(stateId);sendBase("getStateTaxRate", args);}public Map<Long,GstRate> recv_getStateTaxRate() throws org.apache.thrift.TException{getStateTaxRate_result result = new getStateTaxRate_result();receiveBase(result, "getStateTaxRate");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateTaxRate failed: unknown result");}public Map<Long,Double> getIgstTaxRate(List<Long> itemIds) throws org.apache.thrift.TException{send_getIgstTaxRate(itemIds);return recv_getIgstTaxRate();}public void send_getIgstTaxRate(List<Long> itemIds) throws org.apache.thrift.TException{getIgstTaxRate_args args = new getIgstTaxRate_args();args.setItemIds(itemIds);sendBase("getIgstTaxRate", args);}public Map<Long,Double> recv_getIgstTaxRate() throws org.apache.thrift.TException{getIgstTaxRate_result result = new getIgstTaxRate_result();receiveBase(result, "getIgstTaxRate");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");}public void persistGstRate(List<StateGstRate> stateGstRates) throws org.apache.thrift.TException{send_persistGstRate(stateGstRates);recv_persistGstRate();}public void send_persistGstRate(List<StateGstRate> stateGstRates) throws org.apache.thrift.TException{persistGstRate_args args = new persistGstRate_args();args.setStateGstRates(stateGstRates);sendBase("persistGstRate", args);}public void recv_persistGstRate() throws org.apache.thrift.TException{persistGstRate_result result = new persistGstRate_result();receiveBase(result, "persistGstRate");return;}public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException{send_getHsnCodesByCategory(categoryId);return recv_getHsnCodesByCategory();}public void send_getHsnCodesByCategory(long categoryId) throws org.apache.thrift.TException{getHsnCodesByCategory_args args = new getHsnCodesByCategory_args();args.setCategoryId(categoryId);sendBase("getHsnCodesByCategory", args);}public List<CategoryHsnCode> recv_getHsnCodesByCategory() throws CatalogServiceException, org.apache.thrift.TException{getHsnCodesByCategory_result result = new getHsnCodesByCategory_result();receiveBase(result, "getHsnCodesByCategory");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHsnCodesByCategory failed: unknown result");}public Map<Long,Double> getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException{send_getAllFofoDeals(itemIds, tagIds);return recv_getAllFofoDeals();}public void send_getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException{getAllFofoDeals_args args = new getAllFofoDeals_args();args.setItemIds(itemIds);args.setTagIds(tagIds);sendBase("getAllFofoDeals", args);}public Map<Long,Double> recv_getAllFofoDeals() throws org.apache.thrift.TException{getAllFofoDeals_result result = new getAllFofoDeals_result();receiveBase(result, "getAllFofoDeals");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFofoDeals failed: unknown result");}}public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {private org.apache.thrift.async.TAsyncClientManager clientManager;private org.apache.thrift.protocol.TProtocolFactory protocolFactory;public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {this.clientManager = clientManager;this.protocolFactory = protocolFactory;}public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {return new AsyncClient(protocolFactory, clientManager, transport);}}public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {super(protocolFactory, clientManager, transport);}public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<addItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addItem_call method_call = new addItem_call(item, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addItem_call extends org.apache.thrift.async.TAsyncMethodCall {private Item item;public addItem_call(Item item, org.apache.thrift.async.AsyncMethodCallback<addItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item = item;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addItem_args args = new addItem_args();args.setItem(item);args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addItem();}}public void updateItem(Item item, org.apache.thrift.async.AsyncMethodCallback<updateItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateItem_call method_call = new updateItem_call(item, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateItem_call extends org.apache.thrift.async.TAsyncMethodCall {private Item item;public updateItem_call(Item item, org.apache.thrift.async.AsyncMethodCallback<updateItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item = item;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItem", org.apache.thrift.protocol.TMessageType.CALL, 0));updateItem_args args = new updateItem_args();args.setItem(item);args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateItem();}}public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_call> resultHandler) throws org.apache.thrift.TException {checkReady();isActive_call method_call = new isActive_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class isActive_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public isActive_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isActive", org.apache.thrift.protocol.TMessageType.CALL, 0));isActive_args args = new isActive_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public ItemShippingInfo getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_isActive();}}public void getItemsStatus(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getItemsStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsStatus_call method_call = new getItemsStatus_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;public getItemsStatus_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getItemsStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsStatus_args args = new getItemsStatus_args();args.setItemIds(itemIds);args.write(prot);prot.writeMessageEnd();}public Map<Long,Boolean> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsStatus();}}public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemStatusDescription_call method_call = new getItemStatusDescription_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemStatusDescription_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getItemStatusDescription_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStatusDescription_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStatusDescription", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemStatusDescription_args args = new getItemStatusDescription_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public String getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemStatusDescription();}}public void startItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<startItemOn_call> resultHandler) throws org.apache.thrift.TException {checkReady();startItemOn_call method_call = new startItemOn_call(item_id, timestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class startItemOn_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long timestamp;public startItemOn_call(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<startItemOn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.timestamp = timestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startItemOn", org.apache.thrift.protocol.TMessageType.CALL, 0));startItemOn_args args = new startItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_startItemOn();}}public void retireItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<retireItemOn_call> resultHandler) throws org.apache.thrift.TException {checkReady();retireItemOn_call method_call = new retireItemOn_call(item_id, timestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class retireItemOn_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long timestamp;public retireItemOn_call(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<retireItemOn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.timestamp = timestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireItemOn", org.apache.thrift.protocol.TMessageType.CALL, 0));retireItemOn_args args = new retireItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_retireItemOn();}}public void changeItemStatus(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeItemStatus_call method_call = new changeItemStatus_call(item_id, timestamp, newstatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long timestamp;private status newstatus;public changeItemStatus_call(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.timestamp = timestamp;this.newstatus = newstatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));changeItemStatus_args args = new changeItemStatus_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.setNewstatus(newstatus);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_changeItemStatus();}}public void getItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItem_call method_call = new getItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getItem_args args = new getItem_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItem();}}public void getItems(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItems_call method_call = new getItems_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItems_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> item_ids;public getItems_call(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_ids = item_ids;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getItems_args args = new getItems_args();args.setItem_ids(item_ids);args.write(prot);prot.writeMessageEnd();}public Map<Long,Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItems();}}public void getItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsByCatalogId_call method_call = new getItemsByCatalogId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsByCatalogId_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;public getItemsByCatalogId_call(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getItemsByCatalogId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByCatalogId", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsByCatalogId_args args = new getItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsByCatalogId();}}public void getValidItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getValidItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getValidItemsByCatalogId_call method_call = new getValidItemsByCatalogId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getValidItemsByCatalogId_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;public getValidItemsByCatalogId_call(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getValidItemsByCatalogId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidItemsByCatalogId", org.apache.thrift.protocol.TMessageType.CALL, 0));getValidItemsByCatalogId_args args = new getValidItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getValidItemsByCatalogId();}}public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItems_call method_call = new getAllItems_call(isActive, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItems_call extends org.apache.thrift.async.TAsyncMethodCall {private boolean isActive;public getAllItems_call(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.isActive = isActive;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItems_args args = new getAllItems_args();args.setIsActive(isActive);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItems();}}public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemsByStatus_call method_call = new getAllItemsByStatus_call(itemStatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private status itemStatus;public getAllItemsByStatus_call(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemStatus = itemStatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemsByStatus_args args = new getAllItemsByStatus_args();args.setItemStatus(itemStatus);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemsByStatus();}}public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, boolean isAndroid, org.apache.thrift.async.AsyncMethodCallback<markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException {checkReady();markItemAsContentComplete_call method_call = new markItemAsContentComplete_call(entityId, category, brand, modelName, modelNumber, isAndroid, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markItemAsContentComplete_call extends org.apache.thrift.async.TAsyncMethodCall {private long entityId;private long category;private String brand;private String modelName;private String modelNumber;private boolean isAndroid;public markItemAsContentComplete_call(long entityId, long category, String brand, String modelName, String modelNumber, boolean isAndroid, org.apache.thrift.async.AsyncMethodCallback<markItemAsContentComplete_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.entityId = entityId;this.category = category;this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.isAndroid = isAndroid;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemAsContentComplete", org.apache.thrift.protocol.TMessageType.CALL, 0));markItemAsContentComplete_args args = new markItemAsContentComplete_args();args.setEntityId(entityId);args.setCategory(category);args.setBrand(brand);args.setModelName(modelName);args.setModelNumber(modelNumber);args.setIsAndroid(isAndroid);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markItemAsContentComplete();}}public void getVatRates(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<getVatRates_call> resultHandler) throws org.apache.thrift.TException {checkReady();getVatRates_call method_call = new getVatRates_call(itemId, categoryId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getVatRates_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long categoryId;public getVatRates_call(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<getVatRates_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.categoryId = categoryId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatRates", org.apache.thrift.protocol.TMessageType.CALL, 0));getVatRates_args args = new getVatRates_args();args.setItemId(itemId);args.setCategoryId(categoryId);args.write(prot);prot.writeMessageEnd();}public Map<Long,Double> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getVatRates();}}public void getAllItemsInRange(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsInRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemsInRange_call method_call = new getAllItemsInRange_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemsInRange_call extends org.apache.thrift.async.TAsyncMethodCall {private long offset;private long limit;public getAllItemsInRange_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsInRange_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemsInRange_args args = new getAllItemsInRange_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemsInRange();}}public void getAllItemsByStatusInRange(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatusInRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemsByStatusInRange_call method_call = new getAllItemsByStatusInRange_call(itemStatus, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemsByStatusInRange_call extends org.apache.thrift.async.TAsyncMethodCall {private status itemStatus;private long offset;private long limit;public getAllItemsByStatusInRange_call(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatusInRange_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemStatus = itemStatus;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsByStatusInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemsByStatusInRange_args args = new getAllItemsByStatusInRange_args();args.setItemStatus(itemStatus);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemsByStatusInRange();}}public void getItemCountByStatus(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getItemCountByStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemCountByStatus_call method_call = new getItemCountByStatus_call(useStatus, itemStatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemCountByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private boolean useStatus;private status itemStatus;public getItemCountByStatus_call(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getItemCountByStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.useStatus = useStatus;this.itemStatus = itemStatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemCountByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemCountByStatus_args args = new getItemCountByStatus_args();args.setUseStatus(useStatus);args.setItemStatus(itemStatus);args.write(prot);prot.writeMessageEnd();}public int getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemCountByStatus();}}public void getBestSellers(org.apache.thrift.async.AsyncMethodCallback<getBestSellers_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestSellers_call method_call = new getBestSellers_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestSellers_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestSellers_call(org.apache.thrift.async.AsyncMethodCallback<getBestSellers_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellers", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestSellers_args args = new getBestSellers_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestSellers();}}public void getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestSellersCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestSellersCatalogIds_call method_call = new getBestSellersCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestSellersCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private long category;public getBestSellersCatalogIds_call(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestSellersCatalogIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellersCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestSellersCatalogIds_args args = new getBestSellersCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestSellersCatalogIds();}}public void getBestSellersCount(org.apache.thrift.async.AsyncMethodCallback<getBestSellersCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestSellersCount_call method_call = new getBestSellersCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestSellersCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestSellersCount_call(org.apache.thrift.async.AsyncMethodCallback<getBestSellersCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestSellersCount_args args = new getBestSellersCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestSellersCount();}}public void getBestDeals(org.apache.thrift.async.AsyncMethodCallback<getBestDeals_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestDeals_call method_call = new getBestDeals_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestDeals_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestDeals_call(org.apache.thrift.async.AsyncMethodCallback<getBestDeals_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestDeals_args args = new getBestDeals_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestDeals();}}public void getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestDealsCatalogIds_call method_call = new getBestDealsCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestDealsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private long category;public getBestDealsCatalogIds_call(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestDealsCatalogIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDealsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestDealsCatalogIds_args args = new getBestDealsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestDealsCatalogIds();}}public void getBestDealsCount(org.apache.thrift.async.AsyncMethodCallback<getBestDealsCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestDealsCount_call method_call = new getBestDealsCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestDealsCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestDealsCount_call(org.apache.thrift.async.AsyncMethodCallback<getBestDealsCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDealsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestDealsCount_args args = new getBestDealsCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestDealsCount();}}public void getComingSoon(org.apache.thrift.async.AsyncMethodCallback<getComingSoon_call> resultHandler) throws org.apache.thrift.TException {checkReady();getComingSoon_call method_call = new getComingSoon_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getComingSoon_call extends org.apache.thrift.async.TAsyncMethodCall {public getComingSoon_call(org.apache.thrift.async.AsyncMethodCallback<getComingSoon_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoon", org.apache.thrift.protocol.TMessageType.CALL, 0));getComingSoon_args args = new getComingSoon_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getComingSoon();}}public void getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getComingSoonCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getComingSoonCatalogIds_call method_call = new getComingSoonCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getComingSoonCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private long category;public getComingSoonCatalogIds_call(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getComingSoonCatalogIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoonCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getComingSoonCatalogIds_args args = new getComingSoonCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getComingSoonCatalogIds();}}public void getComingSoonCount(org.apache.thrift.async.AsyncMethodCallback<getComingSoonCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getComingSoonCount_call method_call = new getComingSoonCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getComingSoonCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getComingSoonCount_call(org.apache.thrift.async.AsyncMethodCallback<getComingSoonCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoonCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getComingSoonCount_args args = new getComingSoonCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getComingSoonCount();}}public void getLatestArrivals(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivals_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLatestArrivals_call method_call = new getLatestArrivals_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLatestArrivals_call extends org.apache.thrift.async.TAsyncMethodCall {public getLatestArrivals_call(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivals_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivals", org.apache.thrift.protocol.TMessageType.CALL, 0));getLatestArrivals_args args = new getLatestArrivals_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLatestArrivals();}}public void getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories, org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLatestArrivalsCatalogIds_call method_call = new getLatestArrivalsCatalogIds_call(beginIndex, totalItems, brand, categories, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLatestArrivalsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private List<Long> categories;public getLatestArrivalsCatalogIds_call(long beginIndex, long totalItems, String brand, List<Long> categories, org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCatalogIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.categories = categories;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivalsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getLatestArrivalsCatalogIds_args args = new getLatestArrivalsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategories(categories);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLatestArrivalsCatalogIds();}}public void getLatestArrivalsCount(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLatestArrivalsCount_call method_call = new getLatestArrivalsCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLatestArrivalsCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getLatestArrivalsCount_call(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivalsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getLatestArrivalsCount_args args = new getLatestArrivalsCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLatestArrivalsCount();}}public void generateNewEntityID(org.apache.thrift.async.AsyncMethodCallback<generateNewEntityID_call> resultHandler) throws org.apache.thrift.TException {checkReady();generateNewEntityID_call method_call = new generateNewEntityID_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class generateNewEntityID_call extends org.apache.thrift.async.TAsyncMethodCall {public generateNewEntityID_call(org.apache.thrift.async.AsyncMethodCallback<generateNewEntityID_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("generateNewEntityID", org.apache.thrift.protocol.TMessageType.CALL, 0));generateNewEntityID_args args = new generateNewEntityID_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_generateNewEntityID();}}public void addCategory(Category category, org.apache.thrift.async.AsyncMethodCallback<addCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();addCategory_call method_call = new addCategory_call(category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private Category category;public addCategory_call(Category category, org.apache.thrift.async.AsyncMethodCallback<addCategory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));addCategory_args args = new addCategory_args();args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addCategory();}}public void getCategory(long id, org.apache.thrift.async.AsyncMethodCallback<getCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCategory_call method_call = new getCategory_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public getCategory_call(long id, org.apache.thrift.async.AsyncMethodCallback<getCategory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));getCategory_args args = new getCategory_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public Category getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCategory();}}public void getAllCategories(org.apache.thrift.async.AsyncMethodCallback<getAllCategories_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllCategories_call method_call = new getAllCategories_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllCategories_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllCategories_call(org.apache.thrift.async.AsyncMethodCallback<getAllCategories_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllCategories", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllCategories_args args = new getAllCategories_args();args.write(prot);prot.writeMessageEnd();}public List<Category> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllCategories();}}public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSimilarItems_call method_call = new getAllSimilarItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSimilarItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getAllSimilarItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSimilarItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSimilarItems_args args = new getAllSimilarItems_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSimilarItems();}}public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addSimilarItem_call method_call = new addSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long catalogItemId;public addSimilarItem_call(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addSimilarItem_args args = new addSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addSimilarItem();}}public void addTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<addTag_call> resultHandler) throws org.apache.thrift.TException {checkReady();addTag_call method_call = new addTag_call(displayName, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addTag_call extends org.apache.thrift.async.TAsyncMethodCall {private String displayName;private long itemId;public addTag_call(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<addTag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.displayName = displayName;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addTag", org.apache.thrift.protocol.TMessageType.CALL, 0));addTag_args args = new addTag_args();args.setDisplayName(displayName);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addTag();}}public void deleteEntityTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteEntityTag_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteEntityTag_call method_call = new deleteEntityTag_call(displayName, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteEntityTag_call extends org.apache.thrift.async.TAsyncMethodCall {private String displayName;private long itemId;public deleteEntityTag_call(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteEntityTag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.displayName = displayName;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteEntityTag", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteEntityTag_args args = new deleteEntityTag_args();args.setDisplayName(displayName);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteEntityTag();}}public void deleteTag(String displayName, org.apache.thrift.async.AsyncMethodCallback<deleteTag_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteTag_call method_call = new deleteTag_call(displayName, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteTag_call extends org.apache.thrift.async.TAsyncMethodCall {private String displayName;public deleteTag_call(String displayName, org.apache.thrift.async.AsyncMethodCallback<deleteTag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.displayName = displayName;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteTag", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteTag_args args = new deleteTag_args();args.setDisplayName(displayName);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteTag();}}public void getAllTags(org.apache.thrift.async.AsyncMethodCallback<getAllTags_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllTags_call method_call = new getAllTags_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllTags_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllTags_call(org.apache.thrift.async.AsyncMethodCallback<getAllTags_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllTags", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllTags_args args = new getAllTags_args();args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllTags();}}public void getAllEntitiesByTagName(String displayName, org.apache.thrift.async.AsyncMethodCallback<getAllEntitiesByTagName_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllEntitiesByTagName_call method_call = new getAllEntitiesByTagName_call(displayName, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllEntitiesByTagName_call extends org.apache.thrift.async.TAsyncMethodCall {private String displayName;public getAllEntitiesByTagName_call(String displayName, org.apache.thrift.async.AsyncMethodCallback<getAllEntitiesByTagName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.displayName = displayName;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllEntitiesByTagName", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllEntitiesByTagName_args args = new getAllEntitiesByTagName_args();args.setDisplayName(displayName);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllEntitiesByTagName();}}public void getAllEntityTags(org.apache.thrift.async.AsyncMethodCallback<getAllEntityTags_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllEntityTags_call method_call = new getAllEntityTags_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllEntityTags_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllEntityTags_call(org.apache.thrift.async.AsyncMethodCallback<getAllEntityTags_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllEntityTags", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllEntityTags_args args = new getAllEntityTags_args();args.write(prot);prot.writeMessageEnd();}public Map<Long,List<String>> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllEntityTags();}}public void addBanner(BannerCongregate bannerCongregate, org.apache.thrift.async.AsyncMethodCallback<addBanner_call> resultHandler) throws org.apache.thrift.TException {checkReady();addBanner_call method_call = new addBanner_call(bannerCongregate, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addBanner_call extends org.apache.thrift.async.TAsyncMethodCall {private BannerCongregate bannerCongregate;public addBanner_call(BannerCongregate bannerCongregate, org.apache.thrift.async.AsyncMethodCallback<addBanner_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerCongregate = bannerCongregate;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBanner", org.apache.thrift.protocol.TMessageType.CALL, 0));addBanner_args args = new addBanner_args();args.setBannerCongregate(bannerCongregate);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addBanner();}}public void updateBanner(Banner banner, org.apache.thrift.async.AsyncMethodCallback<updateBanner_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateBanner_call method_call = new updateBanner_call(banner, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateBanner_call extends org.apache.thrift.async.TAsyncMethodCall {private Banner banner;public updateBanner_call(Banner banner, org.apache.thrift.async.AsyncMethodCallback<updateBanner_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.banner = banner;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBanner", org.apache.thrift.protocol.TMessageType.CALL, 0));updateBanner_args args = new updateBanner_args();args.setBanner(banner);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateBanner();}}public void getAllBanners(org.apache.thrift.async.AsyncMethodCallback<getAllBanners_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllBanners_call method_call = new getAllBanners_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllBanners_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllBanners_call(org.apache.thrift.async.AsyncMethodCallback<getAllBanners_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBanners", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllBanners_args args = new getAllBanners_args();args.write(prot);prot.writeMessageEnd();}public List<Banner> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllBanners();}}public void deleteBanner(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<deleteBanner_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteBanner_call method_call = new deleteBanner_call(bannerName, bannerType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteBanner_call extends org.apache.thrift.async.TAsyncMethodCall {private String bannerName;private BannerType bannerType;public deleteBanner_call(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<deleteBanner_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerName = bannerName;this.bannerType = bannerType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBanner", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteBanner_args args = new deleteBanner_args();args.setBannerName(bannerName);args.setBannerType(bannerType);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteBanner();}}public void getBannerDetails(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<getBannerDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBannerDetails_call method_call = new getBannerDetails_call(bannerName, bannerType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBannerDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private String bannerName;private BannerType bannerType;public getBannerDetails_call(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<getBannerDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerName = bannerName;this.bannerType = bannerType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBannerDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));getBannerDetails_args args = new getBannerDetails_args();args.setBannerName(bannerName);args.setBannerType(bannerType);args.write(prot);prot.writeMessageEnd();}public Banner getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBannerDetails();}}public void getActiveBanners(org.apache.thrift.async.AsyncMethodCallback<getActiveBanners_call> resultHandler) throws org.apache.thrift.TException {checkReady();getActiveBanners_call method_call = new getActiveBanners_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getActiveBanners_call extends org.apache.thrift.async.TAsyncMethodCall {public getActiveBanners_call(org.apache.thrift.async.AsyncMethodCallback<getActiveBanners_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActiveBanners", org.apache.thrift.protocol.TMessageType.CALL, 0));getActiveBanners_args args = new getActiveBanners_args();args.write(prot);prot.writeMessageEnd();}public Map<String,List<Banner>> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getActiveBanners();}}public void addBannerMap(List<BannerMap> bannerMaps, org.apache.thrift.async.AsyncMethodCallback<addBannerMap_call> resultHandler) throws org.apache.thrift.TException {checkReady();addBannerMap_call method_call = new addBannerMap_call(bannerMaps, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addBannerMap_call extends org.apache.thrift.async.TAsyncMethodCall {private List<BannerMap> bannerMaps;public addBannerMap_call(List<BannerMap> bannerMaps, org.apache.thrift.async.AsyncMethodCallback<addBannerMap_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerMaps = bannerMaps;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBannerMap", org.apache.thrift.protocol.TMessageType.CALL, 0));addBannerMap_args args = new addBannerMap_args();args.setBannerMaps(bannerMaps);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addBannerMap();}}public void updateBannerMap(BannerMap bannerMap, org.apache.thrift.async.AsyncMethodCallback<updateBannerMap_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateBannerMap_call method_call = new updateBannerMap_call(bannerMap, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateBannerMap_call extends org.apache.thrift.async.TAsyncMethodCall {private BannerMap bannerMap;public updateBannerMap_call(BannerMap bannerMap, org.apache.thrift.async.AsyncMethodCallback<updateBannerMap_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerMap = bannerMap;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBannerMap", org.apache.thrift.protocol.TMessageType.CALL, 0));updateBannerMap_args args = new updateBannerMap_args();args.setBannerMap(bannerMap);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateBannerMap();}}public void deleteBannerMap(String bannerName, org.apache.thrift.async.AsyncMethodCallback<deleteBannerMap_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteBannerMap_call method_call = new deleteBannerMap_call(bannerName, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteBannerMap_call extends org.apache.thrift.async.TAsyncMethodCall {private String bannerName;public deleteBannerMap_call(String bannerName, org.apache.thrift.async.AsyncMethodCallback<deleteBannerMap_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerName = bannerName;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBannerMap", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteBannerMap_args args = new deleteBannerMap_args();args.setBannerName(bannerName);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteBannerMap();}}public void getBannerMapDetails(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<getBannerMapDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBannerMapDetails_call method_call = new getBannerMapDetails_call(bannerName, bannerType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBannerMapDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private String bannerName;private BannerType bannerType;public getBannerMapDetails_call(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<getBannerMapDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerName = bannerName;this.bannerType = bannerType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBannerMapDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));getBannerMapDetails_args args = new getBannerMapDetails_args();args.setBannerName(bannerName);args.setBannerType(bannerType);args.write(prot);prot.writeMessageEnd();}public List<BannerMap> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBannerMapDetails();}}public void addBannerUri(List<BannerUriMapping> bannerUriMappings, org.apache.thrift.async.AsyncMethodCallback<addBannerUri_call> resultHandler) throws org.apache.thrift.TException {checkReady();addBannerUri_call method_call = new addBannerUri_call(bannerUriMappings, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addBannerUri_call extends org.apache.thrift.async.TAsyncMethodCall {private List<BannerUriMapping> bannerUriMappings;public addBannerUri_call(List<BannerUriMapping> bannerUriMappings, org.apache.thrift.async.AsyncMethodCallback<addBannerUri_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerUriMappings = bannerUriMappings;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBannerUri", org.apache.thrift.protocol.TMessageType.CALL, 0));addBannerUri_args args = new addBannerUri_args();args.setBannerUriMappings(bannerUriMappings);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addBannerUri();}}public void getUriMapping(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<getUriMapping_call> resultHandler) throws org.apache.thrift.TException {checkReady();getUriMapping_call method_call = new getUriMapping_call(bannerName, bannerType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getUriMapping_call extends org.apache.thrift.async.TAsyncMethodCall {private String bannerName;private BannerType bannerType;public getUriMapping_call(String bannerName, BannerType bannerType, org.apache.thrift.async.AsyncMethodCallback<getUriMapping_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bannerName = bannerName;this.bannerType = bannerType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUriMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));getUriMapping_args args = new getUriMapping_args();args.setBannerName(bannerName);args.setBannerType(bannerType);args.write(prot);prot.writeMessageEnd();}public List<BannerUriMapping> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getUriMapping();}}public void addCampaign(Campaign campaign, org.apache.thrift.async.AsyncMethodCallback<addCampaign_call> resultHandler) throws org.apache.thrift.TException {checkReady();addCampaign_call method_call = new addCampaign_call(campaign, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {private Campaign campaign;public addCampaign_call(Campaign campaign, org.apache.thrift.async.AsyncMethodCallback<addCampaign_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.campaign = campaign;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));addCampaign_args args = new addCampaign_args();args.setCampaign(campaign);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addCampaign();}}public void getCampaigns(String campaignName, org.apache.thrift.async.AsyncMethodCallback<getCampaigns_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCampaigns_call method_call = new getCampaigns_call(campaignName, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCampaigns_call extends org.apache.thrift.async.TAsyncMethodCall {private String campaignName;public getCampaigns_call(String campaignName, org.apache.thrift.async.AsyncMethodCallback<getCampaigns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.campaignName = campaignName;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCampaigns", org.apache.thrift.protocol.TMessageType.CALL, 0));getCampaigns_args args = new getCampaigns_args();args.setCampaignName(campaignName);args.write(prot);prot.writeMessageEnd();}public List<Campaign> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCampaigns();}}public void deleteCampaign(long campaignId, org.apache.thrift.async.AsyncMethodCallback<deleteCampaign_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteCampaign_call method_call = new deleteCampaign_call(campaignId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteCampaign_call extends org.apache.thrift.async.TAsyncMethodCall {private long campaignId;public deleteCampaign_call(long campaignId, org.apache.thrift.async.AsyncMethodCallback<deleteCampaign_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.campaignId = campaignId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteCampaign", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteCampaign_args args = new deleteCampaign_args();args.setCampaignId(campaignId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_deleteCampaign();}}public void getAllCampaigns(org.apache.thrift.async.AsyncMethodCallback<getAllCampaigns_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllCampaigns_call method_call = new getAllCampaigns_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllCampaigns_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllCampaigns_call(org.apache.thrift.async.AsyncMethodCallback<getAllCampaigns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllCampaigns", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllCampaigns_args args = new getAllCampaigns_args();args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllCampaigns();}}public void getActiveBannersForMobileSite(org.apache.thrift.async.AsyncMethodCallback<getActiveBannersForMobileSite_call> resultHandler) throws org.apache.thrift.TException {checkReady();getActiveBannersForMobileSite_call method_call = new getActiveBannersForMobileSite_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getActiveBannersForMobileSite_call extends org.apache.thrift.async.TAsyncMethodCall {public getActiveBannersForMobileSite_call(org.apache.thrift.async.AsyncMethodCallback<getActiveBannersForMobileSite_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActiveBannersForMobileSite", org.apache.thrift.protocol.TMessageType.CALL, 0));getActiveBannersForMobileSite_args args = new getActiveBannersForMobileSite_args();args.write(prot);prot.writeMessageEnd();}public Map<String,List<Banner>> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getActiveBannersForMobileSite();}}public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteSimilarItem_call method_call = new deleteSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long catalogItemId;public deleteSimilarItem_call(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteSimilarItem_args args = new deleteSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteSimilarItem();}}public void checkSimilarItem(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<checkSimilarItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();checkSimilarItem_call method_call = new checkSimilarItem_call(brand, modelNumber, modelName, color, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class checkSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {private String brand;private String modelNumber;private String modelName;private String color;public checkSimilarItem_call(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<checkSimilarItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.brand = brand;this.modelNumber = modelNumber;this.modelName = modelName;this.color = color;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));checkSimilarItem_args args = new checkSimilarItem_args();args.setBrand(brand);args.setModelNumber(modelNumber);args.setModelName(modelName);args.setColor(color);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_checkSimilarItem();}}public void validateRiskyStatus(long itemId, org.apache.thrift.async.AsyncMethodCallback<validateRiskyStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();validateRiskyStatus_call method_call = new validateRiskyStatus_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class validateRiskyStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public validateRiskyStatus_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<validateRiskyStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateRiskyStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));validateRiskyStatus_args args = new validateRiskyStatus_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_validateRiskyStatus();}}public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeItemRiskyFlag_call method_call = new changeItemRiskyFlag_call(itemId, risky, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeItemRiskyFlag_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private boolean risky;public changeItemRiskyFlag_call(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<changeItemRiskyFlag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.risky = risky;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemRiskyFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));changeItemRiskyFlag_args args = new changeItemRiskyFlag_args();args.setItemId(itemId);args.setRisky(risky);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_changeItemRiskyFlag();}}public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsByRiskyFlag_call method_call = new getItemsByRiskyFlag_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsByRiskyFlag_call extends org.apache.thrift.async.TAsyncMethodCall {public getItemsByRiskyFlag_call(org.apache.thrift.async.AsyncMethodCallback<getItemsByRiskyFlag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByRiskyFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsByRiskyFlag();}}public void getItemsForMasterSheet(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<getItemsForMasterSheet_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsForMasterSheet_call method_call = new getItemsForMasterSheet_call(category, brand, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsForMasterSheet_call extends org.apache.thrift.async.TAsyncMethodCall {private String category;private String brand;public getItemsForMasterSheet_call(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<getItemsForMasterSheet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.category = category;this.brand = brand;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsForMasterSheet", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsForMasterSheet_args args = new getItemsForMasterSheet_args();args.setCategory(category);args.setBrand(brand);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsForMasterSheet();}}public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSimilarItemsCatalogIds_call method_call = new getSimilarItemsCatalogIds_call(beginIndex, totalItems, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSimilarItemsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private long itemId;public getSimilarItemsCatalogIds_call(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSimilarItemsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getSimilarItemsCatalogIds_args args = new getSimilarItemsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSimilarItemsCatalogIds();}}public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<addProductNotification_call> resultHandler) throws org.apache.thrift.TException {checkReady();addProductNotification_call method_call = new addProductNotification_call(itemId, email, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addProductNotification_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private String email;public addProductNotification_call(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<addProductNotification_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.email = email;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addProductNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));addProductNotification_args args = new addProductNotification_args();args.setItemId(itemId);args.setEmail(email);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addProductNotification();}}public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException {checkReady();sendProductNotifications_call method_call = new sendProductNotifications_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class sendProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {public sendProductNotifications_call(org.apache.thrift.async.AsyncMethodCallback<sendProductNotifications_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));sendProductNotifications_args args = new sendProductNotifications_args();args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_sendProductNotifications();}}public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllBrandsByCategory_call method_call = new getAllBrandsByCategory_call(categoryId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllBrandsByCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private long categoryId;public getAllBrandsByCategory_call(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getAllBrandsByCategory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.categoryId = categoryId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBrandsByCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllBrandsByCategory_args args = new getAllBrandsByCategory_args();args.setCategoryId(categoryId);args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllBrandsByCategory();}}public void getAllBrands(org.apache.thrift.async.AsyncMethodCallback<getAllBrands_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllBrands_call method_call = new getAllBrands_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllBrands_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllBrands_call(org.apache.thrift.async.AsyncMethodCallback<getAllBrands_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBrands", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllBrands_args args = new getAllBrands_args();args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllBrands();}}public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<getAllSources_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSources_call method_call = new getAllSources_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSources_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllSources_call(org.apache.thrift.async.AsyncMethodCallback<getAllSources_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSources", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSources_args args = new getAllSources_args();args.write(prot);prot.writeMessageEnd();}public List<Source> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSources();}}public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemPricingBySource_call method_call = new getItemPricingBySource_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemPricingBySource_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long sourceId;public getItemPricingBySource_call(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.sourceId = sourceId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricingBySource", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemPricingBySource_args args = new getItemPricingBySource_args();args.setItemId(itemId);args.setSourceId(sourceId);args.write(prot);prot.writeMessageEnd();}public SourceItemPricing getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemPricingBySource();}}public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();addSourceItemPricing_call method_call = new addSourceItemPricing_call(sourceItemPricing, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addSourceItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {private SourceItemPricing sourceItemPricing;public addSourceItemPricing_call(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.sourceItemPricing = sourceItemPricing;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSourceItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));addSourceItemPricing_args args = new addSourceItemPricing_args();args.setSourceItemPricing(sourceItemPricing);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addSourceItemPricing();}}public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSourcePricing_call method_call = new getAllSourcePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSourcePricing_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getAllSourcePricing_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSourcePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSourcePricing_args args = new getAllSourcePricing_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<SourceItemPricing> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSourcePricing();}}public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemForSource_call method_call = new getItemForSource_call(item_id, sourceId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemForSource_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long sourceId;public getItemForSource_call(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.sourceId = sourceId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemForSource_args args = new getItemForSource_args();args.setItem_id(item_id);args.setSourceId(sourceId);args.write(prot);prot.writeMessageEnd();}public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemForSource();}}public void searchItemsInRange(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchItemsInRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();searchItemsInRange_call method_call = new searchItemsInRange_call(searchTerms, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class searchItemsInRange_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerms;private long offset;private long limit;public searchItemsInRange_call(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchItemsInRange_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerms = searchTerms;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchItemsInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));searchItemsInRange_args args = new searchItemsInRange_args();args.setSearchTerms(searchTerms);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_searchItemsInRange();}}public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSearchResultCount_call method_call = new getSearchResultCount_call(searchTerms, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerms;public getSearchResultCount_call(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<getSearchResultCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerms = searchTerms;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getSearchResultCount_args args = new getSearchResultCount_args();args.setSearchTerms(searchTerms);args.write(prot);prot.writeMessageEnd();}public int getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSearchResultCount();}}public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_call> resultHandler) throws org.apache.thrift.TException {checkReady();getProductNotifications_call method_call = new getProductNotifications_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDateTime;public getProductNotifications_call(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.startDateTime = startDateTime;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));getProductNotifications_args args = new getProductNotifications_args();args.setStartDateTime(startDateTime);args.write(prot);prot.writeMessageEnd();}public List<ProductNotificationRequest> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getProductNotifications();}}public void getProductNotificationRequestCount(long startDateTime, long categoryId, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getProductNotificationRequestCount_call method_call = new getProductNotificationRequestCount_call(startDateTime, categoryId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getProductNotificationRequestCount_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDateTime;private long categoryId;public getProductNotificationRequestCount_call(long startDateTime, long categoryId, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.startDateTime = startDateTime;this.categoryId = categoryId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotificationRequestCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();args.setStartDateTime(startDateTime);args.setCategoryId(categoryId);args.write(prot);prot.writeMessageEnd();}public List<ProductNotificationRequestCount> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getProductNotificationRequestCount();}}public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException {checkReady();addAuthorizationLog_call method_call = new addAuthorizationLog_call(itemId, username, reason, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addAuthorizationLog_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private String username;private String reason;public addAuthorizationLog_call(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.username = username;this.reason = reason;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAuthorizationLog", org.apache.thrift.protocol.TMessageType.CALL, 0));addAuthorizationLog_args args = new addAuthorizationLog_args();args.setItemId(itemId);args.setUsername(username);args.setReason(reason);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addAuthorizationLog();}}public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addupdateVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;private long voucherType;private long voucherAmount;public addupdateVoucherForItem_call(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;this.voucherType = voucherType;this.voucherAmount = voucherAmount;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addupdateVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);args.setVoucherAmount(voucherAmount);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addupdateVoucherForItem();}}public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteVoucherForItem_call method_call = new deleteVoucherForItem_call(catalog_item_id, voucherType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;private long voucherType;public deleteVoucherForItem_call(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;this.voucherType = voucherType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteVoucherForItem_args args = new deleteVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteVoucherForItem();}}public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getVoucherAmount_call method_call = new getVoucherAmount_call(itemId, voucherType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getVoucherAmount_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long voucherType;public getVoucherAmount_call(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.voucherType = voucherType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVoucherAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));getVoucherAmount_args args = new getVoucherAmount_args();args.setItemId(itemId);args.setVoucherType(voucherType);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getVoucherAmount();}}public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemVouchers_call method_call = new getAllItemVouchers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemVouchers_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getAllItemVouchers_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemVouchers_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemVouchers", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemVouchers_args args = new getAllItemVouchers_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<VoucherItemMapping> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemVouchers();}}public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException {checkReady();isValidCatalogItemId_call method_call = new isValidCatalogItemId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class isValidCatalogItemId_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;public isValidCatalogItemId_call(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<isValidCatalogItemId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isValidCatalogItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));isValidCatalogItemId_args args = new isValidCatalogItemId_args();args.setCatalog_item_id(catalog_item_id);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_isValidCatalogItemId();}}public void getVatPercentageForItem(long itemId, long stateId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getVatPercentageForItem_call method_call = new getVatPercentageForItem_call(itemId, stateId, price, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getVatPercentageForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long stateId;private double price;public getVatPercentageForItem_call(long itemId, long stateId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.stateId = stateId;this.price = price;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatPercentageForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getVatPercentageForItem_args args = new getVatPercentageForItem_args();args.setItemId(itemId);args.setStateId(stateId);args.setPrice(price);args.write(prot);prot.writeMessageEnd();}public double getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getVatPercentageForItem();}}public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getVatAmountForItem_call method_call = new getVatAmountForItem_call(itemId, price, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getVatAmountForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private double price;public getVatAmountForItem_call(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatAmountForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.price = price;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatAmountForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getVatAmountForItem_args args = new getVatAmountForItem_args();args.setItemId(itemId);args.setPrice(price);args.write(prot);prot.writeMessageEnd();}public double getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getVatAmountForItem();}}public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllIgnoredInventoryUpdateItemsList_call method_call = new getAllIgnoredInventoryUpdateItemsList_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllIgnoredInventoryUpdateItemsList_call extends org.apache.thrift.async.TAsyncMethodCall {private int offset;private int limit;public getAllIgnoredInventoryUpdateItemsList_call(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryUpdateItemsList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryUpdateItemsList", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllIgnoredInventoryUpdateItemsList_args args = new getAllIgnoredInventoryUpdateItemsList_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllIgnoredInventoryUpdateItemsList();}}public void getAllAliveItems(org.apache.thrift.async.AsyncMethodCallback<getAllAliveItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllAliveItems_call method_call = new getAllAliveItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllAliveItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllAliveItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllAliveItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAliveItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllAliveItems_args args = new getAllAliveItems_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllAliveItems();}}public void getInsuranceAmount(long itemId, double price, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getInsuranceAmount_call method_call = new getInsuranceAmount_call(itemId, price, insurerId, quantity, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getInsuranceAmount_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private double price;private long insurerId;private long quantity;public getInsuranceAmount_call(long itemId, double price, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.price = price;this.insurerId = insurerId;this.quantity = quantity;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsuranceAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));getInsuranceAmount_args args = new getInsuranceAmount_args();args.setItemId(itemId);args.setPrice(price);args.setInsurerId(insurerId);args.setQuantity(quantity);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getInsuranceAmount();}}public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<getInsurer_call> resultHandler) throws org.apache.thrift.TException {checkReady();getInsurer_call method_call = new getInsurer_call(insurerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getInsurer_call extends org.apache.thrift.async.TAsyncMethodCall {private long insurerId;public getInsurer_call(long insurerId, org.apache.thrift.async.AsyncMethodCallback<getInsurer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.insurerId = insurerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsurer", org.apache.thrift.protocol.TMessageType.CALL, 0));getInsurer_args args = new getInsurer_args();args.setInsurerId(insurerId);args.write(prot);prot.writeMessageEnd();}public Insurer getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getInsurer();}}public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<getAllInsurers_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllInsurers_call method_call = new getAllInsurers_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllInsurers_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllInsurers_call(org.apache.thrift.async.AsyncMethodCallback<getAllInsurers_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllInsurers", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllInsurers_args args = new getAllInsurers_args();args.write(prot);prot.writeMessageEnd();}public List<Insurer> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllInsurers();}}public void updateInsuranceDeclaredAmount(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<updateInsuranceDeclaredAmount_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateInsuranceDeclaredAmount_call method_call = new updateInsuranceDeclaredAmount_call(insurerId, amount, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateInsuranceDeclaredAmount_call extends org.apache.thrift.async.TAsyncMethodCall {private long insurerId;private double amount;public updateInsuranceDeclaredAmount_call(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<updateInsuranceDeclaredAmount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.insurerId = insurerId;this.amount = amount;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInsuranceDeclaredAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));updateInsuranceDeclaredAmount_args args = new updateInsuranceDeclaredAmount_args();args.setInsurerId(insurerId);args.setAmount(amount);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateInsuranceDeclaredAmount();}}public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getFreebieForItem_call method_call = new getFreebieForItem_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getFreebieForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getFreebieForItem_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getFreebieForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreebieForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getFreebieForItem_args args = new getFreebieForItem_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getFreebieForItem();}}public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addOrUpdateFreebieForItem_call method_call = new addOrUpdateFreebieForItem_call(freebieItem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addOrUpdateFreebieForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private FreebieItem freebieItem;public addOrUpdateFreebieForItem_call(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFreebieForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.freebieItem = freebieItem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFreebieForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addOrUpdateFreebieForItem_args args = new addOrUpdateFreebieForItem_args();args.setFreebieItem(freebieItem);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addOrUpdateFreebieForItem();}}public void addOrUpdateBrandInfo(BrandInfo brandInfo, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateBrandInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();addOrUpdateBrandInfo_call method_call = new addOrUpdateBrandInfo_call(brandInfo, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addOrUpdateBrandInfo_call extends org.apache.thrift.async.TAsyncMethodCall {private BrandInfo brandInfo;public addOrUpdateBrandInfo_call(BrandInfo brandInfo, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateBrandInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.brandInfo = brandInfo;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateBrandInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));addOrUpdateBrandInfo_args args = new addOrUpdateBrandInfo_args();args.setBrandInfo(brandInfo);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addOrUpdateBrandInfo();}}public void getBrandInfo(org.apache.thrift.async.AsyncMethodCallback<getBrandInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBrandInfo_call method_call = new getBrandInfo_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBrandInfo_call extends org.apache.thrift.async.TAsyncMethodCall {public getBrandInfo_call(org.apache.thrift.async.AsyncMethodCallback<getBrandInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBrandInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));getBrandInfo_args args = new getBrandInfo_args();args.write(prot);prot.writeMessageEnd();}public Map<String,BrandInfo> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBrandInfo();}}public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getStorePricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();getStorePricing_call method_call = new getStorePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getStorePricing_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getStorePricing_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getStorePricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStorePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));getStorePricing_args args = new getStorePricing_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public StorePricing getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getStorePricing();}}public void getStorePricings(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getStorePricings_call> resultHandler) throws org.apache.thrift.TException {checkReady();getStorePricings_call method_call = new getStorePricings_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getStorePricings_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;public getStorePricings_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getStorePricings_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStorePricings", org.apache.thrift.protocol.TMessageType.CALL, 0));getStorePricings_args args = new getStorePricings_args();args.setItemIds(itemIds);args.write(prot);prot.writeMessageEnd();}public List<StorePricing> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getStorePricings();}}public void updateStorePricing(StorePricing sp, boolean allColors, org.apache.thrift.async.AsyncMethodCallback<updateStorePricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateStorePricing_call method_call = new updateStorePricing_call(sp, allColors, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateStorePricing_call extends org.apache.thrift.async.TAsyncMethodCall {private StorePricing sp;private boolean allColors;public updateStorePricing_call(StorePricing sp, boolean allColors, org.apache.thrift.async.AsyncMethodCallback<updateStorePricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.sp = sp;this.allColors = allColors;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateStorePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));updateStorePricing_args args = new updateStorePricing_args();args.setSp(sp);args.setAllColors(allColors);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateStorePricing();}}public void getAllAmazonListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllAmazonListedItems_call method_call = new getAllAmazonListedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllAmazonListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllAmazonListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllAmazonListedItems_args args = new getAllAmazonListedItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllAmazonListedItems();}}public void searchAmazonItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchAmazonItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();searchAmazonItems_call method_call = new searchAmazonItems_call(searchTerm, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class searchAmazonItems_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerm;private long offset;private long limit;public searchAmazonItems_call(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchAmazonItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerm = searchTerm;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchAmazonItems", org.apache.thrift.protocol.TMessageType.CALL, 0));searchAmazonItems_args args = new searchAmazonItems_args();args.setSearchTerm(searchTerm);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_searchAmazonItems();}}public void getAmazonSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getAmazonSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAmazonSearchResultCount_call method_call = new getAmazonSearchResultCount_call(searchTerm, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAmazonSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerm;public getAmazonSearchResultCount_call(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getAmazonSearchResultCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerm = searchTerm;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getAmazonSearchResultCount_args args = new getAmazonSearchResultCount_args();args.setSearchTerm(searchTerm);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAmazonSearchResultCount();}}public void getCountForAmazonlistedItems(org.apache.thrift.async.AsyncMethodCallback<getCountForAmazonlistedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCountForAmazonlistedItems_call method_call = new getCountForAmazonlistedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCountForAmazonlistedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getCountForAmazonlistedItems_call(org.apache.thrift.async.AsyncMethodCallback<getCountForAmazonlistedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForAmazonlistedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getCountForAmazonlistedItems_args args = new getCountForAmazonlistedItems_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCountForAmazonlistedItems();}}public void getAmazonItemDetails(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAmazonItemDetails_call method_call = new getAmazonItemDetails_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAmazonItemDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getAmazonItemDetails_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonItemDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonItemDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));getAmazonItemDetails_args args = new getAmazonItemDetails_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public Amazonlisted getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAmazonItemDetails();}}public void updateAmazonItemDetails(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<updateAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateAmazonItemDetails_call method_call = new updateAmazonItemDetails_call(amazonlisted, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateAmazonItemDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private Amazonlisted amazonlisted;public updateAmazonItemDetails_call(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<updateAmazonItemDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.amazonlisted = amazonlisted;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAmazonItemDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));updateAmazonItemDetails_args args = new updateAmazonItemDetails_args();args.setAmazonlisted(amazonlisted);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateAmazonItemDetails();}}public void addAmazonItem(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<addAmazonItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addAmazonItem_call method_call = new addAmazonItem_call(amazonlisted, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addAmazonItem_call extends org.apache.thrift.async.TAsyncMethodCall {private Amazonlisted amazonlisted;public addAmazonItem_call(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<addAmazonItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.amazonlisted = amazonlisted;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAmazonItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addAmazonItem_args args = new addAmazonItem_args();args.setAmazonlisted(amazonlisted);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addAmazonItem();}}public void getAsinItems(org.apache.thrift.async.AsyncMethodCallback<getAsinItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAsinItems_call method_call = new getAsinItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAsinItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAsinItems_call(org.apache.thrift.async.AsyncMethodCallback<getAsinItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAsinItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAsinItems_args args = new getAsinItems_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAsinItems();}}public void getAllFbaListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbaListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFbaListedItems_call method_call = new getAllFbaListedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFbaListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFbaListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbaListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbaListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFbaListedItems_args args = new getAllFbaListedItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFbaListedItems();}}public void getAllNonFbaListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllNonFbaListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllNonFbaListedItems_call method_call = new getAllNonFbaListedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllNonFbaListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllNonFbaListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllNonFbaListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllNonFbaListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllNonFbaListedItems_args args = new getAllNonFbaListedItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllNonFbaListedItems();}}public void updateItemInventory(long itemId, long holdInventory, long defaultInventory, org.apache.thrift.async.AsyncMethodCallback<updateItemInventory_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateItemInventory_call method_call = new updateItemInventory_call(itemId, holdInventory, defaultInventory, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long holdInventory;private long defaultInventory;public updateItemInventory_call(long itemId, long holdInventory, long defaultInventory, org.apache.thrift.async.AsyncMethodCallback<updateItemInventory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.holdInventory = holdInventory;this.defaultInventory = defaultInventory;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));updateItemInventory_args args = new updateItemInventory_args();args.setItemId(itemId);args.setHoldInventory(holdInventory);args.setDefaultInventory(defaultInventory);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateItemInventory();}}public void updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateTimestampForAmazonFeeds_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateTimestampForAmazonFeeds_call method_call = new updateTimestampForAmazonFeeds_call(type, sku, timestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateTimestampForAmazonFeeds_call extends org.apache.thrift.async.TAsyncMethodCall {private String type;private List<Long> sku;private long timestamp;public updateTimestampForAmazonFeeds_call(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateTimestampForAmazonFeeds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.type = type;this.sku = sku;this.timestamp = timestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTimestampForAmazonFeeds", org.apache.thrift.protocol.TMessageType.CALL, 0));updateTimestampForAmazonFeeds_args args = new updateTimestampForAmazonFeeds_args();args.setType(type);args.setSku(sku);args.setTimestamp(timestamp);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateTimestampForAmazonFeeds();}}public void getAllParentCategories(org.apache.thrift.async.AsyncMethodCallback<getAllParentCategories_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllParentCategories_call method_call = new getAllParentCategories_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllParentCategories_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllParentCategories_call(org.apache.thrift.async.AsyncMethodCallback<getAllParentCategories_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllParentCategories", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllParentCategories_args args = new getAllParentCategories_args();args.write(prot);prot.writeMessageEnd();}public List<Category> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllParentCategories();}}public void addPageViewEvent(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<addPageViewEvent_call> resultHandler) throws org.apache.thrift.TException {checkReady();addPageViewEvent_call method_call = new addPageViewEvent_call(pageViewEvents, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addPageViewEvent_call extends org.apache.thrift.async.TAsyncMethodCall {private PageViewEvents pageViewEvents;public addPageViewEvent_call(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<addPageViewEvent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.pageViewEvents = pageViewEvents;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPageViewEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));addPageViewEvent_args args = new addPageViewEvent_args();args.setPageViewEvents(pageViewEvents);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addPageViewEvent();}}public void addCartEvent(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<addCartEvent_call> resultHandler) throws org.apache.thrift.TException {checkReady();addCartEvent_call method_call = new addCartEvent_call(cartEvents, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addCartEvent_call extends org.apache.thrift.async.TAsyncMethodCall {private CartEvents cartEvents;public addCartEvent_call(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<addCartEvent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.cartEvents = cartEvents;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCartEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));addCartEvent_args args = new addCartEvent_args();args.setCartEvents(cartEvents);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addCartEvent();}}public void addEbayItem(EbayItem ebayItem, org.apache.thrift.async.AsyncMethodCallback<addEbayItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addEbayItem_call method_call = new addEbayItem_call(ebayItem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addEbayItem_call extends org.apache.thrift.async.TAsyncMethodCall {private EbayItem ebayItem;public addEbayItem_call(EbayItem ebayItem, org.apache.thrift.async.AsyncMethodCallback<addEbayItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.ebayItem = ebayItem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addEbayItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addEbayItem_args args = new addEbayItem_args();args.setEbayItem(ebayItem);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addEbayItem();}}public void getEbayItem(String listingId, org.apache.thrift.async.AsyncMethodCallback<getEbayItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getEbayItem_call method_call = new getEbayItem_call(listingId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getEbayItem_call extends org.apache.thrift.async.TAsyncMethodCall {private String listingId;public getEbayItem_call(String listingId, org.apache.thrift.async.AsyncMethodCallback<getEbayItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.listingId = listingId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEbayItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getEbayItem_args args = new getEbayItem_args();args.setListingId(listingId);args.write(prot);prot.writeMessageEnd();}public EbayItem getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getEbayItem();}}public void updateEbayItem(EbayItem ebayItem, org.apache.thrift.async.AsyncMethodCallback<updateEbayItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateEbayItem_call method_call = new updateEbayItem_call(ebayItem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateEbayItem_call extends org.apache.thrift.async.TAsyncMethodCall {private EbayItem ebayItem;public updateEbayItem_call(EbayItem ebayItem, org.apache.thrift.async.AsyncMethodCallback<updateEbayItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.ebayItem = ebayItem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateEbayItem", org.apache.thrift.protocol.TMessageType.CALL, 0));updateEbayItem_args args = new updateEbayItem_args();args.setEbayItem(ebayItem);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateEbayItem();}}public void getAmazonListedItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAmazonListedItems_call method_call = new getAmazonListedItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAmazonListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long offset;private long limit;public getAmazonListedItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAmazonListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAmazonListedItems_args args = new getAmazonListedItems_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAmazonListedItems();}}public void updateAmazonAttributesInBulk(Map<Long,Amazonlisted> amazonlisted, org.apache.thrift.async.AsyncMethodCallback<updateAmazonAttributesInBulk_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateAmazonAttributesInBulk_call method_call = new updateAmazonAttributesInBulk_call(amazonlisted, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateAmazonAttributesInBulk_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<Long,Amazonlisted> amazonlisted;public updateAmazonAttributesInBulk_call(Map<Long,Amazonlisted> amazonlisted, org.apache.thrift.async.AsyncMethodCallback<updateAmazonAttributesInBulk_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.amazonlisted = amazonlisted;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAmazonAttributesInBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));updateAmazonAttributesInBulk_args args = new updateAmazonAttributesInBulk_args();args.setAmazonlisted(amazonlisted);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateAmazonAttributesInBulk();}}public void getAllItemstoListOnFba(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFba_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemstoListOnFba_call method_call = new getAllItemstoListOnFba_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemstoListOnFba_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllItemstoListOnFba_call(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFba_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemstoListOnFba", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemstoListOnFba_args args = new getAllItemstoListOnFba_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemstoListOnFba();}}public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemstoListOnNonFba_call method_call = new getAllItemstoListOnNonFba_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemstoListOnNonFba_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllItemstoListOnNonFba_call(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnNonFba_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemstoListOnNonFba", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemstoListOnNonFba_args args = new getAllItemstoListOnNonFba_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemstoListOnNonFba();}}public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<updateAsin_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateAsin_call method_call = new updateAsin_call(item, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateAsin_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<Long,Item> item;public updateAsin_call(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<updateAsin_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item = item;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAsin", org.apache.thrift.protocol.TMessageType.CALL, 0));updateAsin_args args = new updateAsin_args();args.setItem(item);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateAsin();}}public void addOrUpdateSnapdealItem(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addOrUpdateSnapdealItem_call method_call = new addOrUpdateSnapdealItem_call(snapdealitem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addOrUpdateSnapdealItem_call extends org.apache.thrift.async.TAsyncMethodCall {private SnapdealItem snapdealitem;public addOrUpdateSnapdealItem_call(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.snapdealitem = snapdealitem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateSnapdealItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addOrUpdateSnapdealItem_args args = new addOrUpdateSnapdealItem_args();args.setSnapdealitem(snapdealitem);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addOrUpdateSnapdealItem();}}public void getSnapdealItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSnapdealItem_call method_call = new getSnapdealItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSnapdealItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getSnapdealItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getSnapdealItem_args args = new getSnapdealItem_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public SnapdealItem getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSnapdealItem();}}public void getSnapdealItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItemDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSnapdealItemDetails_call method_call = new getSnapdealItemDetails_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSnapdealItemDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getSnapdealItemDetails_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItemDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItemDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));getSnapdealItemDetails_args args = new getSnapdealItemDetails_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public SnapdealItemDetails getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSnapdealItemDetails();}}public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSnapdealItems_call method_call = new getAllSnapdealItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllSnapdealItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSnapdealItems_args args = new getAllSnapdealItems_args();args.write(prot);prot.writeMessageEnd();}public List<SnapdealItemDetails> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSnapdealItems();}}public void getSnapdealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSnapdealItems_call method_call = new getSnapdealItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long offset;private long limit;public getSnapdealItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getSnapdealItems_args args = new getSnapdealItems_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<SnapdealItemDetails> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSnapdealItems();}}public void searchSnapdealItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();searchSnapdealItems_call method_call = new searchSnapdealItems_call(searchTerm, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class searchSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerm;private long offset;private long limit;public searchSnapdealItems_call(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchSnapdealItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerm = searchTerm;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));searchSnapdealItems_args args = new searchSnapdealItems_args();args.setSearchTerm(searchTerm);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<SnapdealItemDetails> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_searchSnapdealItems();}}public void getCountForSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<getCountForSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCountForSnapdealItems_call method_call = new getCountForSnapdealItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCountForSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getCountForSnapdealItems_call(org.apache.thrift.async.AsyncMethodCallback<getCountForSnapdealItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getCountForSnapdealItems_args args = new getCountForSnapdealItems_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCountForSnapdealItems();}}public void getSnapdealSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getSnapdealSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSnapdealSearchResultCount_call method_call = new getSnapdealSearchResultCount_call(searchTerm, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSnapdealSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerm;public getSnapdealSearchResultCount_call(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getSnapdealSearchResultCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerm = searchTerm;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getSnapdealSearchResultCount_args args = new getSnapdealSearchResultCount_args();args.setSearchTerm(searchTerm);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSnapdealSearchResultCount();}}public void getPrefferedInsurerForItem(long itemId, InsurerType insurerType, org.apache.thrift.async.AsyncMethodCallback<getPrefferedInsurerForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPrefferedInsurerForItem_call method_call = new getPrefferedInsurerForItem_call(itemId, insurerType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPrefferedInsurerForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private InsurerType insurerType;public getPrefferedInsurerForItem_call(long itemId, InsurerType insurerType, org.apache.thrift.async.AsyncMethodCallback<getPrefferedInsurerForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.insurerType = insurerType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrefferedInsurerForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getPrefferedInsurerForItem_args args = new getPrefferedInsurerForItem_args();args.setItemId(itemId);args.setInsurerType(insurerType);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPrefferedInsurerForItem();}}public void getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItembySkuAtSnapdeal_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSnapdealItembySkuAtSnapdeal_call method_call = new getSnapdealItembySkuAtSnapdeal_call(skuAtSnapdeal, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSnapdealItembySkuAtSnapdeal_call extends org.apache.thrift.async.TAsyncMethodCall {private String skuAtSnapdeal;public getSnapdealItembySkuAtSnapdeal_call(String skuAtSnapdeal, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItembySkuAtSnapdeal_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.skuAtSnapdeal = skuAtSnapdeal;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItembySkuAtSnapdeal", org.apache.thrift.protocol.TMessageType.CALL, 0));getSnapdealItembySkuAtSnapdeal_args args = new getSnapdealItembySkuAtSnapdeal_args();args.setSkuAtSnapdeal(skuAtSnapdeal);args.write(prot);prot.writeMessageEnd();}public SnapdealItem getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSnapdealItembySkuAtSnapdeal();}}public void getProductFeedSubmit(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<getProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException {checkReady();getProductFeedSubmit_call method_call = new getProductFeedSubmit_call(catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getProductFeedSubmit_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalogItemId;public getProductFeedSubmit_call(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<getProductFeedSubmit_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductFeedSubmit", org.apache.thrift.protocol.TMessageType.CALL, 0));getProductFeedSubmit_args args = new getProductFeedSubmit_args();args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public ProductFeedSubmit getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getProductFeedSubmit();}}public void addProductFeedSubmit(ProductFeedSubmit productFeedSubmit, org.apache.thrift.async.AsyncMethodCallback<addProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException {checkReady();addProductFeedSubmit_call method_call = new addProductFeedSubmit_call(productFeedSubmit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addProductFeedSubmit_call extends org.apache.thrift.async.TAsyncMethodCall {private ProductFeedSubmit productFeedSubmit;public addProductFeedSubmit_call(ProductFeedSubmit productFeedSubmit, org.apache.thrift.async.AsyncMethodCallback<addProductFeedSubmit_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.productFeedSubmit = productFeedSubmit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addProductFeedSubmit", org.apache.thrift.protocol.TMessageType.CALL, 0));addProductFeedSubmit_args args = new addProductFeedSubmit_args();args.setProductFeedSubmit(productFeedSubmit);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addProductFeedSubmit();}}public void updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit, org.apache.thrift.async.AsyncMethodCallback<updateProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateProductFeedSubmit_call method_call = new updateProductFeedSubmit_call(productFeedSubmit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateProductFeedSubmit_call extends org.apache.thrift.async.TAsyncMethodCall {private ProductFeedSubmit productFeedSubmit;public updateProductFeedSubmit_call(ProductFeedSubmit productFeedSubmit, org.apache.thrift.async.AsyncMethodCallback<updateProductFeedSubmit_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.productFeedSubmit = productFeedSubmit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateProductFeedSubmit", org.apache.thrift.protocol.TMessageType.CALL, 0));updateProductFeedSubmit_args args = new updateProductFeedSubmit_args();args.setProductFeedSubmit(productFeedSubmit);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateProductFeedSubmit();}}public void deleteProductFeedSubmit(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteProductFeedSubmit_call method_call = new deleteProductFeedSubmit_call(catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteProductFeedSubmit_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalogItemId;public deleteProductFeedSubmit_call(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteProductFeedSubmit_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteProductFeedSubmit", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteProductFeedSubmit_args args = new deleteProductFeedSubmit_args();args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteProductFeedSubmit();}}public void getAllProductFeedSubmit(org.apache.thrift.async.AsyncMethodCallback<getAllProductFeedSubmit_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllProductFeedSubmit_call method_call = new getAllProductFeedSubmit_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllProductFeedSubmit_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllProductFeedSubmit_call(org.apache.thrift.async.AsyncMethodCallback<getAllProductFeedSubmit_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProductFeedSubmit", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllProductFeedSubmit_args args = new getAllProductFeedSubmit_args();args.write(prot);prot.writeMessageEnd();}public List<ProductFeedSubmit> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllProductFeedSubmit();}}public void getMarketplacedetailsForItem(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getMarketplacedetailsForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getMarketplacedetailsForItem_call method_call = new getMarketplacedetailsForItem_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getMarketplacedetailsForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long sourceId;public getMarketplacedetailsForItem_call(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getMarketplacedetailsForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.sourceId = sourceId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMarketplacedetailsForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getMarketplacedetailsForItem_args args = new getMarketplacedetailsForItem_args();args.setItemId(itemId);args.setSourceId(sourceId);args.write(prot);prot.writeMessageEnd();}public MarketplaceItems getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getMarketplacedetailsForItem();}}public void updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem, org.apache.thrift.async.AsyncMethodCallback<updateMarketplaceAttributesForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateMarketplaceAttributesForItem_call method_call = new updateMarketplaceAttributesForItem_call(marketPlaceItem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateMarketplaceAttributesForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private MarketplaceItems marketPlaceItem;public updateMarketplaceAttributesForItem_call(MarketplaceItems marketPlaceItem, org.apache.thrift.async.AsyncMethodCallback<updateMarketplaceAttributesForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.marketPlaceItem = marketPlaceItem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMarketplaceAttributesForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));updateMarketplaceAttributesForItem_args args = new updateMarketplaceAttributesForItem_args();args.setMarketPlaceItem(marketPlaceItem);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateMarketplaceAttributesForItem();}}public void getCostingForMarketplace(long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<getCostingForMarketplace_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCostingForMarketplace_call method_call = new getCostingForMarketplace_call(source, item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCostingForMarketplace_call extends org.apache.thrift.async.TAsyncMethodCall {private long source;private long item_id;public getCostingForMarketplace_call(long source, long item_id, org.apache.thrift.async.AsyncMethodCallback<getCostingForMarketplace_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.source = source;this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingForMarketplace", org.apache.thrift.protocol.TMessageType.CALL, 0));getCostingForMarketplace_args args = new getCostingForMarketplace_args();args.setSource(source);args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public MarketplacePercentage getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCostingForMarketplace();}}public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getMarketPlaceItemsForPriceUpdate_call method_call = new getMarketPlaceItemsForPriceUpdate_call(source, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getMarketPlaceItemsForPriceUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {private long source;public getMarketPlaceItemsForPriceUpdate_call(long source, org.apache.thrift.async.AsyncMethodCallback<getMarketPlaceItemsForPriceUpdate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.source = source;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMarketPlaceItemsForPriceUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));getMarketPlaceItemsForPriceUpdate_args args = new getMarketPlaceItemsForPriceUpdate_args();args.setSource(source);args.write(prot);prot.writeMessageEnd();}public List<MarketPlaceItemPrice> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getMarketPlaceItemsForPriceUpdate();}}public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateMarketPlacePriceUpdateStatus_call method_call = new updateMarketPlacePriceUpdateStatus_call(skulist, timestamp, source, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateMarketPlacePriceUpdateStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> skulist;private long timestamp;private long source;public updateMarketPlacePriceUpdateStatus_call(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<updateMarketPlacePriceUpdateStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.skulist = skulist;this.timestamp = timestamp;this.source = source;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMarketPlacePriceUpdateStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));updateMarketPlacePriceUpdateStatus_args args = new updateMarketPlacePriceUpdateStatus_args();args.setSkulist(skulist);args.setTimestamp(timestamp);args.setSource(source);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateMarketPlacePriceUpdateStatus();}}public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateItemHoldInventory_call method_call = new updateItemHoldInventory_call(itemHoldMap, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateItemHoldInventory_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<Long,Long> itemHoldMap;public updateItemHoldInventory_call(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<updateItemHoldInventory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemHoldMap = itemHoldMap;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemHoldInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));updateItemHoldInventory_args args = new updateItemHoldInventory_args();args.setItemHoldMap(itemHoldMap);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateItemHoldInventory();}}public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<updateNlcAtMarketplaces_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateNlcAtMarketplaces_call method_call = new updateNlcAtMarketplaces_call(item_id, vendor_id, nlc, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateNlcAtMarketplaces_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long vendor_id;private double nlc;public updateNlcAtMarketplaces_call(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<updateNlcAtMarketplaces_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.vendor_id = vendor_id;this.nlc = nlc;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateNlcAtMarketplaces", org.apache.thrift.protocol.TMessageType.CALL, 0));updateNlcAtMarketplaces_args args = new updateNlcAtMarketplaces_args();args.setItem_id(item_id);args.setVendor_id(vendor_id);args.setNlc(nlc);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateNlcAtMarketplaces();}}public void getAllFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFlipkartItems_call method_call = new getAllFlipkartItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFlipkartItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFlipkartItems_args args = new getAllFlipkartItems_args();args.write(prot);prot.writeMessageEnd();}public List<FlipkartItem> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFlipkartItems();}}public void addOrUpdateFlipkartItem(FlipkartItem flipkartitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addOrUpdateFlipkartItem_call method_call = new addOrUpdateFlipkartItem_call(flipkartitem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addOrUpdateFlipkartItem_call extends org.apache.thrift.async.TAsyncMethodCall {private FlipkartItem flipkartitem;public addOrUpdateFlipkartItem_call(FlipkartItem flipkartitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.flipkartitem = flipkartitem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFlipkartItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addOrUpdateFlipkartItem_args args = new addOrUpdateFlipkartItem_args();args.setFlipkartitem(flipkartitem);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addOrUpdateFlipkartItem();}}public void getFlipkartItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getFlipkartItem_call method_call = new getFlipkartItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getFlipkartItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getFlipkartItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getFlipkartItem_args args = new getFlipkartItem_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public FlipkartItem getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getFlipkartItem();}}public void getFlipkartItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();getFlipkartItemDetails_call method_call = new getFlipkartItemDetails_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getFlipkartItemDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getFlipkartItemDetails_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItemDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));getFlipkartItemDetails_args args = new getFlipkartItemDetails_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public FlipkartItemDetails getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getFlipkartItemDetails();}}public void getFlipkartItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getFlipkartItems_call method_call = new getFlipkartItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long offset;private long limit;public getFlipkartItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getFlipkartItems_args args = new getFlipkartItems_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<FlipkartItemDetails> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getFlipkartItems();}}public void searchFlipkartItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();searchFlipkartItems_call method_call = new searchFlipkartItems_call(searchTerm, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class searchFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerm;private long offset;private long limit;public searchFlipkartItems_call(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchFlipkartItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerm = searchTerm;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));searchFlipkartItems_args args = new searchFlipkartItems_args();args.setSearchTerm(searchTerm);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<FlipkartItemDetails> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_searchFlipkartItems();}}public void getCountForFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<getCountForFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCountForFlipkartItems_call method_call = new getCountForFlipkartItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCountForFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getCountForFlipkartItems_call(org.apache.thrift.async.AsyncMethodCallback<getCountForFlipkartItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getCountForFlipkartItems_args args = new getCountForFlipkartItems_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCountForFlipkartItems();}}public void getFlipkartSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getFlipkartSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getFlipkartSearchResultCount_call method_call = new getFlipkartSearchResultCount_call(searchTerm, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getFlipkartSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerm;public getFlipkartSearchResultCount_call(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getFlipkartSearchResultCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.searchTerm = searchTerm;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getFlipkartSearchResultCount_args args = new getFlipkartSearchResultCount_args();args.setSearchTerm(searchTerm);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getFlipkartSearchResultCount();}}public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<getAllFkItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFkItems_call method_call = new getAllFkItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFkItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFkItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFkItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFkItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFkItems_args args = new getAllFkItems_args();args.write(prot);prot.writeMessageEnd();}public List<FlipkartItemDetails> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFkItems();}}public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException {checkReady();getFlipkartItemBySkyAtFlipkart_call method_call = new getFlipkartItemBySkyAtFlipkart_call(sku, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getFlipkartItemBySkyAtFlipkart_call extends org.apache.thrift.async.TAsyncMethodCall {private String sku;public getFlipkartItemBySkyAtFlipkart_call(String sku, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemBySkyAtFlipkart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.sku = sku;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItemBySkyAtFlipkart", org.apache.thrift.protocol.TMessageType.CALL, 0));getFlipkartItemBySkyAtFlipkart_args args = new getFlipkartItemBySkyAtFlipkart_args();args.setSku(sku);args.write(prot);prot.writeMessageEnd();}public FlipkartItem getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getFlipkartItemBySkyAtFlipkart();}}public void getMarketplaceHistory(long source, long offset, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getMarketplaceHistory_call method_call = new getMarketplaceHistory_call(source, offset, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getMarketplaceHistory_call extends org.apache.thrift.async.TAsyncMethodCall {private long source;private long offset;private long itemId;public getMarketplaceHistory_call(long source, long offset, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.source = source;this.offset = offset;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMarketplaceHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));getMarketplaceHistory_args args = new getMarketplaceHistory_args();args.setSource(source);args.setOffset(offset);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<MarketplaceHistory> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getMarketplaceHistory();}}public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFbbListedItems_call method_call = new getAllFbbListedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFbbListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFbbListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbbListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbbListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFbbListedItems_args args = new getAllFbbListedItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFbbListedItems();}}public void getAllFbbPricingItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbbPricingItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFbbPricingItems_call method_call = new getAllFbbPricingItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFbbPricingItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFbbPricingItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbbPricingItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbbPricingItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFbbPricingItems_args args = new getAllFbbPricingItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFbbPricingItems();}}public void getCountForMarketplaceHistory(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<getCountForMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCountForMarketplaceHistory_call method_call = new getCountForMarketplaceHistory_call(source, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCountForMarketplaceHistory_call extends org.apache.thrift.async.TAsyncMethodCall {private long source;private long itemId;public getCountForMarketplaceHistory_call(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<getCountForMarketplaceHistory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.source = source;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForMarketplaceHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));getCountForMarketplaceHistory_args args = new getCountForMarketplaceHistory_args();args.setSource(source);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCountForMarketplaceHistory();}}public void getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistoryByDate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getMarketplaceHistoryByDate_call method_call = new getMarketplaceHistoryByDate_call(source, startDate, endDate, offset, limit, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getMarketplaceHistoryByDate_call extends org.apache.thrift.async.TAsyncMethodCall {private long source;private long startDate;private long endDate;private long offset;private long limit;private long itemId;public getMarketplaceHistoryByDate_call(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<getMarketplaceHistoryByDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.source = source;this.startDate = startDate;this.endDate = endDate;this.offset = offset;this.limit = limit;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMarketplaceHistoryByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));getMarketplaceHistoryByDate_args args = new getMarketplaceHistoryByDate_args();args.setSource(source);args.setStartDate(startDate);args.setEndDate(endDate);args.setOffset(offset);args.setLimit(limit);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<MarketplaceHistory> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getMarketplaceHistoryByDate();}}public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPrivateDealDetails_call method_call = new getPrivateDealDetails_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPrivateDealDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getPrivateDealDetails_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));getPrivateDealDetails_args args = new getPrivateDealDetails_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public PrivateDeal getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPrivateDealDetails();}}public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPrivateDealItems_call method_call = new getPrivateDealItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPrivateDealItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long offset;private long limit;public getPrivateDealItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getPrivateDealItems_args args = new getPrivateDealItems_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPrivateDealItems();}}public void getAllActivePrivateDeals(List<Long> itemIds, long daysDelta, org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllActivePrivateDeals_call method_call = new getAllActivePrivateDeals_call(itemIds, daysDelta, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllActivePrivateDeals_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;private long daysDelta;public getAllActivePrivateDeals_call(List<Long> itemIds, long daysDelta, org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;this.daysDelta = daysDelta;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllActivePrivateDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();args.setItemIds(itemIds);args.setDaysDelta(daysDelta);args.write(prot);prot.writeMessageEnd();}public Map<Long,PrivateDeal> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllActivePrivateDeals();}}public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException {checkReady();addOrUpdatePrivateDeal_call method_call = new addOrUpdatePrivateDeal_call(privateDeal, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addOrUpdatePrivateDeal_call extends org.apache.thrift.async.TAsyncMethodCall {private PrivateDeal privateDeal;public addOrUpdatePrivateDeal_call(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<addOrUpdatePrivateDeal_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.privateDeal = privateDeal;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdatePrivateDeal", org.apache.thrift.protocol.TMessageType.CALL, 0));addOrUpdatePrivateDeal_args args = new addOrUpdatePrivateDeal_args();args.setPrivateDeal(privateDeal);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addOrUpdatePrivateDeal();}}public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPrivateDealsCatalogIds_call method_call = new getPrivateDealsCatalogIds_call(beginIndex, totalItems, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPrivateDealsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;public getPrivateDealsCatalogIds_call(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCatalogIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getPrivateDealsCatalogIds_args args = new getPrivateDealsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPrivateDealsCatalogIds();}}public void getPrivateDealsCount(org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPrivateDealsCount_call method_call = new getPrivateDealsCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPrivateDealsCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getPrivateDealsCount_call(org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getPrivateDealsCount_args args = new getPrivateDealsCount_args();args.write(prot);prot.writeMessageEnd();}public int getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPrivateDealsCount();}}public void getAmazonOutSyncItems(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonOutSyncItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAmazonOutSyncItems_call method_call = new getAmazonOutSyncItems_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAmazonOutSyncItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getAmazonOutSyncItems_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonOutSyncItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonOutSyncItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAmazonOutSyncItems_args args = new getAmazonOutSyncItems_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public AmazonOutOfSync getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAmazonOutSyncItems();}}public void getAllPrivateDealsComparison(org.apache.thrift.async.AsyncMethodCallback<getAllPrivateDealsComparison_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllPrivateDealsComparison_call method_call = new getAllPrivateDealsComparison_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllPrivateDealsComparison_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllPrivateDealsComparison_call(org.apache.thrift.async.AsyncMethodCallback<getAllPrivateDealsComparison_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPrivateDealsComparison", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllPrivateDealsComparison_args args = new getAllPrivateDealsComparison_args();args.write(prot);prot.writeMessageEnd();}public List<PdPriceComp> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllPrivateDealsComparison();}}public void getAllSnapdealMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSnapdealMarketplaceItem_call method_call = new getAllSnapdealMarketplaceItem_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSnapdealMarketplaceItem_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllSnapdealMarketplaceItem_call(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealMarketplaceItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSnapdealMarketplaceItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSnapdealMarketplaceItem_args args = new getAllSnapdealMarketplaceItem_args();args.write(prot);prot.writeMessageEnd();}public List<SnapdealItem> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSnapdealMarketplaceItem();}}public void getAllFlipkartMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFlipkartMarketplaceItem_call method_call = new getAllFlipkartMarketplaceItem_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFlipkartMarketplaceItem_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFlipkartMarketplaceItem_call(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartMarketplaceItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFlipkartMarketplaceItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFlipkartMarketplaceItem_args args = new getAllFlipkartMarketplaceItem_args();args.write(prot);prot.writeMessageEnd();}public List<FlipkartItem> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFlipkartMarketplaceItem();}}public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap, org.apache.thrift.async.AsyncMethodCallback<addCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException {checkReady();addCompetitorScraping_call method_call = new addCompetitorScraping_call(competitorPricingMap, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addCompetitorScraping_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<Long,CompetitorPricing> competitorPricingMap;public addCompetitorScraping_call(Map<Long,CompetitorPricing> competitorPricingMap, org.apache.thrift.async.AsyncMethodCallback<addCompetitorScraping_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.competitorPricingMap = competitorPricingMap;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCompetitorScraping", org.apache.thrift.protocol.TMessageType.CALL, 0));addCompetitorScraping_args args = new addCompetitorScraping_args();args.setCompetitorPricingMap(competitorPricingMap);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addCompetitorScraping();}}public void getPreviousCompetitorScraping(long delta, org.apache.thrift.async.AsyncMethodCallback<getPreviousCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPreviousCompetitorScraping_call method_call = new getPreviousCompetitorScraping_call(delta, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPreviousCompetitorScraping_call extends org.apache.thrift.async.TAsyncMethodCall {private long delta;public getPreviousCompetitorScraping_call(long delta, org.apache.thrift.async.AsyncMethodCallback<getPreviousCompetitorScraping_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.delta = delta;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPreviousCompetitorScraping", org.apache.thrift.protocol.TMessageType.CALL, 0));getPreviousCompetitorScraping_args args = new getPreviousCompetitorScraping_args();args.setDelta(delta);args.write(prot);prot.writeMessageEnd();}public List<CompetitorPricing> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPreviousCompetitorScraping();}}public void getUploadResultById(long uploadId, org.apache.thrift.async.AsyncMethodCallback<getUploadResultById_call> resultHandler) throws org.apache.thrift.TException {checkReady();getUploadResultById_call method_call = new getUploadResultById_call(uploadId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getUploadResultById_call extends org.apache.thrift.async.TAsyncMethodCall {private long uploadId;public getUploadResultById_call(long uploadId, org.apache.thrift.async.AsyncMethodCallback<getUploadResultById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.uploadId = uploadId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUploadResultById", org.apache.thrift.protocol.TMessageType.CALL, 0));getUploadResultById_args args = new getUploadResultById_args();args.setUploadId(uploadId);args.write(prot);prot.writeMessageEnd();}public List<CompetitorPricing> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getUploadResultById();}}public void addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<addAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException {checkReady();addAmazonPromotion_call method_call = new addAmazonPromotion_call(amazonPromotions, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addAmazonPromotion_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<String,AmazonPromotion> amazonPromotions;public addAmazonPromotion_call(Map<String,AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<addAmazonPromotion_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.amazonPromotions = amazonPromotions;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAmazonPromotion", org.apache.thrift.protocol.TMessageType.CALL, 0));addAmazonPromotion_args args = new addAmazonPromotion_args();args.setAmazonPromotions(amazonPromotions);args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addAmazonPromotion();}}public void getAmazonPromotion(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAmazonPromotion_call method_call = new getAmazonPromotion_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAmazonPromotion_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDate;private long endDate;public getAmazonPromotion_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAmazonPromotion_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.startDate = startDate;this.endDate = endDate;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonPromotion", org.apache.thrift.protocol.TMessageType.CALL, 0));getAmazonPromotion_args args = new getAmazonPromotion_args();args.setStartDate(startDate);args.setEndDate(endDate);args.write(prot);prot.writeMessageEnd();}public List<AmazonPromotion> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAmazonPromotion();}}public void updateAmazonPromotion(List<AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<updateAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateAmazonPromotion_call method_call = new updateAmazonPromotion_call(amazonPromotions, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateAmazonPromotion_call extends org.apache.thrift.async.TAsyncMethodCall {private List<AmazonPromotion> amazonPromotions;public updateAmazonPromotion_call(List<AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<updateAmazonPromotion_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.amazonPromotions = amazonPromotions;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAmazonPromotion", org.apache.thrift.protocol.TMessageType.CALL, 0));updateAmazonPromotion_args args = new updateAmazonPromotion_args();args.setAmazonPromotions(amazonPromotions);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateAmazonPromotion();}}public void markPartiallyActive(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<markPartiallyActive_call> resultHandler) throws org.apache.thrift.TException {checkReady();markPartiallyActive_call method_call = new markPartiallyActive_call(itemId, categoryId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markPartiallyActive_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long categoryId;public markPartiallyActive_call(long itemId, long categoryId, org.apache.thrift.async.AsyncMethodCallback<markPartiallyActive_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.categoryId = categoryId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPartiallyActive", org.apache.thrift.protocol.TMessageType.CALL, 0));markPartiallyActive_args args = new markPartiallyActive_args();args.setItemId(itemId);args.setCategoryId(categoryId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markPartiallyActive();}}public void updateItemStateVat(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<updateItemStateVat_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateItemStateVat_call method_call = new updateItemStateVat_call(itemId, statevat, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateItemStateVat_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private Map<Long,Double> statevat;public updateItemStateVat_call(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<updateItemStateVat_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.statevat = statevat;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStateVat", org.apache.thrift.protocol.TMessageType.CALL, 0));updateItemStateVat_args args = new updateItemStateVat_args();args.setItemId(itemId);args.setStatevat(statevat);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateItemStateVat();}}public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();getExAffiliateItemInfo_call method_call = new getExAffiliateItemInfo_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getExAffiliateItemInfo_call extends org.apache.thrift.async.TAsyncMethodCall {public getExAffiliateItemInfo_call(org.apache.thrift.async.AsyncMethodCallback<getExAffiliateItemInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getExAffiliateItemInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));getExAffiliateItemInfo_args args = new getExAffiliateItemInfo_args();args.write(prot);prot.writeMessageEnd();}public Map<Long,ExclusiveAffiliateItemInfo> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getExAffiliateItemInfo();}}public void getAllItemstoListOnFbg(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbg_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemstoListOnFbg_call method_call = new getAllItemstoListOnFbg_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemstoListOnFbg_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllItemstoListOnFbg_call(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbg_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemstoListOnFbg", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemstoListOnFbg_args args = new getAllItemstoListOnFbg_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemstoListOnFbg();}}public void getAllFbgListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbgListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFbgListedItems_call method_call = new getAllFbgListedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFbgListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFbgListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbgListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbgListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFbgListedItems_args args = new getAllFbgListedItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFbgListedItems();}}public void checkServices(Map<Long,Map<String,Long>> lines, org.apache.thrift.async.AsyncMethodCallback<checkServices_call> resultHandler) throws org.apache.thrift.TException {checkReady();checkServices_call method_call = new checkServices_call(lines, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class checkServices_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<Long,Map<String,Long>> lines;public checkServices_call(Map<Long,Map<String,Long>> lines, org.apache.thrift.async.AsyncMethodCallback<checkServices_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.lines = lines;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkServices", org.apache.thrift.protocol.TMessageType.CALL, 0));checkServices_args args = new checkServices_args();args.setLines(lines);args.write(prot);prot.writeMessageEnd();}public Map<Long,Map<String,Long>> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_checkServices();}}public void addHsItem(List<HsItem> hsItems, org.apache.thrift.async.AsyncMethodCallback<addHsItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addHsItem_call method_call = new addHsItem_call(hsItems, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addHsItem_call extends org.apache.thrift.async.TAsyncMethodCall {private List<HsItem> hsItems;public addHsItem_call(List<HsItem> hsItems, org.apache.thrift.async.AsyncMethodCallback<addHsItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.hsItems = hsItems;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addHsItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addHsItem_args args = new addHsItem_args();args.setHsItems(hsItems);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addHsItem();}}public void getHsItem(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<getHsItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getHsItem_call method_call = new getHsItem_call(hsItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getHsItem_call extends org.apache.thrift.async.TAsyncMethodCall {private String hsItemId;public getHsItem_call(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<getHsItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.hsItemId = hsItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHsItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getHsItem_args args = new getHsItem_args();args.setHsItemId(hsItemId);args.write(prot);prot.writeMessageEnd();}public HsItem getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getHsItem();}}public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<updateHsItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateHsItem_call method_call = new updateHsItem_call(hsItem, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateHsItem_call extends org.apache.thrift.async.TAsyncMethodCall {private HsItem hsItem;public updateHsItem_call(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<updateHsItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.hsItem = hsItem;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateHsItem", org.apache.thrift.protocol.TMessageType.CALL, 0));updateHsItem_args args = new updateHsItem_args();args.setHsItem(hsItem);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateHsItem();}}public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPricingForDtr_call method_call = new getPricingForDtr_call(catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPricingForDtr_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalogItemId;public getPricingForDtr_call(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<getPricingForDtr_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPricingForDtr", org.apache.thrift.protocol.TMessageType.CALL, 0));getPricingForDtr_args args = new getPricingForDtr_args();args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public DtrPricing getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPricingForDtr();}}public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemstoListOnFbd_call method_call = new getAllItemstoListOnFbd_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemstoListOnFbd_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllItemstoListOnFbd_call(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbd_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemstoListOnFbd", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemstoListOnFbd_args args = new getAllItemstoListOnFbd_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemstoListOnFbd();}}public void getAllFbdListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbdListedItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFbdListedItems_call method_call = new getAllFbdListedItems_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFbdListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllFbdListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbdListedItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbdListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFbdListedItems_args args = new getAllFbdListedItems_args();args.write(prot);prot.writeMessageEnd();}public List<Amazonlisted> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFbdListedItems();}}public void getBulkPricingForItems(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingForItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBulkPricingForItems_call method_call = new getBulkPricingForItems_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBulkPricingForItems_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;public getBulkPricingForItems_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingForItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBulkPricingForItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getBulkPricingForItems_args args = new getBulkPricingForItems_args();args.setItemIds(itemIds);args.write(prot);prot.writeMessageEnd();}public Map<Long,List<BulkItemPricing>> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBulkPricingForItems();}}public void addBulkPricingForItem(BulkItemPricing bulkItemPricing, org.apache.thrift.async.AsyncMethodCallback<addBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addBulkPricingForItem_call method_call = new addBulkPricingForItem_call(bulkItemPricing, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addBulkPricingForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private BulkItemPricing bulkItemPricing;public addBulkPricingForItem_call(BulkItemPricing bulkItemPricing, org.apache.thrift.async.AsyncMethodCallback<addBulkPricingForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bulkItemPricing = bulkItemPricing;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBulkPricingForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addBulkPricingForItem_args args = new addBulkPricingForItem_args();args.setBulkItemPricing(bulkItemPricing);args.write(prot);prot.writeMessageEnd();}public BulkItemPricing getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addBulkPricingForItem();}}public void deleteBulkPricingForItemById(long id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItemById_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteBulkPricingForItemById_call method_call = new deleteBulkPricingForItemById_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteBulkPricingForItemById_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public deleteBulkPricingForItemById_call(long id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItemById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBulkPricingForItemById", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteBulkPricingForItemById_args args = new deleteBulkPricingForItemById_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteBulkPricingForItemById();}}public void deleteBulkPricingForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteBulkPricingForItem_call method_call = new deleteBulkPricingForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteBulkPricingForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public deleteBulkPricingForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBulkPricingForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteBulkPricingForItem_args args = new deleteBulkPricingForItem_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteBulkPricingForItem();}}public void getBulkPricingByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingByItemId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBulkPricingByItemId_call method_call = new getBulkPricingByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBulkPricingByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getBulkPricingByItemId_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingByItemId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBulkPricingByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));getBulkPricingByItemId_args args = new getBulkPricingByItemId_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public List<BulkItemPricing> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBulkPricingByItemId();}}public void updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<updateBulkPricesOnProduction_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateBulkPricesOnProduction_call method_call = new updateBulkPricesOnProduction_call(item_id, bulkItemPricingList, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateBulkPricesOnProduction_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private List<BulkItemPricing> bulkItemPricingList;public updateBulkPricesOnProduction_call(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<updateBulkPricesOnProduction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.bulkItemPricingList = bulkItemPricingList;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBulkPricesOnProduction", org.apache.thrift.protocol.TMessageType.CALL, 0));updateBulkPricesOnProduction_args args = new updateBulkPricesOnProduction_args();args.setItem_id(item_id);args.setBulkItemPricingList(bulkItemPricingList);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateBulkPricesOnProduction();}}public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCartByValue_call method_call = new getCartByValue_call(cartIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCartByValue_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> cartIds;public getCartByValue_call(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.cartIds = cartIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartByValue", org.apache.thrift.protocol.TMessageType.CALL, 0));getCartByValue_args args = new getCartByValue_args();args.setCartIds(cartIds);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCartByValue();}}public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<updateItemPricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateItemPricing_call method_call = new updateItemPricing_call(itemPricingList, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {private List<ItemPricing> itemPricingList;public updateItemPricing_call(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<updateItemPricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemPricingList = itemPricingList;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));updateItemPricing_args args = new updateItemPricing_args();args.setItemPricingList(itemPricingList);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateItemPricing();}}public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException {checkReady();bulkUpdateCatalog_call method_call = new bulkUpdateCatalog_call(bulkUploadCatalog, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class bulkUpdateCatalog_call extends org.apache.thrift.async.TAsyncMethodCall {private List<BulkUploadCatalog> bulkUploadCatalog;public bulkUpdateCatalog_call(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<bulkUpdateCatalog_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.bulkUploadCatalog = bulkUploadCatalog;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("bulkUpdateCatalog", org.apache.thrift.protocol.TMessageType.CALL, 0));bulkUpdateCatalog_args args = new bulkUpdateCatalog_args();args.setBulkUploadCatalog(bulkUploadCatalog);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_bulkUpdateCatalog();}}public void getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getWarrantyInfoForItem_call method_call = new getWarrantyInfoForItem_call(catalogItemId, itemCondition, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getWarrantyInfoForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalogItemId;private ItemCondition itemCondition;public getWarrantyInfoForItem_call(long catalogItemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalogItemId = catalogItemId;this.itemCondition = itemCondition;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarrantyInfoForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();args.setCatalogItemId(catalogItemId);args.setItemCondition(itemCondition);args.write(prot);prot.writeMessageEnd();}public Map<String,Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getWarrantyInfoForItem();}}public void getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItemList_call> resultHandler) throws org.apache.thrift.TException {checkReady();getWarrantyInfoForItemList_call method_call = new getWarrantyInfoForItemList_call(catalogItemIds, itemCondition, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getWarrantyInfoForItemList_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> catalogItemIds;private ItemCondition itemCondition;public getWarrantyInfoForItemList_call(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItemList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.catalogItemIds = catalogItemIds;this.itemCondition = itemCondition;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarrantyInfoForItemList", org.apache.thrift.protocol.TMessageType.CALL, 0));getWarrantyInfoForItemList_args args = new getWarrantyInfoForItemList_args();args.setCatalogItemIds(catalogItemIds);args.setItemCondition(itemCondition);args.write(prot);prot.writeMessageEnd();}public Map<Long,Map<String,Long>> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getWarrantyInfoForItemList();}}public void getStateTaxRate(List<Long> itemIds, long stateId, org.apache.thrift.async.AsyncMethodCallback<getStateTaxRate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getStateTaxRate_call method_call = new getStateTaxRate_call(itemIds, stateId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getStateTaxRate_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;private long stateId;public getStateTaxRate_call(List<Long> itemIds, long stateId, org.apache.thrift.async.AsyncMethodCallback<getStateTaxRate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;this.stateId = stateId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStateTaxRate", org.apache.thrift.protocol.TMessageType.CALL, 0));getStateTaxRate_args args = new getStateTaxRate_args();args.setItemIds(itemIds);args.setStateId(stateId);args.write(prot);prot.writeMessageEnd();}public Map<Long,GstRate> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getStateTaxRate();}}public void getIgstTaxRate(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getIgstTaxRate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getIgstTaxRate_call method_call = new getIgstTaxRate_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getIgstTaxRate_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;public getIgstTaxRate_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getIgstTaxRate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgstTaxRate", org.apache.thrift.protocol.TMessageType.CALL, 0));getIgstTaxRate_args args = new getIgstTaxRate_args();args.setItemIds(itemIds);args.write(prot);prot.writeMessageEnd();}public Map<Long,Double> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getIgstTaxRate();}}public void persistGstRate(List<StateGstRate> stateGstRates, org.apache.thrift.async.AsyncMethodCallback<persistGstRate_call> resultHandler) throws org.apache.thrift.TException {checkReady();persistGstRate_call method_call = new persistGstRate_call(stateGstRates, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class persistGstRate_call extends org.apache.thrift.async.TAsyncMethodCall {private List<StateGstRate> stateGstRates;public persistGstRate_call(List<StateGstRate> stateGstRates, org.apache.thrift.async.AsyncMethodCallback<persistGstRate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.stateGstRates = stateGstRates;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("persistGstRate", org.apache.thrift.protocol.TMessageType.CALL, 0));persistGstRate_args args = new persistGstRate_args();args.setStateGstRates(stateGstRates);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_persistGstRate();}}public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getHsnCodesByCategory_call method_call = new getHsnCodesByCategory_call(categoryId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getHsnCodesByCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private long categoryId;public getHsnCodesByCategory_call(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getHsnCodesByCategory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.categoryId = categoryId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHsnCodesByCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));getHsnCodesByCategory_args args = new getHsnCodesByCategory_args();args.setCategoryId(categoryId);args.write(prot);prot.writeMessageEnd();}public List<CategoryHsnCode> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getHsnCodesByCategory();}}public void getAllFofoDeals(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<getAllFofoDeals_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllFofoDeals_call method_call = new getAllFofoDeals_call(itemIds, tagIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllFofoDeals_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;private List<Long> tagIds;public getAllFofoDeals_call(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<getAllFofoDeals_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;this.tagIds = tagIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFofoDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllFofoDeals_args args = new getAllFofoDeals_args();args.setItemIds(itemIds);args.setTagIds(tagIds);args.write(prot);prot.writeMessageEnd();}public Map<Long,Double> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllFofoDeals();}}}public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(I iface) {super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));}protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {super(iface, getProcessMap(processMap));}private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {processMap.put("addItem", new addItem());processMap.put("updateItem", new updateItem());processMap.put("isActive", new isActive());processMap.put("getItemsStatus", new getItemsStatus());processMap.put("getItemStatusDescription", new getItemStatusDescription());processMap.put("startItemOn", new startItemOn());processMap.put("retireItemOn", new retireItemOn());processMap.put("changeItemStatus", new changeItemStatus());processMap.put("getItem", new getItem());processMap.put("getItems", new getItems());processMap.put("getItemsByCatalogId", new getItemsByCatalogId());processMap.put("getValidItemsByCatalogId", new getValidItemsByCatalogId());processMap.put("getAllItems", new getAllItems());processMap.put("getAllItemsByStatus", new getAllItemsByStatus());processMap.put("markItemAsContentComplete", new markItemAsContentComplete());processMap.put("getVatRates", new getVatRates());processMap.put("getAllItemsInRange", new getAllItemsInRange());processMap.put("getAllItemsByStatusInRange", new getAllItemsByStatusInRange());processMap.put("getItemCountByStatus", new getItemCountByStatus());processMap.put("getBestSellers", new getBestSellers());processMap.put("getBestSellersCatalogIds", new getBestSellersCatalogIds());processMap.put("getBestSellersCount", new getBestSellersCount());processMap.put("getBestDeals", new getBestDeals());processMap.put("getBestDealsCatalogIds", new getBestDealsCatalogIds());processMap.put("getBestDealsCount", new getBestDealsCount());processMap.put("getComingSoon", new getComingSoon());processMap.put("getComingSoonCatalogIds", new getComingSoonCatalogIds());processMap.put("getComingSoonCount", new getComingSoonCount());processMap.put("getLatestArrivals", new getLatestArrivals());processMap.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());processMap.put("getLatestArrivalsCount", new getLatestArrivalsCount());processMap.put("generateNewEntityID", new generateNewEntityID());processMap.put("addCategory", new addCategory());processMap.put("getCategory", new getCategory());processMap.put("getAllCategories", new getAllCategories());processMap.put("getAllSimilarItems", new getAllSimilarItems());processMap.put("addSimilarItem", new addSimilarItem());processMap.put("addTag", new addTag());processMap.put("deleteEntityTag", new deleteEntityTag());processMap.put("deleteTag", new deleteTag());processMap.put("getAllTags", new getAllTags());processMap.put("getAllEntitiesByTagName", new getAllEntitiesByTagName());processMap.put("getAllEntityTags", new getAllEntityTags());processMap.put("addBanner", new addBanner());processMap.put("updateBanner", new updateBanner());processMap.put("getAllBanners", new getAllBanners());processMap.put("deleteBanner", new deleteBanner());processMap.put("getBannerDetails", new getBannerDetails());processMap.put("getActiveBanners", new getActiveBanners());processMap.put("addBannerMap", new addBannerMap());processMap.put("updateBannerMap", new updateBannerMap());processMap.put("deleteBannerMap", new deleteBannerMap());processMap.put("getBannerMapDetails", new getBannerMapDetails());processMap.put("addBannerUri", new addBannerUri());processMap.put("getUriMapping", new getUriMapping());processMap.put("addCampaign", new addCampaign());processMap.put("getCampaigns", new getCampaigns());processMap.put("deleteCampaign", new deleteCampaign());processMap.put("getAllCampaigns", new getAllCampaigns());processMap.put("getActiveBannersForMobileSite", new getActiveBannersForMobileSite());processMap.put("deleteSimilarItem", new deleteSimilarItem());processMap.put("checkSimilarItem", new checkSimilarItem());processMap.put("validateRiskyStatus", new validateRiskyStatus());processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());processMap.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());processMap.put("getItemsForMasterSheet", new getItemsForMasterSheet());processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());processMap.put("addProductNotification", new addProductNotification());processMap.put("sendProductNotifications", new sendProductNotifications());processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());processMap.put("getAllBrands", new getAllBrands());processMap.put("getAllSources", new getAllSources());processMap.put("getItemPricingBySource", new getItemPricingBySource());processMap.put("addSourceItemPricing", new addSourceItemPricing());processMap.put("getAllSourcePricing", new getAllSourcePricing());processMap.put("getItemForSource", new getItemForSource());processMap.put("searchItemsInRange", new searchItemsInRange());processMap.put("getSearchResultCount", new getSearchResultCount());processMap.put("getProductNotifications", new getProductNotifications());processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());processMap.put("addAuthorizationLog", new addAuthorizationLog());processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());processMap.put("deleteVoucherForItem", new deleteVoucherForItem());processMap.put("getVoucherAmount", new getVoucherAmount());processMap.put("getAllItemVouchers", new getAllItemVouchers());processMap.put("isValidCatalogItemId", new isValidCatalogItemId());processMap.put("getVatPercentageForItem", new getVatPercentageForItem());processMap.put("getVatAmountForItem", new getVatAmountForItem());processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());processMap.put("getAllAliveItems", new getAllAliveItems());processMap.put("getInsuranceAmount", new getInsuranceAmount());processMap.put("getInsurer", new getInsurer());processMap.put("getAllInsurers", new getAllInsurers());processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());processMap.put("getFreebieForItem", new getFreebieForItem());processMap.put("addOrUpdateFreebieForItem", new addOrUpdateFreebieForItem());processMap.put("addOrUpdateBrandInfo", new addOrUpdateBrandInfo());processMap.put("getBrandInfo", new getBrandInfo());processMap.put("getStorePricing", new getStorePricing());processMap.put("getStorePricings", new getStorePricings());processMap.put("updateStorePricing", new updateStorePricing());processMap.put("getAllAmazonListedItems", new getAllAmazonListedItems());processMap.put("searchAmazonItems", new searchAmazonItems());processMap.put("getAmazonSearchResultCount", new getAmazonSearchResultCount());processMap.put("getCountForAmazonlistedItems", new getCountForAmazonlistedItems());processMap.put("getAmazonItemDetails", new getAmazonItemDetails());processMap.put("updateAmazonItemDetails", new updateAmazonItemDetails());processMap.put("addAmazonItem", new addAmazonItem());processMap.put("getAsinItems", new getAsinItems());processMap.put("getAllFbaListedItems", new getAllFbaListedItems());processMap.put("getAllNonFbaListedItems", new getAllNonFbaListedItems());processMap.put("updateItemInventory", new updateItemInventory());processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());processMap.put("getAllParentCategories", new getAllParentCategories());processMap.put("addPageViewEvent", new addPageViewEvent());processMap.put("addCartEvent", new addCartEvent());processMap.put("addEbayItem", new addEbayItem());processMap.put("getEbayItem", new getEbayItem());processMap.put("updateEbayItem", new updateEbayItem());processMap.put("getAmazonListedItems", new getAmazonListedItems());processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());processMap.put("updateAsin", new updateAsin());processMap.put("addOrUpdateSnapdealItem", new addOrUpdateSnapdealItem());processMap.put("getSnapdealItem", new getSnapdealItem());processMap.put("getSnapdealItemDetails", new getSnapdealItemDetails());processMap.put("getAllSnapdealItems", new getAllSnapdealItems());processMap.put("getSnapdealItems", new getSnapdealItems());processMap.put("searchSnapdealItems", new searchSnapdealItems());processMap.put("getCountForSnapdealItems", new getCountForSnapdealItems());processMap.put("getSnapdealSearchResultCount", new getSnapdealSearchResultCount());processMap.put("getPrefferedInsurerForItem", new getPrefferedInsurerForItem());processMap.put("getSnapdealItembySkuAtSnapdeal", new getSnapdealItembySkuAtSnapdeal());processMap.put("getProductFeedSubmit", new getProductFeedSubmit());processMap.put("addProductFeedSubmit", new addProductFeedSubmit());processMap.put("updateProductFeedSubmit", new updateProductFeedSubmit());processMap.put("deleteProductFeedSubmit", new deleteProductFeedSubmit());processMap.put("getAllProductFeedSubmit", new getAllProductFeedSubmit());processMap.put("getMarketplacedetailsForItem", new getMarketplacedetailsForItem());processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());processMap.put("getCostingForMarketplace", new getCostingForMarketplace());processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());processMap.put("updateItemHoldInventory", new updateItemHoldInventory());processMap.put("updateNlcAtMarketplaces", new updateNlcAtMarketplaces());processMap.put("getAllFlipkartItems", new getAllFlipkartItems());processMap.put("addOrUpdateFlipkartItem", new addOrUpdateFlipkartItem());processMap.put("getFlipkartItem", new getFlipkartItem());processMap.put("getFlipkartItemDetails", new getFlipkartItemDetails());processMap.put("getFlipkartItems", new getFlipkartItems());processMap.put("searchFlipkartItems", new searchFlipkartItems());processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());processMap.put("getAllFkItems", new getAllFkItems());processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());processMap.put("getMarketplaceHistory", new getMarketplaceHistory());processMap.put("getAllFbbListedItems", new getAllFbbListedItems());processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());processMap.put("getCountForMarketplaceHistory", new getCountForMarketplaceHistory());processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());processMap.put("getPrivateDealDetails", new getPrivateDealDetails());processMap.put("getPrivateDealItems", new getPrivateDealItems());processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());processMap.put("getPrivateDealsCount", new getPrivateDealsCount());processMap.put("getAmazonOutSyncItems", new getAmazonOutSyncItems());processMap.put("getAllPrivateDealsComparison", new getAllPrivateDealsComparison());processMap.put("getAllSnapdealMarketplaceItem", new getAllSnapdealMarketplaceItem());processMap.put("getAllFlipkartMarketplaceItem", new getAllFlipkartMarketplaceItem());processMap.put("addCompetitorScraping", new addCompetitorScraping());processMap.put("getPreviousCompetitorScraping", new getPreviousCompetitorScraping());processMap.put("getUploadResultById", new getUploadResultById());processMap.put("addAmazonPromotion", new addAmazonPromotion());processMap.put("getAmazonPromotion", new getAmazonPromotion());processMap.put("updateAmazonPromotion", new updateAmazonPromotion());processMap.put("markPartiallyActive", new markPartiallyActive());processMap.put("updateItemStateVat", new updateItemStateVat());processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());processMap.put("getAllItemstoListOnFbg", new getAllItemstoListOnFbg());processMap.put("getAllFbgListedItems", new getAllFbgListedItems());processMap.put("checkServices", new checkServices());processMap.put("addHsItem", new addHsItem());processMap.put("getHsItem", new getHsItem());processMap.put("updateHsItem", new updateHsItem());processMap.put("getPricingForDtr", new getPricingForDtr());processMap.put("getAllItemstoListOnFbd", new getAllItemstoListOnFbd());processMap.put("getAllFbdListedItems", new getAllFbdListedItems());processMap.put("getBulkPricingForItems", new getBulkPricingForItems());processMap.put("addBulkPricingForItem", new addBulkPricingForItem());processMap.put("deleteBulkPricingForItemById", new deleteBulkPricingForItemById());processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());processMap.put("getCartByValue", new getCartByValue());processMap.put("updateItemPricing", new updateItemPricing());processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());processMap.put("getStateTaxRate", new getStateTaxRate());processMap.put("getIgstTaxRate", new getIgstTaxRate());processMap.put("persistGstRate", new persistGstRate());processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());processMap.put("getAllFofoDeals", new getAllFofoDeals());return processMap;}private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {public addItem() {super("addItem");}protected addItem_args getEmptyArgsInstance() {return new addItem_args();}protected addItem_result getResult(I iface, addItem_args args) throws org.apache.thrift.TException {addItem_result result = new addItem_result();try {result.success = iface.addItem(args.item);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class updateItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItem_args> {public updateItem() {super("updateItem");}protected updateItem_args getEmptyArgsInstance() {return new updateItem_args();}protected updateItem_result getResult(I iface, updateItem_args args) throws org.apache.thrift.TException {updateItem_result result = new updateItem_result();try {result.success = iface.updateItem(args.item);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class isActive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isActive_args> {public isActive() {super("isActive");}protected isActive_args getEmptyArgsInstance() {return new isActive_args();}protected isActive_result getResult(I iface, isActive_args args) throws org.apache.thrift.TException {isActive_result result = new isActive_result();try {result.success = iface.isActive(args.itemId);} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getItemsStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsStatus_args> {public getItemsStatus() {super("getItemsStatus");}protected getItemsStatus_args getEmptyArgsInstance() {return new getItemsStatus_args();}protected getItemsStatus_result getResult(I iface, getItemsStatus_args args) throws org.apache.thrift.TException {getItemsStatus_result result = new getItemsStatus_result();try {result.success = iface.getItemsStatus(args.itemIds);} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getItemStatusDescription<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStatusDescription_args> {public getItemStatusDescription() {super("getItemStatusDescription");}protected getItemStatusDescription_args getEmptyArgsInstance() {return new getItemStatusDescription_args();}protected getItemStatusDescription_result getResult(I iface, getItemStatusDescription_args args) throws org.apache.thrift.TException {getItemStatusDescription_result result = new getItemStatusDescription_result();try {result.success = iface.getItemStatusDescription(args.itemId);} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class startItemOn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startItemOn_args> {public startItemOn() {super("startItemOn");}protected startItemOn_args getEmptyArgsInstance() {return new startItemOn_args();}protected startItemOn_result getResult(I iface, startItemOn_args args) throws org.apache.thrift.TException {startItemOn_result result = new startItemOn_result();try {iface.startItemOn(args.item_id, args.timestamp);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class retireItemOn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireItemOn_args> {public retireItemOn() {super("retireItemOn");}protected retireItemOn_args getEmptyArgsInstance() {return new retireItemOn_args();}protected retireItemOn_result getResult(I iface, retireItemOn_args args) throws org.apache.thrift.TException {retireItemOn_result result = new retireItemOn_result();try {iface.retireItemOn(args.item_id, args.timestamp);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {public changeItemStatus() {super("changeItemStatus");}protected changeItemStatus_args getEmptyArgsInstance() {return new changeItemStatus_args();}protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {changeItemStatus_result result = new changeItemStatus_result();try {iface.changeItemStatus(args.item_id, args.timestamp, args.newstatus);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItem_args> {public getItem() {super("getItem");}protected getItem_args getEmptyArgsInstance() {return new getItem_args();}protected getItem_result getResult(I iface, getItem_args args) throws org.apache.thrift.TException {getItem_result result = new getItem_result();try {result.success = iface.getItem(args.item_id);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItems_args> {public getItems() {super("getItems");}protected getItems_args getEmptyArgsInstance() {return new getItems_args();}protected getItems_result getResult(I iface, getItems_args args) throws org.apache.thrift.TException {getItems_result result = new getItems_result();try {result.success = iface.getItems(args.item_ids);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItemsByCatalogId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByCatalogId_args> {public getItemsByCatalogId() {super("getItemsByCatalogId");}protected getItemsByCatalogId_args getEmptyArgsInstance() {return new getItemsByCatalogId_args();}protected getItemsByCatalogId_result getResult(I iface, getItemsByCatalogId_args args) throws org.apache.thrift.TException {getItemsByCatalogId_result result = new getItemsByCatalogId_result();try {result.success = iface.getItemsByCatalogId(args.catalog_item_id);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getValidItemsByCatalogId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidItemsByCatalogId_args> {public getValidItemsByCatalogId() {super("getValidItemsByCatalogId");}protected getValidItemsByCatalogId_args getEmptyArgsInstance() {return new getValidItemsByCatalogId_args();}protected getValidItemsByCatalogId_result getResult(I iface, getValidItemsByCatalogId_args args) throws org.apache.thrift.TException {getValidItemsByCatalogId_result result = new getValidItemsByCatalogId_result();try {result.success = iface.getValidItemsByCatalogId(args.catalog_item_id);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItems_args> {public getAllItems() {super("getAllItems");}protected getAllItems_args getEmptyArgsInstance() {return new getAllItems_args();}protected getAllItems_result getResult(I iface, getAllItems_args args) throws org.apache.thrift.TException {getAllItems_result result = new getAllItems_result();try {result.success = iface.getAllItems(args.isActive);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItemsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsByStatus_args> {public getAllItemsByStatus() {super("getAllItemsByStatus");}protected getAllItemsByStatus_args getEmptyArgsInstance() {return new getAllItemsByStatus_args();}protected getAllItemsByStatus_result getResult(I iface, getAllItemsByStatus_args args) throws org.apache.thrift.TException {getAllItemsByStatus_result result = new getAllItemsByStatus_result();try {result.success = iface.getAllItemsByStatus(args.itemStatus);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class markItemAsContentComplete<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemAsContentComplete_args> {public markItemAsContentComplete() {super("markItemAsContentComplete");}protected markItemAsContentComplete_args getEmptyArgsInstance() {return new markItemAsContentComplete_args();}protected markItemAsContentComplete_result getResult(I iface, markItemAsContentComplete_args args) throws org.apache.thrift.TException {markItemAsContentComplete_result result = new markItemAsContentComplete_result();try {result.success = iface.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getVatRates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatRates_args> {public getVatRates() {super("getVatRates");}protected getVatRates_args getEmptyArgsInstance() {return new getVatRates_args();}protected getVatRates_result getResult(I iface, getVatRates_args args) throws org.apache.thrift.TException {getVatRates_result result = new getVatRates_result();try {result.success = iface.getVatRates(args.itemId, args.categoryId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItemsInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsInRange_args> {public getAllItemsInRange() {super("getAllItemsInRange");}protected getAllItemsInRange_args getEmptyArgsInstance() {return new getAllItemsInRange_args();}protected getAllItemsInRange_result getResult(I iface, getAllItemsInRange_args args) throws org.apache.thrift.TException {getAllItemsInRange_result result = new getAllItemsInRange_result();try {result.success = iface.getAllItemsInRange(args.offset, args.limit);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItemsByStatusInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsByStatusInRange_args> {public getAllItemsByStatusInRange() {super("getAllItemsByStatusInRange");}protected getAllItemsByStatusInRange_args getEmptyArgsInstance() {return new getAllItemsByStatusInRange_args();}protected getAllItemsByStatusInRange_result getResult(I iface, getAllItemsByStatusInRange_args args) throws org.apache.thrift.TException {getAllItemsByStatusInRange_result result = new getAllItemsByStatusInRange_result();try {result.success = iface.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItemCountByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemCountByStatus_args> {public getItemCountByStatus() {super("getItemCountByStatus");}protected getItemCountByStatus_args getEmptyArgsInstance() {return new getItemCountByStatus_args();}protected getItemCountByStatus_result getResult(I iface, getItemCountByStatus_args args) throws org.apache.thrift.TException {getItemCountByStatus_result result = new getItemCountByStatus_result();result.success = iface.getItemCountByStatus(args.useStatus, args.itemStatus);result.setSuccessIsSet(true);return result;}}private static class getBestSellers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellers_args> {public getBestSellers() {super("getBestSellers");}protected getBestSellers_args getEmptyArgsInstance() {return new getBestSellers_args();}protected getBestSellers_result getResult(I iface, getBestSellers_args args) throws org.apache.thrift.TException {getBestSellers_result result = new getBestSellers_result();try {result.success = iface.getBestSellers();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getBestSellersCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellersCatalogIds_args> {public getBestSellersCatalogIds() {super("getBestSellersCatalogIds");}protected getBestSellersCatalogIds_args getEmptyArgsInstance() {return new getBestSellersCatalogIds_args();}protected getBestSellersCatalogIds_result getResult(I iface, getBestSellersCatalogIds_args args) throws org.apache.thrift.TException {getBestSellersCatalogIds_result result = new getBestSellersCatalogIds_result();try {result.success = iface.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getBestSellersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellersCount_args> {public getBestSellersCount() {super("getBestSellersCount");}protected getBestSellersCount_args getEmptyArgsInstance() {return new getBestSellersCount_args();}protected getBestSellersCount_result getResult(I iface, getBestSellersCount_args args) throws org.apache.thrift.TException {getBestSellersCount_result result = new getBestSellersCount_result();try {result.success = iface.getBestSellersCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getBestDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDeals_args> {public getBestDeals() {super("getBestDeals");}protected getBestDeals_args getEmptyArgsInstance() {return new getBestDeals_args();}protected getBestDeals_result getResult(I iface, getBestDeals_args args) throws org.apache.thrift.TException {getBestDeals_result result = new getBestDeals_result();try {result.success = iface.getBestDeals();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getBestDealsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDealsCatalogIds_args> {public getBestDealsCatalogIds() {super("getBestDealsCatalogIds");}protected getBestDealsCatalogIds_args getEmptyArgsInstance() {return new getBestDealsCatalogIds_args();}protected getBestDealsCatalogIds_result getResult(I iface, getBestDealsCatalogIds_args args) throws org.apache.thrift.TException {getBestDealsCatalogIds_result result = new getBestDealsCatalogIds_result();try {result.success = iface.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getBestDealsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDealsCount_args> {public getBestDealsCount() {super("getBestDealsCount");}protected getBestDealsCount_args getEmptyArgsInstance() {return new getBestDealsCount_args();}protected getBestDealsCount_result getResult(I iface, getBestDealsCount_args args) throws org.apache.thrift.TException {getBestDealsCount_result result = new getBestDealsCount_result();try {result.success = iface.getBestDealsCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getComingSoon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoon_args> {public getComingSoon() {super("getComingSoon");}protected getComingSoon_args getEmptyArgsInstance() {return new getComingSoon_args();}protected getComingSoon_result getResult(I iface, getComingSoon_args args) throws org.apache.thrift.TException {getComingSoon_result result = new getComingSoon_result();try {result.success = iface.getComingSoon();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getComingSoonCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoonCatalogIds_args> {public getComingSoonCatalogIds() {super("getComingSoonCatalogIds");}protected getComingSoonCatalogIds_args getEmptyArgsInstance() {return new getComingSoonCatalogIds_args();}protected getComingSoonCatalogIds_result getResult(I iface, getComingSoonCatalogIds_args args) throws org.apache.thrift.TException {getComingSoonCatalogIds_result result = new getComingSoonCatalogIds_result();try {result.success = iface.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getComingSoonCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoonCount_args> {public getComingSoonCount() {super("getComingSoonCount");}protected getComingSoonCount_args getEmptyArgsInstance() {return new getComingSoonCount_args();}protected getComingSoonCount_result getResult(I iface, getComingSoonCount_args args) throws org.apache.thrift.TException {getComingSoonCount_result result = new getComingSoonCount_result();try {result.success = iface.getComingSoonCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getLatestArrivals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivals_args> {public getLatestArrivals() {super("getLatestArrivals");}protected getLatestArrivals_args getEmptyArgsInstance() {return new getLatestArrivals_args();}protected getLatestArrivals_result getResult(I iface, getLatestArrivals_args args) throws org.apache.thrift.TException {getLatestArrivals_result result = new getLatestArrivals_result();try {result.success = iface.getLatestArrivals();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getLatestArrivalsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivalsCatalogIds_args> {public getLatestArrivalsCatalogIds() {super("getLatestArrivalsCatalogIds");}protected getLatestArrivalsCatalogIds_args getEmptyArgsInstance() {return new getLatestArrivalsCatalogIds_args();}protected getLatestArrivalsCatalogIds_result getResult(I iface, getLatestArrivalsCatalogIds_args args) throws org.apache.thrift.TException {getLatestArrivalsCatalogIds_result result = new getLatestArrivalsCatalogIds_result();try {result.success = iface.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getLatestArrivalsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivalsCount_args> {public getLatestArrivalsCount() {super("getLatestArrivalsCount");}protected getLatestArrivalsCount_args getEmptyArgsInstance() {return new getLatestArrivalsCount_args();}protected getLatestArrivalsCount_result getResult(I iface, getLatestArrivalsCount_args args) throws org.apache.thrift.TException {getLatestArrivalsCount_result result = new getLatestArrivalsCount_result();try {result.success = iface.getLatestArrivalsCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class generateNewEntityID<I extends Iface> extends org.apache.thrift.ProcessFunction<I, generateNewEntityID_args> {public generateNewEntityID() {super("generateNewEntityID");}protected generateNewEntityID_args getEmptyArgsInstance() {return new generateNewEntityID_args();}protected generateNewEntityID_result getResult(I iface, generateNewEntityID_args args) throws org.apache.thrift.TException {generateNewEntityID_result result = new generateNewEntityID_result();result.success = iface.generateNewEntityID();result.setSuccessIsSet(true);return result;}}private static class addCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCategory_args> {public addCategory() {super("addCategory");}protected addCategory_args getEmptyArgsInstance() {return new addCategory_args();}protected addCategory_result getResult(I iface, addCategory_args args) throws org.apache.thrift.TException {addCategory_result result = new addCategory_result();result.success = iface.addCategory(args.category);result.setSuccessIsSet(true);return result;}}private static class getCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCategory_args> {public getCategory() {super("getCategory");}protected getCategory_args getEmptyArgsInstance() {return new getCategory_args();}protected getCategory_result getResult(I iface, getCategory_args args) throws org.apache.thrift.TException {getCategory_result result = new getCategory_result();result.success = iface.getCategory(args.id);return result;}}private static class getAllCategories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllCategories_args> {public getAllCategories() {super("getAllCategories");}protected getAllCategories_args getEmptyArgsInstance() {return new getAllCategories_args();}protected getAllCategories_result getResult(I iface, getAllCategories_args args) throws org.apache.thrift.TException {getAllCategories_result result = new getAllCategories_result();result.success = iface.getAllCategories();return result;}}private static class getAllSimilarItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSimilarItems_args> {public getAllSimilarItems() {super("getAllSimilarItems");}protected getAllSimilarItems_args getEmptyArgsInstance() {return new getAllSimilarItems_args();}protected getAllSimilarItems_result getResult(I iface, getAllSimilarItems_args args) throws org.apache.thrift.TException {getAllSimilarItems_result result = new getAllSimilarItems_result();result.success = iface.getAllSimilarItems(args.itemId);return result;}}private static class addSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSimilarItem_args> {public addSimilarItem() {super("addSimilarItem");}protected addSimilarItem_args getEmptyArgsInstance() {return new addSimilarItem_args();}protected addSimilarItem_result getResult(I iface, addSimilarItem_args args) throws org.apache.thrift.TException {addSimilarItem_result result = new addSimilarItem_result();try {result.success = iface.addSimilarItem(args.itemId, args.catalogItemId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addTag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addTag_args> {public addTag() {super("addTag");}protected addTag_args getEmptyArgsInstance() {return new addTag_args();}protected addTag_result getResult(I iface, addTag_args args) throws org.apache.thrift.TException {addTag_result result = new addTag_result();result.success = iface.addTag(args.displayName, args.itemId);result.setSuccessIsSet(true);return result;}}private static class deleteEntityTag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteEntityTag_args> {public deleteEntityTag() {super("deleteEntityTag");}protected deleteEntityTag_args getEmptyArgsInstance() {return new deleteEntityTag_args();}protected deleteEntityTag_result getResult(I iface, deleteEntityTag_args args) throws org.apache.thrift.TException {deleteEntityTag_result result = new deleteEntityTag_result();result.success = iface.deleteEntityTag(args.displayName, args.itemId);result.setSuccessIsSet(true);return result;}}private static class deleteTag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteTag_args> {public deleteTag() {super("deleteTag");}protected deleteTag_args getEmptyArgsInstance() {return new deleteTag_args();}protected deleteTag_result getResult(I iface, deleteTag_args args) throws org.apache.thrift.TException {deleteTag_result result = new deleteTag_result();result.success = iface.deleteTag(args.displayName);result.setSuccessIsSet(true);return result;}}private static class getAllTags<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllTags_args> {public getAllTags() {super("getAllTags");}protected getAllTags_args getEmptyArgsInstance() {return new getAllTags_args();}protected getAllTags_result getResult(I iface, getAllTags_args args) throws org.apache.thrift.TException {getAllTags_result result = new getAllTags_result();result.success = iface.getAllTags();return result;}}private static class getAllEntitiesByTagName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllEntitiesByTagName_args> {public getAllEntitiesByTagName() {super("getAllEntitiesByTagName");}protected getAllEntitiesByTagName_args getEmptyArgsInstance() {return new getAllEntitiesByTagName_args();}protected getAllEntitiesByTagName_result getResult(I iface, getAllEntitiesByTagName_args args) throws org.apache.thrift.TException {getAllEntitiesByTagName_result result = new getAllEntitiesByTagName_result();result.success = iface.getAllEntitiesByTagName(args.displayName);return result;}}private static class getAllEntityTags<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllEntityTags_args> {public getAllEntityTags() {super("getAllEntityTags");}protected getAllEntityTags_args getEmptyArgsInstance() {return new getAllEntityTags_args();}protected getAllEntityTags_result getResult(I iface, getAllEntityTags_args args) throws org.apache.thrift.TException {getAllEntityTags_result result = new getAllEntityTags_result();result.success = iface.getAllEntityTags();return result;}}private static class addBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBanner_args> {public addBanner() {super("addBanner");}protected addBanner_args getEmptyArgsInstance() {return new addBanner_args();}protected addBanner_result getResult(I iface, addBanner_args args) throws org.apache.thrift.TException {addBanner_result result = new addBanner_result();result.success = iface.addBanner(args.bannerCongregate);result.setSuccessIsSet(true);return result;}}private static class updateBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBanner_args> {public updateBanner() {super("updateBanner");}protected updateBanner_args getEmptyArgsInstance() {return new updateBanner_args();}protected updateBanner_result getResult(I iface, updateBanner_args args) throws org.apache.thrift.TException {updateBanner_result result = new updateBanner_result();result.success = iface.updateBanner(args.banner);result.setSuccessIsSet(true);return result;}}private static class getAllBanners<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBanners_args> {public getAllBanners() {super("getAllBanners");}protected getAllBanners_args getEmptyArgsInstance() {return new getAllBanners_args();}protected getAllBanners_result getResult(I iface, getAllBanners_args args) throws org.apache.thrift.TException {getAllBanners_result result = new getAllBanners_result();result.success = iface.getAllBanners();return result;}}private static class deleteBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBanner_args> {public deleteBanner() {super("deleteBanner");}protected deleteBanner_args getEmptyArgsInstance() {return new deleteBanner_args();}protected deleteBanner_result getResult(I iface, deleteBanner_args args) throws org.apache.thrift.TException {deleteBanner_result result = new deleteBanner_result();result.success = iface.deleteBanner(args.bannerName, args.bannerType);result.setSuccessIsSet(true);return result;}}private static class getBannerDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBannerDetails_args> {public getBannerDetails() {super("getBannerDetails");}protected getBannerDetails_args getEmptyArgsInstance() {return new getBannerDetails_args();}protected getBannerDetails_result getResult(I iface, getBannerDetails_args args) throws org.apache.thrift.TException {getBannerDetails_result result = new getBannerDetails_result();result.success = iface.getBannerDetails(args.bannerName, args.bannerType);return result;}}private static class getActiveBanners<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActiveBanners_args> {public getActiveBanners() {super("getActiveBanners");}protected getActiveBanners_args getEmptyArgsInstance() {return new getActiveBanners_args();}protected getActiveBanners_result getResult(I iface, getActiveBanners_args args) throws org.apache.thrift.TException {getActiveBanners_result result = new getActiveBanners_result();result.success = iface.getActiveBanners();return result;}}private static class addBannerMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBannerMap_args> {public addBannerMap() {super("addBannerMap");}protected addBannerMap_args getEmptyArgsInstance() {return new addBannerMap_args();}protected addBannerMap_result getResult(I iface, addBannerMap_args args) throws org.apache.thrift.TException {addBannerMap_result result = new addBannerMap_result();result.success = iface.addBannerMap(args.bannerMaps);result.setSuccessIsSet(true);return result;}}private static class updateBannerMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBannerMap_args> {public updateBannerMap() {super("updateBannerMap");}protected updateBannerMap_args getEmptyArgsInstance() {return new updateBannerMap_args();}protected updateBannerMap_result getResult(I iface, updateBannerMap_args args) throws org.apache.thrift.TException {updateBannerMap_result result = new updateBannerMap_result();result.success = iface.updateBannerMap(args.bannerMap);result.setSuccessIsSet(true);return result;}}private static class deleteBannerMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBannerMap_args> {public deleteBannerMap() {super("deleteBannerMap");}protected deleteBannerMap_args getEmptyArgsInstance() {return new deleteBannerMap_args();}protected deleteBannerMap_result getResult(I iface, deleteBannerMap_args args) throws org.apache.thrift.TException {deleteBannerMap_result result = new deleteBannerMap_result();result.success = iface.deleteBannerMap(args.bannerName);result.setSuccessIsSet(true);return result;}}private static class getBannerMapDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBannerMapDetails_args> {public getBannerMapDetails() {super("getBannerMapDetails");}protected getBannerMapDetails_args getEmptyArgsInstance() {return new getBannerMapDetails_args();}protected getBannerMapDetails_result getResult(I iface, getBannerMapDetails_args args) throws org.apache.thrift.TException {getBannerMapDetails_result result = new getBannerMapDetails_result();result.success = iface.getBannerMapDetails(args.bannerName, args.bannerType);return result;}}private static class addBannerUri<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBannerUri_args> {public addBannerUri() {super("addBannerUri");}protected addBannerUri_args getEmptyArgsInstance() {return new addBannerUri_args();}protected addBannerUri_result getResult(I iface, addBannerUri_args args) throws org.apache.thrift.TException {addBannerUri_result result = new addBannerUri_result();iface.addBannerUri(args.bannerUriMappings);return result;}}private static class getUriMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUriMapping_args> {public getUriMapping() {super("getUriMapping");}protected getUriMapping_args getEmptyArgsInstance() {return new getUriMapping_args();}protected getUriMapping_result getResult(I iface, getUriMapping_args args) throws org.apache.thrift.TException {getUriMapping_result result = new getUriMapping_result();result.success = iface.getUriMapping(args.bannerName, args.bannerType);return result;}}private static class addCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCampaign_args> {public addCampaign() {super("addCampaign");}protected addCampaign_args getEmptyArgsInstance() {return new addCampaign_args();}protected addCampaign_result getResult(I iface, addCampaign_args args) throws org.apache.thrift.TException {addCampaign_result result = new addCampaign_result();iface.addCampaign(args.campaign);return result;}}private static class getCampaigns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCampaigns_args> {public getCampaigns() {super("getCampaigns");}protected getCampaigns_args getEmptyArgsInstance() {return new getCampaigns_args();}protected getCampaigns_result getResult(I iface, getCampaigns_args args) throws org.apache.thrift.TException {getCampaigns_result result = new getCampaigns_result();result.success = iface.getCampaigns(args.campaignName);return result;}}private static class deleteCampaign<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteCampaign_args> {public deleteCampaign() {super("deleteCampaign");}protected deleteCampaign_args getEmptyArgsInstance() {return new deleteCampaign_args();}protected deleteCampaign_result getResult(I iface, deleteCampaign_args args) throws org.apache.thrift.TException {deleteCampaign_result result = new deleteCampaign_result();iface.deleteCampaign(args.campaignId);return result;}}private static class getAllCampaigns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllCampaigns_args> {public getAllCampaigns() {super("getAllCampaigns");}protected getAllCampaigns_args getEmptyArgsInstance() {return new getAllCampaigns_args();}protected getAllCampaigns_result getResult(I iface, getAllCampaigns_args args) throws org.apache.thrift.TException {getAllCampaigns_result result = new getAllCampaigns_result();result.success = iface.getAllCampaigns();return result;}}private static class getActiveBannersForMobileSite<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActiveBannersForMobileSite_args> {public getActiveBannersForMobileSite() {super("getActiveBannersForMobileSite");}protected getActiveBannersForMobileSite_args getEmptyArgsInstance() {return new getActiveBannersForMobileSite_args();}protected getActiveBannersForMobileSite_result getResult(I iface, getActiveBannersForMobileSite_args args) throws org.apache.thrift.TException {getActiveBannersForMobileSite_result result = new getActiveBannersForMobileSite_result();result.success = iface.getActiveBannersForMobileSite();return result;}}private static class deleteSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteSimilarItem_args> {public deleteSimilarItem() {super("deleteSimilarItem");}protected deleteSimilarItem_args getEmptyArgsInstance() {return new deleteSimilarItem_args();}protected deleteSimilarItem_result getResult(I iface, deleteSimilarItem_args args) throws org.apache.thrift.TException {deleteSimilarItem_result result = new deleteSimilarItem_result();try {result.success = iface.deleteSimilarItem(args.itemId, args.catalogItemId);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class checkSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkSimilarItem_args> {public checkSimilarItem() {super("checkSimilarItem");}protected checkSimilarItem_args getEmptyArgsInstance() {return new checkSimilarItem_args();}protected checkSimilarItem_result getResult(I iface, checkSimilarItem_args args) throws org.apache.thrift.TException {checkSimilarItem_result result = new checkSimilarItem_result();result.success = iface.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color);result.setSuccessIsSet(true);return result;}}private static class validateRiskyStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateRiskyStatus_args> {public validateRiskyStatus() {super("validateRiskyStatus");}protected validateRiskyStatus_args getEmptyArgsInstance() {return new validateRiskyStatus_args();}protected validateRiskyStatus_result getResult(I iface, validateRiskyStatus_args args) throws org.apache.thrift.TException {validateRiskyStatus_result result = new validateRiskyStatus_result();iface.validateRiskyStatus(args.itemId);return result;}}private static class changeItemRiskyFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemRiskyFlag_args> {public changeItemRiskyFlag() {super("changeItemRiskyFlag");}protected changeItemRiskyFlag_args getEmptyArgsInstance() {return new changeItemRiskyFlag_args();}protected changeItemRiskyFlag_result getResult(I iface, changeItemRiskyFlag_args args) throws org.apache.thrift.TException {changeItemRiskyFlag_result result = new changeItemRiskyFlag_result();iface.changeItemRiskyFlag(args.itemId, args.risky);return result;}}private static class getItemsByRiskyFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByRiskyFlag_args> {public getItemsByRiskyFlag() {super("getItemsByRiskyFlag");}protected getItemsByRiskyFlag_args getEmptyArgsInstance() {return new getItemsByRiskyFlag_args();}protected getItemsByRiskyFlag_result getResult(I iface, getItemsByRiskyFlag_args args) throws org.apache.thrift.TException {getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();result.success = iface.getItemsByRiskyFlag();return result;}}private static class getItemsForMasterSheet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsForMasterSheet_args> {public getItemsForMasterSheet() {super("getItemsForMasterSheet");}protected getItemsForMasterSheet_args getEmptyArgsInstance() {return new getItemsForMasterSheet_args();}protected getItemsForMasterSheet_result getResult(I iface, getItemsForMasterSheet_args args) throws org.apache.thrift.TException {getItemsForMasterSheet_result result = new getItemsForMasterSheet_result();result.success = iface.getItemsForMasterSheet(args.category, args.brand);return result;}}private static class getSimilarItemsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSimilarItemsCatalogIds_args> {public getSimilarItemsCatalogIds() {super("getSimilarItemsCatalogIds");}protected getSimilarItemsCatalogIds_args getEmptyArgsInstance() {return new getSimilarItemsCatalogIds_args();}protected getSimilarItemsCatalogIds_result getResult(I iface, getSimilarItemsCatalogIds_args args) throws org.apache.thrift.TException {getSimilarItemsCatalogIds_result result = new getSimilarItemsCatalogIds_result();result.success = iface.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId);return result;}}private static class addProductNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addProductNotification_args> {public addProductNotification() {super("addProductNotification");}protected addProductNotification_args getEmptyArgsInstance() {return new addProductNotification_args();}protected addProductNotification_result getResult(I iface, addProductNotification_args args) throws org.apache.thrift.TException {addProductNotification_result result = new addProductNotification_result();result.success = iface.addProductNotification(args.itemId, args.email);result.setSuccessIsSet(true);return result;}}private static class sendProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendProductNotifications_args> {public sendProductNotifications() {super("sendProductNotifications");}protected sendProductNotifications_args getEmptyArgsInstance() {return new sendProductNotifications_args();}protected sendProductNotifications_result getResult(I iface, sendProductNotifications_args args) throws org.apache.thrift.TException {sendProductNotifications_result result = new sendProductNotifications_result();result.success = iface.sendProductNotifications();result.setSuccessIsSet(true);return result;}}private static class getAllBrandsByCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBrandsByCategory_args> {public getAllBrandsByCategory() {super("getAllBrandsByCategory");}protected getAllBrandsByCategory_args getEmptyArgsInstance() {return new getAllBrandsByCategory_args();}protected getAllBrandsByCategory_result getResult(I iface, getAllBrandsByCategory_args args) throws org.apache.thrift.TException {getAllBrandsByCategory_result result = new getAllBrandsByCategory_result();result.success = iface.getAllBrandsByCategory(args.categoryId);return result;}}private static class getAllBrands<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBrands_args> {public getAllBrands() {super("getAllBrands");}protected getAllBrands_args getEmptyArgsInstance() {return new getAllBrands_args();}protected getAllBrands_result getResult(I iface, getAllBrands_args args) throws org.apache.thrift.TException {getAllBrands_result result = new getAllBrands_result();result.success = iface.getAllBrands();return result;}}private static class getAllSources<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSources_args> {public getAllSources() {super("getAllSources");}protected getAllSources_args getEmptyArgsInstance() {return new getAllSources_args();}protected getAllSources_result getResult(I iface, getAllSources_args args) throws org.apache.thrift.TException {getAllSources_result result = new getAllSources_result();result.success = iface.getAllSources();return result;}}private static class getItemPricingBySource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricingBySource_args> {public getItemPricingBySource() {super("getItemPricingBySource");}protected getItemPricingBySource_args getEmptyArgsInstance() {return new getItemPricingBySource_args();}protected getItemPricingBySource_result getResult(I iface, getItemPricingBySource_args args) throws org.apache.thrift.TException {getItemPricingBySource_result result = new getItemPricingBySource_result();try {result.success = iface.getItemPricingBySource(args.itemId, args.sourceId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addSourceItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSourceItemPricing_args> {public addSourceItemPricing() {super("addSourceItemPricing");}protected addSourceItemPricing_args getEmptyArgsInstance() {return new addSourceItemPricing_args();}protected addSourceItemPricing_result getResult(I iface, addSourceItemPricing_args args) throws org.apache.thrift.TException {addSourceItemPricing_result result = new addSourceItemPricing_result();try {iface.addSourceItemPricing(args.sourceItemPricing);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllSourcePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSourcePricing_args> {public getAllSourcePricing() {super("getAllSourcePricing");}protected getAllSourcePricing_args getEmptyArgsInstance() {return new getAllSourcePricing_args();}protected getAllSourcePricing_result getResult(I iface, getAllSourcePricing_args args) throws org.apache.thrift.TException {getAllSourcePricing_result result = new getAllSourcePricing_result();try {result.success = iface.getAllSourcePricing(args.itemId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItemForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemForSource_args> {public getItemForSource() {super("getItemForSource");}protected getItemForSource_args getEmptyArgsInstance() {return new getItemForSource_args();}protected getItemForSource_result getResult(I iface, getItemForSource_args args) throws org.apache.thrift.TException {getItemForSource_result result = new getItemForSource_result();try {result.success = iface.getItemForSource(args.item_id, args.sourceId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class searchItemsInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchItemsInRange_args> {public searchItemsInRange() {super("searchItemsInRange");}protected searchItemsInRange_args getEmptyArgsInstance() {return new searchItemsInRange_args();}protected searchItemsInRange_result getResult(I iface, searchItemsInRange_args args) throws org.apache.thrift.TException {searchItemsInRange_result result = new searchItemsInRange_result();result.success = iface.searchItemsInRange(args.searchTerms, args.offset, args.limit);return result;}}private static class getSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSearchResultCount_args> {public getSearchResultCount() {super("getSearchResultCount");}protected getSearchResultCount_args getEmptyArgsInstance() {return new getSearchResultCount_args();}protected getSearchResultCount_result getResult(I iface, getSearchResultCount_args args) throws org.apache.thrift.TException {getSearchResultCount_result result = new getSearchResultCount_result();result.success = iface.getSearchResultCount(args.searchTerms);result.setSuccessIsSet(true);return result;}}private static class getProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotifications_args> {public getProductNotifications() {super("getProductNotifications");}protected getProductNotifications_args getEmptyArgsInstance() {return new getProductNotifications_args();}protected getProductNotifications_result getResult(I iface, getProductNotifications_args args) throws org.apache.thrift.TException {getProductNotifications_result result = new getProductNotifications_result();result.success = iface.getProductNotifications(args.startDateTime);return result;}}private static class getProductNotificationRequestCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotificationRequestCount_args> {public getProductNotificationRequestCount() {super("getProductNotificationRequestCount");}protected getProductNotificationRequestCount_args getEmptyArgsInstance() {return new getProductNotificationRequestCount_args();}protected getProductNotificationRequestCount_result getResult(I iface, getProductNotificationRequestCount_args args) throws org.apache.thrift.TException {getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();result.success = iface.getProductNotificationRequestCount(args.startDateTime, args.categoryId);return result;}}private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {public addAuthorizationLog() {super("addAuthorizationLog");}protected addAuthorizationLog_args getEmptyArgsInstance() {return new addAuthorizationLog_args();}protected addAuthorizationLog_result getResult(I iface, addAuthorizationLog_args args) throws org.apache.thrift.TException {addAuthorizationLog_result result = new addAuthorizationLog_result();try {result.success = iface.addAuthorizationLog(args.itemId, args.username, args.reason);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addupdateVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addupdateVoucherForItem_args> {public addupdateVoucherForItem() {super("addupdateVoucherForItem");}protected addupdateVoucherForItem_args getEmptyArgsInstance() {return new addupdateVoucherForItem_args();}protected addupdateVoucherForItem_result getResult(I iface, addupdateVoucherForItem_args args) throws org.apache.thrift.TException {addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();try {result.success = iface.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class deleteVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteVoucherForItem_args> {public deleteVoucherForItem() {super("deleteVoucherForItem");}protected deleteVoucherForItem_args getEmptyArgsInstance() {return new deleteVoucherForItem_args();}protected deleteVoucherForItem_result getResult(I iface, deleteVoucherForItem_args args) throws org.apache.thrift.TException {deleteVoucherForItem_result result = new deleteVoucherForItem_result();try {result.success = iface.deleteVoucherForItem(args.catalog_item_id, args.voucherType);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getVoucherAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVoucherAmount_args> {public getVoucherAmount() {super("getVoucherAmount");}protected getVoucherAmount_args getEmptyArgsInstance() {return new getVoucherAmount_args();}protected getVoucherAmount_result getResult(I iface, getVoucherAmount_args args) throws org.apache.thrift.TException {getVoucherAmount_result result = new getVoucherAmount_result();result.success = iface.getVoucherAmount(args.itemId, args.voucherType);result.setSuccessIsSet(true);return result;}}private static class getAllItemVouchers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemVouchers_args> {public getAllItemVouchers() {super("getAllItemVouchers");}protected getAllItemVouchers_args getEmptyArgsInstance() {return new getAllItemVouchers_args();}protected getAllItemVouchers_result getResult(I iface, getAllItemVouchers_args args) throws org.apache.thrift.TException {getAllItemVouchers_result result = new getAllItemVouchers_result();result.success = iface.getAllItemVouchers(args.itemId);return result;}}private static class isValidCatalogItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isValidCatalogItemId_args> {public isValidCatalogItemId() {super("isValidCatalogItemId");}protected isValidCatalogItemId_args getEmptyArgsInstance() {return new isValidCatalogItemId_args();}protected isValidCatalogItemId_result getResult(I iface, isValidCatalogItemId_args args) throws org.apache.thrift.TException {isValidCatalogItemId_result result = new isValidCatalogItemId_result();result.success = iface.isValidCatalogItemId(args.catalog_item_id);result.setSuccessIsSet(true);return result;}}private static class getVatPercentageForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatPercentageForItem_args> {public getVatPercentageForItem() {super("getVatPercentageForItem");}protected getVatPercentageForItem_args getEmptyArgsInstance() {return new getVatPercentageForItem_args();}protected getVatPercentageForItem_result getResult(I iface, getVatPercentageForItem_args args) throws org.apache.thrift.TException {getVatPercentageForItem_result result = new getVatPercentageForItem_result();try {result.success = iface.getVatPercentageForItem(args.itemId, args.stateId, args.price);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getVatAmountForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatAmountForItem_args> {public getVatAmountForItem() {super("getVatAmountForItem");}protected getVatAmountForItem_args getEmptyArgsInstance() {return new getVatAmountForItem_args();}protected getVatAmountForItem_result getResult(I iface, getVatAmountForItem_args args) throws org.apache.thrift.TException {getVatAmountForItem_result result = new getVatAmountForItem_result();result.success = iface.getVatAmountForItem(args.itemId, args.price);result.setSuccessIsSet(true);return result;}}private static class getAllIgnoredInventoryUpdateItemsList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryUpdateItemsList_args> {public getAllIgnoredInventoryUpdateItemsList() {super("getAllIgnoredInventoryUpdateItemsList");}protected getAllIgnoredInventoryUpdateItemsList_args getEmptyArgsInstance() {return new getAllIgnoredInventoryUpdateItemsList_args();}protected getAllIgnoredInventoryUpdateItemsList_result getResult(I iface, getAllIgnoredInventoryUpdateItemsList_args args) throws org.apache.thrift.TException {getAllIgnoredInventoryUpdateItemsList_result result = new getAllIgnoredInventoryUpdateItemsList_result();result.success = iface.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit);return result;}}private static class getAllAliveItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAliveItems_args> {public getAllAliveItems() {super("getAllAliveItems");}protected getAllAliveItems_args getEmptyArgsInstance() {return new getAllAliveItems_args();}protected getAllAliveItems_result getResult(I iface, getAllAliveItems_args args) throws org.apache.thrift.TException {getAllAliveItems_result result = new getAllAliveItems_result();result.success = iface.getAllAliveItems();return result;}}private static class getInsuranceAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInsuranceAmount_args> {public getInsuranceAmount() {super("getInsuranceAmount");}protected getInsuranceAmount_args getEmptyArgsInstance() {return new getInsuranceAmount_args();}protected getInsuranceAmount_result getResult(I iface, getInsuranceAmount_args args) throws org.apache.thrift.TException {getInsuranceAmount_result result = new getInsuranceAmount_result();result.success = iface.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity);result.setSuccessIsSet(true);return result;}}private static class getInsurer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInsurer_args> {public getInsurer() {super("getInsurer");}protected getInsurer_args getEmptyArgsInstance() {return new getInsurer_args();}protected getInsurer_result getResult(I iface, getInsurer_args args) throws org.apache.thrift.TException {getInsurer_result result = new getInsurer_result();result.success = iface.getInsurer(args.insurerId);return result;}}private static class getAllInsurers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllInsurers_args> {public getAllInsurers() {super("getAllInsurers");}protected getAllInsurers_args getEmptyArgsInstance() {return new getAllInsurers_args();}protected getAllInsurers_result getResult(I iface, getAllInsurers_args args) throws org.apache.thrift.TException {getAllInsurers_result result = new getAllInsurers_result();result.success = iface.getAllInsurers();return result;}}private static class updateInsuranceDeclaredAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInsuranceDeclaredAmount_args> {public updateInsuranceDeclaredAmount() {super("updateInsuranceDeclaredAmount");}protected updateInsuranceDeclaredAmount_args getEmptyArgsInstance() {return new updateInsuranceDeclaredAmount_args();}protected updateInsuranceDeclaredAmount_result getResult(I iface, updateInsuranceDeclaredAmount_args args) throws org.apache.thrift.TException {updateInsuranceDeclaredAmount_result result = new updateInsuranceDeclaredAmount_result();iface.updateInsuranceDeclaredAmount(args.insurerId, args.amount);return result;}}private static class getFreebieForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreebieForItem_args> {public getFreebieForItem() {super("getFreebieForItem");}protected getFreebieForItem_args getEmptyArgsInstance() {return new getFreebieForItem_args();}protected getFreebieForItem_result getResult(I iface, getFreebieForItem_args args) throws org.apache.thrift.TException {getFreebieForItem_result result = new getFreebieForItem_result();result.success = iface.getFreebieForItem(args.itemId);result.setSuccessIsSet(true);return result;}}private static class addOrUpdateFreebieForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFreebieForItem_args> {public addOrUpdateFreebieForItem() {super("addOrUpdateFreebieForItem");}protected addOrUpdateFreebieForItem_args getEmptyArgsInstance() {return new addOrUpdateFreebieForItem_args();}protected addOrUpdateFreebieForItem_result getResult(I iface, addOrUpdateFreebieForItem_args args) throws org.apache.thrift.TException {addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();iface.addOrUpdateFreebieForItem(args.freebieItem);return result;}}private static class addOrUpdateBrandInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateBrandInfo_args> {public addOrUpdateBrandInfo() {super("addOrUpdateBrandInfo");}protected addOrUpdateBrandInfo_args getEmptyArgsInstance() {return new addOrUpdateBrandInfo_args();}protected addOrUpdateBrandInfo_result getResult(I iface, addOrUpdateBrandInfo_args args) throws org.apache.thrift.TException {addOrUpdateBrandInfo_result result = new addOrUpdateBrandInfo_result();iface.addOrUpdateBrandInfo(args.brandInfo);return result;}}private static class getBrandInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBrandInfo_args> {public getBrandInfo() {super("getBrandInfo");}protected getBrandInfo_args getEmptyArgsInstance() {return new getBrandInfo_args();}protected getBrandInfo_result getResult(I iface, getBrandInfo_args args) throws org.apache.thrift.TException {getBrandInfo_result result = new getBrandInfo_result();result.success = iface.getBrandInfo();return result;}}private static class getStorePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStorePricing_args> {public getStorePricing() {super("getStorePricing");}protected getStorePricing_args getEmptyArgsInstance() {return new getStorePricing_args();}protected getStorePricing_result getResult(I iface, getStorePricing_args args) throws org.apache.thrift.TException {getStorePricing_result result = new getStorePricing_result();result.success = iface.getStorePricing(args.itemId);return result;}}private static class getStorePricings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStorePricings_args> {public getStorePricings() {super("getStorePricings");}protected getStorePricings_args getEmptyArgsInstance() {return new getStorePricings_args();}protected getStorePricings_result getResult(I iface, getStorePricings_args args) throws org.apache.thrift.TException {getStorePricings_result result = new getStorePricings_result();result.success = iface.getStorePricings(args.itemIds);return result;}}private static class updateStorePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateStorePricing_args> {public updateStorePricing() {super("updateStorePricing");}protected updateStorePricing_args getEmptyArgsInstance() {return new updateStorePricing_args();}protected updateStorePricing_result getResult(I iface, updateStorePricing_args args) throws org.apache.thrift.TException {updateStorePricing_result result = new updateStorePricing_result();iface.updateStorePricing(args.sp, args.allColors);return result;}}private static class getAllAmazonListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonListedItems_args> {public getAllAmazonListedItems() {super("getAllAmazonListedItems");}protected getAllAmazonListedItems_args getEmptyArgsInstance() {return new getAllAmazonListedItems_args();}protected getAllAmazonListedItems_result getResult(I iface, getAllAmazonListedItems_args args) throws org.apache.thrift.TException {getAllAmazonListedItems_result result = new getAllAmazonListedItems_result();result.success = iface.getAllAmazonListedItems();return result;}}private static class searchAmazonItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchAmazonItems_args> {public searchAmazonItems() {super("searchAmazonItems");}protected searchAmazonItems_args getEmptyArgsInstance() {return new searchAmazonItems_args();}protected searchAmazonItems_result getResult(I iface, searchAmazonItems_args args) throws org.apache.thrift.TException {searchAmazonItems_result result = new searchAmazonItems_result();result.success = iface.searchAmazonItems(args.searchTerm, args.offset, args.limit);return result;}}private static class getAmazonSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonSearchResultCount_args> {public getAmazonSearchResultCount() {super("getAmazonSearchResultCount");}protected getAmazonSearchResultCount_args getEmptyArgsInstance() {return new getAmazonSearchResultCount_args();}protected getAmazonSearchResultCount_result getResult(I iface, getAmazonSearchResultCount_args args) throws org.apache.thrift.TException {getAmazonSearchResultCount_result result = new getAmazonSearchResultCount_result();result.success = iface.getAmazonSearchResultCount(args.searchTerm);result.setSuccessIsSet(true);return result;}}private static class getCountForAmazonlistedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForAmazonlistedItems_args> {public getCountForAmazonlistedItems() {super("getCountForAmazonlistedItems");}protected getCountForAmazonlistedItems_args getEmptyArgsInstance() {return new getCountForAmazonlistedItems_args();}protected getCountForAmazonlistedItems_result getResult(I iface, getCountForAmazonlistedItems_args args) throws org.apache.thrift.TException {getCountForAmazonlistedItems_result result = new getCountForAmazonlistedItems_result();result.success = iface.getCountForAmazonlistedItems();result.setSuccessIsSet(true);return result;}}private static class getAmazonItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonItemDetails_args> {public getAmazonItemDetails() {super("getAmazonItemDetails");}protected getAmazonItemDetails_args getEmptyArgsInstance() {return new getAmazonItemDetails_args();}protected getAmazonItemDetails_result getResult(I iface, getAmazonItemDetails_args args) throws org.apache.thrift.TException {getAmazonItemDetails_result result = new getAmazonItemDetails_result();result.success = iface.getAmazonItemDetails(args.itemId);return result;}}private static class updateAmazonItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAmazonItemDetails_args> {public updateAmazonItemDetails() {super("updateAmazonItemDetails");}protected updateAmazonItemDetails_args getEmptyArgsInstance() {return new updateAmazonItemDetails_args();}protected updateAmazonItemDetails_result getResult(I iface, updateAmazonItemDetails_args args) throws org.apache.thrift.TException {updateAmazonItemDetails_result result = new updateAmazonItemDetails_result();iface.updateAmazonItemDetails(args.amazonlisted);return result;}}private static class addAmazonItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAmazonItem_args> {public addAmazonItem() {super("addAmazonItem");}protected addAmazonItem_args getEmptyArgsInstance() {return new addAmazonItem_args();}protected addAmazonItem_result getResult(I iface, addAmazonItem_args args) throws org.apache.thrift.TException {addAmazonItem_result result = new addAmazonItem_result();iface.addAmazonItem(args.amazonlisted);return result;}}private static class getAsinItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAsinItems_args> {public getAsinItems() {super("getAsinItems");}protected getAsinItems_args getEmptyArgsInstance() {return new getAsinItems_args();}protected getAsinItems_result getResult(I iface, getAsinItems_args args) throws org.apache.thrift.TException {getAsinItems_result result = new getAsinItems_result();result.success = iface.getAsinItems();return result;}}private static class getAllFbaListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbaListedItems_args> {public getAllFbaListedItems() {super("getAllFbaListedItems");}protected getAllFbaListedItems_args getEmptyArgsInstance() {return new getAllFbaListedItems_args();}protected getAllFbaListedItems_result getResult(I iface, getAllFbaListedItems_args args) throws org.apache.thrift.TException {getAllFbaListedItems_result result = new getAllFbaListedItems_result();result.success = iface.getAllFbaListedItems();return result;}}private static class getAllNonFbaListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllNonFbaListedItems_args> {public getAllNonFbaListedItems() {super("getAllNonFbaListedItems");}protected getAllNonFbaListedItems_args getEmptyArgsInstance() {return new getAllNonFbaListedItems_args();}protected getAllNonFbaListedItems_result getResult(I iface, getAllNonFbaListedItems_args args) throws org.apache.thrift.TException {getAllNonFbaListedItems_result result = new getAllNonFbaListedItems_result();result.success = iface.getAllNonFbaListedItems();return result;}}private static class updateItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemInventory_args> {public updateItemInventory() {super("updateItemInventory");}protected updateItemInventory_args getEmptyArgsInstance() {return new updateItemInventory_args();}protected updateItemInventory_result getResult(I iface, updateItemInventory_args args) throws org.apache.thrift.TException {updateItemInventory_result result = new updateItemInventory_result();result.success = iface.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory);result.setSuccessIsSet(true);return result;}}private static class updateTimestampForAmazonFeeds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTimestampForAmazonFeeds_args> {public updateTimestampForAmazonFeeds() {super("updateTimestampForAmazonFeeds");}protected updateTimestampForAmazonFeeds_args getEmptyArgsInstance() {return new updateTimestampForAmazonFeeds_args();}protected updateTimestampForAmazonFeeds_result getResult(I iface, updateTimestampForAmazonFeeds_args args) throws org.apache.thrift.TException {updateTimestampForAmazonFeeds_result result = new updateTimestampForAmazonFeeds_result();result.success = iface.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp);result.setSuccessIsSet(true);return result;}}private static class getAllParentCategories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllParentCategories_args> {public getAllParentCategories() {super("getAllParentCategories");}protected getAllParentCategories_args getEmptyArgsInstance() {return new getAllParentCategories_args();}protected getAllParentCategories_result getResult(I iface, getAllParentCategories_args args) throws org.apache.thrift.TException {getAllParentCategories_result result = new getAllParentCategories_result();result.success = iface.getAllParentCategories();return result;}}private static class addPageViewEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPageViewEvent_args> {public addPageViewEvent() {super("addPageViewEvent");}protected addPageViewEvent_args getEmptyArgsInstance() {return new addPageViewEvent_args();}protected addPageViewEvent_result getResult(I iface, addPageViewEvent_args args) throws org.apache.thrift.TException {addPageViewEvent_result result = new addPageViewEvent_result();iface.addPageViewEvent(args.pageViewEvents);return result;}}private static class addCartEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCartEvent_args> {public addCartEvent() {super("addCartEvent");}protected addCartEvent_args getEmptyArgsInstance() {return new addCartEvent_args();}protected addCartEvent_result getResult(I iface, addCartEvent_args args) throws org.apache.thrift.TException {addCartEvent_result result = new addCartEvent_result();iface.addCartEvent(args.cartEvents);return result;}}private static class addEbayItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addEbayItem_args> {public addEbayItem() {super("addEbayItem");}protected addEbayItem_args getEmptyArgsInstance() {return new addEbayItem_args();}protected addEbayItem_result getResult(I iface, addEbayItem_args args) throws org.apache.thrift.TException {addEbayItem_result result = new addEbayItem_result();iface.addEbayItem(args.ebayItem);return result;}}private static class getEbayItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEbayItem_args> {public getEbayItem() {super("getEbayItem");}protected getEbayItem_args getEmptyArgsInstance() {return new getEbayItem_args();}protected getEbayItem_result getResult(I iface, getEbayItem_args args) throws org.apache.thrift.TException {getEbayItem_result result = new getEbayItem_result();result.success = iface.getEbayItem(args.listingId);return result;}}private static class updateEbayItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateEbayItem_args> {public updateEbayItem() {super("updateEbayItem");}protected updateEbayItem_args getEmptyArgsInstance() {return new updateEbayItem_args();}protected updateEbayItem_result getResult(I iface, updateEbayItem_args args) throws org.apache.thrift.TException {updateEbayItem_result result = new updateEbayItem_result();iface.updateEbayItem(args.ebayItem);return result;}}private static class getAmazonListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonListedItems_args> {public getAmazonListedItems() {super("getAmazonListedItems");}protected getAmazonListedItems_args getEmptyArgsInstance() {return new getAmazonListedItems_args();}protected getAmazonListedItems_result getResult(I iface, getAmazonListedItems_args args) throws org.apache.thrift.TException {getAmazonListedItems_result result = new getAmazonListedItems_result();result.success = iface.getAmazonListedItems(args.offset, args.limit);return result;}}private static class updateAmazonAttributesInBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAmazonAttributesInBulk_args> {public updateAmazonAttributesInBulk() {super("updateAmazonAttributesInBulk");}protected updateAmazonAttributesInBulk_args getEmptyArgsInstance() {return new updateAmazonAttributesInBulk_args();}protected updateAmazonAttributesInBulk_result getResult(I iface, updateAmazonAttributesInBulk_args args) throws org.apache.thrift.TException {updateAmazonAttributesInBulk_result result = new updateAmazonAttributesInBulk_result();result.success = iface.updateAmazonAttributesInBulk(args.amazonlisted);result.setSuccessIsSet(true);return result;}}private static class getAllItemstoListOnFba<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemstoListOnFba_args> {public getAllItemstoListOnFba() {super("getAllItemstoListOnFba");}protected getAllItemstoListOnFba_args getEmptyArgsInstance() {return new getAllItemstoListOnFba_args();}protected getAllItemstoListOnFba_result getResult(I iface, getAllItemstoListOnFba_args args) throws org.apache.thrift.TException {getAllItemstoListOnFba_result result = new getAllItemstoListOnFba_result();result.success = iface.getAllItemstoListOnFba();return result;}}private static class getAllItemstoListOnNonFba<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemstoListOnNonFba_args> {public getAllItemstoListOnNonFba() {super("getAllItemstoListOnNonFba");}protected getAllItemstoListOnNonFba_args getEmptyArgsInstance() {return new getAllItemstoListOnNonFba_args();}protected getAllItemstoListOnNonFba_result getResult(I iface, getAllItemstoListOnNonFba_args args) throws org.apache.thrift.TException {getAllItemstoListOnNonFba_result result = new getAllItemstoListOnNonFba_result();result.success = iface.getAllItemstoListOnNonFba();return result;}}private static class updateAsin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAsin_args> {public updateAsin() {super("updateAsin");}protected updateAsin_args getEmptyArgsInstance() {return new updateAsin_args();}protected updateAsin_result getResult(I iface, updateAsin_args args) throws org.apache.thrift.TException {updateAsin_result result = new updateAsin_result();iface.updateAsin(args.item);return result;}}private static class addOrUpdateSnapdealItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateSnapdealItem_args> {public addOrUpdateSnapdealItem() {super("addOrUpdateSnapdealItem");}protected addOrUpdateSnapdealItem_args getEmptyArgsInstance() {return new addOrUpdateSnapdealItem_args();}protected addOrUpdateSnapdealItem_result getResult(I iface, addOrUpdateSnapdealItem_args args) throws org.apache.thrift.TException {addOrUpdateSnapdealItem_result result = new addOrUpdateSnapdealItem_result();result.success = iface.addOrUpdateSnapdealItem(args.snapdealitem);result.setSuccessIsSet(true);return result;}}private static class getSnapdealItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItem_args> {public getSnapdealItem() {super("getSnapdealItem");}protected getSnapdealItem_args getEmptyArgsInstance() {return new getSnapdealItem_args();}protected getSnapdealItem_result getResult(I iface, getSnapdealItem_args args) throws org.apache.thrift.TException {getSnapdealItem_result result = new getSnapdealItem_result();result.success = iface.getSnapdealItem(args.item_id);return result;}}private static class getSnapdealItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItemDetails_args> {public getSnapdealItemDetails() {super("getSnapdealItemDetails");}protected getSnapdealItemDetails_args getEmptyArgsInstance() {return new getSnapdealItemDetails_args();}protected getSnapdealItemDetails_result getResult(I iface, getSnapdealItemDetails_args args) throws org.apache.thrift.TException {getSnapdealItemDetails_result result = new getSnapdealItemDetails_result();result.success = iface.getSnapdealItemDetails(args.item_id);return result;}}private static class getAllSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealItems_args> {public getAllSnapdealItems() {super("getAllSnapdealItems");}protected getAllSnapdealItems_args getEmptyArgsInstance() {return new getAllSnapdealItems_args();}protected getAllSnapdealItems_result getResult(I iface, getAllSnapdealItems_args args) throws org.apache.thrift.TException {getAllSnapdealItems_result result = new getAllSnapdealItems_result();result.success = iface.getAllSnapdealItems();return result;}}private static class getSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItems_args> {public getSnapdealItems() {super("getSnapdealItems");}protected getSnapdealItems_args getEmptyArgsInstance() {return new getSnapdealItems_args();}protected getSnapdealItems_result getResult(I iface, getSnapdealItems_args args) throws org.apache.thrift.TException {getSnapdealItems_result result = new getSnapdealItems_result();result.success = iface.getSnapdealItems(args.offset, args.limit);return result;}}private static class searchSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchSnapdealItems_args> {public searchSnapdealItems() {super("searchSnapdealItems");}protected searchSnapdealItems_args getEmptyArgsInstance() {return new searchSnapdealItems_args();}protected searchSnapdealItems_result getResult(I iface, searchSnapdealItems_args args) throws org.apache.thrift.TException {searchSnapdealItems_result result = new searchSnapdealItems_result();result.success = iface.searchSnapdealItems(args.searchTerm, args.offset, args.limit);return result;}}private static class getCountForSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForSnapdealItems_args> {public getCountForSnapdealItems() {super("getCountForSnapdealItems");}protected getCountForSnapdealItems_args getEmptyArgsInstance() {return new getCountForSnapdealItems_args();}protected getCountForSnapdealItems_result getResult(I iface, getCountForSnapdealItems_args args) throws org.apache.thrift.TException {getCountForSnapdealItems_result result = new getCountForSnapdealItems_result();result.success = iface.getCountForSnapdealItems();result.setSuccessIsSet(true);return result;}}private static class getSnapdealSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealSearchResultCount_args> {public getSnapdealSearchResultCount() {super("getSnapdealSearchResultCount");}protected getSnapdealSearchResultCount_args getEmptyArgsInstance() {return new getSnapdealSearchResultCount_args();}protected getSnapdealSearchResultCount_result getResult(I iface, getSnapdealSearchResultCount_args args) throws org.apache.thrift.TException {getSnapdealSearchResultCount_result result = new getSnapdealSearchResultCount_result();result.success = iface.getSnapdealSearchResultCount(args.searchTerm);result.setSuccessIsSet(true);return result;}}private static class getPrefferedInsurerForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrefferedInsurerForItem_args> {public getPrefferedInsurerForItem() {super("getPrefferedInsurerForItem");}protected getPrefferedInsurerForItem_args getEmptyArgsInstance() {return new getPrefferedInsurerForItem_args();}protected getPrefferedInsurerForItem_result getResult(I iface, getPrefferedInsurerForItem_args args) throws org.apache.thrift.TException {getPrefferedInsurerForItem_result result = new getPrefferedInsurerForItem_result();result.success = iface.getPrefferedInsurerForItem(args.itemId, args.insurerType);result.setSuccessIsSet(true);return result;}}private static class getSnapdealItembySkuAtSnapdeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItembySkuAtSnapdeal_args> {public getSnapdealItembySkuAtSnapdeal() {super("getSnapdealItembySkuAtSnapdeal");}protected getSnapdealItembySkuAtSnapdeal_args getEmptyArgsInstance() {return new getSnapdealItembySkuAtSnapdeal_args();}protected getSnapdealItembySkuAtSnapdeal_result getResult(I iface, getSnapdealItembySkuAtSnapdeal_args args) throws org.apache.thrift.TException {getSnapdealItembySkuAtSnapdeal_result result = new getSnapdealItembySkuAtSnapdeal_result();result.success = iface.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal);return result;}}private static class getProductFeedSubmit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductFeedSubmit_args> {public getProductFeedSubmit() {super("getProductFeedSubmit");}protected getProductFeedSubmit_args getEmptyArgsInstance() {return new getProductFeedSubmit_args();}protected getProductFeedSubmit_result getResult(I iface, getProductFeedSubmit_args args) throws org.apache.thrift.TException {getProductFeedSubmit_result result = new getProductFeedSubmit_result();try {result.success = iface.getProductFeedSubmit(args.catalogItemId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addProductFeedSubmit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addProductFeedSubmit_args> {public addProductFeedSubmit() {super("addProductFeedSubmit");}protected addProductFeedSubmit_args getEmptyArgsInstance() {return new addProductFeedSubmit_args();}protected addProductFeedSubmit_result getResult(I iface, addProductFeedSubmit_args args) throws org.apache.thrift.TException {addProductFeedSubmit_result result = new addProductFeedSubmit_result();try {result.success = iface.addProductFeedSubmit(args.productFeedSubmit);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class updateProductFeedSubmit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateProductFeedSubmit_args> {public updateProductFeedSubmit() {super("updateProductFeedSubmit");}protected updateProductFeedSubmit_args getEmptyArgsInstance() {return new updateProductFeedSubmit_args();}protected updateProductFeedSubmit_result getResult(I iface, updateProductFeedSubmit_args args) throws org.apache.thrift.TException {updateProductFeedSubmit_result result = new updateProductFeedSubmit_result();try {result.success = iface.updateProductFeedSubmit(args.productFeedSubmit);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class deleteProductFeedSubmit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteProductFeedSubmit_args> {public deleteProductFeedSubmit() {super("deleteProductFeedSubmit");}protected deleteProductFeedSubmit_args getEmptyArgsInstance() {return new deleteProductFeedSubmit_args();}protected deleteProductFeedSubmit_result getResult(I iface, deleteProductFeedSubmit_args args) throws org.apache.thrift.TException {deleteProductFeedSubmit_result result = new deleteProductFeedSubmit_result();try {result.success = iface.deleteProductFeedSubmit(args.catalogItemId);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllProductFeedSubmit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProductFeedSubmit_args> {public getAllProductFeedSubmit() {super("getAllProductFeedSubmit");}protected getAllProductFeedSubmit_args getEmptyArgsInstance() {return new getAllProductFeedSubmit_args();}protected getAllProductFeedSubmit_result getResult(I iface, getAllProductFeedSubmit_args args) throws org.apache.thrift.TException {getAllProductFeedSubmit_result result = new getAllProductFeedSubmit_result();try {result.success = iface.getAllProductFeedSubmit();} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getMarketplacedetailsForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketplacedetailsForItem_args> {public getMarketplacedetailsForItem() {super("getMarketplacedetailsForItem");}protected getMarketplacedetailsForItem_args getEmptyArgsInstance() {return new getMarketplacedetailsForItem_args();}protected getMarketplacedetailsForItem_result getResult(I iface, getMarketplacedetailsForItem_args args) throws org.apache.thrift.TException {getMarketplacedetailsForItem_result result = new getMarketplacedetailsForItem_result();result.success = iface.getMarketplacedetailsForItem(args.itemId, args.sourceId);return result;}}private static class updateMarketplaceAttributesForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMarketplaceAttributesForItem_args> {public updateMarketplaceAttributesForItem() {super("updateMarketplaceAttributesForItem");}protected updateMarketplaceAttributesForItem_args getEmptyArgsInstance() {return new updateMarketplaceAttributesForItem_args();}protected updateMarketplaceAttributesForItem_result getResult(I iface, updateMarketplaceAttributesForItem_args args) throws org.apache.thrift.TException {updateMarketplaceAttributesForItem_result result = new updateMarketplaceAttributesForItem_result();result.success = iface.updateMarketplaceAttributesForItem(args.marketPlaceItem);result.setSuccessIsSet(true);return result;}}private static class getCostingForMarketplace<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingForMarketplace_args> {public getCostingForMarketplace() {super("getCostingForMarketplace");}protected getCostingForMarketplace_args getEmptyArgsInstance() {return new getCostingForMarketplace_args();}protected getCostingForMarketplace_result getResult(I iface, getCostingForMarketplace_args args) throws org.apache.thrift.TException {getCostingForMarketplace_result result = new getCostingForMarketplace_result();result.success = iface.getCostingForMarketplace(args.source, args.item_id);return result;}}private static class getMarketPlaceItemsForPriceUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketPlaceItemsForPriceUpdate_args> {public getMarketPlaceItemsForPriceUpdate() {super("getMarketPlaceItemsForPriceUpdate");}protected getMarketPlaceItemsForPriceUpdate_args getEmptyArgsInstance() {return new getMarketPlaceItemsForPriceUpdate_args();}protected getMarketPlaceItemsForPriceUpdate_result getResult(I iface, getMarketPlaceItemsForPriceUpdate_args args) throws org.apache.thrift.TException {getMarketPlaceItemsForPriceUpdate_result result = new getMarketPlaceItemsForPriceUpdate_result();result.success = iface.getMarketPlaceItemsForPriceUpdate(args.source);return result;}}private static class updateMarketPlacePriceUpdateStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMarketPlacePriceUpdateStatus_args> {public updateMarketPlacePriceUpdateStatus() {super("updateMarketPlacePriceUpdateStatus");}protected updateMarketPlacePriceUpdateStatus_args getEmptyArgsInstance() {return new updateMarketPlacePriceUpdateStatus_args();}protected updateMarketPlacePriceUpdateStatus_result getResult(I iface, updateMarketPlacePriceUpdateStatus_args args) throws org.apache.thrift.TException {updateMarketPlacePriceUpdateStatus_result result = new updateMarketPlacePriceUpdateStatus_result();iface.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source);return result;}}private static class updateItemHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemHoldInventory_args> {public updateItemHoldInventory() {super("updateItemHoldInventory");}protected updateItemHoldInventory_args getEmptyArgsInstance() {return new updateItemHoldInventory_args();}protected updateItemHoldInventory_result getResult(I iface, updateItemHoldInventory_args args) throws org.apache.thrift.TException {updateItemHoldInventory_result result = new updateItemHoldInventory_result();iface.updateItemHoldInventory(args.itemHoldMap);return result;}}private static class updateNlcAtMarketplaces<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateNlcAtMarketplaces_args> {public updateNlcAtMarketplaces() {super("updateNlcAtMarketplaces");}protected updateNlcAtMarketplaces_args getEmptyArgsInstance() {return new updateNlcAtMarketplaces_args();}protected updateNlcAtMarketplaces_result getResult(I iface, updateNlcAtMarketplaces_args args) throws org.apache.thrift.TException {updateNlcAtMarketplaces_result result = new updateNlcAtMarketplaces_result();iface.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc);return result;}}private static class getAllFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFlipkartItems_args> {public getAllFlipkartItems() {super("getAllFlipkartItems");}protected getAllFlipkartItems_args getEmptyArgsInstance() {return new getAllFlipkartItems_args();}protected getAllFlipkartItems_result getResult(I iface, getAllFlipkartItems_args args) throws org.apache.thrift.TException {getAllFlipkartItems_result result = new getAllFlipkartItems_result();result.success = iface.getAllFlipkartItems();return result;}}private static class addOrUpdateFlipkartItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFlipkartItem_args> {public addOrUpdateFlipkartItem() {super("addOrUpdateFlipkartItem");}protected addOrUpdateFlipkartItem_args getEmptyArgsInstance() {return new addOrUpdateFlipkartItem_args();}protected addOrUpdateFlipkartItem_result getResult(I iface, addOrUpdateFlipkartItem_args args) throws org.apache.thrift.TException {addOrUpdateFlipkartItem_result result = new addOrUpdateFlipkartItem_result();result.success = iface.addOrUpdateFlipkartItem(args.flipkartitem);result.setSuccessIsSet(true);return result;}}private static class getFlipkartItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItem_args> {public getFlipkartItem() {super("getFlipkartItem");}protected getFlipkartItem_args getEmptyArgsInstance() {return new getFlipkartItem_args();}protected getFlipkartItem_result getResult(I iface, getFlipkartItem_args args) throws org.apache.thrift.TException {getFlipkartItem_result result = new getFlipkartItem_result();result.success = iface.getFlipkartItem(args.item_id);return result;}}private static class getFlipkartItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItemDetails_args> {public getFlipkartItemDetails() {super("getFlipkartItemDetails");}protected getFlipkartItemDetails_args getEmptyArgsInstance() {return new getFlipkartItemDetails_args();}protected getFlipkartItemDetails_result getResult(I iface, getFlipkartItemDetails_args args) throws org.apache.thrift.TException {getFlipkartItemDetails_result result = new getFlipkartItemDetails_result();result.success = iface.getFlipkartItemDetails(args.item_id);return result;}}private static class getFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItems_args> {public getFlipkartItems() {super("getFlipkartItems");}protected getFlipkartItems_args getEmptyArgsInstance() {return new getFlipkartItems_args();}protected getFlipkartItems_result getResult(I iface, getFlipkartItems_args args) throws org.apache.thrift.TException {getFlipkartItems_result result = new getFlipkartItems_result();result.success = iface.getFlipkartItems(args.offset, args.limit);return result;}}private static class searchFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchFlipkartItems_args> {public searchFlipkartItems() {super("searchFlipkartItems");}protected searchFlipkartItems_args getEmptyArgsInstance() {return new searchFlipkartItems_args();}protected searchFlipkartItems_result getResult(I iface, searchFlipkartItems_args args) throws org.apache.thrift.TException {searchFlipkartItems_result result = new searchFlipkartItems_result();result.success = iface.searchFlipkartItems(args.searchTerm, args.offset, args.limit);return result;}}private static class getCountForFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForFlipkartItems_args> {public getCountForFlipkartItems() {super("getCountForFlipkartItems");}protected getCountForFlipkartItems_args getEmptyArgsInstance() {return new getCountForFlipkartItems_args();}protected getCountForFlipkartItems_result getResult(I iface, getCountForFlipkartItems_args args) throws org.apache.thrift.TException {getCountForFlipkartItems_result result = new getCountForFlipkartItems_result();result.success = iface.getCountForFlipkartItems();result.setSuccessIsSet(true);return result;}}private static class getFlipkartSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartSearchResultCount_args> {public getFlipkartSearchResultCount() {super("getFlipkartSearchResultCount");}protected getFlipkartSearchResultCount_args getEmptyArgsInstance() {return new getFlipkartSearchResultCount_args();}protected getFlipkartSearchResultCount_result getResult(I iface, getFlipkartSearchResultCount_args args) throws org.apache.thrift.TException {getFlipkartSearchResultCount_result result = new getFlipkartSearchResultCount_result();result.success = iface.getFlipkartSearchResultCount(args.searchTerm);result.setSuccessIsSet(true);return result;}}private static class getAllFkItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFkItems_args> {public getAllFkItems() {super("getAllFkItems");}protected getAllFkItems_args getEmptyArgsInstance() {return new getAllFkItems_args();}protected getAllFkItems_result getResult(I iface, getAllFkItems_args args) throws org.apache.thrift.TException {getAllFkItems_result result = new getAllFkItems_result();result.success = iface.getAllFkItems();return result;}}private static class getFlipkartItemBySkyAtFlipkart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItemBySkyAtFlipkart_args> {public getFlipkartItemBySkyAtFlipkart() {super("getFlipkartItemBySkyAtFlipkart");}protected getFlipkartItemBySkyAtFlipkart_args getEmptyArgsInstance() {return new getFlipkartItemBySkyAtFlipkart_args();}protected getFlipkartItemBySkyAtFlipkart_result getResult(I iface, getFlipkartItemBySkyAtFlipkart_args args) throws org.apache.thrift.TException {getFlipkartItemBySkyAtFlipkart_result result = new getFlipkartItemBySkyAtFlipkart_result();result.success = iface.getFlipkartItemBySkyAtFlipkart(args.sku);return result;}}private static class getMarketplaceHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketplaceHistory_args> {public getMarketplaceHistory() {super("getMarketplaceHistory");}protected getMarketplaceHistory_args getEmptyArgsInstance() {return new getMarketplaceHistory_args();}protected getMarketplaceHistory_result getResult(I iface, getMarketplaceHistory_args args) throws org.apache.thrift.TException {getMarketplaceHistory_result result = new getMarketplaceHistory_result();result.success = iface.getMarketplaceHistory(args.source, args.offset, args.itemId);return result;}}private static class getAllFbbListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbbListedItems_args> {public getAllFbbListedItems() {super("getAllFbbListedItems");}protected getAllFbbListedItems_args getEmptyArgsInstance() {return new getAllFbbListedItems_args();}protected getAllFbbListedItems_result getResult(I iface, getAllFbbListedItems_args args) throws org.apache.thrift.TException {getAllFbbListedItems_result result = new getAllFbbListedItems_result();result.success = iface.getAllFbbListedItems();return result;}}private static class getAllFbbPricingItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbbPricingItems_args> {public getAllFbbPricingItems() {super("getAllFbbPricingItems");}protected getAllFbbPricingItems_args getEmptyArgsInstance() {return new getAllFbbPricingItems_args();}protected getAllFbbPricingItems_result getResult(I iface, getAllFbbPricingItems_args args) throws org.apache.thrift.TException {getAllFbbPricingItems_result result = new getAllFbbPricingItems_result();result.success = iface.getAllFbbPricingItems();return result;}}private static class getCountForMarketplaceHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForMarketplaceHistory_args> {public getCountForMarketplaceHistory() {super("getCountForMarketplaceHistory");}protected getCountForMarketplaceHistory_args getEmptyArgsInstance() {return new getCountForMarketplaceHistory_args();}protected getCountForMarketplaceHistory_result getResult(I iface, getCountForMarketplaceHistory_args args) throws org.apache.thrift.TException {getCountForMarketplaceHistory_result result = new getCountForMarketplaceHistory_result();result.success = iface.getCountForMarketplaceHistory(args.source, args.itemId);result.setSuccessIsSet(true);return result;}}private static class getMarketplaceHistoryByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMarketplaceHistoryByDate_args> {public getMarketplaceHistoryByDate() {super("getMarketplaceHistoryByDate");}protected getMarketplaceHistoryByDate_args getEmptyArgsInstance() {return new getMarketplaceHistoryByDate_args();}protected getMarketplaceHistoryByDate_result getResult(I iface, getMarketplaceHistoryByDate_args args) throws org.apache.thrift.TException {getMarketplaceHistoryByDate_result result = new getMarketplaceHistoryByDate_result();result.success = iface.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId);return result;}}private static class getPrivateDealDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealDetails_args> {public getPrivateDealDetails() {super("getPrivateDealDetails");}protected getPrivateDealDetails_args getEmptyArgsInstance() {return new getPrivateDealDetails_args();}protected getPrivateDealDetails_result getResult(I iface, getPrivateDealDetails_args args) throws org.apache.thrift.TException {getPrivateDealDetails_result result = new getPrivateDealDetails_result();result.success = iface.getPrivateDealDetails(args.item_id);return result;}}private static class getPrivateDealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealItems_args> {public getPrivateDealItems() {super("getPrivateDealItems");}protected getPrivateDealItems_args getEmptyArgsInstance() {return new getPrivateDealItems_args();}protected getPrivateDealItems_result getResult(I iface, getPrivateDealItems_args args) throws org.apache.thrift.TException {getPrivateDealItems_result result = new getPrivateDealItems_result();result.success = iface.getPrivateDealItems(args.offset, args.limit);return result;}}private static class getAllActivePrivateDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllActivePrivateDeals_args> {public getAllActivePrivateDeals() {super("getAllActivePrivateDeals");}protected getAllActivePrivateDeals_args getEmptyArgsInstance() {return new getAllActivePrivateDeals_args();}protected getAllActivePrivateDeals_result getResult(I iface, getAllActivePrivateDeals_args args) throws org.apache.thrift.TException {getAllActivePrivateDeals_result result = new getAllActivePrivateDeals_result();result.success = iface.getAllActivePrivateDeals(args.itemIds, args.daysDelta);return result;}}private static class addOrUpdatePrivateDeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdatePrivateDeal_args> {public addOrUpdatePrivateDeal() {super("addOrUpdatePrivateDeal");}protected addOrUpdatePrivateDeal_args getEmptyArgsInstance() {return new addOrUpdatePrivateDeal_args();}protected addOrUpdatePrivateDeal_result getResult(I iface, addOrUpdatePrivateDeal_args args) throws org.apache.thrift.TException {addOrUpdatePrivateDeal_result result = new addOrUpdatePrivateDeal_result();result.success = iface.addOrUpdatePrivateDeal(args.privateDeal);result.setSuccessIsSet(true);return result;}}private static class getPrivateDealsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealsCatalogIds_args> {public getPrivateDealsCatalogIds() {super("getPrivateDealsCatalogIds");}protected getPrivateDealsCatalogIds_args getEmptyArgsInstance() {return new getPrivateDealsCatalogIds_args();}protected getPrivateDealsCatalogIds_result getResult(I iface, getPrivateDealsCatalogIds_args args) throws org.apache.thrift.TException {getPrivateDealsCatalogIds_result result = new getPrivateDealsCatalogIds_result();try {result.success = iface.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getPrivateDealsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealsCount_args> {public getPrivateDealsCount() {super("getPrivateDealsCount");}protected getPrivateDealsCount_args getEmptyArgsInstance() {return new getPrivateDealsCount_args();}protected getPrivateDealsCount_result getResult(I iface, getPrivateDealsCount_args args) throws org.apache.thrift.TException {getPrivateDealsCount_result result = new getPrivateDealsCount_result();result.success = iface.getPrivateDealsCount();result.setSuccessIsSet(true);return result;}}private static class getAmazonOutSyncItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonOutSyncItems_args> {public getAmazonOutSyncItems() {super("getAmazonOutSyncItems");}protected getAmazonOutSyncItems_args getEmptyArgsInstance() {return new getAmazonOutSyncItems_args();}protected getAmazonOutSyncItems_result getResult(I iface, getAmazonOutSyncItems_args args) throws org.apache.thrift.TException {getAmazonOutSyncItems_result result = new getAmazonOutSyncItems_result();result.success = iface.getAmazonOutSyncItems(args.item_id);return result;}}private static class getAllPrivateDealsComparison<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPrivateDealsComparison_args> {public getAllPrivateDealsComparison() {super("getAllPrivateDealsComparison");}protected getAllPrivateDealsComparison_args getEmptyArgsInstance() {return new getAllPrivateDealsComparison_args();}protected getAllPrivateDealsComparison_result getResult(I iface, getAllPrivateDealsComparison_args args) throws org.apache.thrift.TException {getAllPrivateDealsComparison_result result = new getAllPrivateDealsComparison_result();result.success = iface.getAllPrivateDealsComparison();return result;}}private static class getAllSnapdealMarketplaceItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealMarketplaceItem_args> {public getAllSnapdealMarketplaceItem() {super("getAllSnapdealMarketplaceItem");}protected getAllSnapdealMarketplaceItem_args getEmptyArgsInstance() {return new getAllSnapdealMarketplaceItem_args();}protected getAllSnapdealMarketplaceItem_result getResult(I iface, getAllSnapdealMarketplaceItem_args args) throws org.apache.thrift.TException {getAllSnapdealMarketplaceItem_result result = new getAllSnapdealMarketplaceItem_result();result.success = iface.getAllSnapdealMarketplaceItem();return result;}}private static class getAllFlipkartMarketplaceItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFlipkartMarketplaceItem_args> {public getAllFlipkartMarketplaceItem() {super("getAllFlipkartMarketplaceItem");}protected getAllFlipkartMarketplaceItem_args getEmptyArgsInstance() {return new getAllFlipkartMarketplaceItem_args();}protected getAllFlipkartMarketplaceItem_result getResult(I iface, getAllFlipkartMarketplaceItem_args args) throws org.apache.thrift.TException {getAllFlipkartMarketplaceItem_result result = new getAllFlipkartMarketplaceItem_result();result.success = iface.getAllFlipkartMarketplaceItem();return result;}}private static class addCompetitorScraping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCompetitorScraping_args> {public addCompetitorScraping() {super("addCompetitorScraping");}protected addCompetitorScraping_args getEmptyArgsInstance() {return new addCompetitorScraping_args();}protected addCompetitorScraping_result getResult(I iface, addCompetitorScraping_args args) throws org.apache.thrift.TException {addCompetitorScraping_result result = new addCompetitorScraping_result();iface.addCompetitorScraping(args.competitorPricingMap);return result;}}private static class getPreviousCompetitorScraping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPreviousCompetitorScraping_args> {public getPreviousCompetitorScraping() {super("getPreviousCompetitorScraping");}protected getPreviousCompetitorScraping_args getEmptyArgsInstance() {return new getPreviousCompetitorScraping_args();}protected getPreviousCompetitorScraping_result getResult(I iface, getPreviousCompetitorScraping_args args) throws org.apache.thrift.TException {getPreviousCompetitorScraping_result result = new getPreviousCompetitorScraping_result();result.success = iface.getPreviousCompetitorScraping(args.delta);return result;}}private static class getUploadResultById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUploadResultById_args> {public getUploadResultById() {super("getUploadResultById");}protected getUploadResultById_args getEmptyArgsInstance() {return new getUploadResultById_args();}protected getUploadResultById_result getResult(I iface, getUploadResultById_args args) throws org.apache.thrift.TException {getUploadResultById_result result = new getUploadResultById_result();result.success = iface.getUploadResultById(args.uploadId);return result;}}private static class addAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAmazonPromotion_args> {public addAmazonPromotion() {super("addAmazonPromotion");}protected addAmazonPromotion_args getEmptyArgsInstance() {return new addAmazonPromotion_args();}protected addAmazonPromotion_result getResult(I iface, addAmazonPromotion_args args) throws org.apache.thrift.TException {addAmazonPromotion_result result = new addAmazonPromotion_result();try {result.success = iface.addAmazonPromotion(args.amazonPromotions);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonPromotion_args> {public getAmazonPromotion() {super("getAmazonPromotion");}protected getAmazonPromotion_args getEmptyArgsInstance() {return new getAmazonPromotion_args();}protected getAmazonPromotion_result getResult(I iface, getAmazonPromotion_args args) throws org.apache.thrift.TException {getAmazonPromotion_result result = new getAmazonPromotion_result();result.success = iface.getAmazonPromotion(args.startDate, args.endDate);return result;}}private static class updateAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAmazonPromotion_args> {public updateAmazonPromotion() {super("updateAmazonPromotion");}protected updateAmazonPromotion_args getEmptyArgsInstance() {return new updateAmazonPromotion_args();}protected updateAmazonPromotion_result getResult(I iface, updateAmazonPromotion_args args) throws org.apache.thrift.TException {updateAmazonPromotion_result result = new updateAmazonPromotion_result();result.success = iface.updateAmazonPromotion(args.amazonPromotions);result.setSuccessIsSet(true);return result;}}private static class markPartiallyActive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPartiallyActive_args> {public markPartiallyActive() {super("markPartiallyActive");}protected markPartiallyActive_args getEmptyArgsInstance() {return new markPartiallyActive_args();}protected markPartiallyActive_result getResult(I iface, markPartiallyActive_args args) throws org.apache.thrift.TException {markPartiallyActive_result result = new markPartiallyActive_result();result.success = iface.markPartiallyActive(args.itemId, args.categoryId);result.setSuccessIsSet(true);return result;}}private static class updateItemStateVat<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStateVat_args> {public updateItemStateVat() {super("updateItemStateVat");}protected updateItemStateVat_args getEmptyArgsInstance() {return new updateItemStateVat_args();}protected updateItemStateVat_result getResult(I iface, updateItemStateVat_args args) throws org.apache.thrift.TException {updateItemStateVat_result result = new updateItemStateVat_result();result.success = iface.updateItemStateVat(args.itemId, args.statevat);result.setSuccessIsSet(true);return result;}}private static class getExAffiliateItemInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getExAffiliateItemInfo_args> {public getExAffiliateItemInfo() {super("getExAffiliateItemInfo");}protected getExAffiliateItemInfo_args getEmptyArgsInstance() {return new getExAffiliateItemInfo_args();}protected getExAffiliateItemInfo_result getResult(I iface, getExAffiliateItemInfo_args args) throws org.apache.thrift.TException {getExAffiliateItemInfo_result result = new getExAffiliateItemInfo_result();result.success = iface.getExAffiliateItemInfo();return result;}}private static class getAllItemstoListOnFbg<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemstoListOnFbg_args> {public getAllItemstoListOnFbg() {super("getAllItemstoListOnFbg");}protected getAllItemstoListOnFbg_args getEmptyArgsInstance() {return new getAllItemstoListOnFbg_args();}protected getAllItemstoListOnFbg_result getResult(I iface, getAllItemstoListOnFbg_args args) throws org.apache.thrift.TException {getAllItemstoListOnFbg_result result = new getAllItemstoListOnFbg_result();result.success = iface.getAllItemstoListOnFbg();return result;}}private static class getAllFbgListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbgListedItems_args> {public getAllFbgListedItems() {super("getAllFbgListedItems");}protected getAllFbgListedItems_args getEmptyArgsInstance() {return new getAllFbgListedItems_args();}protected getAllFbgListedItems_result getResult(I iface, getAllFbgListedItems_args args) throws org.apache.thrift.TException {getAllFbgListedItems_result result = new getAllFbgListedItems_result();result.success = iface.getAllFbgListedItems();return result;}}private static class checkServices<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkServices_args> {public checkServices() {super("checkServices");}protected checkServices_args getEmptyArgsInstance() {return new checkServices_args();}protected checkServices_result getResult(I iface, checkServices_args args) throws org.apache.thrift.TException {checkServices_result result = new checkServices_result();try {result.success = iface.checkServices(args.lines);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addHsItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addHsItem_args> {public addHsItem() {super("addHsItem");}protected addHsItem_args getEmptyArgsInstance() {return new addHsItem_args();}protected addHsItem_result getResult(I iface, addHsItem_args args) throws org.apache.thrift.TException {addHsItem_result result = new addHsItem_result();iface.addHsItem(args.hsItems);return result;}}private static class getHsItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHsItem_args> {public getHsItem() {super("getHsItem");}protected getHsItem_args getEmptyArgsInstance() {return new getHsItem_args();}protected getHsItem_result getResult(I iface, getHsItem_args args) throws org.apache.thrift.TException {getHsItem_result result = new getHsItem_result();result.success = iface.getHsItem(args.hsItemId);return result;}}private static class updateHsItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateHsItem_args> {public updateHsItem() {super("updateHsItem");}protected updateHsItem_args getEmptyArgsInstance() {return new updateHsItem_args();}protected updateHsItem_result getResult(I iface, updateHsItem_args args) throws org.apache.thrift.TException {updateHsItem_result result = new updateHsItem_result();iface.updateHsItem(args.hsItem);return result;}}private static class getPricingForDtr<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPricingForDtr_args> {public getPricingForDtr() {super("getPricingForDtr");}protected getPricingForDtr_args getEmptyArgsInstance() {return new getPricingForDtr_args();}protected getPricingForDtr_result getResult(I iface, getPricingForDtr_args args) throws org.apache.thrift.TException {getPricingForDtr_result result = new getPricingForDtr_result();result.success = iface.getPricingForDtr(args.catalogItemId);return result;}}private static class getAllItemstoListOnFbd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemstoListOnFbd_args> {public getAllItemstoListOnFbd() {super("getAllItemstoListOnFbd");}protected getAllItemstoListOnFbd_args getEmptyArgsInstance() {return new getAllItemstoListOnFbd_args();}protected getAllItemstoListOnFbd_result getResult(I iface, getAllItemstoListOnFbd_args args) throws org.apache.thrift.TException {getAllItemstoListOnFbd_result result = new getAllItemstoListOnFbd_result();result.success = iface.getAllItemstoListOnFbd();return result;}}private static class getAllFbdListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbdListedItems_args> {public getAllFbdListedItems() {super("getAllFbdListedItems");}protected getAllFbdListedItems_args getEmptyArgsInstance() {return new getAllFbdListedItems_args();}protected getAllFbdListedItems_result getResult(I iface, getAllFbdListedItems_args args) throws org.apache.thrift.TException {getAllFbdListedItems_result result = new getAllFbdListedItems_result();result.success = iface.getAllFbdListedItems();return result;}}private static class getBulkPricingForItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBulkPricingForItems_args> {public getBulkPricingForItems() {super("getBulkPricingForItems");}protected getBulkPricingForItems_args getEmptyArgsInstance() {return new getBulkPricingForItems_args();}protected getBulkPricingForItems_result getResult(I iface, getBulkPricingForItems_args args) throws org.apache.thrift.TException {getBulkPricingForItems_result result = new getBulkPricingForItems_result();result.success = iface.getBulkPricingForItems(args.itemIds);return result;}}private static class addBulkPricingForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBulkPricingForItem_args> {public addBulkPricingForItem() {super("addBulkPricingForItem");}protected addBulkPricingForItem_args getEmptyArgsInstance() {return new addBulkPricingForItem_args();}protected addBulkPricingForItem_result getResult(I iface, addBulkPricingForItem_args args) throws org.apache.thrift.TException {addBulkPricingForItem_result result = new addBulkPricingForItem_result();result.success = iface.addBulkPricingForItem(args.bulkItemPricing);return result;}}private static class deleteBulkPricingForItemById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBulkPricingForItemById_args> {public deleteBulkPricingForItemById() {super("deleteBulkPricingForItemById");}protected deleteBulkPricingForItemById_args getEmptyArgsInstance() {return new deleteBulkPricingForItemById_args();}protected deleteBulkPricingForItemById_result getResult(I iface, deleteBulkPricingForItemById_args args) throws org.apache.thrift.TException {deleteBulkPricingForItemById_result result = new deleteBulkPricingForItemById_result();result.success = iface.deleteBulkPricingForItemById(args.id);result.setSuccessIsSet(true);return result;}}private static class deleteBulkPricingForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBulkPricingForItem_args> {public deleteBulkPricingForItem() {super("deleteBulkPricingForItem");}protected deleteBulkPricingForItem_args getEmptyArgsInstance() {return new deleteBulkPricingForItem_args();}protected deleteBulkPricingForItem_result getResult(I iface, deleteBulkPricingForItem_args args) throws org.apache.thrift.TException {deleteBulkPricingForItem_result result = new deleteBulkPricingForItem_result();result.success = iface.deleteBulkPricingForItem(args.item_id);result.setSuccessIsSet(true);return result;}}private static class getBulkPricingByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBulkPricingByItemId_args> {public getBulkPricingByItemId() {super("getBulkPricingByItemId");}protected getBulkPricingByItemId_args getEmptyArgsInstance() {return new getBulkPricingByItemId_args();}protected getBulkPricingByItemId_result getResult(I iface, getBulkPricingByItemId_args args) throws org.apache.thrift.TException {getBulkPricingByItemId_result result = new getBulkPricingByItemId_result();result.success = iface.getBulkPricingByItemId(args.item_id);return result;}}private static class updateBulkPricesOnProduction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBulkPricesOnProduction_args> {public updateBulkPricesOnProduction() {super("updateBulkPricesOnProduction");}protected updateBulkPricesOnProduction_args getEmptyArgsInstance() {return new updateBulkPricesOnProduction_args();}protected updateBulkPricesOnProduction_result getResult(I iface, updateBulkPricesOnProduction_args args) throws org.apache.thrift.TException {updateBulkPricesOnProduction_result result = new updateBulkPricesOnProduction_result();result.success = iface.updateBulkPricesOnProduction(args.item_id, args.bulkItemPricingList);result.setSuccessIsSet(true);return result;}}private static class getCartByValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartByValue_args> {public getCartByValue() {super("getCartByValue");}protected getCartByValue_args getEmptyArgsInstance() {return new getCartByValue_args();}protected getCartByValue_result getResult(I iface, getCartByValue_args args) throws org.apache.thrift.TException {getCartByValue_result result = new getCartByValue_result();result.success = iface.getCartByValue(args.cartIds);return result;}}private static class updateItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemPricing_args> {public updateItemPricing() {super("updateItemPricing");}protected updateItemPricing_args getEmptyArgsInstance() {return new updateItemPricing_args();}protected updateItemPricing_result getResult(I iface, updateItemPricing_args args) throws org.apache.thrift.TException {updateItemPricing_result result = new updateItemPricing_result();result.success = iface.updateItemPricing(args.itemPricingList);result.setSuccessIsSet(true);return result;}}private static class bulkUpdateCatalog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, bulkUpdateCatalog_args> {public bulkUpdateCatalog() {super("bulkUpdateCatalog");}protected bulkUpdateCatalog_args getEmptyArgsInstance() {return new bulkUpdateCatalog_args();}protected bulkUpdateCatalog_result getResult(I iface, bulkUpdateCatalog_args args) throws org.apache.thrift.TException {bulkUpdateCatalog_result result = new bulkUpdateCatalog_result();try {iface.bulkUpdateCatalog(args.bulkUploadCatalog);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getWarrantyInfoForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarrantyInfoForItem_args> {public getWarrantyInfoForItem() {super("getWarrantyInfoForItem");}protected getWarrantyInfoForItem_args getEmptyArgsInstance() {return new getWarrantyInfoForItem_args();}protected getWarrantyInfoForItem_result getResult(I iface, getWarrantyInfoForItem_args args) throws org.apache.thrift.TException {getWarrantyInfoForItem_result result = new getWarrantyInfoForItem_result();try {result.success = iface.getWarrantyInfoForItem(args.catalogItemId, args.itemCondition);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getWarrantyInfoForItemList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarrantyInfoForItemList_args> {public getWarrantyInfoForItemList() {super("getWarrantyInfoForItemList");}protected getWarrantyInfoForItemList_args getEmptyArgsInstance() {return new getWarrantyInfoForItemList_args();}protected getWarrantyInfoForItemList_result getResult(I iface, getWarrantyInfoForItemList_args args) throws org.apache.thrift.TException {getWarrantyInfoForItemList_result result = new getWarrantyInfoForItemList_result();try {result.success = iface.getWarrantyInfoForItemList(args.catalogItemIds, args.itemCondition);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getStateTaxRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStateTaxRate_args> {public getStateTaxRate() {super("getStateTaxRate");}protected getStateTaxRate_args getEmptyArgsInstance() {return new getStateTaxRate_args();}protected getStateTaxRate_result getResult(I iface, getStateTaxRate_args args) throws org.apache.thrift.TException {getStateTaxRate_result result = new getStateTaxRate_result();result.success = iface.getStateTaxRate(args.itemIds, args.stateId);return result;}}private static class getIgstTaxRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgstTaxRate_args> {public getIgstTaxRate() {super("getIgstTaxRate");}protected getIgstTaxRate_args getEmptyArgsInstance() {return new getIgstTaxRate_args();}protected getIgstTaxRate_result getResult(I iface, getIgstTaxRate_args args) throws org.apache.thrift.TException {getIgstTaxRate_result result = new getIgstTaxRate_result();result.success = iface.getIgstTaxRate(args.itemIds);return result;}}private static class persistGstRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, persistGstRate_args> {public persistGstRate() {super("persistGstRate");}protected persistGstRate_args getEmptyArgsInstance() {return new persistGstRate_args();}protected persistGstRate_result getResult(I iface, persistGstRate_args args) throws org.apache.thrift.TException {persistGstRate_result result = new persistGstRate_result();iface.persistGstRate(args.stateGstRates);return result;}}private static class getHsnCodesByCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHsnCodesByCategory_args> {public getHsnCodesByCategory() {super("getHsnCodesByCategory");}protected getHsnCodesByCategory_args getEmptyArgsInstance() {return new getHsnCodesByCategory_args();}protected getHsnCodesByCategory_result getResult(I iface, getHsnCodesByCategory_args args) throws org.apache.thrift.TException {getHsnCodesByCategory_result result = new getHsnCodesByCategory_result();try {result.success = iface.getHsnCodesByCategory(args.categoryId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllFofoDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFofoDeals_args> {public getAllFofoDeals() {super("getAllFofoDeals");}protected getAllFofoDeals_args getEmptyArgsInstance() {return new getAllFofoDeals_args();}protected getAllFofoDeals_result getResult(I iface, getAllFofoDeals_args args) throws org.apache.thrift.TException {getAllFofoDeals_result result = new getAllFofoDeals_result();result.success = iface.getAllFofoDeals(args.itemIds, args.tagIds);return result;}}}public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item item; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM((short)1, "item");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEMreturn ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItem_args.class, metaDataMap);}public addItem_args() {}public addItem_args(Item item){this();this.item = item;}/*** Performs a deep copy on <i>other</i>.*/public addItem_args(addItem_args other) {if (other.isSetItem()) {this.item = new Item(other.item);}}public addItem_args deepCopy() {return new addItem_args(this);}@Overridepublic void clear() {this.item = null;}public Item getItem() {return this.item;}public void setItem(Item item) {this.item = item;}public void unsetItem() {this.item = null;}/** Returns true if field item is set (has been assigned a value) and false otherwise */public boolean isSetItem() {return this.item != null;}public void setItemIsSet(boolean value) {if (!value) {this.item = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM:if (value == null) {unsetItem();} else {setItem((Item)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM:return getItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM:return isSetItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addItem_args)return this.equals((addItem_args)that);return false;}public boolean equals(addItem_args that) {if (that == null)return false;boolean this_present_item = true && this.isSetItem();boolean that_present_item = true && that.isSetItem();if (this_present_item || that_present_item) {if (!(this_present_item && that_present_item))return false;if (!this.item.equals(that.item))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addItem_args typedOther = (addItem_args)other;lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());if (lastComparison != 0) {return lastComparison;}if (isSetItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.item = new Item();this.item.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.item != null) {oprot.writeFieldBegin(ITEM_FIELD_DESC);this.item.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addItem_args(");boolean first = true;sb.append("item:");if (this.item == null) {sb.append("null");} else {sb.append(this.item);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addItem_result implements org.apache.thrift.TBase<addItem_result, addItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItem_result.class, metaDataMap);}public addItem_result() {}public addItem_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addItem_result(addItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addItem_result deepCopy() {return new addItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addItem_result)return this.equals((addItem_result)that);return false;}public boolean equals(addItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addItem_result typedOther = (addItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItem_args implements org.apache.thrift.TBase<updateItem_args, updateItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItem_args");private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item item; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM((short)1, "item");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEMreturn ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItem_args.class, metaDataMap);}public updateItem_args() {}public updateItem_args(Item item){this();this.item = item;}/*** Performs a deep copy on <i>other</i>.*/public updateItem_args(updateItem_args other) {if (other.isSetItem()) {this.item = new Item(other.item);}}public updateItem_args deepCopy() {return new updateItem_args(this);}@Overridepublic void clear() {this.item = null;}public Item getItem() {return this.item;}public void setItem(Item item) {this.item = item;}public void unsetItem() {this.item = null;}/** Returns true if field item is set (has been assigned a value) and false otherwise */public boolean isSetItem() {return this.item != null;}public void setItemIsSet(boolean value) {if (!value) {this.item = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM:if (value == null) {unsetItem();} else {setItem((Item)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM:return getItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM:return isSetItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItem_args)return this.equals((updateItem_args)that);return false;}public boolean equals(updateItem_args that) {if (that == null)return false;boolean this_present_item = true && this.isSetItem();boolean that_present_item = true && that.isSetItem();if (this_present_item || that_present_item) {if (!(this_present_item && that_present_item))return false;if (!this.item.equals(that.item))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItem_args typedOther = (updateItem_args)other;lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());if (lastComparison != 0) {return lastComparison;}if (isSetItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.item = new Item();this.item.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.item != null) {oprot.writeFieldBegin(ITEM_FIELD_DESC);this.item.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItem_args(");boolean first = true;sb.append("item:");if (this.item == null) {sb.append("null");} else {sb.append(this.item);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItem_result implements org.apache.thrift.TBase<updateItem_result, updateItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItem_result.class, metaDataMap);}public updateItem_result() {}public updateItem_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public updateItem_result(updateItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public updateItem_result deepCopy() {return new updateItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItem_result)return this.equals((updateItem_result)that);return false;}public boolean equals(updateItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItem_result typedOther = (updateItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isActive_args implements org.apache.thrift.TBase<isActive_args, isActive_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isActive_args.class, metaDataMap);}public isActive_args() {}public isActive_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public isActive_args(isActive_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public isActive_args deepCopy() {return new isActive_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isActive_args)return this.equals((isActive_args)that);return false;}public boolean equals(isActive_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isActive_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isActive_args typedOther = (isActive_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isActive_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isActive_result implements org.apache.thrift.TBase<isActive_result, isActive_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ItemShippingInfo success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemShippingInfo.class)));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isActive_result.class, metaDataMap);}public isActive_result() {}public isActive_result(ItemShippingInfo success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public isActive_result(isActive_result other) {if (other.isSetSuccess()) {this.success = new ItemShippingInfo(other.success);}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public isActive_result deepCopy() {return new isActive_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public ItemShippingInfo getSuccess() {return this.success;}public void setSuccess(ItemShippingInfo success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((ItemShippingInfo)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isActive_result)return this.equals((isActive_result)that);return false;}public boolean equals(isActive_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isActive_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isActive_result typedOther = (isActive_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new ItemShippingInfo();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isActive_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsStatus_args implements org.apache.thrift.TBase<getItemsStatus_args, getItemsStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsStatus_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> itemIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsStatus_args.class, metaDataMap);}public getItemsStatus_args() {}public getItemsStatus_args(List<Long> itemIds){this();this.itemIds = itemIds;}/*** Performs a deep copy on <i>other</i>.*/public getItemsStatus_args(getItemsStatus_args other) {if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}}public getItemsStatus_args deepCopy() {return new getItemsStatus_args(this);}@Overridepublic void clear() {this.itemIds = null;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsStatus_args)return this.equals((getItemsStatus_args)that);return false;}public boolean equals(getItemsStatus_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsStatus_args typedOther = (getItemsStatus_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list27 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list27.size);for (int _i28 = 0; _i28 < _list27.size; ++_i28){long _elem29; // required_elem29 = iprot.readI64();this.itemIds.add(_elem29);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter30 : this.itemIds){oprot.writeI64(_iter30);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsStatus_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsStatus_result implements org.apache.thrift.TBase<getItemsStatus_result, getItemsStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,Boolean> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsStatus_result.class, metaDataMap);}public getItemsStatus_result() {}public getItemsStatus_result(Map<Long,Boolean> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getItemsStatus_result(getItemsStatus_result other) {if (other.isSetSuccess()) {Map<Long,Boolean> __this__success = new HashMap<Long,Boolean>();for (Map.Entry<Long, Boolean> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Boolean other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Boolean __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getItemsStatus_result deepCopy() {return new getItemsStatus_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, boolean val) {if (this.success == null) {this.success = new HashMap<Long,Boolean>();}this.success.put(key, val);}public Map<Long,Boolean> getSuccess() {return this.success;}public void setSuccess(Map<Long,Boolean> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Boolean>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsStatus_result)return this.equals((getItemsStatus_result)that);return false;}public boolean equals(getItemsStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsStatus_result typedOther = (getItemsStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin();this.success = new HashMap<Long,Boolean>(2*_map31.size);for (int _i32 = 0; _i32 < _map31.size; ++_i32){long _key33; // requiredboolean _val34; // required_key33 = iprot.readI64();_val34 = iprot.readBool();this.success.put(_key33, _val34);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.success.size()));for (Map.Entry<Long, Boolean> _iter35 : this.success.entrySet()){oprot.writeI64(_iter35.getKey());oprot.writeBool(_iter35.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemStatusDescription_args implements org.apache.thrift.TBase<getItemStatusDescription_args, getItemStatusDescription_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStatusDescription_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStatusDescription_args.class, metaDataMap);}public getItemStatusDescription_args() {}public getItemStatusDescription_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemStatusDescription_args(getItemStatusDescription_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getItemStatusDescription_args deepCopy() {return new getItemStatusDescription_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemStatusDescription_args)return this.equals((getItemStatusDescription_args)that);return false;}public boolean equals(getItemStatusDescription_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemStatusDescription_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemStatusDescription_args typedOther = (getItemStatusDescription_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemStatusDescription_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemStatusDescription_result implements org.apache.thrift.TBase<getItemStatusDescription_result, getItemStatusDescription_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStatusDescription_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private String success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStatusDescription_result.class, metaDataMap);}public getItemStatusDescription_result() {}public getItemStatusDescription_result(String success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getItemStatusDescription_result(getItemStatusDescription_result other) {if (other.isSetSuccess()) {this.success = other.success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getItemStatusDescription_result deepCopy() {return new getItemStatusDescription_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public String getSuccess() {return this.success;}public void setSuccess(String success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((String)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemStatusDescription_result)return this.equals((getItemStatusDescription_result)that);return false;}public boolean equals(getItemStatusDescription_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemStatusDescription_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemStatusDescription_result typedOther = (getItemStatusDescription_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.success = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeString(this.success);oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemStatusDescription_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class startItemOn_args implements org.apache.thrift.TBase<startItemOn_args, startItemOn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startItemOn_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private long item_id; // requiredprivate long timestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),TIMESTAMP((short)2, "timestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // TIMESTAMPreturn TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __TIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startItemOn_args.class, metaDataMap);}public startItemOn_args() {}public startItemOn_args(long item_id,long timestamp){this();this.item_id = item_id;setItem_idIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public startItemOn_args(startItemOn_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.timestamp = other.timestamp;}public startItemOn_args deepCopy() {return new startItemOn_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setTimestampIsSet(false);this.timestamp = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case TIMESTAMP:return Long.valueOf(getTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof startItemOn_args)return this.equals((startItemOn_args)that);return false;}public boolean equals(startItemOn_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(startItemOn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;startItemOn_args typedOther = (startItemOn_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("startItemOn_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class startItemOn_result implements org.apache.thrift.TBase<startItemOn_result, startItemOn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startItemOn_result");private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startItemOn_result.class, metaDataMap);}public startItemOn_result() {}public startItemOn_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public startItemOn_result(startItemOn_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public startItemOn_result deepCopy() {return new startItemOn_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof startItemOn_result)return this.equals((startItemOn_result)that);return false;}public boolean equals(startItemOn_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(startItemOn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;startItemOn_result typedOther = (startItemOn_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("startItemOn_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class retireItemOn_args implements org.apache.thrift.TBase<retireItemOn_args, retireItemOn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireItemOn_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private long item_id; // requiredprivate long timestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),TIMESTAMP((short)2, "timestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // TIMESTAMPreturn TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __TIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireItemOn_args.class, metaDataMap);}public retireItemOn_args() {}public retireItemOn_args(long item_id,long timestamp){this();this.item_id = item_id;setItem_idIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public retireItemOn_args(retireItemOn_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.timestamp = other.timestamp;}public retireItemOn_args deepCopy() {return new retireItemOn_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setTimestampIsSet(false);this.timestamp = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case TIMESTAMP:return Long.valueOf(getTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof retireItemOn_args)return this.equals((retireItemOn_args)that);return false;}public boolean equals(retireItemOn_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(retireItemOn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;retireItemOn_args typedOther = (retireItemOn_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("retireItemOn_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class retireItemOn_result implements org.apache.thrift.TBase<retireItemOn_result, retireItemOn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireItemOn_result");private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireItemOn_result.class, metaDataMap);}public retireItemOn_result() {}public retireItemOn_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public retireItemOn_result(retireItemOn_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public retireItemOn_result deepCopy() {return new retireItemOn_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof retireItemOn_result)return this.equals((retireItemOn_result)that);return false;}public boolean equals(retireItemOn_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(retireItemOn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;retireItemOn_result typedOther = (retireItemOn_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("retireItemOn_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField NEWSTATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("newstatus", org.apache.thrift.protocol.TType.I32, (short)3);private long item_id; // requiredprivate long timestamp; // requiredprivate status newstatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),TIMESTAMP((short)2, "timestamp"),/**** @see status*/NEWSTATUS((short)3, "newstatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // TIMESTAMPreturn TIMESTAMP;case 3: // NEWSTATUSreturn NEWSTATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __TIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.NEWSTATUS, new org.apache.thrift.meta_data.FieldMetaData("newstatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);}public changeItemStatus_args() {}public changeItemStatus_args(long item_id,long timestamp,status newstatus){this();this.item_id = item_id;setItem_idIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);this.newstatus = newstatus;}/*** Performs a deep copy on <i>other</i>.*/public changeItemStatus_args(changeItemStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.timestamp = other.timestamp;if (other.isSetNewstatus()) {this.newstatus = other.newstatus;}}public changeItemStatus_args deepCopy() {return new changeItemStatus_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setTimestampIsSet(false);this.timestamp = 0;this.newstatus = null;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}/**** @see status*/public status getNewstatus() {return this.newstatus;}/**** @see status*/public void setNewstatus(status newstatus) {this.newstatus = newstatus;}public void unsetNewstatus() {this.newstatus = null;}/** Returns true if field newstatus is set (has been assigned a value) and false otherwise */public boolean isSetNewstatus() {return this.newstatus != null;}public void setNewstatusIsSet(boolean value) {if (!value) {this.newstatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;case NEWSTATUS:if (value == null) {unsetNewstatus();} else {setNewstatus((status)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case TIMESTAMP:return Long.valueOf(getTimestamp());case NEWSTATUS:return getNewstatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case TIMESTAMP:return isSetTimestamp();case NEWSTATUS:return isSetNewstatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemStatus_args)return this.equals((changeItemStatus_args)that);return false;}public boolean equals(changeItemStatus_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}boolean this_present_newstatus = true && this.isSetNewstatus();boolean that_present_newstatus = true && that.isSetNewstatus();if (this_present_newstatus || that_present_newstatus) {if (!(this_present_newstatus && that_present_newstatus))return false;if (!this.newstatus.equals(that.newstatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemStatus_args typedOther = (changeItemStatus_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNewstatus()).compareTo(typedOther.isSetNewstatus());if (lastComparison != 0) {return lastComparison;}if (isSetNewstatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newstatus, typedOther.newstatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // NEWSTATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.newstatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();if (this.newstatus != null) {oprot.writeFieldBegin(NEWSTATUS_FIELD_DESC);oprot.writeI32(this.newstatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemStatus_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;if (!first) sb.append(", ");sb.append("newstatus:");if (this.newstatus == null) {sb.append("null");} else {sb.append(this.newstatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);}public changeItemStatus_result() {}public changeItemStatus_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public changeItemStatus_result(changeItemStatus_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public changeItemStatus_result deepCopy() {return new changeItemStatus_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemStatus_result)return this.equals((changeItemStatus_result)that);return false;}public boolean equals(changeItemStatus_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemStatus_result typedOther = (changeItemStatus_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemStatus_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItem_args implements org.apache.thrift.TBase<getItem_args, getItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItem_args.class, metaDataMap);}public getItem_args() {}public getItem_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItem_args(getItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getItem_args deepCopy() {return new getItem_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItem_args)return this.equals((getItem_args)that);return false;}public boolean equals(getItem_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItem_args typedOther = (getItem_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItem_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItem_result implements org.apache.thrift.TBase<getItem_result, getItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItem_result.class, metaDataMap);}public getItem_result() {}public getItem_result(Item success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItem_result(getItem_result other) {if (other.isSetSuccess()) {this.success = new Item(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItem_result deepCopy() {return new getItem_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public Item getSuccess() {return this.success;}public void setSuccess(Item success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Item)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItem_result)return this.equals((getItem_result)that);return false;}public boolean equals(getItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItem_result typedOther = (getItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Item();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItems_args implements org.apache.thrift.TBase<getItems_args, getItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItems_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("item_ids", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> item_ids; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "item_ids");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItems_args.class, metaDataMap);}public getItems_args() {}public getItems_args(List<Long> item_ids){this();this.item_ids = item_ids;}/*** Performs a deep copy on <i>other</i>.*/public getItems_args(getItems_args other) {if (other.isSetItem_ids()) {List<Long> __this__item_ids = new ArrayList<Long>();for (Long other_element : other.item_ids) {__this__item_ids.add(other_element);}this.item_ids = __this__item_ids;}}public getItems_args deepCopy() {return new getItems_args(this);}@Overridepublic void clear() {this.item_ids = null;}public int getItem_idsSize() {return (this.item_ids == null) ? 0 : this.item_ids.size();}public java.util.Iterator<Long> getItem_idsIterator() {return (this.item_ids == null) ? null : this.item_ids.iterator();}public void addToItem_ids(long elem) {if (this.item_ids == null) {this.item_ids = new ArrayList<Long>();}this.item_ids.add(elem);}public List<Long> getItem_ids() {return this.item_ids;}public void setItem_ids(List<Long> item_ids) {this.item_ids = item_ids;}public void unsetItem_ids() {this.item_ids = null;}/** Returns true if field item_ids is set (has been assigned a value) and false otherwise */public boolean isSetItem_ids() {return this.item_ids != null;}public void setItem_idsIsSet(boolean value) {if (!value) {this.item_ids = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItem_ids();} else {setItem_ids((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItem_ids();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItem_ids();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItems_args)return this.equals((getItems_args)that);return false;}public boolean equals(getItems_args that) {if (that == null)return false;boolean this_present_item_ids = true && this.isSetItem_ids();boolean that_present_item_ids = true && that.isSetItem_ids();if (this_present_item_ids || that_present_item_ids) {if (!(this_present_item_ids && that_present_item_ids))return false;if (!this.item_ids.equals(that.item_ids))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItems_args typedOther = (getItems_args)other;lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());if (lastComparison != 0) {return lastComparison;}if (isSetItem_ids()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();this.item_ids = new ArrayList<Long>(_list36.size);for (int _i37 = 0; _i37 < _list36.size; ++_i37){long _elem38; // required_elem38 = iprot.readI64();this.item_ids.add(_elem38);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.item_ids != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));for (long _iter39 : this.item_ids){oprot.writeI64(_iter39);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItems_args(");boolean first = true;sb.append("item_ids:");if (this.item_ids == null) {sb.append("null");} else {sb.append(this.item_ids);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItems_result implements org.apache.thrift.TBase<getItems_result, getItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItems_result.class, metaDataMap);}public getItems_result() {}public getItems_result(Map<Long,Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItems_result(getItems_result other) {if (other.isSetSuccess()) {Map<Long,Item> __this__success = new HashMap<Long,Item>();for (Map.Entry<Long, Item> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Item other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Item __this__success_copy_value = new Item(other_element_value);__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItems_result deepCopy() {return new getItems_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, Item val) {if (this.success == null) {this.success = new HashMap<Long,Item>();}this.success.put(key, val);}public Map<Long,Item> getSuccess() {return this.success;}public void setSuccess(Map<Long,Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItems_result)return this.equals((getItems_result)that);return false;}public boolean equals(getItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItems_result typedOther = (getItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map40 = iprot.readMapBegin();this.success = new HashMap<Long,Item>(2*_map40.size);for (int _i41 = 0; _i41 < _map40.size; ++_i41){long _key42; // requiredItem _val43; // required_key42 = iprot.readI64();_val43 = new Item();_val43.read(iprot);this.success.put(_key42, _val43);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Map.Entry<Long, Item> _iter44 : this.success.entrySet()){oprot.writeI64(_iter44.getKey());_iter44.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByCatalogId_args implements org.apache.thrift.TBase<getItemsByCatalogId_args, getItemsByCatalogId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCatalogId_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long catalog_item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCatalogId_args.class, metaDataMap);}public getItemsByCatalogId_args() {}public getItemsByCatalogId_args(long catalog_item_id){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemsByCatalogId_args(getItemsByCatalogId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;}public getItemsByCatalogId_args deepCopy() {return new getItemsByCatalogId_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByCatalogId_args)return this.equals((getItemsByCatalogId_args)that);return false;}public boolean equals(getItemsByCatalogId_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByCatalogId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByCatalogId_args typedOther = (getItemsByCatalogId_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByCatalogId_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByCatalogId_result implements org.apache.thrift.TBase<getItemsByCatalogId_result, getItemsByCatalogId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCatalogId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCatalogId_result.class, metaDataMap);}public getItemsByCatalogId_result() {}public getItemsByCatalogId_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItemsByCatalogId_result(getItemsByCatalogId_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItemsByCatalogId_result deepCopy() {return new getItemsByCatalogId_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByCatalogId_result)return this.equals((getItemsByCatalogId_result)that);return false;}public boolean equals(getItemsByCatalogId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByCatalogId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByCatalogId_result typedOther = (getItemsByCatalogId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();this.success = new ArrayList<Item>(_list45.size);for (int _i46 = 0; _i46 < _list45.size; ++_i46){Item _elem47; // required_elem47 = new Item();_elem47.read(iprot);this.success.add(_elem47);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter48 : this.success){_iter48.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByCatalogId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidItemsByCatalogId_args implements org.apache.thrift.TBase<getValidItemsByCatalogId_args, getValidItemsByCatalogId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidItemsByCatalogId_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long catalog_item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidItemsByCatalogId_args.class, metaDataMap);}public getValidItemsByCatalogId_args() {}public getValidItemsByCatalogId_args(long catalog_item_id){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getValidItemsByCatalogId_args(getValidItemsByCatalogId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;}public getValidItemsByCatalogId_args deepCopy() {return new getValidItemsByCatalogId_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidItemsByCatalogId_args)return this.equals((getValidItemsByCatalogId_args)that);return false;}public boolean equals(getValidItemsByCatalogId_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidItemsByCatalogId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidItemsByCatalogId_args typedOther = (getValidItemsByCatalogId_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidItemsByCatalogId_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidItemsByCatalogId_result implements org.apache.thrift.TBase<getValidItemsByCatalogId_result, getValidItemsByCatalogId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidItemsByCatalogId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidItemsByCatalogId_result.class, metaDataMap);}public getValidItemsByCatalogId_result() {}public getValidItemsByCatalogId_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getValidItemsByCatalogId_result(getValidItemsByCatalogId_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getValidItemsByCatalogId_result deepCopy() {return new getValidItemsByCatalogId_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidItemsByCatalogId_result)return this.equals((getValidItemsByCatalogId_result)that);return false;}public boolean equals(getValidItemsByCatalogId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidItemsByCatalogId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidItemsByCatalogId_result typedOther = (getValidItemsByCatalogId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();this.success = new ArrayList<Item>(_list49.size);for (int _i50 = 0; _i50 < _list49.size; ++_i50){Item _elem51; // required_elem51 = new Item();_elem51.read(iprot);this.success.add(_elem51);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter52 : this.success){_iter52.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidItemsByCatalogId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItems_args implements org.apache.thrift.TBase<getAllItems_args, getAllItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItems_args");private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)1);private boolean isActive; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {IS_ACTIVE((short)1, "isActive");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IS_ACTIVEreturn IS_ACTIVE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ISACTIVE_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItems_args.class, metaDataMap);}public getAllItems_args() {}public getAllItems_args(boolean isActive){this();this.isActive = isActive;setIsActiveIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItems_args(getAllItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.isActive = other.isActive;}public getAllItems_args deepCopy() {return new getAllItems_args(this);}@Overridepublic void clear() {setIsActiveIsSet(false);this.isActive = false;}public boolean isIsActive() {return this.isActive;}public void setIsActive(boolean isActive) {this.isActive = isActive;setIsActiveIsSet(true);}public void unsetIsActive() {__isset_bit_vector.clear(__ISACTIVE_ISSET_ID);}/** Returns true if field isActive is set (has been assigned a value) and false otherwise */public boolean isSetIsActive() {return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);}public void setIsActiveIsSet(boolean value) {__isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case IS_ACTIVE:if (value == null) {unsetIsActive();} else {setIsActive((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case IS_ACTIVE:return Boolean.valueOf(isIsActive());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case IS_ACTIVE:return isSetIsActive();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItems_args)return this.equals((getAllItems_args)that);return false;}public boolean equals(getAllItems_args that) {if (that == null)return false;boolean this_present_isActive = true;boolean that_present_isActive = true;if (this_present_isActive || that_present_isActive) {if (!(this_present_isActive && that_present_isActive))return false;if (this.isActive != that.isActive)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItems_args typedOther = (getAllItems_args)other;lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());if (lastComparison != 0) {return lastComparison;}if (isSetIsActive()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IS_ACTIVEif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isActive = iprot.readBool();setIsActiveIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);oprot.writeBool(this.isActive);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItems_args(");boolean first = true;sb.append("isActive:");sb.append(this.isActive);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItems_result implements org.apache.thrift.TBase<getAllItems_result, getAllItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItems_result.class, metaDataMap);}public getAllItems_result() {}public getAllItems_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItems_result(getAllItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItems_result deepCopy() {return new getAllItems_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItems_result)return this.equals((getAllItems_result)that);return false;}public boolean equals(getAllItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItems_result typedOther = (getAllItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();this.success = new ArrayList<Item>(_list53.size);for (int _i54 = 0; _i54 < _list53.size; ++_i54){Item _elem55; // required_elem55 = new Item();_elem55.read(iprot);this.success.add(_elem55);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter56 : this.success){_iter56.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatus_args implements org.apache.thrift.TBase<getAllItemsByStatus_args, getAllItemsByStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatus_args");private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)1);private status itemStatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see status*/ITEM_STATUS((short)1, "itemStatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_STATUSreturn ITEM_STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatus_args.class, metaDataMap);}public getAllItemsByStatus_args() {}public getAllItemsByStatus_args(status itemStatus){this();this.itemStatus = itemStatus;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatus_args(getAllItemsByStatus_args other) {if (other.isSetItemStatus()) {this.itemStatus = other.itemStatus;}}public getAllItemsByStatus_args deepCopy() {return new getAllItemsByStatus_args(this);}@Overridepublic void clear() {this.itemStatus = null;}/**** @see status*/public status getItemStatus() {return this.itemStatus;}/**** @see status*/public void setItemStatus(status itemStatus) {this.itemStatus = itemStatus;}public void unsetItemStatus() {this.itemStatus = null;}/** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */public boolean isSetItemStatus() {return this.itemStatus != null;}public void setItemStatusIsSet(boolean value) {if (!value) {this.itemStatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_STATUS:if (value == null) {unsetItemStatus();} else {setItemStatus((status)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_STATUS:return getItemStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_STATUS:return isSetItemStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatus_args)return this.equals((getAllItemsByStatus_args)that);return false;}public boolean equals(getAllItemsByStatus_args that) {if (that == null)return false;boolean this_present_itemStatus = true && this.isSetItemStatus();boolean that_present_itemStatus = true && that.isSetItemStatus();if (this_present_itemStatus || that_present_itemStatus) {if (!(this_present_itemStatus && that_present_itemStatus))return false;if (!this.itemStatus.equals(that.itemStatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatus_args typedOther = (getAllItemsByStatus_args)other;lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());if (lastComparison != 0) {return lastComparison;}if (isSetItemStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemStatus != null) {oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);oprot.writeI32(this.itemStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatus_args(");boolean first = true;sb.append("itemStatus:");if (this.itemStatus == null) {sb.append("null");} else {sb.append(this.itemStatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatus_result implements org.apache.thrift.TBase<getAllItemsByStatus_result, getAllItemsByStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatus_result.class, metaDataMap);}public getAllItemsByStatus_result() {}public getAllItemsByStatus_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatus_result(getAllItemsByStatus_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItemsByStatus_result deepCopy() {return new getAllItemsByStatus_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatus_result)return this.equals((getAllItemsByStatus_result)that);return false;}public boolean equals(getAllItemsByStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatus_result typedOther = (getAllItemsByStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();this.success = new ArrayList<Item>(_list57.size);for (int _i58 = 0; _i58 < _list57.size; ++_i58){Item _elem59; // required_elem59 = new Item();_elem59.read(iprot);this.success.add(_elem59);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter60 : this.success){_iter60.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markItemAsContentComplete_args implements org.apache.thrift.TBase<markItemAsContentComplete_args, markItemAsContentComplete_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemAsContentComplete_args");private static final org.apache.thrift.protocol.TField ENTITY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("entityId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)4);private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)5);private static final org.apache.thrift.protocol.TField IS_ANDROID_FIELD_DESC = new org.apache.thrift.protocol.TField("isAndroid", org.apache.thrift.protocol.TType.BOOL, (short)6);private long entityId; // requiredprivate long category; // requiredprivate String brand; // requiredprivate String modelName; // requiredprivate String modelNumber; // requiredprivate boolean isAndroid; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ENTITY_ID((short)1, "entityId"),CATEGORY((short)2, "category"),BRAND((short)3, "brand"),MODEL_NAME((short)4, "modelName"),MODEL_NUMBER((short)5, "modelNumber"),IS_ANDROID((short)6, "isAndroid");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ENTITY_IDreturn ENTITY_ID;case 2: // CATEGORYreturn CATEGORY;case 3: // BRANDreturn BRAND;case 4: // MODEL_NAMEreturn MODEL_NAME;case 5: // MODEL_NUMBERreturn MODEL_NUMBER;case 6: // IS_ANDROIDreturn IS_ANDROID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ENTITYID_ISSET_ID = 0;private static final int __CATEGORY_ISSET_ID = 1;private static final int __ISANDROID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entityId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.IS_ANDROID, new org.apache.thrift.meta_data.FieldMetaData("isAndroid", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemAsContentComplete_args.class, metaDataMap);}public markItemAsContentComplete_args() {}public markItemAsContentComplete_args(long entityId,long category,String brand,String modelName,String modelNumber,boolean isAndroid){this();this.entityId = entityId;setEntityIdIsSet(true);this.category = category;setCategoryIsSet(true);this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.isAndroid = isAndroid;setIsAndroidIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markItemAsContentComplete_args(markItemAsContentComplete_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.entityId = other.entityId;this.category = other.category;if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetModelName()) {this.modelName = other.modelName;}if (other.isSetModelNumber()) {this.modelNumber = other.modelNumber;}this.isAndroid = other.isAndroid;}public markItemAsContentComplete_args deepCopy() {return new markItemAsContentComplete_args(this);}@Overridepublic void clear() {setEntityIdIsSet(false);this.entityId = 0;setCategoryIsSet(false);this.category = 0;this.brand = null;this.modelName = null;this.modelNumber = null;setIsAndroidIsSet(false);this.isAndroid = false;}public long getEntityId() {return this.entityId;}public void setEntityId(long entityId) {this.entityId = entityId;setEntityIdIsSet(true);}public void unsetEntityId() {__isset_bit_vector.clear(__ENTITYID_ISSET_ID);}/** Returns true if field entityId is set (has been assigned a value) and false otherwise */public boolean isSetEntityId() {return __isset_bit_vector.get(__ENTITYID_ISSET_ID);}public void setEntityIdIsSet(boolean value) {__isset_bit_vector.set(__ENTITYID_ISSET_ID, value);}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public String getModelName() {return this.modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public void unsetModelName() {this.modelName = null;}/** Returns true if field modelName is set (has been assigned a value) and false otherwise */public boolean isSetModelName() {return this.modelName != null;}public void setModelNameIsSet(boolean value) {if (!value) {this.modelName = null;}}public String getModelNumber() {return this.modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public void unsetModelNumber() {this.modelNumber = null;}/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */public boolean isSetModelNumber() {return this.modelNumber != null;}public void setModelNumberIsSet(boolean value) {if (!value) {this.modelNumber = null;}}public boolean isIsAndroid() {return this.isAndroid;}public void setIsAndroid(boolean isAndroid) {this.isAndroid = isAndroid;setIsAndroidIsSet(true);}public void unsetIsAndroid() {__isset_bit_vector.clear(__ISANDROID_ISSET_ID);}/** Returns true if field isAndroid is set (has been assigned a value) and false otherwise */public boolean isSetIsAndroid() {return __isset_bit_vector.get(__ISANDROID_ISSET_ID);}public void setIsAndroidIsSet(boolean value) {__isset_bit_vector.set(__ISANDROID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ENTITY_ID:if (value == null) {unsetEntityId();} else {setEntityId((Long)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case MODEL_NAME:if (value == null) {unsetModelName();} else {setModelName((String)value);}break;case MODEL_NUMBER:if (value == null) {unsetModelNumber();} else {setModelNumber((String)value);}break;case IS_ANDROID:if (value == null) {unsetIsAndroid();} else {setIsAndroid((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ENTITY_ID:return Long.valueOf(getEntityId());case CATEGORY:return Long.valueOf(getCategory());case BRAND:return getBrand();case MODEL_NAME:return getModelName();case MODEL_NUMBER:return getModelNumber();case IS_ANDROID:return Boolean.valueOf(isIsAndroid());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ENTITY_ID:return isSetEntityId();case CATEGORY:return isSetCategory();case BRAND:return isSetBrand();case MODEL_NAME:return isSetModelName();case MODEL_NUMBER:return isSetModelNumber();case IS_ANDROID:return isSetIsAndroid();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markItemAsContentComplete_args)return this.equals((markItemAsContentComplete_args)that);return false;}public boolean equals(markItemAsContentComplete_args that) {if (that == null)return false;boolean this_present_entityId = true;boolean that_present_entityId = true;if (this_present_entityId || that_present_entityId) {if (!(this_present_entityId && that_present_entityId))return false;if (this.entityId != that.entityId)return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_modelName = true && this.isSetModelName();boolean that_present_modelName = true && that.isSetModelName();if (this_present_modelName || that_present_modelName) {if (!(this_present_modelName && that_present_modelName))return false;if (!this.modelName.equals(that.modelName))return false;}boolean this_present_modelNumber = true && this.isSetModelNumber();boolean that_present_modelNumber = true && that.isSetModelNumber();if (this_present_modelNumber || that_present_modelNumber) {if (!(this_present_modelNumber && that_present_modelNumber))return false;if (!this.modelNumber.equals(that.modelNumber))return false;}boolean this_present_isAndroid = true;boolean that_present_isAndroid = true;if (this_present_isAndroid || that_present_isAndroid) {if (!(this_present_isAndroid && that_present_isAndroid))return false;if (this.isAndroid != that.isAndroid)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markItemAsContentComplete_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markItemAsContentComplete_args typedOther = (markItemAsContentComplete_args)other;lastComparison = Boolean.valueOf(isSetEntityId()).compareTo(typedOther.isSetEntityId());if (lastComparison != 0) {return lastComparison;}if (isSetEntityId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityId, typedOther.entityId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());if (lastComparison != 0) {return lastComparison;}if (isSetModelName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());if (lastComparison != 0) {return lastComparison;}if (isSetModelNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsAndroid()).compareTo(typedOther.isSetIsAndroid());if (lastComparison != 0) {return lastComparison;}if (isSetIsAndroid()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAndroid, typedOther.isAndroid);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ENTITY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.entityId = iprot.readI64();setEntityIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // MODEL_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // MODEL_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // IS_ANDROIDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isAndroid = iprot.readBool();setIsAndroidIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);oprot.writeI64(this.entityId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.modelName != null) {oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);oprot.writeString(this.modelName);oprot.writeFieldEnd();}if (this.modelNumber != null) {oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);oprot.writeString(this.modelNumber);oprot.writeFieldEnd();}oprot.writeFieldBegin(IS_ANDROID_FIELD_DESC);oprot.writeBool(this.isAndroid);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markItemAsContentComplete_args(");boolean first = true;sb.append("entityId:");sb.append(this.entityId);first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("modelName:");if (this.modelName == null) {sb.append("null");} else {sb.append(this.modelName);}first = false;if (!first) sb.append(", ");sb.append("modelNumber:");if (this.modelNumber == null) {sb.append("null");} else {sb.append(this.modelNumber);}first = false;if (!first) sb.append(", ");sb.append("isAndroid:");sb.append(this.isAndroid);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markItemAsContentComplete_result implements org.apache.thrift.TBase<markItemAsContentComplete_result, markItemAsContentComplete_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemAsContentComplete_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemAsContentComplete_result.class, metaDataMap);}public markItemAsContentComplete_result() {}public markItemAsContentComplete_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public markItemAsContentComplete_result(markItemAsContentComplete_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public markItemAsContentComplete_result deepCopy() {return new markItemAsContentComplete_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markItemAsContentComplete_result)return this.equals((markItemAsContentComplete_result)that);return false;}public boolean equals(markItemAsContentComplete_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markItemAsContentComplete_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markItemAsContentComplete_result typedOther = (markItemAsContentComplete_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markItemAsContentComplete_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVatRates_args implements org.apache.thrift.TBase<getVatRates_args, getVatRates_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatRates_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long categoryId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),CATEGORY_ID((short)2, "categoryId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // CATEGORY_IDreturn CATEGORY_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __CATEGORYID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatRates_args.class, metaDataMap);}public getVatRates_args() {}public getVatRates_args(long itemId,long categoryId){this();this.itemId = itemId;setItemIdIsSet(true);this.categoryId = categoryId;setCategoryIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVatRates_args(getVatRates_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.categoryId = other.categoryId;}public getVatRates_args deepCopy() {return new getVatRates_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setCategoryIdIsSet(false);this.categoryId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getCategoryId() {return this.categoryId;}public void setCategoryId(long categoryId) {this.categoryId = categoryId;setCategoryIdIsSet(true);}public void unsetCategoryId() {__isset_bit_vector.clear(__CATEGORYID_ISSET_ID);}/** Returns true if field categoryId is set (has been assigned a value) and false otherwise */public boolean isSetCategoryId() {return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);}public void setCategoryIdIsSet(boolean value) {__isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case CATEGORY_ID:if (value == null) {unsetCategoryId();} else {setCategoryId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case CATEGORY_ID:return Long.valueOf(getCategoryId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case CATEGORY_ID:return isSetCategoryId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVatRates_args)return this.equals((getVatRates_args)that);return false;}public boolean equals(getVatRates_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_categoryId = true;boolean that_present_categoryId = true;if (this_present_categoryId || that_present_categoryId) {if (!(this_present_categoryId && that_present_categoryId))return false;if (this.categoryId != that.categoryId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVatRates_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVatRates_args typedOther = (getVatRates_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());if (lastComparison != 0) {return lastComparison;}if (isSetCategoryId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATEGORY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.categoryId = iprot.readI64();setCategoryIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);oprot.writeI64(this.categoryId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVatRates_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("categoryId:");sb.append(this.categoryId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVatRates_result implements org.apache.thrift.TBase<getVatRates_result, getVatRates_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatRates_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,Double> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatRates_result.class, metaDataMap);}public getVatRates_result() {}public getVatRates_result(Map<Long,Double> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getVatRates_result(getVatRates_result other) {if (other.isSetSuccess()) {Map<Long,Double> __this__success = new HashMap<Long,Double>();for (Map.Entry<Long, Double> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Double other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Double __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getVatRates_result deepCopy() {return new getVatRates_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, double val) {if (this.success == null) {this.success = new HashMap<Long,Double>();}this.success.put(key, val);}public Map<Long,Double> getSuccess() {return this.success;}public void setSuccess(Map<Long,Double> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Double>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVatRates_result)return this.equals((getVatRates_result)that);return false;}public boolean equals(getVatRates_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVatRates_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVatRates_result typedOther = (getVatRates_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map61 = iprot.readMapBegin();this.success = new HashMap<Long,Double>(2*_map61.size);for (int _i62 = 0; _i62 < _map61.size; ++_i62){long _key63; // requireddouble _val64; // required_key63 = iprot.readI64();_val64 = iprot.readDouble();this.success.put(_key63, _val64);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));for (Map.Entry<Long, Double> _iter65 : this.success.entrySet()){oprot.writeI64(_iter65.getKey());oprot.writeDouble(_iter65.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVatRates_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsInRange_args implements org.apache.thrift.TBase<getAllItemsInRange_args, getAllItemsInRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsInRange_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsInRange_args.class, metaDataMap);}public getAllItemsInRange_args() {}public getAllItemsInRange_args(long offset,long limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsInRange_args(getAllItemsInRange_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getAllItemsInRange_args deepCopy() {return new getAllItemsInRange_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsInRange_args)return this.equals((getAllItemsInRange_args)that);return false;}public boolean equals(getAllItemsInRange_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsInRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsInRange_args typedOther = (getAllItemsInRange_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsInRange_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsInRange_result implements org.apache.thrift.TBase<getAllItemsInRange_result, getAllItemsInRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsInRange_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsInRange_result.class, metaDataMap);}public getAllItemsInRange_result() {}public getAllItemsInRange_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsInRange_result(getAllItemsInRange_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItemsInRange_result deepCopy() {return new getAllItemsInRange_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsInRange_result)return this.equals((getAllItemsInRange_result)that);return false;}public boolean equals(getAllItemsInRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsInRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsInRange_result typedOther = (getAllItemsInRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();this.success = new ArrayList<Item>(_list66.size);for (int _i67 = 0; _i67 < _list66.size; ++_i67){Item _elem68; // required_elem68 = new Item();_elem68.read(iprot);this.success.add(_elem68);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter69 : this.success){_iter69.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsInRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatusInRange_args implements org.apache.thrift.TBase<getAllItemsByStatusInRange_args, getAllItemsByStatusInRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatusInRange_args");private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private status itemStatus; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see status*/ITEM_STATUS((short)1, "itemStatus"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_STATUSreturn ITEM_STATUS;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatusInRange_args.class, metaDataMap);}public getAllItemsByStatusInRange_args() {}public getAllItemsByStatusInRange_args(status itemStatus,long offset,long limit){this();this.itemStatus = itemStatus;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatusInRange_args(getAllItemsByStatusInRange_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetItemStatus()) {this.itemStatus = other.itemStatus;}this.offset = other.offset;this.limit = other.limit;}public getAllItemsByStatusInRange_args deepCopy() {return new getAllItemsByStatusInRange_args(this);}@Overridepublic void clear() {this.itemStatus = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}/**** @see status*/public status getItemStatus() {return this.itemStatus;}/**** @see status*/public void setItemStatus(status itemStatus) {this.itemStatus = itemStatus;}public void unsetItemStatus() {this.itemStatus = null;}/** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */public boolean isSetItemStatus() {return this.itemStatus != null;}public void setItemStatusIsSet(boolean value) {if (!value) {this.itemStatus = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_STATUS:if (value == null) {unsetItemStatus();} else {setItemStatus((status)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_STATUS:return getItemStatus();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_STATUS:return isSetItemStatus();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatusInRange_args)return this.equals((getAllItemsByStatusInRange_args)that);return false;}public boolean equals(getAllItemsByStatusInRange_args that) {if (that == null)return false;boolean this_present_itemStatus = true && this.isSetItemStatus();boolean that_present_itemStatus = true && that.isSetItemStatus();if (this_present_itemStatus || that_present_itemStatus) {if (!(this_present_itemStatus && that_present_itemStatus))return false;if (!this.itemStatus.equals(that.itemStatus))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatusInRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatusInRange_args typedOther = (getAllItemsByStatusInRange_args)other;lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());if (lastComparison != 0) {return lastComparison;}if (isSetItemStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemStatus != null) {oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);oprot.writeI32(this.itemStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatusInRange_args(");boolean first = true;sb.append("itemStatus:");if (this.itemStatus == null) {sb.append("null");} else {sb.append(this.itemStatus);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatusInRange_result implements org.apache.thrift.TBase<getAllItemsByStatusInRange_result, getAllItemsByStatusInRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatusInRange_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatusInRange_result.class, metaDataMap);}public getAllItemsByStatusInRange_result() {}public getAllItemsByStatusInRange_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatusInRange_result(getAllItemsByStatusInRange_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItemsByStatusInRange_result deepCopy() {return new getAllItemsByStatusInRange_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatusInRange_result)return this.equals((getAllItemsByStatusInRange_result)that);return false;}public boolean equals(getAllItemsByStatusInRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatusInRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatusInRange_result typedOther = (getAllItemsByStatusInRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();this.success = new ArrayList<Item>(_list70.size);for (int _i71 = 0; _i71 < _list70.size; ++_i71){Item _elem72; // required_elem72 = new Item();_elem72.read(iprot);this.success.add(_elem72);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter73 : this.success){_iter73.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatusInRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemCountByStatus_args implements org.apache.thrift.TBase<getItemCountByStatus_args, getItemCountByStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemCountByStatus_args");private static final org.apache.thrift.protocol.TField USE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("useStatus", org.apache.thrift.protocol.TType.BOOL, (short)1);private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)2);private boolean useStatus; // requiredprivate status itemStatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USE_STATUS((short)1, "useStatus"),/**** @see status*/ITEM_STATUS((short)2, "itemStatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USE_STATUSreturn USE_STATUS;case 2: // ITEM_STATUSreturn ITEM_STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __USESTATUS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("useStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemCountByStatus_args.class, metaDataMap);}public getItemCountByStatus_args() {}public getItemCountByStatus_args(boolean useStatus,status itemStatus){this();this.useStatus = useStatus;setUseStatusIsSet(true);this.itemStatus = itemStatus;}/*** Performs a deep copy on <i>other</i>.*/public getItemCountByStatus_args(getItemCountByStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.useStatus = other.useStatus;if (other.isSetItemStatus()) {this.itemStatus = other.itemStatus;}}public getItemCountByStatus_args deepCopy() {return new getItemCountByStatus_args(this);}@Overridepublic void clear() {setUseStatusIsSet(false);this.useStatus = false;this.itemStatus = null;}public boolean isUseStatus() {return this.useStatus;}public void setUseStatus(boolean useStatus) {this.useStatus = useStatus;setUseStatusIsSet(true);}public void unsetUseStatus() {__isset_bit_vector.clear(__USESTATUS_ISSET_ID);}/** Returns true if field useStatus is set (has been assigned a value) and false otherwise */public boolean isSetUseStatus() {return __isset_bit_vector.get(__USESTATUS_ISSET_ID);}public void setUseStatusIsSet(boolean value) {__isset_bit_vector.set(__USESTATUS_ISSET_ID, value);}/**** @see status*/public status getItemStatus() {return this.itemStatus;}/**** @see status*/public void setItemStatus(status itemStatus) {this.itemStatus = itemStatus;}public void unsetItemStatus() {this.itemStatus = null;}/** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */public boolean isSetItemStatus() {return this.itemStatus != null;}public void setItemStatusIsSet(boolean value) {if (!value) {this.itemStatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USE_STATUS:if (value == null) {unsetUseStatus();} else {setUseStatus((Boolean)value);}break;case ITEM_STATUS:if (value == null) {unsetItemStatus();} else {setItemStatus((status)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USE_STATUS:return Boolean.valueOf(isUseStatus());case ITEM_STATUS:return getItemStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USE_STATUS:return isSetUseStatus();case ITEM_STATUS:return isSetItemStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemCountByStatus_args)return this.equals((getItemCountByStatus_args)that);return false;}public boolean equals(getItemCountByStatus_args that) {if (that == null)return false;boolean this_present_useStatus = true;boolean that_present_useStatus = true;if (this_present_useStatus || that_present_useStatus) {if (!(this_present_useStatus && that_present_useStatus))return false;if (this.useStatus != that.useStatus)return false;}boolean this_present_itemStatus = true && this.isSetItemStatus();boolean that_present_itemStatus = true && that.isSetItemStatus();if (this_present_itemStatus || that_present_itemStatus) {if (!(this_present_itemStatus && that_present_itemStatus))return false;if (!this.itemStatus.equals(that.itemStatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemCountByStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemCountByStatus_args typedOther = (getItemCountByStatus_args)other;lastComparison = Boolean.valueOf(isSetUseStatus()).compareTo(typedOther.isSetUseStatus());if (lastComparison != 0) {return lastComparison;}if (isSetUseStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.useStatus, typedOther.useStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());if (lastComparison != 0) {return lastComparison;}if (isSetItemStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USE_STATUSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.useStatus = iprot.readBool();setUseStatusIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(USE_STATUS_FIELD_DESC);oprot.writeBool(this.useStatus);oprot.writeFieldEnd();if (this.itemStatus != null) {oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);oprot.writeI32(this.itemStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemCountByStatus_args(");boolean first = true;sb.append("useStatus:");sb.append(this.useStatus);first = false;if (!first) sb.append(", ");sb.append("itemStatus:");if (this.itemStatus == null) {sb.append("null");} else {sb.append(this.itemStatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemCountByStatus_result implements org.apache.thrift.TBase<getItemCountByStatus_result, getItemCountByStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemCountByStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private int success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemCountByStatus_result.class, metaDataMap);}public getItemCountByStatus_result() {}public getItemCountByStatus_result(int success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemCountByStatus_result(getItemCountByStatus_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getItemCountByStatus_result deepCopy() {return new getItemCountByStatus_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public int getSuccess() {return this.success;}public void setSuccess(int success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Integer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Integer.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemCountByStatus_result)return this.equals((getItemCountByStatus_result)that);return false;}public boolean equals(getItemCountByStatus_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemCountByStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemCountByStatus_result typedOther = (getItemCountByStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = iprot.readI32();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemCountByStatus_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellers_args implements org.apache.thrift.TBase<getBestSellers_args, getBestSellers_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellers_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellers_args.class, metaDataMap);}public getBestSellers_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestSellers_args(getBestSellers_args other) {}public getBestSellers_args deepCopy() {return new getBestSellers_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellers_args)return this.equals((getBestSellers_args)that);return false;}public boolean equals(getBestSellers_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellers_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellers_args typedOther = (getBestSellers_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellers_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellers_result implements org.apache.thrift.TBase<getBestSellers_result, getBestSellers_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellers_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellers_result.class, metaDataMap);}public getBestSellers_result() {}public getBestSellers_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getBestSellers_result(getBestSellers_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getBestSellers_result deepCopy() {return new getBestSellers_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellers_result)return this.equals((getBestSellers_result)that);return false;}public boolean equals(getBestSellers_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellers_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellers_result typedOther = (getBestSellers_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list74 = iprot.readListBegin();this.success = new ArrayList<Item>(_list74.size);for (int _i75 = 0; _i75 < _list74.size; ++_i75){Item _elem76; // required_elem76 = new Item();_elem76.read(iprot);this.success.add(_elem76);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter77 : this.success){_iter77.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellers_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCatalogIds_args implements org.apache.thrift.TBase<getBestSellersCatalogIds_args, getBestSellersCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate long category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORY((short)4, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __CATEGORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCatalogIds_args.class, metaDataMap);}public getBestSellersCatalogIds_args() {}public getBestSellersCatalogIds_args(long beginIndex,long totalItems,String brand,long category){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.category = category;setCategoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCatalogIds_args(getBestSellersCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}this.category = other.category;}public getBestSellersCatalogIds_args deepCopy() {return new getBestSellersCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;setCategoryIsSet(false);this.category = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORY:return Long.valueOf(getCategory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCatalogIds_args)return this.equals((getBestSellersCatalogIds_args)that);return false;}public boolean equals(getBestSellersCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCatalogIds_args typedOther = (getBestSellersCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCatalogIds_result implements org.apache.thrift.TBase<getBestSellersCatalogIds_result, getBestSellersCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCatalogIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCatalogIds_result.class, metaDataMap);}public getBestSellersCatalogIds_result() {}public getBestSellersCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCatalogIds_result(getBestSellersCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestSellersCatalogIds_result deepCopy() {return new getBestSellersCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCatalogIds_result)return this.equals((getBestSellersCatalogIds_result)that);return false;}public boolean equals(getBestSellersCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCatalogIds_result typedOther = (getBestSellersCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list78 = iprot.readListBegin();this.success = new ArrayList<Long>(_list78.size);for (int _i79 = 0; _i79 < _list78.size; ++_i79){long _elem80; // required_elem80 = iprot.readI64();this.success.add(_elem80);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter81 : this.success){oprot.writeI64(_iter81);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCount_args implements org.apache.thrift.TBase<getBestSellersCount_args, getBestSellersCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCount_args.class, metaDataMap);}public getBestSellersCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCount_args(getBestSellersCount_args other) {}public getBestSellersCount_args deepCopy() {return new getBestSellersCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCount_args)return this.equals((getBestSellersCount_args)that);return false;}public boolean equals(getBestSellersCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCount_args typedOther = (getBestSellersCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCount_result implements org.apache.thrift.TBase<getBestSellersCount_result, getBestSellersCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCount_result.class, metaDataMap);}public getBestSellersCount_result() {}public getBestSellersCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCount_result(getBestSellersCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestSellersCount_result deepCopy() {return new getBestSellersCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCount_result)return this.equals((getBestSellersCount_result)that);return false;}public boolean equals(getBestSellersCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCount_result typedOther = (getBestSellersCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDeals_args implements org.apache.thrift.TBase<getBestDeals_args, getBestDeals_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDeals_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDeals_args.class, metaDataMap);}public getBestDeals_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestDeals_args(getBestDeals_args other) {}public getBestDeals_args deepCopy() {return new getBestDeals_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDeals_args)return this.equals((getBestDeals_args)that);return false;}public boolean equals(getBestDeals_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDeals_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDeals_args typedOther = (getBestDeals_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDeals_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDeals_result implements org.apache.thrift.TBase<getBestDeals_result, getBestDeals_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDeals_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDeals_result.class, metaDataMap);}public getBestDeals_result() {}public getBestDeals_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getBestDeals_result(getBestDeals_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getBestDeals_result deepCopy() {return new getBestDeals_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDeals_result)return this.equals((getBestDeals_result)that);return false;}public boolean equals(getBestDeals_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDeals_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDeals_result typedOther = (getBestDeals_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list82 = iprot.readListBegin();this.success = new ArrayList<Item>(_list82.size);for (int _i83 = 0; _i83 < _list82.size; ++_i83){Item _elem84; // required_elem84 = new Item();_elem84.read(iprot);this.success.add(_elem84);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter85 : this.success){_iter85.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDeals_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCatalogIds_args implements org.apache.thrift.TBase<getBestDealsCatalogIds_args, getBestDealsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate long category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORY((short)4, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __CATEGORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCatalogIds_args.class, metaDataMap);}public getBestDealsCatalogIds_args() {}public getBestDealsCatalogIds_args(long beginIndex,long totalItems,String brand,long category){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.category = category;setCategoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCatalogIds_args(getBestDealsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}this.category = other.category;}public getBestDealsCatalogIds_args deepCopy() {return new getBestDealsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;setCategoryIsSet(false);this.category = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORY:return Long.valueOf(getCategory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCatalogIds_args)return this.equals((getBestDealsCatalogIds_args)that);return false;}public boolean equals(getBestDealsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCatalogIds_args typedOther = (getBestDealsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCatalogIds_result implements org.apache.thrift.TBase<getBestDealsCatalogIds_result, getBestDealsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCatalogIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCatalogIds_result.class, metaDataMap);}public getBestDealsCatalogIds_result() {}public getBestDealsCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCatalogIds_result(getBestDealsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestDealsCatalogIds_result deepCopy() {return new getBestDealsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCatalogIds_result)return this.equals((getBestDealsCatalogIds_result)that);return false;}public boolean equals(getBestDealsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCatalogIds_result typedOther = (getBestDealsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list86 = iprot.readListBegin();this.success = new ArrayList<Long>(_list86.size);for (int _i87 = 0; _i87 < _list86.size; ++_i87){long _elem88; // required_elem88 = iprot.readI64();this.success.add(_elem88);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter89 : this.success){oprot.writeI64(_iter89);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCount_args implements org.apache.thrift.TBase<getBestDealsCount_args, getBestDealsCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCount_args.class, metaDataMap);}public getBestDealsCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCount_args(getBestDealsCount_args other) {}public getBestDealsCount_args deepCopy() {return new getBestDealsCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCount_args)return this.equals((getBestDealsCount_args)that);return false;}public boolean equals(getBestDealsCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCount_args typedOther = (getBestDealsCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCount_result implements org.apache.thrift.TBase<getBestDealsCount_result, getBestDealsCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCount_result.class, metaDataMap);}public getBestDealsCount_result() {}public getBestDealsCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCount_result(getBestDealsCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestDealsCount_result deepCopy() {return new getBestDealsCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCount_result)return this.equals((getBestDealsCount_result)that);return false;}public boolean equals(getBestDealsCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCount_result typedOther = (getBestDealsCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoon_args implements org.apache.thrift.TBase<getComingSoon_args, getComingSoon_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoon_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoon_args.class, metaDataMap);}public getComingSoon_args() {}/*** Performs a deep copy on <i>other</i>.*/public getComingSoon_args(getComingSoon_args other) {}public getComingSoon_args deepCopy() {return new getComingSoon_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoon_args)return this.equals((getComingSoon_args)that);return false;}public boolean equals(getComingSoon_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoon_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoon_args typedOther = (getComingSoon_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoon_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoon_result implements org.apache.thrift.TBase<getComingSoon_result, getComingSoon_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoon_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoon_result.class, metaDataMap);}public getComingSoon_result() {}public getComingSoon_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getComingSoon_result(getComingSoon_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getComingSoon_result deepCopy() {return new getComingSoon_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoon_result)return this.equals((getComingSoon_result)that);return false;}public boolean equals(getComingSoon_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoon_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoon_result typedOther = (getComingSoon_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list90 = iprot.readListBegin();this.success = new ArrayList<Item>(_list90.size);for (int _i91 = 0; _i91 < _list90.size; ++_i91){Item _elem92; // required_elem92 = new Item();_elem92.read(iprot);this.success.add(_elem92);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter93 : this.success){_iter93.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoon_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCatalogIds_args implements org.apache.thrift.TBase<getComingSoonCatalogIds_args, getComingSoonCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate long category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORY((short)4, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __CATEGORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCatalogIds_args.class, metaDataMap);}public getComingSoonCatalogIds_args() {}public getComingSoonCatalogIds_args(long beginIndex,long totalItems,String brand,long category){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.category = category;setCategoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCatalogIds_args(getComingSoonCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}this.category = other.category;}public getComingSoonCatalogIds_args deepCopy() {return new getComingSoonCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;setCategoryIsSet(false);this.category = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORY:return Long.valueOf(getCategory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCatalogIds_args)return this.equals((getComingSoonCatalogIds_args)that);return false;}public boolean equals(getComingSoonCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCatalogIds_args typedOther = (getComingSoonCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCatalogIds_result implements org.apache.thrift.TBase<getComingSoonCatalogIds_result, getComingSoonCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCatalogIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCatalogIds_result.class, metaDataMap);}public getComingSoonCatalogIds_result() {}public getComingSoonCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCatalogIds_result(getComingSoonCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getComingSoonCatalogIds_result deepCopy() {return new getComingSoonCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCatalogIds_result)return this.equals((getComingSoonCatalogIds_result)that);return false;}public boolean equals(getComingSoonCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCatalogIds_result typedOther = (getComingSoonCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();this.success = new ArrayList<Long>(_list94.size);for (int _i95 = 0; _i95 < _list94.size; ++_i95){long _elem96; // required_elem96 = iprot.readI64();this.success.add(_elem96);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter97 : this.success){oprot.writeI64(_iter97);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCount_args implements org.apache.thrift.TBase<getComingSoonCount_args, getComingSoonCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCount_args.class, metaDataMap);}public getComingSoonCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCount_args(getComingSoonCount_args other) {}public getComingSoonCount_args deepCopy() {return new getComingSoonCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCount_args)return this.equals((getComingSoonCount_args)that);return false;}public boolean equals(getComingSoonCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCount_args typedOther = (getComingSoonCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCount_result implements org.apache.thrift.TBase<getComingSoonCount_result, getComingSoonCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCount_result.class, metaDataMap);}public getComingSoonCount_result() {}public getComingSoonCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCount_result(getComingSoonCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getComingSoonCount_result deepCopy() {return new getComingSoonCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCount_result)return this.equals((getComingSoonCount_result)that);return false;}public boolean equals(getComingSoonCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCount_result typedOther = (getComingSoonCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivals_args implements org.apache.thrift.TBase<getLatestArrivals_args, getLatestArrivals_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivals_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivals_args.class, metaDataMap);}public getLatestArrivals_args() {}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivals_args(getLatestArrivals_args other) {}public getLatestArrivals_args deepCopy() {return new getLatestArrivals_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivals_args)return this.equals((getLatestArrivals_args)that);return false;}public boolean equals(getLatestArrivals_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivals_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivals_args typedOther = (getLatestArrivals_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivals_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivals_result implements org.apache.thrift.TBase<getLatestArrivals_result, getLatestArrivals_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivals_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivals_result.class, metaDataMap);}public getLatestArrivals_result() {}public getLatestArrivals_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivals_result(getLatestArrivals_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getLatestArrivals_result deepCopy() {return new getLatestArrivals_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivals_result)return this.equals((getLatestArrivals_result)that);return false;}public boolean equals(getLatestArrivals_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivals_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivals_result typedOther = (getLatestArrivals_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list98 = iprot.readListBegin();this.success = new ArrayList<Item>(_list98.size);for (int _i99 = 0; _i99 < _list98.size; ++_i99){Item _elem100; // required_elem100 = new Item();_elem100.read(iprot);this.success.add(_elem100);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter101 : this.success){_iter101.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivals_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCatalogIds_args implements org.apache.thrift.TBase<getLatestArrivalsCatalogIds_args, getLatestArrivalsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORIES_FIELD_DESC = new org.apache.thrift.protocol.TField("categories", org.apache.thrift.protocol.TType.LIST, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate List<Long> categories; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORIES((short)4, "categories");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORIESreturn CATEGORIES;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORIES, new org.apache.thrift.meta_data.FieldMetaData("categories", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCatalogIds_args.class, metaDataMap);}public getLatestArrivalsCatalogIds_args() {}public getLatestArrivalsCatalogIds_args(long beginIndex,long totalItems,String brand,List<Long> categories){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.categories = categories;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCatalogIds_args(getLatestArrivalsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetCategories()) {List<Long> __this__categories = new ArrayList<Long>();for (Long other_element : other.categories) {__this__categories.add(other_element);}this.categories = __this__categories;}}public getLatestArrivalsCatalogIds_args deepCopy() {return new getLatestArrivalsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;this.categories = null;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public int getCategoriesSize() {return (this.categories == null) ? 0 : this.categories.size();}public java.util.Iterator<Long> getCategoriesIterator() {return (this.categories == null) ? null : this.categories.iterator();}public void addToCategories(long elem) {if (this.categories == null) {this.categories = new ArrayList<Long>();}this.categories.add(elem);}public List<Long> getCategories() {return this.categories;}public void setCategories(List<Long> categories) {this.categories = categories;}public void unsetCategories() {this.categories = null;}/** Returns true if field categories is set (has been assigned a value) and false otherwise */public boolean isSetCategories() {return this.categories != null;}public void setCategoriesIsSet(boolean value) {if (!value) {this.categories = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORIES:if (value == null) {unsetCategories();} else {setCategories((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORIES:return getCategories();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORIES:return isSetCategories();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCatalogIds_args)return this.equals((getLatestArrivalsCatalogIds_args)that);return false;}public boolean equals(getLatestArrivalsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_categories = true && this.isSetCategories();boolean that_present_categories = true && that.isSetCategories();if (this_present_categories || that_present_categories) {if (!(this_present_categories && that_present_categories))return false;if (!this.categories.equals(that.categories))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCatalogIds_args typedOther = (getLatestArrivalsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategories()).compareTo(typedOther.isSetCategories());if (lastComparison != 0) {return lastComparison;}if (isSetCategories()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categories, typedOther.categories);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORIESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();this.categories = new ArrayList<Long>(_list102.size);for (int _i103 = 0; _i103 < _list102.size; ++_i103){long _elem104; // required_elem104 = iprot.readI64();this.categories.add(_elem104);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.categories != null) {oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));for (long _iter105 : this.categories){oprot.writeI64(_iter105);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("categories:");if (this.categories == null) {sb.append("null");} else {sb.append(this.categories);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCatalogIds_result implements org.apache.thrift.TBase<getLatestArrivalsCatalogIds_result, getLatestArrivalsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCatalogIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCatalogIds_result.class, metaDataMap);}public getLatestArrivalsCatalogIds_result() {}public getLatestArrivalsCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCatalogIds_result(getLatestArrivalsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getLatestArrivalsCatalogIds_result deepCopy() {return new getLatestArrivalsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCatalogIds_result)return this.equals((getLatestArrivalsCatalogIds_result)that);return false;}public boolean equals(getLatestArrivalsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCatalogIds_result typedOther = (getLatestArrivalsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list106 = iprot.readListBegin();this.success = new ArrayList<Long>(_list106.size);for (int _i107 = 0; _i107 < _list106.size; ++_i107){long _elem108; // required_elem108 = iprot.readI64();this.success.add(_elem108);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter109 : this.success){oprot.writeI64(_iter109);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCount_args implements org.apache.thrift.TBase<getLatestArrivalsCount_args, getLatestArrivalsCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCount_args.class, metaDataMap);}public getLatestArrivalsCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCount_args(getLatestArrivalsCount_args other) {}public getLatestArrivalsCount_args deepCopy() {return new getLatestArrivalsCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCount_args)return this.equals((getLatestArrivalsCount_args)that);return false;}public boolean equals(getLatestArrivalsCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCount_args typedOther = (getLatestArrivalsCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCount_result implements org.apache.thrift.TBase<getLatestArrivalsCount_result, getLatestArrivalsCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCount_result.class, metaDataMap);}public getLatestArrivalsCount_result() {}public getLatestArrivalsCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCount_result(getLatestArrivalsCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getLatestArrivalsCount_result deepCopy() {return new getLatestArrivalsCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCount_result)return this.equals((getLatestArrivalsCount_result)that);return false;}public boolean equals(getLatestArrivalsCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCount_result typedOther = (getLatestArrivalsCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class generateNewEntityID_args implements org.apache.thrift.TBase<generateNewEntityID_args, generateNewEntityID_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateNewEntityID_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(generateNewEntityID_args.class, metaDataMap);}public generateNewEntityID_args() {}/*** Performs a deep copy on <i>other</i>.*/public generateNewEntityID_args(generateNewEntityID_args other) {}public generateNewEntityID_args deepCopy() {return new generateNewEntityID_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof generateNewEntityID_args)return this.equals((generateNewEntityID_args)that);return false;}public boolean equals(generateNewEntityID_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(generateNewEntityID_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;generateNewEntityID_args typedOther = (generateNewEntityID_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("generateNewEntityID_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class generateNewEntityID_result implements org.apache.thrift.TBase<generateNewEntityID_result, generateNewEntityID_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateNewEntityID_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(generateNewEntityID_result.class, metaDataMap);}public generateNewEntityID_result() {}public generateNewEntityID_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public generateNewEntityID_result(generateNewEntityID_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public generateNewEntityID_result deepCopy() {return new generateNewEntityID_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof generateNewEntityID_result)return this.equals((generateNewEntityID_result)that);return false;}public boolean equals(generateNewEntityID_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(generateNewEntityID_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;generateNewEntityID_result typedOther = (generateNewEntityID_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("generateNewEntityID_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCategory_args implements org.apache.thrift.TBase<addCategory_args, addCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCategory_args");private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Category category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY((short)1, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCategory_args.class, metaDataMap);}public addCategory_args() {}public addCategory_args(Category category){this();this.category = category;}/*** Performs a deep copy on <i>other</i>.*/public addCategory_args(addCategory_args other) {if (other.isSetCategory()) {this.category = new Category(other.category);}}public addCategory_args deepCopy() {return new addCategory_args(this);}@Overridepublic void clear() {this.category = null;}public Category getCategory() {return this.category;}public void setCategory(Category category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Category)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY:return getCategory();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCategory_args)return this.equals((addCategory_args)that);return false;}public boolean equals(addCategory_args that) {if (that == null)return false;boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCategory_args typedOther = (addCategory_args)other;lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.category = new Category();this.category.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);this.category.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCategory_args(");boolean first = true;sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCategory_result implements org.apache.thrift.TBase<addCategory_result, addCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCategory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCategory_result.class, metaDataMap);}public addCategory_result() {}public addCategory_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addCategory_result(addCategory_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addCategory_result deepCopy() {return new addCategory_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCategory_result)return this.equals((addCategory_result)that);return false;}public boolean equals(addCategory_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCategory_result typedOther = (addCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCategory_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCategory_args implements org.apache.thrift.TBase<getCategory_args, getCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCategory_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCategory_args.class, metaDataMap);}public getCategory_args() {}public getCategory_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCategory_args(getCategory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getCategory_args deepCopy() {return new getCategory_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCategory_args)return this.equals((getCategory_args)that);return false;}public boolean equals(getCategory_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCategory_args typedOther = (getCategory_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCategory_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCategory_result implements org.apache.thrift.TBase<getCategory_result, getCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCategory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private Category success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCategory_result.class, metaDataMap);}public getCategory_result() {}public getCategory_result(Category success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getCategory_result(getCategory_result other) {if (other.isSetSuccess()) {this.success = new Category(other.success);}}public getCategory_result deepCopy() {return new getCategory_result(this);}@Overridepublic void clear() {this.success = null;}public Category getSuccess() {return this.success;}public void setSuccess(Category success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Category)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCategory_result)return this.equals((getCategory_result)that);return false;}public boolean equals(getCategory_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCategory_result typedOther = (getCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Category();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCategory_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllCategories_args implements org.apache.thrift.TBase<getAllCategories_args, getAllCategories_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCategories_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCategories_args.class, metaDataMap);}public getAllCategories_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllCategories_args(getAllCategories_args other) {}public getAllCategories_args deepCopy() {return new getAllCategories_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllCategories_args)return this.equals((getAllCategories_args)that);return false;}public boolean equals(getAllCategories_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllCategories_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllCategories_args typedOther = (getAllCategories_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllCategories_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllCategories_result implements org.apache.thrift.TBase<getAllCategories_result, getAllCategories_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCategories_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Category> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCategories_result.class, metaDataMap);}public getAllCategories_result() {}public getAllCategories_result(List<Category> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllCategories_result(getAllCategories_result other) {if (other.isSetSuccess()) {List<Category> __this__success = new ArrayList<Category>();for (Category other_element : other.success) {__this__success.add(new Category(other_element));}this.success = __this__success;}}public getAllCategories_result deepCopy() {return new getAllCategories_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Category> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Category elem) {if (this.success == null) {this.success = new ArrayList<Category>();}this.success.add(elem);}public List<Category> getSuccess() {return this.success;}public void setSuccess(List<Category> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Category>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllCategories_result)return this.equals((getAllCategories_result)that);return false;}public boolean equals(getAllCategories_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllCategories_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllCategories_result typedOther = (getAllCategories_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();this.success = new ArrayList<Category>(_list110.size);for (int _i111 = 0; _i111 < _list110.size; ++_i111){Category _elem112; // required_elem112 = new Category();_elem112.read(iprot);this.success.add(_elem112);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Category _iter113 : this.success){_iter113.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllCategories_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSimilarItems_args implements org.apache.thrift.TBase<getAllSimilarItems_args, getAllSimilarItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_args.class, metaDataMap);}public getAllSimilarItems_args() {}public getAllSimilarItems_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllSimilarItems_args(getAllSimilarItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAllSimilarItems_args deepCopy() {return new getAllSimilarItems_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSimilarItems_args)return this.equals((getAllSimilarItems_args)that);return false;}public boolean equals(getAllSimilarItems_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSimilarItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSimilarItems_args typedOther = (getAllSimilarItems_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSimilarItems_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSimilarItems_result implements org.apache.thrift.TBase<getAllSimilarItems_result, getAllSimilarItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_result.class, metaDataMap);}public getAllSimilarItems_result() {}public getAllSimilarItems_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllSimilarItems_result(getAllSimilarItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getAllSimilarItems_result deepCopy() {return new getAllSimilarItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSimilarItems_result)return this.equals((getAllSimilarItems_result)that);return false;}public boolean equals(getAllSimilarItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSimilarItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSimilarItems_result typedOther = (getAllSimilarItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list114 = iprot.readListBegin();this.success = new ArrayList<Item>(_list114.size);for (int _i115 = 0; _i115 < _list114.size; ++_i115){Item _elem116; // required_elem116 = new Item();_elem116.read(iprot);this.success.add(_elem116);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter117 : this.success){_iter117.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSimilarItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSimilarItem_args implements org.apache.thrift.TBase<addSimilarItem_args, addSimilarItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),CATALOG_ITEM_ID((short)2, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __CATALOGITEMID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_args.class, metaDataMap);}public addSimilarItem_args() {}public addSimilarItem_args(long itemId,long catalogItemId){this();this.itemId = itemId;setItemIdIsSet(true);this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addSimilarItem_args(addSimilarItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.catalogItemId = other.catalogItemId;}public addSimilarItem_args deepCopy() {return new addSimilarItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSimilarItem_args)return this.equals((addSimilarItem_args)that);return false;}public boolean equals(addSimilarItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSimilarItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSimilarItem_args typedOther = (addSimilarItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSimilarItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSimilarItem_result implements org.apache.thrift.TBase<addSimilarItem_result, addSimilarItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_result.class, metaDataMap);}public addSimilarItem_result() {}public addSimilarItem_result(Item success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addSimilarItem_result(addSimilarItem_result other) {if (other.isSetSuccess()) {this.success = new Item(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addSimilarItem_result deepCopy() {return new addSimilarItem_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public Item getSuccess() {return this.success;}public void setSuccess(Item success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Item)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSimilarItem_result)return this.equals((addSimilarItem_result)that);return false;}public boolean equals(addSimilarItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSimilarItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSimilarItem_result typedOther = (addSimilarItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Item();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSimilarItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addTag_args implements org.apache.thrift.TBase<addTag_args, addTag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTag_args");private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private String displayName; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DISPLAY_NAME((short)1, "displayName"),ITEM_ID((short)2, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DISPLAY_NAMEreturn DISPLAY_NAME;case 2: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTag_args.class, metaDataMap);}public addTag_args() {}public addTag_args(String displayName,long itemId){this();this.displayName = displayName;this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addTag_args(addTag_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetDisplayName()) {this.displayName = other.displayName;}this.itemId = other.itemId;}public addTag_args deepCopy() {return new addTag_args(this);}@Overridepublic void clear() {this.displayName = null;setItemIdIsSet(false);this.itemId = 0;}public String getDisplayName() {return this.displayName;}public void setDisplayName(String displayName) {this.displayName = displayName;}public void unsetDisplayName() {this.displayName = null;}/** Returns true if field displayName is set (has been assigned a value) and false otherwise */public boolean isSetDisplayName() {return this.displayName != null;}public void setDisplayNameIsSet(boolean value) {if (!value) {this.displayName = null;}}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case DISPLAY_NAME:if (value == null) {unsetDisplayName();} else {setDisplayName((String)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DISPLAY_NAME:return getDisplayName();case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DISPLAY_NAME:return isSetDisplayName();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addTag_args)return this.equals((addTag_args)that);return false;}public boolean equals(addTag_args that) {if (that == null)return false;boolean this_present_displayName = true && this.isSetDisplayName();boolean that_present_displayName = true && that.isSetDisplayName();if (this_present_displayName || that_present_displayName) {if (!(this_present_displayName && that_present_displayName))return false;if (!this.displayName.equals(that.displayName))return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addTag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addTag_args typedOther = (addTag_args)other;lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());if (lastComparison != 0) {return lastComparison;}if (isSetDisplayName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DISPLAY_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.displayName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.displayName != null) {oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);oprot.writeString(this.displayName);oprot.writeFieldEnd();}oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addTag_args(");boolean first = true;sb.append("displayName:");if (this.displayName == null) {sb.append("null");} else {sb.append(this.displayName);}first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addTag_result implements org.apache.thrift.TBase<addTag_result, addTag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTag_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTag_result.class, metaDataMap);}public addTag_result() {}public addTag_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addTag_result(addTag_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addTag_result deepCopy() {return new addTag_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addTag_result)return this.equals((addTag_result)that);return false;}public boolean equals(addTag_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addTag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addTag_result typedOther = (addTag_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addTag_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteEntityTag_args implements org.apache.thrift.TBase<deleteEntityTag_args, deleteEntityTag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteEntityTag_args");private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private String displayName; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DISPLAY_NAME((short)1, "displayName"),ITEM_ID((short)2, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DISPLAY_NAMEreturn DISPLAY_NAME;case 2: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteEntityTag_args.class, metaDataMap);}public deleteEntityTag_args() {}public deleteEntityTag_args(String displayName,long itemId){this();this.displayName = displayName;this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteEntityTag_args(deleteEntityTag_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetDisplayName()) {this.displayName = other.displayName;}this.itemId = other.itemId;}public deleteEntityTag_args deepCopy() {return new deleteEntityTag_args(this);}@Overridepublic void clear() {this.displayName = null;setItemIdIsSet(false);this.itemId = 0;}public String getDisplayName() {return this.displayName;}public void setDisplayName(String displayName) {this.displayName = displayName;}public void unsetDisplayName() {this.displayName = null;}/** Returns true if field displayName is set (has been assigned a value) and false otherwise */public boolean isSetDisplayName() {return this.displayName != null;}public void setDisplayNameIsSet(boolean value) {if (!value) {this.displayName = null;}}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case DISPLAY_NAME:if (value == null) {unsetDisplayName();} else {setDisplayName((String)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DISPLAY_NAME:return getDisplayName();case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DISPLAY_NAME:return isSetDisplayName();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteEntityTag_args)return this.equals((deleteEntityTag_args)that);return false;}public boolean equals(deleteEntityTag_args that) {if (that == null)return false;boolean this_present_displayName = true && this.isSetDisplayName();boolean that_present_displayName = true && that.isSetDisplayName();if (this_present_displayName || that_present_displayName) {if (!(this_present_displayName && that_present_displayName))return false;if (!this.displayName.equals(that.displayName))return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteEntityTag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteEntityTag_args typedOther = (deleteEntityTag_args)other;lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());if (lastComparison != 0) {return lastComparison;}if (isSetDisplayName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DISPLAY_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.displayName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.displayName != null) {oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);oprot.writeString(this.displayName);oprot.writeFieldEnd();}oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteEntityTag_args(");boolean first = true;sb.append("displayName:");if (this.displayName == null) {sb.append("null");} else {sb.append(this.displayName);}first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteEntityTag_result implements org.apache.thrift.TBase<deleteEntityTag_result, deleteEntityTag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteEntityTag_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteEntityTag_result.class, metaDataMap);}public deleteEntityTag_result() {}public deleteEntityTag_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteEntityTag_result(deleteEntityTag_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public deleteEntityTag_result deepCopy() {return new deleteEntityTag_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteEntityTag_result)return this.equals((deleteEntityTag_result)that);return false;}public boolean equals(deleteEntityTag_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteEntityTag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteEntityTag_result typedOther = (deleteEntityTag_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteEntityTag_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteTag_args implements org.apache.thrift.TBase<deleteTag_args, deleteTag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTag_args");private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)1);private String displayName; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DISPLAY_NAME((short)1, "displayName");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DISPLAY_NAMEreturn DISPLAY_NAME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTag_args.class, metaDataMap);}public deleteTag_args() {}public deleteTag_args(String displayName){this();this.displayName = displayName;}/*** Performs a deep copy on <i>other</i>.*/public deleteTag_args(deleteTag_args other) {if (other.isSetDisplayName()) {this.displayName = other.displayName;}}public deleteTag_args deepCopy() {return new deleteTag_args(this);}@Overridepublic void clear() {this.displayName = null;}public String getDisplayName() {return this.displayName;}public void setDisplayName(String displayName) {this.displayName = displayName;}public void unsetDisplayName() {this.displayName = null;}/** Returns true if field displayName is set (has been assigned a value) and false otherwise */public boolean isSetDisplayName() {return this.displayName != null;}public void setDisplayNameIsSet(boolean value) {if (!value) {this.displayName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case DISPLAY_NAME:if (value == null) {unsetDisplayName();} else {setDisplayName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DISPLAY_NAME:return getDisplayName();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DISPLAY_NAME:return isSetDisplayName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteTag_args)return this.equals((deleteTag_args)that);return false;}public boolean equals(deleteTag_args that) {if (that == null)return false;boolean this_present_displayName = true && this.isSetDisplayName();boolean that_present_displayName = true && that.isSetDisplayName();if (this_present_displayName || that_present_displayName) {if (!(this_present_displayName && that_present_displayName))return false;if (!this.displayName.equals(that.displayName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteTag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteTag_args typedOther = (deleteTag_args)other;lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());if (lastComparison != 0) {return lastComparison;}if (isSetDisplayName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DISPLAY_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.displayName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.displayName != null) {oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);oprot.writeString(this.displayName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteTag_args(");boolean first = true;sb.append("displayName:");if (this.displayName == null) {sb.append("null");} else {sb.append(this.displayName);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteTag_result implements org.apache.thrift.TBase<deleteTag_result, deleteTag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTag_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTag_result.class, metaDataMap);}public deleteTag_result() {}public deleteTag_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteTag_result(deleteTag_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public deleteTag_result deepCopy() {return new deleteTag_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteTag_result)return this.equals((deleteTag_result)that);return false;}public boolean equals(deleteTag_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteTag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteTag_result typedOther = (deleteTag_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteTag_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllTags_args implements org.apache.thrift.TBase<getAllTags_args, getAllTags_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllTags_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllTags_args.class, metaDataMap);}public getAllTags_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllTags_args(getAllTags_args other) {}public getAllTags_args deepCopy() {return new getAllTags_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllTags_args)return this.equals((getAllTags_args)that);return false;}public boolean equals(getAllTags_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllTags_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllTags_args typedOther = (getAllTags_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllTags_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllTags_result implements org.apache.thrift.TBase<getAllTags_result, getAllTags_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllTags_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllTags_result.class, metaDataMap);}public getAllTags_result() {}public getAllTags_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllTags_result(getAllTags_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllTags_result deepCopy() {return new getAllTags_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllTags_result)return this.equals((getAllTags_result)that);return false;}public boolean equals(getAllTags_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllTags_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllTags_result typedOther = (getAllTags_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();this.success = new ArrayList<String>(_list118.size);for (int _i119 = 0; _i119 < _list118.size; ++_i119){String _elem120; // required_elem120 = iprot.readString();this.success.add(_elem120);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter121 : this.success){oprot.writeString(_iter121);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllTags_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllEntitiesByTagName_args implements org.apache.thrift.TBase<getAllEntitiesByTagName_args, getAllEntitiesByTagName_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntitiesByTagName_args");private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)1);private String displayName; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DISPLAY_NAME((short)1, "displayName");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DISPLAY_NAMEreturn DISPLAY_NAME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntitiesByTagName_args.class, metaDataMap);}public getAllEntitiesByTagName_args() {}public getAllEntitiesByTagName_args(String displayName){this();this.displayName = displayName;}/*** Performs a deep copy on <i>other</i>.*/public getAllEntitiesByTagName_args(getAllEntitiesByTagName_args other) {if (other.isSetDisplayName()) {this.displayName = other.displayName;}}public getAllEntitiesByTagName_args deepCopy() {return new getAllEntitiesByTagName_args(this);}@Overridepublic void clear() {this.displayName = null;}public String getDisplayName() {return this.displayName;}public void setDisplayName(String displayName) {this.displayName = displayName;}public void unsetDisplayName() {this.displayName = null;}/** Returns true if field displayName is set (has been assigned a value) and false otherwise */public boolean isSetDisplayName() {return this.displayName != null;}public void setDisplayNameIsSet(boolean value) {if (!value) {this.displayName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case DISPLAY_NAME:if (value == null) {unsetDisplayName();} else {setDisplayName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DISPLAY_NAME:return getDisplayName();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DISPLAY_NAME:return isSetDisplayName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllEntitiesByTagName_args)return this.equals((getAllEntitiesByTagName_args)that);return false;}public boolean equals(getAllEntitiesByTagName_args that) {if (that == null)return false;boolean this_present_displayName = true && this.isSetDisplayName();boolean that_present_displayName = true && that.isSetDisplayName();if (this_present_displayName || that_present_displayName) {if (!(this_present_displayName && that_present_displayName))return false;if (!this.displayName.equals(that.displayName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllEntitiesByTagName_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllEntitiesByTagName_args typedOther = (getAllEntitiesByTagName_args)other;lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());if (lastComparison != 0) {return lastComparison;}if (isSetDisplayName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DISPLAY_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.displayName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.displayName != null) {oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);oprot.writeString(this.displayName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllEntitiesByTagName_args(");boolean first = true;sb.append("displayName:");if (this.displayName == null) {sb.append("null");} else {sb.append(this.displayName);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllEntitiesByTagName_result implements org.apache.thrift.TBase<getAllEntitiesByTagName_result, getAllEntitiesByTagName_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntitiesByTagName_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntitiesByTagName_result.class, metaDataMap);}public getAllEntitiesByTagName_result() {}public getAllEntitiesByTagName_result(List<Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllEntitiesByTagName_result(getAllEntitiesByTagName_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllEntitiesByTagName_result deepCopy() {return new getAllEntitiesByTagName_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllEntitiesByTagName_result)return this.equals((getAllEntitiesByTagName_result)that);return false;}public boolean equals(getAllEntitiesByTagName_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllEntitiesByTagName_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllEntitiesByTagName_result typedOther = (getAllEntitiesByTagName_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();this.success = new ArrayList<Long>(_list122.size);for (int _i123 = 0; _i123 < _list122.size; ++_i123){long _elem124; // required_elem124 = iprot.readI64();this.success.add(_elem124);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter125 : this.success){oprot.writeI64(_iter125);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllEntitiesByTagName_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllEntityTags_args implements org.apache.thrift.TBase<getAllEntityTags_args, getAllEntityTags_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntityTags_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntityTags_args.class, metaDataMap);}public getAllEntityTags_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllEntityTags_args(getAllEntityTags_args other) {}public getAllEntityTags_args deepCopy() {return new getAllEntityTags_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllEntityTags_args)return this.equals((getAllEntityTags_args)that);return false;}public boolean equals(getAllEntityTags_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllEntityTags_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllEntityTags_args typedOther = (getAllEntityTags_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllEntityTags_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllEntityTags_result implements org.apache.thrift.TBase<getAllEntityTags_result, getAllEntityTags_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntityTags_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,List<String>> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntityTags_result.class, metaDataMap);}public getAllEntityTags_result() {}public getAllEntityTags_result(Map<Long,List<String>> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllEntityTags_result(getAllEntityTags_result other) {if (other.isSetSuccess()) {Map<Long,List<String>> __this__success = new HashMap<Long,List<String>>();for (Map.Entry<Long, List<String>> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();List<String> other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;List<String> __this__success_copy_value = new ArrayList<String>();for (String other_element_value_element : other_element_value) {__this__success_copy_value.add(other_element_value_element);}__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getAllEntityTags_result deepCopy() {return new getAllEntityTags_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, List<String> val) {if (this.success == null) {this.success = new HashMap<Long,List<String>>();}this.success.put(key, val);}public Map<Long,List<String>> getSuccess() {return this.success;}public void setSuccess(Map<Long,List<String>> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,List<String>>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllEntityTags_result)return this.equals((getAllEntityTags_result)that);return false;}public boolean equals(getAllEntityTags_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllEntityTags_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllEntityTags_result typedOther = (getAllEntityTags_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin();this.success = new HashMap<Long,List<String>>(2*_map126.size);for (int _i127 = 0; _i127 < _map126.size; ++_i127){long _key128; // requiredList<String> _val129; // required_key128 = iprot.readI64();{org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();_val129 = new ArrayList<String>(_list130.size);for (int _i131 = 0; _i131 < _list130.size; ++_i131){String _elem132; // required_elem132 = iprot.readString();_val129.add(_elem132);}iprot.readListEnd();}this.success.put(_key128, _val129);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));for (Map.Entry<Long, List<String>> _iter133 : this.success.entrySet()){oprot.writeI64(_iter133.getKey());{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter133.getValue().size()));for (String _iter134 : _iter133.getValue()){oprot.writeString(_iter134);}oprot.writeListEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllEntityTags_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBanner_args implements org.apache.thrift.TBase<addBanner_args, addBanner_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBanner_args");private static final org.apache.thrift.protocol.TField BANNER_CONGREGATE_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerCongregate", org.apache.thrift.protocol.TType.STRUCT, (short)1);private BannerCongregate bannerCongregate; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_CONGREGATE((short)1, "bannerCongregate");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_CONGREGATEreturn BANNER_CONGREGATE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_CONGREGATE, new org.apache.thrift.meta_data.FieldMetaData("bannerCongregate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerCongregate.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBanner_args.class, metaDataMap);}public addBanner_args() {}public addBanner_args(BannerCongregate bannerCongregate){this();this.bannerCongregate = bannerCongregate;}/*** Performs a deep copy on <i>other</i>.*/public addBanner_args(addBanner_args other) {if (other.isSetBannerCongregate()) {this.bannerCongregate = new BannerCongregate(other.bannerCongregate);}}public addBanner_args deepCopy() {return new addBanner_args(this);}@Overridepublic void clear() {this.bannerCongregate = null;}public BannerCongregate getBannerCongregate() {return this.bannerCongregate;}public void setBannerCongregate(BannerCongregate bannerCongregate) {this.bannerCongregate = bannerCongregate;}public void unsetBannerCongregate() {this.bannerCongregate = null;}/** Returns true if field bannerCongregate is set (has been assigned a value) and false otherwise */public boolean isSetBannerCongregate() {return this.bannerCongregate != null;}public void setBannerCongregateIsSet(boolean value) {if (!value) {this.bannerCongregate = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_CONGREGATE:if (value == null) {unsetBannerCongregate();} else {setBannerCongregate((BannerCongregate)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_CONGREGATE:return getBannerCongregate();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_CONGREGATE:return isSetBannerCongregate();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBanner_args)return this.equals((addBanner_args)that);return false;}public boolean equals(addBanner_args that) {if (that == null)return false;boolean this_present_bannerCongregate = true && this.isSetBannerCongregate();boolean that_present_bannerCongregate = true && that.isSetBannerCongregate();if (this_present_bannerCongregate || that_present_bannerCongregate) {if (!(this_present_bannerCongregate && that_present_bannerCongregate))return false;if (!this.bannerCongregate.equals(that.bannerCongregate))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBanner_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBanner_args typedOther = (addBanner_args)other;lastComparison = Boolean.valueOf(isSetBannerCongregate()).compareTo(typedOther.isSetBannerCongregate());if (lastComparison != 0) {return lastComparison;}if (isSetBannerCongregate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerCongregate, typedOther.bannerCongregate);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_CONGREGATEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.bannerCongregate = new BannerCongregate();this.bannerCongregate.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerCongregate != null) {oprot.writeFieldBegin(BANNER_CONGREGATE_FIELD_DESC);this.bannerCongregate.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBanner_args(");boolean first = true;sb.append("bannerCongregate:");if (this.bannerCongregate == null) {sb.append("null");} else {sb.append(this.bannerCongregate);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBanner_result implements org.apache.thrift.TBase<addBanner_result, addBanner_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBanner_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBanner_result.class, metaDataMap);}public addBanner_result() {}public addBanner_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addBanner_result(addBanner_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addBanner_result deepCopy() {return new addBanner_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBanner_result)return this.equals((addBanner_result)that);return false;}public boolean equals(addBanner_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBanner_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBanner_result typedOther = (addBanner_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBanner_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateBanner_args implements org.apache.thrift.TBase<updateBanner_args, updateBanner_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBanner_args");private static final org.apache.thrift.protocol.TField BANNER_FIELD_DESC = new org.apache.thrift.protocol.TField("banner", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Banner banner; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER((short)1, "banner");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNERreturn BANNER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER, new org.apache.thrift.meta_data.FieldMetaData("banner", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBanner_args.class, metaDataMap);}public updateBanner_args() {}public updateBanner_args(Banner banner){this();this.banner = banner;}/*** Performs a deep copy on <i>other</i>.*/public updateBanner_args(updateBanner_args other) {if (other.isSetBanner()) {this.banner = new Banner(other.banner);}}public updateBanner_args deepCopy() {return new updateBanner_args(this);}@Overridepublic void clear() {this.banner = null;}public Banner getBanner() {return this.banner;}public void setBanner(Banner banner) {this.banner = banner;}public void unsetBanner() {this.banner = null;}/** Returns true if field banner is set (has been assigned a value) and false otherwise */public boolean isSetBanner() {return this.banner != null;}public void setBannerIsSet(boolean value) {if (!value) {this.banner = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER:if (value == null) {unsetBanner();} else {setBanner((Banner)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER:return getBanner();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER:return isSetBanner();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateBanner_args)return this.equals((updateBanner_args)that);return false;}public boolean equals(updateBanner_args that) {if (that == null)return false;boolean this_present_banner = true && this.isSetBanner();boolean that_present_banner = true && that.isSetBanner();if (this_present_banner || that_present_banner) {if (!(this_present_banner && that_present_banner))return false;if (!this.banner.equals(that.banner))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateBanner_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateBanner_args typedOther = (updateBanner_args)other;lastComparison = Boolean.valueOf(isSetBanner()).compareTo(typedOther.isSetBanner());if (lastComparison != 0) {return lastComparison;}if (isSetBanner()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.banner, typedOther.banner);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNERif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.banner = new Banner();this.banner.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.banner != null) {oprot.writeFieldBegin(BANNER_FIELD_DESC);this.banner.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateBanner_args(");boolean first = true;sb.append("banner:");if (this.banner == null) {sb.append("null");} else {sb.append(this.banner);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateBanner_result implements org.apache.thrift.TBase<updateBanner_result, updateBanner_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBanner_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBanner_result.class, metaDataMap);}public updateBanner_result() {}public updateBanner_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateBanner_result(updateBanner_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateBanner_result deepCopy() {return new updateBanner_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateBanner_result)return this.equals((updateBanner_result)that);return false;}public boolean equals(updateBanner_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateBanner_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateBanner_result typedOther = (updateBanner_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateBanner_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBanners_args implements org.apache.thrift.TBase<getAllBanners_args, getAllBanners_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBanners_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBanners_args.class, metaDataMap);}public getAllBanners_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllBanners_args(getAllBanners_args other) {}public getAllBanners_args deepCopy() {return new getAllBanners_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBanners_args)return this.equals((getAllBanners_args)that);return false;}public boolean equals(getAllBanners_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBanners_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBanners_args typedOther = (getAllBanners_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBanners_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBanners_result implements org.apache.thrift.TBase<getAllBanners_result, getAllBanners_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBanners_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Banner> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBanners_result.class, metaDataMap);}public getAllBanners_result() {}public getAllBanners_result(List<Banner> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllBanners_result(getAllBanners_result other) {if (other.isSetSuccess()) {List<Banner> __this__success = new ArrayList<Banner>();for (Banner other_element : other.success) {__this__success.add(new Banner(other_element));}this.success = __this__success;}}public getAllBanners_result deepCopy() {return new getAllBanners_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Banner> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Banner elem) {if (this.success == null) {this.success = new ArrayList<Banner>();}this.success.add(elem);}public List<Banner> getSuccess() {return this.success;}public void setSuccess(List<Banner> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Banner>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBanners_result)return this.equals((getAllBanners_result)that);return false;}public boolean equals(getAllBanners_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBanners_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBanners_result typedOther = (getAllBanners_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list135 = iprot.readListBegin();this.success = new ArrayList<Banner>(_list135.size);for (int _i136 = 0; _i136 < _list135.size; ++_i136){Banner _elem137; // required_elem137 = new Banner();_elem137.read(iprot);this.success.add(_elem137);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Banner _iter138 : this.success){_iter138.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBanners_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBanner_args implements org.apache.thrift.TBase<deleteBanner_args, deleteBanner_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBanner_args");private static final org.apache.thrift.protocol.TField BANNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerName", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField BANNER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerType", org.apache.thrift.protocol.TType.I32, (short)2);private String bannerName; // requiredprivate BannerType bannerType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_NAME((short)1, "bannerName"),/**** @see BannerType*/BANNER_TYPE((short)2, "bannerType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_NAMEreturn BANNER_NAME;case 2: // BANNER_TYPEreturn BANNER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BANNER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("bannerType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BannerType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBanner_args.class, metaDataMap);}public deleteBanner_args() {}public deleteBanner_args(String bannerName,BannerType bannerType){this();this.bannerName = bannerName;this.bannerType = bannerType;}/*** Performs a deep copy on <i>other</i>.*/public deleteBanner_args(deleteBanner_args other) {if (other.isSetBannerName()) {this.bannerName = other.bannerName;}if (other.isSetBannerType()) {this.bannerType = other.bannerType;}}public deleteBanner_args deepCopy() {return new deleteBanner_args(this);}@Overridepublic void clear() {this.bannerName = null;this.bannerType = null;}public String getBannerName() {return this.bannerName;}public void setBannerName(String bannerName) {this.bannerName = bannerName;}public void unsetBannerName() {this.bannerName = null;}/** Returns true if field bannerName is set (has been assigned a value) and false otherwise */public boolean isSetBannerName() {return this.bannerName != null;}public void setBannerNameIsSet(boolean value) {if (!value) {this.bannerName = null;}}/**** @see BannerType*/public BannerType getBannerType() {return this.bannerType;}/**** @see BannerType*/public void setBannerType(BannerType bannerType) {this.bannerType = bannerType;}public void unsetBannerType() {this.bannerType = null;}/** Returns true if field bannerType is set (has been assigned a value) and false otherwise */public boolean isSetBannerType() {return this.bannerType != null;}public void setBannerTypeIsSet(boolean value) {if (!value) {this.bannerType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_NAME:if (value == null) {unsetBannerName();} else {setBannerName((String)value);}break;case BANNER_TYPE:if (value == null) {unsetBannerType();} else {setBannerType((BannerType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_NAME:return getBannerName();case BANNER_TYPE:return getBannerType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_NAME:return isSetBannerName();case BANNER_TYPE:return isSetBannerType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBanner_args)return this.equals((deleteBanner_args)that);return false;}public boolean equals(deleteBanner_args that) {if (that == null)return false;boolean this_present_bannerName = true && this.isSetBannerName();boolean that_present_bannerName = true && that.isSetBannerName();if (this_present_bannerName || that_present_bannerName) {if (!(this_present_bannerName && that_present_bannerName))return false;if (!this.bannerName.equals(that.bannerName))return false;}boolean this_present_bannerType = true && this.isSetBannerType();boolean that_present_bannerType = true && that.isSetBannerType();if (this_present_bannerType || that_present_bannerType) {if (!(this_present_bannerType && that_present_bannerType))return false;if (!this.bannerType.equals(that.bannerType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBanner_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBanner_args typedOther = (deleteBanner_args)other;lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());if (lastComparison != 0) {return lastComparison;}if (isSetBannerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBannerType()).compareTo(typedOther.isSetBannerType());if (lastComparison != 0) {return lastComparison;}if (isSetBannerType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerType, typedOther.bannerType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.bannerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BANNER_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.bannerType = BannerType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerName != null) {oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);oprot.writeString(this.bannerName);oprot.writeFieldEnd();}if (this.bannerType != null) {oprot.writeFieldBegin(BANNER_TYPE_FIELD_DESC);oprot.writeI32(this.bannerType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBanner_args(");boolean first = true;sb.append("bannerName:");if (this.bannerName == null) {sb.append("null");} else {sb.append(this.bannerName);}first = false;if (!first) sb.append(", ");sb.append("bannerType:");if (this.bannerType == null) {sb.append("null");} else {sb.append(this.bannerType);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBanner_result implements org.apache.thrift.TBase<deleteBanner_result, deleteBanner_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBanner_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBanner_result.class, metaDataMap);}public deleteBanner_result() {}public deleteBanner_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteBanner_result(deleteBanner_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public deleteBanner_result deepCopy() {return new deleteBanner_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBanner_result)return this.equals((deleteBanner_result)that);return false;}public boolean equals(deleteBanner_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBanner_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBanner_result typedOther = (deleteBanner_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBanner_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBannerDetails_args implements org.apache.thrift.TBase<getBannerDetails_args, getBannerDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerDetails_args");private static final org.apache.thrift.protocol.TField BANNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerName", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField BANNER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerType", org.apache.thrift.protocol.TType.I32, (short)2);private String bannerName; // requiredprivate BannerType bannerType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_NAME((short)1, "bannerName"),/**** @see BannerType*/BANNER_TYPE((short)2, "bannerType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_NAMEreturn BANNER_NAME;case 2: // BANNER_TYPEreturn BANNER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BANNER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("bannerType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BannerType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerDetails_args.class, metaDataMap);}public getBannerDetails_args() {}public getBannerDetails_args(String bannerName,BannerType bannerType){this();this.bannerName = bannerName;this.bannerType = bannerType;}/*** Performs a deep copy on <i>other</i>.*/public getBannerDetails_args(getBannerDetails_args other) {if (other.isSetBannerName()) {this.bannerName = other.bannerName;}if (other.isSetBannerType()) {this.bannerType = other.bannerType;}}public getBannerDetails_args deepCopy() {return new getBannerDetails_args(this);}@Overridepublic void clear() {this.bannerName = null;this.bannerType = null;}public String getBannerName() {return this.bannerName;}public void setBannerName(String bannerName) {this.bannerName = bannerName;}public void unsetBannerName() {this.bannerName = null;}/** Returns true if field bannerName is set (has been assigned a value) and false otherwise */public boolean isSetBannerName() {return this.bannerName != null;}public void setBannerNameIsSet(boolean value) {if (!value) {this.bannerName = null;}}/**** @see BannerType*/public BannerType getBannerType() {return this.bannerType;}/**** @see BannerType*/public void setBannerType(BannerType bannerType) {this.bannerType = bannerType;}public void unsetBannerType() {this.bannerType = null;}/** Returns true if field bannerType is set (has been assigned a value) and false otherwise */public boolean isSetBannerType() {return this.bannerType != null;}public void setBannerTypeIsSet(boolean value) {if (!value) {this.bannerType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_NAME:if (value == null) {unsetBannerName();} else {setBannerName((String)value);}break;case BANNER_TYPE:if (value == null) {unsetBannerType();} else {setBannerType((BannerType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_NAME:return getBannerName();case BANNER_TYPE:return getBannerType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_NAME:return isSetBannerName();case BANNER_TYPE:return isSetBannerType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBannerDetails_args)return this.equals((getBannerDetails_args)that);return false;}public boolean equals(getBannerDetails_args that) {if (that == null)return false;boolean this_present_bannerName = true && this.isSetBannerName();boolean that_present_bannerName = true && that.isSetBannerName();if (this_present_bannerName || that_present_bannerName) {if (!(this_present_bannerName && that_present_bannerName))return false;if (!this.bannerName.equals(that.bannerName))return false;}boolean this_present_bannerType = true && this.isSetBannerType();boolean that_present_bannerType = true && that.isSetBannerType();if (this_present_bannerType || that_present_bannerType) {if (!(this_present_bannerType && that_present_bannerType))return false;if (!this.bannerType.equals(that.bannerType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBannerDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBannerDetails_args typedOther = (getBannerDetails_args)other;lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());if (lastComparison != 0) {return lastComparison;}if (isSetBannerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBannerType()).compareTo(typedOther.isSetBannerType());if (lastComparison != 0) {return lastComparison;}if (isSetBannerType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerType, typedOther.bannerType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.bannerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BANNER_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.bannerType = BannerType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerName != null) {oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);oprot.writeString(this.bannerName);oprot.writeFieldEnd();}if (this.bannerType != null) {oprot.writeFieldBegin(BANNER_TYPE_FIELD_DESC);oprot.writeI32(this.bannerType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBannerDetails_args(");boolean first = true;sb.append("bannerName:");if (this.bannerName == null) {sb.append("null");} else {sb.append(this.bannerName);}first = false;if (!first) sb.append(", ");sb.append("bannerType:");if (this.bannerType == null) {sb.append("null");} else {sb.append(this.bannerType);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBannerDetails_result implements org.apache.thrift.TBase<getBannerDetails_result, getBannerDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private Banner success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerDetails_result.class, metaDataMap);}public getBannerDetails_result() {}public getBannerDetails_result(Banner success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getBannerDetails_result(getBannerDetails_result other) {if (other.isSetSuccess()) {this.success = new Banner(other.success);}}public getBannerDetails_result deepCopy() {return new getBannerDetails_result(this);}@Overridepublic void clear() {this.success = null;}public Banner getSuccess() {return this.success;}public void setSuccess(Banner success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Banner)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBannerDetails_result)return this.equals((getBannerDetails_result)that);return false;}public boolean equals(getBannerDetails_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBannerDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBannerDetails_result typedOther = (getBannerDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Banner();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBannerDetails_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getActiveBanners_args implements org.apache.thrift.TBase<getActiveBanners_args, getActiveBanners_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveBanners_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveBanners_args.class, metaDataMap);}public getActiveBanners_args() {}/*** Performs a deep copy on <i>other</i>.*/public getActiveBanners_args(getActiveBanners_args other) {}public getActiveBanners_args deepCopy() {return new getActiveBanners_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActiveBanners_args)return this.equals((getActiveBanners_args)that);return false;}public boolean equals(getActiveBanners_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActiveBanners_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActiveBanners_args typedOther = (getActiveBanners_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActiveBanners_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getActiveBanners_result implements org.apache.thrift.TBase<getActiveBanners_result, getActiveBanners_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveBanners_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<String,List<Banner>> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class)))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveBanners_result.class, metaDataMap);}public getActiveBanners_result() {}public getActiveBanners_result(Map<String,List<Banner>> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActiveBanners_result(getActiveBanners_result other) {if (other.isSetSuccess()) {Map<String,List<Banner>> __this__success = new HashMap<String,List<Banner>>();for (Map.Entry<String, List<Banner>> other_element : other.success.entrySet()) {String other_element_key = other_element.getKey();List<Banner> other_element_value = other_element.getValue();String __this__success_copy_key = other_element_key;List<Banner> __this__success_copy_value = new ArrayList<Banner>();for (Banner other_element_value_element : other_element_value) {__this__success_copy_value.add(new Banner(other_element_value_element));}__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getActiveBanners_result deepCopy() {return new getActiveBanners_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(String key, List<Banner> val) {if (this.success == null) {this.success = new HashMap<String,List<Banner>>();}this.success.put(key, val);}public Map<String,List<Banner>> getSuccess() {return this.success;}public void setSuccess(Map<String,List<Banner>> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<String,List<Banner>>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActiveBanners_result)return this.equals((getActiveBanners_result)that);return false;}public boolean equals(getActiveBanners_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActiveBanners_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActiveBanners_result typedOther = (getActiveBanners_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map139 = iprot.readMapBegin();this.success = new HashMap<String,List<Banner>>(2*_map139.size);for (int _i140 = 0; _i140 < _map139.size; ++_i140){String _key141; // requiredList<Banner> _val142; // required_key141 = iprot.readString();{org.apache.thrift.protocol.TList _list143 = iprot.readListBegin();_val142 = new ArrayList<Banner>(_list143.size);for (int _i144 = 0; _i144 < _list143.size; ++_i144){Banner _elem145; // required_elem145 = new Banner();_elem145.read(iprot);_val142.add(_elem145);}iprot.readListEnd();}this.success.put(_key141, _val142);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, this.success.size()));for (Map.Entry<String, List<Banner>> _iter146 : this.success.entrySet()){oprot.writeString(_iter146.getKey());{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter146.getValue().size()));for (Banner _iter147 : _iter146.getValue()){_iter147.write(oprot);}oprot.writeListEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActiveBanners_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBannerMap_args implements org.apache.thrift.TBase<addBannerMap_args, addBannerMap_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBannerMap_args");private static final org.apache.thrift.protocol.TField BANNER_MAPS_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerMaps", org.apache.thrift.protocol.TType.LIST, (short)1);private List<BannerMap> bannerMaps; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_MAPS((short)1, "bannerMaps");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_MAPSreturn BANNER_MAPS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_MAPS, new org.apache.thrift.meta_data.FieldMetaData("bannerMaps", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerMap.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBannerMap_args.class, metaDataMap);}public addBannerMap_args() {}public addBannerMap_args(List<BannerMap> bannerMaps){this();this.bannerMaps = bannerMaps;}/*** Performs a deep copy on <i>other</i>.*/public addBannerMap_args(addBannerMap_args other) {if (other.isSetBannerMaps()) {List<BannerMap> __this__bannerMaps = new ArrayList<BannerMap>();for (BannerMap other_element : other.bannerMaps) {__this__bannerMaps.add(new BannerMap(other_element));}this.bannerMaps = __this__bannerMaps;}}public addBannerMap_args deepCopy() {return new addBannerMap_args(this);}@Overridepublic void clear() {this.bannerMaps = null;}public int getBannerMapsSize() {return (this.bannerMaps == null) ? 0 : this.bannerMaps.size();}public java.util.Iterator<BannerMap> getBannerMapsIterator() {return (this.bannerMaps == null) ? null : this.bannerMaps.iterator();}public void addToBannerMaps(BannerMap elem) {if (this.bannerMaps == null) {this.bannerMaps = new ArrayList<BannerMap>();}this.bannerMaps.add(elem);}public List<BannerMap> getBannerMaps() {return this.bannerMaps;}public void setBannerMaps(List<BannerMap> bannerMaps) {this.bannerMaps = bannerMaps;}public void unsetBannerMaps() {this.bannerMaps = null;}/** Returns true if field bannerMaps is set (has been assigned a value) and false otherwise */public boolean isSetBannerMaps() {return this.bannerMaps != null;}public void setBannerMapsIsSet(boolean value) {if (!value) {this.bannerMaps = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_MAPS:if (value == null) {unsetBannerMaps();} else {setBannerMaps((List<BannerMap>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_MAPS:return getBannerMaps();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_MAPS:return isSetBannerMaps();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBannerMap_args)return this.equals((addBannerMap_args)that);return false;}public boolean equals(addBannerMap_args that) {if (that == null)return false;boolean this_present_bannerMaps = true && this.isSetBannerMaps();boolean that_present_bannerMaps = true && that.isSetBannerMaps();if (this_present_bannerMaps || that_present_bannerMaps) {if (!(this_present_bannerMaps && that_present_bannerMaps))return false;if (!this.bannerMaps.equals(that.bannerMaps))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBannerMap_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBannerMap_args typedOther = (addBannerMap_args)other;lastComparison = Boolean.valueOf(isSetBannerMaps()).compareTo(typedOther.isSetBannerMaps());if (lastComparison != 0) {return lastComparison;}if (isSetBannerMaps()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerMaps, typedOther.bannerMaps);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_MAPSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();this.bannerMaps = new ArrayList<BannerMap>(_list148.size);for (int _i149 = 0; _i149 < _list148.size; ++_i149){BannerMap _elem150; // required_elem150 = new BannerMap();_elem150.read(iprot);this.bannerMaps.add(_elem150);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerMaps != null) {oprot.writeFieldBegin(BANNER_MAPS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bannerMaps.size()));for (BannerMap _iter151 : this.bannerMaps){_iter151.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBannerMap_args(");boolean first = true;sb.append("bannerMaps:");if (this.bannerMaps == null) {sb.append("null");} else {sb.append(this.bannerMaps);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBannerMap_result implements org.apache.thrift.TBase<addBannerMap_result, addBannerMap_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBannerMap_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBannerMap_result.class, metaDataMap);}public addBannerMap_result() {}public addBannerMap_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addBannerMap_result(addBannerMap_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addBannerMap_result deepCopy() {return new addBannerMap_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBannerMap_result)return this.equals((addBannerMap_result)that);return false;}public boolean equals(addBannerMap_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBannerMap_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBannerMap_result typedOther = (addBannerMap_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBannerMap_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateBannerMap_args implements org.apache.thrift.TBase<updateBannerMap_args, updateBannerMap_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBannerMap_args");private static final org.apache.thrift.protocol.TField BANNER_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerMap", org.apache.thrift.protocol.TType.STRUCT, (short)1);private BannerMap bannerMap; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_MAP((short)1, "bannerMap");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_MAPreturn BANNER_MAP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_MAP, new org.apache.thrift.meta_data.FieldMetaData("bannerMap", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerMap.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBannerMap_args.class, metaDataMap);}public updateBannerMap_args() {}public updateBannerMap_args(BannerMap bannerMap){this();this.bannerMap = bannerMap;}/*** Performs a deep copy on <i>other</i>.*/public updateBannerMap_args(updateBannerMap_args other) {if (other.isSetBannerMap()) {this.bannerMap = new BannerMap(other.bannerMap);}}public updateBannerMap_args deepCopy() {return new updateBannerMap_args(this);}@Overridepublic void clear() {this.bannerMap = null;}public BannerMap getBannerMap() {return this.bannerMap;}public void setBannerMap(BannerMap bannerMap) {this.bannerMap = bannerMap;}public void unsetBannerMap() {this.bannerMap = null;}/** Returns true if field bannerMap is set (has been assigned a value) and false otherwise */public boolean isSetBannerMap() {return this.bannerMap != null;}public void setBannerMapIsSet(boolean value) {if (!value) {this.bannerMap = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_MAP:if (value == null) {unsetBannerMap();} else {setBannerMap((BannerMap)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_MAP:return getBannerMap();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_MAP:return isSetBannerMap();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateBannerMap_args)return this.equals((updateBannerMap_args)that);return false;}public boolean equals(updateBannerMap_args that) {if (that == null)return false;boolean this_present_bannerMap = true && this.isSetBannerMap();boolean that_present_bannerMap = true && that.isSetBannerMap();if (this_present_bannerMap || that_present_bannerMap) {if (!(this_present_bannerMap && that_present_bannerMap))return false;if (!this.bannerMap.equals(that.bannerMap))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateBannerMap_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateBannerMap_args typedOther = (updateBannerMap_args)other;lastComparison = Boolean.valueOf(isSetBannerMap()).compareTo(typedOther.isSetBannerMap());if (lastComparison != 0) {return lastComparison;}if (isSetBannerMap()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerMap, typedOther.bannerMap);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_MAPif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.bannerMap = new BannerMap();this.bannerMap.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerMap != null) {oprot.writeFieldBegin(BANNER_MAP_FIELD_DESC);this.bannerMap.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateBannerMap_args(");boolean first = true;sb.append("bannerMap:");if (this.bannerMap == null) {sb.append("null");} else {sb.append(this.bannerMap);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateBannerMap_result implements org.apache.thrift.TBase<updateBannerMap_result, updateBannerMap_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBannerMap_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBannerMap_result.class, metaDataMap);}public updateBannerMap_result() {}public updateBannerMap_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateBannerMap_result(updateBannerMap_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateBannerMap_result deepCopy() {return new updateBannerMap_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateBannerMap_result)return this.equals((updateBannerMap_result)that);return false;}public boolean equals(updateBannerMap_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateBannerMap_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateBannerMap_result typedOther = (updateBannerMap_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateBannerMap_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBannerMap_args implements org.apache.thrift.TBase<deleteBannerMap_args, deleteBannerMap_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBannerMap_args");private static final org.apache.thrift.protocol.TField BANNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerName", org.apache.thrift.protocol.TType.STRING, (short)1);private String bannerName; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_NAME((short)1, "bannerName");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_NAMEreturn BANNER_NAME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBannerMap_args.class, metaDataMap);}public deleteBannerMap_args() {}public deleteBannerMap_args(String bannerName){this();this.bannerName = bannerName;}/*** Performs a deep copy on <i>other</i>.*/public deleteBannerMap_args(deleteBannerMap_args other) {if (other.isSetBannerName()) {this.bannerName = other.bannerName;}}public deleteBannerMap_args deepCopy() {return new deleteBannerMap_args(this);}@Overridepublic void clear() {this.bannerName = null;}public String getBannerName() {return this.bannerName;}public void setBannerName(String bannerName) {this.bannerName = bannerName;}public void unsetBannerName() {this.bannerName = null;}/** Returns true if field bannerName is set (has been assigned a value) and false otherwise */public boolean isSetBannerName() {return this.bannerName != null;}public void setBannerNameIsSet(boolean value) {if (!value) {this.bannerName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_NAME:if (value == null) {unsetBannerName();} else {setBannerName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_NAME:return getBannerName();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_NAME:return isSetBannerName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBannerMap_args)return this.equals((deleteBannerMap_args)that);return false;}public boolean equals(deleteBannerMap_args that) {if (that == null)return false;boolean this_present_bannerName = true && this.isSetBannerName();boolean that_present_bannerName = true && that.isSetBannerName();if (this_present_bannerName || that_present_bannerName) {if (!(this_present_bannerName && that_present_bannerName))return false;if (!this.bannerName.equals(that.bannerName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBannerMap_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBannerMap_args typedOther = (deleteBannerMap_args)other;lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());if (lastComparison != 0) {return lastComparison;}if (isSetBannerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.bannerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerName != null) {oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);oprot.writeString(this.bannerName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBannerMap_args(");boolean first = true;sb.append("bannerName:");if (this.bannerName == null) {sb.append("null");} else {sb.append(this.bannerName);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBannerMap_result implements org.apache.thrift.TBase<deleteBannerMap_result, deleteBannerMap_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBannerMap_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBannerMap_result.class, metaDataMap);}public deleteBannerMap_result() {}public deleteBannerMap_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteBannerMap_result(deleteBannerMap_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public deleteBannerMap_result deepCopy() {return new deleteBannerMap_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBannerMap_result)return this.equals((deleteBannerMap_result)that);return false;}public boolean equals(deleteBannerMap_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBannerMap_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBannerMap_result typedOther = (deleteBannerMap_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBannerMap_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBannerMapDetails_args implements org.apache.thrift.TBase<getBannerMapDetails_args, getBannerMapDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerMapDetails_args");private static final org.apache.thrift.protocol.TField BANNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerName", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField BANNER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerType", org.apache.thrift.protocol.TType.I32, (short)2);private String bannerName; // requiredprivate BannerType bannerType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_NAME((short)1, "bannerName"),/**** @see BannerType*/BANNER_TYPE((short)2, "bannerType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_NAMEreturn BANNER_NAME;case 2: // BANNER_TYPEreturn BANNER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BANNER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("bannerType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BannerType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerMapDetails_args.class, metaDataMap);}public getBannerMapDetails_args() {}public getBannerMapDetails_args(String bannerName,BannerType bannerType){this();this.bannerName = bannerName;this.bannerType = bannerType;}/*** Performs a deep copy on <i>other</i>.*/public getBannerMapDetails_args(getBannerMapDetails_args other) {if (other.isSetBannerName()) {this.bannerName = other.bannerName;}if (other.isSetBannerType()) {this.bannerType = other.bannerType;}}public getBannerMapDetails_args deepCopy() {return new getBannerMapDetails_args(this);}@Overridepublic void clear() {this.bannerName = null;this.bannerType = null;}public String getBannerName() {return this.bannerName;}public void setBannerName(String bannerName) {this.bannerName = bannerName;}public void unsetBannerName() {this.bannerName = null;}/** Returns true if field bannerName is set (has been assigned a value) and false otherwise */public boolean isSetBannerName() {return this.bannerName != null;}public void setBannerNameIsSet(boolean value) {if (!value) {this.bannerName = null;}}/**** @see BannerType*/public BannerType getBannerType() {return this.bannerType;}/**** @see BannerType*/public void setBannerType(BannerType bannerType) {this.bannerType = bannerType;}public void unsetBannerType() {this.bannerType = null;}/** Returns true if field bannerType is set (has been assigned a value) and false otherwise */public boolean isSetBannerType() {return this.bannerType != null;}public void setBannerTypeIsSet(boolean value) {if (!value) {this.bannerType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_NAME:if (value == null) {unsetBannerName();} else {setBannerName((String)value);}break;case BANNER_TYPE:if (value == null) {unsetBannerType();} else {setBannerType((BannerType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_NAME:return getBannerName();case BANNER_TYPE:return getBannerType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_NAME:return isSetBannerName();case BANNER_TYPE:return isSetBannerType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBannerMapDetails_args)return this.equals((getBannerMapDetails_args)that);return false;}public boolean equals(getBannerMapDetails_args that) {if (that == null)return false;boolean this_present_bannerName = true && this.isSetBannerName();boolean that_present_bannerName = true && that.isSetBannerName();if (this_present_bannerName || that_present_bannerName) {if (!(this_present_bannerName && that_present_bannerName))return false;if (!this.bannerName.equals(that.bannerName))return false;}boolean this_present_bannerType = true && this.isSetBannerType();boolean that_present_bannerType = true && that.isSetBannerType();if (this_present_bannerType || that_present_bannerType) {if (!(this_present_bannerType && that_present_bannerType))return false;if (!this.bannerType.equals(that.bannerType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBannerMapDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBannerMapDetails_args typedOther = (getBannerMapDetails_args)other;lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());if (lastComparison != 0) {return lastComparison;}if (isSetBannerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBannerType()).compareTo(typedOther.isSetBannerType());if (lastComparison != 0) {return lastComparison;}if (isSetBannerType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerType, typedOther.bannerType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.bannerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BANNER_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.bannerType = BannerType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerName != null) {oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);oprot.writeString(this.bannerName);oprot.writeFieldEnd();}if (this.bannerType != null) {oprot.writeFieldBegin(BANNER_TYPE_FIELD_DESC);oprot.writeI32(this.bannerType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBannerMapDetails_args(");boolean first = true;sb.append("bannerName:");if (this.bannerName == null) {sb.append("null");} else {sb.append(this.bannerName);}first = false;if (!first) sb.append(", ");sb.append("bannerType:");if (this.bannerType == null) {sb.append("null");} else {sb.append(this.bannerType);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBannerMapDetails_result implements org.apache.thrift.TBase<getBannerMapDetails_result, getBannerMapDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerMapDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<BannerMap> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerMap.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerMapDetails_result.class, metaDataMap);}public getBannerMapDetails_result() {}public getBannerMapDetails_result(List<BannerMap> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getBannerMapDetails_result(getBannerMapDetails_result other) {if (other.isSetSuccess()) {List<BannerMap> __this__success = new ArrayList<BannerMap>();for (BannerMap other_element : other.success) {__this__success.add(new BannerMap(other_element));}this.success = __this__success;}}public getBannerMapDetails_result deepCopy() {return new getBannerMapDetails_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<BannerMap> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(BannerMap elem) {if (this.success == null) {this.success = new ArrayList<BannerMap>();}this.success.add(elem);}public List<BannerMap> getSuccess() {return this.success;}public void setSuccess(List<BannerMap> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<BannerMap>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBannerMapDetails_result)return this.equals((getBannerMapDetails_result)that);return false;}public boolean equals(getBannerMapDetails_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBannerMapDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBannerMapDetails_result typedOther = (getBannerMapDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list152 = iprot.readListBegin();this.success = new ArrayList<BannerMap>(_list152.size);for (int _i153 = 0; _i153 < _list152.size; ++_i153){BannerMap _elem154; // required_elem154 = new BannerMap();_elem154.read(iprot);this.success.add(_elem154);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (BannerMap _iter155 : this.success){_iter155.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBannerMapDetails_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBannerUri_args implements org.apache.thrift.TBase<addBannerUri_args, addBannerUri_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBannerUri_args");private static final org.apache.thrift.protocol.TField BANNER_URI_MAPPINGS_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerUriMappings", org.apache.thrift.protocol.TType.LIST, (short)1);private List<BannerUriMapping> bannerUriMappings; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_URI_MAPPINGS((short)1, "bannerUriMappings");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_URI_MAPPINGSreturn BANNER_URI_MAPPINGS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_URI_MAPPINGS, new org.apache.thrift.meta_data.FieldMetaData("bannerUriMappings", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerUriMapping.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBannerUri_args.class, metaDataMap);}public addBannerUri_args() {}public addBannerUri_args(List<BannerUriMapping> bannerUriMappings){this();this.bannerUriMappings = bannerUriMappings;}/*** Performs a deep copy on <i>other</i>.*/public addBannerUri_args(addBannerUri_args other) {if (other.isSetBannerUriMappings()) {List<BannerUriMapping> __this__bannerUriMappings = new ArrayList<BannerUriMapping>();for (BannerUriMapping other_element : other.bannerUriMappings) {__this__bannerUriMappings.add(new BannerUriMapping(other_element));}this.bannerUriMappings = __this__bannerUriMappings;}}public addBannerUri_args deepCopy() {return new addBannerUri_args(this);}@Overridepublic void clear() {this.bannerUriMappings = null;}public int getBannerUriMappingsSize() {return (this.bannerUriMappings == null) ? 0 : this.bannerUriMappings.size();}public java.util.Iterator<BannerUriMapping> getBannerUriMappingsIterator() {return (this.bannerUriMappings == null) ? null : this.bannerUriMappings.iterator();}public void addToBannerUriMappings(BannerUriMapping elem) {if (this.bannerUriMappings == null) {this.bannerUriMappings = new ArrayList<BannerUriMapping>();}this.bannerUriMappings.add(elem);}public List<BannerUriMapping> getBannerUriMappings() {return this.bannerUriMappings;}public void setBannerUriMappings(List<BannerUriMapping> bannerUriMappings) {this.bannerUriMappings = bannerUriMappings;}public void unsetBannerUriMappings() {this.bannerUriMappings = null;}/** Returns true if field bannerUriMappings is set (has been assigned a value) and false otherwise */public boolean isSetBannerUriMappings() {return this.bannerUriMappings != null;}public void setBannerUriMappingsIsSet(boolean value) {if (!value) {this.bannerUriMappings = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_URI_MAPPINGS:if (value == null) {unsetBannerUriMappings();} else {setBannerUriMappings((List<BannerUriMapping>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_URI_MAPPINGS:return getBannerUriMappings();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_URI_MAPPINGS:return isSetBannerUriMappings();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBannerUri_args)return this.equals((addBannerUri_args)that);return false;}public boolean equals(addBannerUri_args that) {if (that == null)return false;boolean this_present_bannerUriMappings = true && this.isSetBannerUriMappings();boolean that_present_bannerUriMappings = true && that.isSetBannerUriMappings();if (this_present_bannerUriMappings || that_present_bannerUriMappings) {if (!(this_present_bannerUriMappings && that_present_bannerUriMappings))return false;if (!this.bannerUriMappings.equals(that.bannerUriMappings))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBannerUri_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBannerUri_args typedOther = (addBannerUri_args)other;lastComparison = Boolean.valueOf(isSetBannerUriMappings()).compareTo(typedOther.isSetBannerUriMappings());if (lastComparison != 0) {return lastComparison;}if (isSetBannerUriMappings()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerUriMappings, typedOther.bannerUriMappings);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_URI_MAPPINGSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list156 = iprot.readListBegin();this.bannerUriMappings = new ArrayList<BannerUriMapping>(_list156.size);for (int _i157 = 0; _i157 < _list156.size; ++_i157){BannerUriMapping _elem158; // required_elem158 = new BannerUriMapping();_elem158.read(iprot);this.bannerUriMappings.add(_elem158);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerUriMappings != null) {oprot.writeFieldBegin(BANNER_URI_MAPPINGS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bannerUriMappings.size()));for (BannerUriMapping _iter159 : this.bannerUriMappings){_iter159.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBannerUri_args(");boolean first = true;sb.append("bannerUriMappings:");if (this.bannerUriMappings == null) {sb.append("null");} else {sb.append(this.bannerUriMappings);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBannerUri_result implements org.apache.thrift.TBase<addBannerUri_result, addBannerUri_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBannerUri_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBannerUri_result.class, metaDataMap);}public addBannerUri_result() {}/*** Performs a deep copy on <i>other</i>.*/public addBannerUri_result(addBannerUri_result other) {}public addBannerUri_result deepCopy() {return new addBannerUri_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBannerUri_result)return this.equals((addBannerUri_result)that);return false;}public boolean equals(addBannerUri_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBannerUri_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBannerUri_result typedOther = (addBannerUri_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBannerUri_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUriMapping_args implements org.apache.thrift.TBase<getUriMapping_args, getUriMapping_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUriMapping_args");private static final org.apache.thrift.protocol.TField BANNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerName", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField BANNER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerType", org.apache.thrift.protocol.TType.I32, (short)2);private String bannerName; // requiredprivate BannerType bannerType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BANNER_NAME((short)1, "bannerName"),/**** @see BannerType*/BANNER_TYPE((short)2, "bannerType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BANNER_NAMEreturn BANNER_NAME;case 2: // BANNER_TYPEreturn BANNER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BANNER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("bannerType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BannerType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUriMapping_args.class, metaDataMap);}public getUriMapping_args() {}public getUriMapping_args(String bannerName,BannerType bannerType){this();this.bannerName = bannerName;this.bannerType = bannerType;}/*** Performs a deep copy on <i>other</i>.*/public getUriMapping_args(getUriMapping_args other) {if (other.isSetBannerName()) {this.bannerName = other.bannerName;}if (other.isSetBannerType()) {this.bannerType = other.bannerType;}}public getUriMapping_args deepCopy() {return new getUriMapping_args(this);}@Overridepublic void clear() {this.bannerName = null;this.bannerType = null;}public String getBannerName() {return this.bannerName;}public void setBannerName(String bannerName) {this.bannerName = bannerName;}public void unsetBannerName() {this.bannerName = null;}/** Returns true if field bannerName is set (has been assigned a value) and false otherwise */public boolean isSetBannerName() {return this.bannerName != null;}public void setBannerNameIsSet(boolean value) {if (!value) {this.bannerName = null;}}/**** @see BannerType*/public BannerType getBannerType() {return this.bannerType;}/**** @see BannerType*/public void setBannerType(BannerType bannerType) {this.bannerType = bannerType;}public void unsetBannerType() {this.bannerType = null;}/** Returns true if field bannerType is set (has been assigned a value) and false otherwise */public boolean isSetBannerType() {return this.bannerType != null;}public void setBannerTypeIsSet(boolean value) {if (!value) {this.bannerType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BANNER_NAME:if (value == null) {unsetBannerName();} else {setBannerName((String)value);}break;case BANNER_TYPE:if (value == null) {unsetBannerType();} else {setBannerType((BannerType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BANNER_NAME:return getBannerName();case BANNER_TYPE:return getBannerType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BANNER_NAME:return isSetBannerName();case BANNER_TYPE:return isSetBannerType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUriMapping_args)return this.equals((getUriMapping_args)that);return false;}public boolean equals(getUriMapping_args that) {if (that == null)return false;boolean this_present_bannerName = true && this.isSetBannerName();boolean that_present_bannerName = true && that.isSetBannerName();if (this_present_bannerName || that_present_bannerName) {if (!(this_present_bannerName && that_present_bannerName))return false;if (!this.bannerName.equals(that.bannerName))return false;}boolean this_present_bannerType = true && this.isSetBannerType();boolean that_present_bannerType = true && that.isSetBannerType();if (this_present_bannerType || that_present_bannerType) {if (!(this_present_bannerType && that_present_bannerType))return false;if (!this.bannerType.equals(that.bannerType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUriMapping_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUriMapping_args typedOther = (getUriMapping_args)other;lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());if (lastComparison != 0) {return lastComparison;}if (isSetBannerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBannerType()).compareTo(typedOther.isSetBannerType());if (lastComparison != 0) {return lastComparison;}if (isSetBannerType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerType, typedOther.bannerType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BANNER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.bannerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BANNER_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.bannerType = BannerType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bannerName != null) {oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);oprot.writeString(this.bannerName);oprot.writeFieldEnd();}if (this.bannerType != null) {oprot.writeFieldBegin(BANNER_TYPE_FIELD_DESC);oprot.writeI32(this.bannerType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUriMapping_args(");boolean first = true;sb.append("bannerName:");if (this.bannerName == null) {sb.append("null");} else {sb.append(this.bannerName);}first = false;if (!first) sb.append(", ");sb.append("bannerType:");if (this.bannerType == null) {sb.append("null");} else {sb.append(this.bannerType);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUriMapping_result implements org.apache.thrift.TBase<getUriMapping_result, getUriMapping_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUriMapping_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<BannerUriMapping> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerUriMapping.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUriMapping_result.class, metaDataMap);}public getUriMapping_result() {}public getUriMapping_result(List<BannerUriMapping> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getUriMapping_result(getUriMapping_result other) {if (other.isSetSuccess()) {List<BannerUriMapping> __this__success = new ArrayList<BannerUriMapping>();for (BannerUriMapping other_element : other.success) {__this__success.add(new BannerUriMapping(other_element));}this.success = __this__success;}}public getUriMapping_result deepCopy() {return new getUriMapping_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<BannerUriMapping> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(BannerUriMapping elem) {if (this.success == null) {this.success = new ArrayList<BannerUriMapping>();}this.success.add(elem);}public List<BannerUriMapping> getSuccess() {return this.success;}public void setSuccess(List<BannerUriMapping> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<BannerUriMapping>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUriMapping_result)return this.equals((getUriMapping_result)that);return false;}public boolean equals(getUriMapping_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUriMapping_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUriMapping_result typedOther = (getUriMapping_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list160 = iprot.readListBegin();this.success = new ArrayList<BannerUriMapping>(_list160.size);for (int _i161 = 0; _i161 < _list160.size; ++_i161){BannerUriMapping _elem162; // required_elem162 = new BannerUriMapping();_elem162.read(iprot);this.success.add(_elem162);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (BannerUriMapping _iter163 : this.success){_iter163.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUriMapping_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCampaign_args implements org.apache.thrift.TBase<addCampaign_args, addCampaign_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCampaign_args");private static final org.apache.thrift.protocol.TField CAMPAIGN_FIELD_DESC = new org.apache.thrift.protocol.TField("campaign", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Campaign campaign; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CAMPAIGN((short)1, "campaign");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CAMPAIGNreturn CAMPAIGN;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CAMPAIGN, new org.apache.thrift.meta_data.FieldMetaData("campaign", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Campaign.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCampaign_args.class, metaDataMap);}public addCampaign_args() {}public addCampaign_args(Campaign campaign){this();this.campaign = campaign;}/*** Performs a deep copy on <i>other</i>.*/public addCampaign_args(addCampaign_args other) {if (other.isSetCampaign()) {this.campaign = new Campaign(other.campaign);}}public addCampaign_args deepCopy() {return new addCampaign_args(this);}@Overridepublic void clear() {this.campaign = null;}public Campaign getCampaign() {return this.campaign;}public void setCampaign(Campaign campaign) {this.campaign = campaign;}public void unsetCampaign() {this.campaign = null;}/** Returns true if field campaign is set (has been assigned a value) and false otherwise */public boolean isSetCampaign() {return this.campaign != null;}public void setCampaignIsSet(boolean value) {if (!value) {this.campaign = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CAMPAIGN:if (value == null) {unsetCampaign();} else {setCampaign((Campaign)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CAMPAIGN:return getCampaign();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CAMPAIGN:return isSetCampaign();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCampaign_args)return this.equals((addCampaign_args)that);return false;}public boolean equals(addCampaign_args that) {if (that == null)return false;boolean this_present_campaign = true && this.isSetCampaign();boolean that_present_campaign = true && that.isSetCampaign();if (this_present_campaign || that_present_campaign) {if (!(this_present_campaign && that_present_campaign))return false;if (!this.campaign.equals(that.campaign))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCampaign_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCampaign_args typedOther = (addCampaign_args)other;lastComparison = Boolean.valueOf(isSetCampaign()).compareTo(typedOther.isSetCampaign());if (lastComparison != 0) {return lastComparison;}if (isSetCampaign()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaign, typedOther.campaign);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CAMPAIGNif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.campaign = new Campaign();this.campaign.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.campaign != null) {oprot.writeFieldBegin(CAMPAIGN_FIELD_DESC);this.campaign.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCampaign_args(");boolean first = true;sb.append("campaign:");if (this.campaign == null) {sb.append("null");} else {sb.append(this.campaign);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCampaign_result implements org.apache.thrift.TBase<addCampaign_result, addCampaign_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCampaign_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCampaign_result.class, metaDataMap);}public addCampaign_result() {}/*** Performs a deep copy on <i>other</i>.*/public addCampaign_result(addCampaign_result other) {}public addCampaign_result deepCopy() {return new addCampaign_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCampaign_result)return this.equals((addCampaign_result)that);return false;}public boolean equals(addCampaign_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCampaign_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCampaign_result typedOther = (addCampaign_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCampaign_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCampaigns_args implements org.apache.thrift.TBase<getCampaigns_args, getCampaigns_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCampaigns_args");private static final org.apache.thrift.protocol.TField CAMPAIGN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignName", org.apache.thrift.protocol.TType.STRING, (short)1);private String campaignName; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CAMPAIGN_NAME((short)1, "campaignName");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CAMPAIGN_NAMEreturn CAMPAIGN_NAME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CAMPAIGN_NAME, new org.apache.thrift.meta_data.FieldMetaData("campaignName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCampaigns_args.class, metaDataMap);}public getCampaigns_args() {}public getCampaigns_args(String campaignName){this();this.campaignName = campaignName;}/*** Performs a deep copy on <i>other</i>.*/public getCampaigns_args(getCampaigns_args other) {if (other.isSetCampaignName()) {this.campaignName = other.campaignName;}}public getCampaigns_args deepCopy() {return new getCampaigns_args(this);}@Overridepublic void clear() {this.campaignName = null;}public String getCampaignName() {return this.campaignName;}public void setCampaignName(String campaignName) {this.campaignName = campaignName;}public void unsetCampaignName() {this.campaignName = null;}/** Returns true if field campaignName is set (has been assigned a value) and false otherwise */public boolean isSetCampaignName() {return this.campaignName != null;}public void setCampaignNameIsSet(boolean value) {if (!value) {this.campaignName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CAMPAIGN_NAME:if (value == null) {unsetCampaignName();} else {setCampaignName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CAMPAIGN_NAME:return getCampaignName();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CAMPAIGN_NAME:return isSetCampaignName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCampaigns_args)return this.equals((getCampaigns_args)that);return false;}public boolean equals(getCampaigns_args that) {if (that == null)return false;boolean this_present_campaignName = true && this.isSetCampaignName();boolean that_present_campaignName = true && that.isSetCampaignName();if (this_present_campaignName || that_present_campaignName) {if (!(this_present_campaignName && that_present_campaignName))return false;if (!this.campaignName.equals(that.campaignName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCampaigns_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCampaigns_args typedOther = (getCampaigns_args)other;lastComparison = Boolean.valueOf(isSetCampaignName()).compareTo(typedOther.isSetCampaignName());if (lastComparison != 0) {return lastComparison;}if (isSetCampaignName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignName, typedOther.campaignName);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CAMPAIGN_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.campaignName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.campaignName != null) {oprot.writeFieldBegin(CAMPAIGN_NAME_FIELD_DESC);oprot.writeString(this.campaignName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCampaigns_args(");boolean first = true;sb.append("campaignName:");if (this.campaignName == null) {sb.append("null");} else {sb.append(this.campaignName);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCampaigns_result implements org.apache.thrift.TBase<getCampaigns_result, getCampaigns_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCampaigns_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Campaign> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Campaign.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCampaigns_result.class, metaDataMap);}public getCampaigns_result() {}public getCampaigns_result(List<Campaign> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getCampaigns_result(getCampaigns_result other) {if (other.isSetSuccess()) {List<Campaign> __this__success = new ArrayList<Campaign>();for (Campaign other_element : other.success) {__this__success.add(new Campaign(other_element));}this.success = __this__success;}}public getCampaigns_result deepCopy() {return new getCampaigns_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Campaign> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Campaign elem) {if (this.success == null) {this.success = new ArrayList<Campaign>();}this.success.add(elem);}public List<Campaign> getSuccess() {return this.success;}public void setSuccess(List<Campaign> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Campaign>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCampaigns_result)return this.equals((getCampaigns_result)that);return false;}public boolean equals(getCampaigns_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCampaigns_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCampaigns_result typedOther = (getCampaigns_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list164 = iprot.readListBegin();this.success = new ArrayList<Campaign>(_list164.size);for (int _i165 = 0; _i165 < _list164.size; ++_i165){Campaign _elem166; // required_elem166 = new Campaign();_elem166.read(iprot);this.success.add(_elem166);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Campaign _iter167 : this.success){_iter167.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCampaigns_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteCampaign_args implements org.apache.thrift.TBase<deleteCampaign_args, deleteCampaign_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteCampaign_args");private static final org.apache.thrift.protocol.TField CAMPAIGN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignId", org.apache.thrift.protocol.TType.I64, (short)1);private long campaignId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CAMPAIGN_ID((short)1, "campaignId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CAMPAIGN_IDreturn CAMPAIGN_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CAMPAIGNID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CAMPAIGN_ID, new org.apache.thrift.meta_data.FieldMetaData("campaignId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteCampaign_args.class, metaDataMap);}public deleteCampaign_args() {}public deleteCampaign_args(long campaignId){this();this.campaignId = campaignId;setCampaignIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteCampaign_args(deleteCampaign_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.campaignId = other.campaignId;}public deleteCampaign_args deepCopy() {return new deleteCampaign_args(this);}@Overridepublic void clear() {setCampaignIdIsSet(false);this.campaignId = 0;}public long getCampaignId() {return this.campaignId;}public void setCampaignId(long campaignId) {this.campaignId = campaignId;setCampaignIdIsSet(true);}public void unsetCampaignId() {__isset_bit_vector.clear(__CAMPAIGNID_ISSET_ID);}/** Returns true if field campaignId is set (has been assigned a value) and false otherwise */public boolean isSetCampaignId() {return __isset_bit_vector.get(__CAMPAIGNID_ISSET_ID);}public void setCampaignIdIsSet(boolean value) {__isset_bit_vector.set(__CAMPAIGNID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CAMPAIGN_ID:if (value == null) {unsetCampaignId();} else {setCampaignId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CAMPAIGN_ID:return Long.valueOf(getCampaignId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CAMPAIGN_ID:return isSetCampaignId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteCampaign_args)return this.equals((deleteCampaign_args)that);return false;}public boolean equals(deleteCampaign_args that) {if (that == null)return false;boolean this_present_campaignId = true;boolean that_present_campaignId = true;if (this_present_campaignId || that_present_campaignId) {if (!(this_present_campaignId && that_present_campaignId))return false;if (this.campaignId != that.campaignId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteCampaign_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteCampaign_args typedOther = (deleteCampaign_args)other;lastComparison = Boolean.valueOf(isSetCampaignId()).compareTo(typedOther.isSetCampaignId());if (lastComparison != 0) {return lastComparison;}if (isSetCampaignId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignId, typedOther.campaignId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CAMPAIGN_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.campaignId = iprot.readI64();setCampaignIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CAMPAIGN_ID_FIELD_DESC);oprot.writeI64(this.campaignId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteCampaign_args(");boolean first = true;sb.append("campaignId:");sb.append(this.campaignId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteCampaign_result implements org.apache.thrift.TBase<deleteCampaign_result, deleteCampaign_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteCampaign_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteCampaign_result.class, metaDataMap);}public deleteCampaign_result() {}/*** Performs a deep copy on <i>other</i>.*/public deleteCampaign_result(deleteCampaign_result other) {}public deleteCampaign_result deepCopy() {return new deleteCampaign_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteCampaign_result)return this.equals((deleteCampaign_result)that);return false;}public boolean equals(deleteCampaign_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteCampaign_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteCampaign_result typedOther = (deleteCampaign_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteCampaign_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllCampaigns_args implements org.apache.thrift.TBase<getAllCampaigns_args, getAllCampaigns_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCampaigns_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCampaigns_args.class, metaDataMap);}public getAllCampaigns_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllCampaigns_args(getAllCampaigns_args other) {}public getAllCampaigns_args deepCopy() {return new getAllCampaigns_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllCampaigns_args)return this.equals((getAllCampaigns_args)that);return false;}public boolean equals(getAllCampaigns_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllCampaigns_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllCampaigns_args typedOther = (getAllCampaigns_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllCampaigns_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllCampaigns_result implements org.apache.thrift.TBase<getAllCampaigns_result, getAllCampaigns_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCampaigns_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCampaigns_result.class, metaDataMap);}public getAllCampaigns_result() {}public getAllCampaigns_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllCampaigns_result(getAllCampaigns_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllCampaigns_result deepCopy() {return new getAllCampaigns_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllCampaigns_result)return this.equals((getAllCampaigns_result)that);return false;}public boolean equals(getAllCampaigns_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllCampaigns_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllCampaigns_result typedOther = (getAllCampaigns_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list168 = iprot.readListBegin();this.success = new ArrayList<String>(_list168.size);for (int _i169 = 0; _i169 < _list168.size; ++_i169){String _elem170; // required_elem170 = iprot.readString();this.success.add(_elem170);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter171 : this.success){oprot.writeString(_iter171);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllCampaigns_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getActiveBannersForMobileSite_args implements org.apache.thrift.TBase<getActiveBannersForMobileSite_args, getActiveBannersForMobileSite_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveBannersForMobileSite_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveBannersForMobileSite_args.class, metaDataMap);}public getActiveBannersForMobileSite_args() {}/*** Performs a deep copy on <i>other</i>.*/public getActiveBannersForMobileSite_args(getActiveBannersForMobileSite_args other) {}public getActiveBannersForMobileSite_args deepCopy() {return new getActiveBannersForMobileSite_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActiveBannersForMobileSite_args)return this.equals((getActiveBannersForMobileSite_args)that);return false;}public boolean equals(getActiveBannersForMobileSite_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActiveBannersForMobileSite_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActiveBannersForMobileSite_args typedOther = (getActiveBannersForMobileSite_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActiveBannersForMobileSite_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getActiveBannersForMobileSite_result implements org.apache.thrift.TBase<getActiveBannersForMobileSite_result, getActiveBannersForMobileSite_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveBannersForMobileSite_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<String,List<Banner>> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class)))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveBannersForMobileSite_result.class, metaDataMap);}public getActiveBannersForMobileSite_result() {}public getActiveBannersForMobileSite_result(Map<String,List<Banner>> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActiveBannersForMobileSite_result(getActiveBannersForMobileSite_result other) {if (other.isSetSuccess()) {Map<String,List<Banner>> __this__success = new HashMap<String,List<Banner>>();for (Map.Entry<String, List<Banner>> other_element : other.success.entrySet()) {String other_element_key = other_element.getKey();List<Banner> other_element_value = other_element.getValue();String __this__success_copy_key = other_element_key;List<Banner> __this__success_copy_value = new ArrayList<Banner>();for (Banner other_element_value_element : other_element_value) {__this__success_copy_value.add(new Banner(other_element_value_element));}__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getActiveBannersForMobileSite_result deepCopy() {return new getActiveBannersForMobileSite_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(String key, List<Banner> val) {if (this.success == null) {this.success = new HashMap<String,List<Banner>>();}this.success.put(key, val);}public Map<String,List<Banner>> getSuccess() {return this.success;}public void setSuccess(Map<String,List<Banner>> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<String,List<Banner>>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActiveBannersForMobileSite_result)return this.equals((getActiveBannersForMobileSite_result)that);return false;}public boolean equals(getActiveBannersForMobileSite_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActiveBannersForMobileSite_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActiveBannersForMobileSite_result typedOther = (getActiveBannersForMobileSite_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map172 = iprot.readMapBegin();this.success = new HashMap<String,List<Banner>>(2*_map172.size);for (int _i173 = 0; _i173 < _map172.size; ++_i173){String _key174; // requiredList<Banner> _val175; // required_key174 = iprot.readString();{org.apache.thrift.protocol.TList _list176 = iprot.readListBegin();_val175 = new ArrayList<Banner>(_list176.size);for (int _i177 = 0; _i177 < _list176.size; ++_i177){Banner _elem178; // required_elem178 = new Banner();_elem178.read(iprot);_val175.add(_elem178);}iprot.readListEnd();}this.success.put(_key174, _val175);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, this.success.size()));for (Map.Entry<String, List<Banner>> _iter179 : this.success.entrySet()){oprot.writeString(_iter179.getKey());{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter179.getValue().size()));for (Banner _iter180 : _iter179.getValue()){_iter180.write(oprot);}oprot.writeListEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActiveBannersForMobileSite_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteSimilarItem_args implements org.apache.thrift.TBase<deleteSimilarItem_args, deleteSimilarItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),CATALOG_ITEM_ID((short)2, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __CATALOGITEMID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_args.class, metaDataMap);}public deleteSimilarItem_args() {}public deleteSimilarItem_args(long itemId,long catalogItemId){this();this.itemId = itemId;setItemIdIsSet(true);this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteSimilarItem_args(deleteSimilarItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.catalogItemId = other.catalogItemId;}public deleteSimilarItem_args deepCopy() {return new deleteSimilarItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteSimilarItem_args)return this.equals((deleteSimilarItem_args)that);return false;}public boolean equals(deleteSimilarItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteSimilarItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteSimilarItem_args typedOther = (deleteSimilarItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteSimilarItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteSimilarItem_result implements org.apache.thrift.TBase<deleteSimilarItem_result, deleteSimilarItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_result.class, metaDataMap);}public deleteSimilarItem_result() {}public deleteSimilarItem_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public deleteSimilarItem_result(deleteSimilarItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public deleteSimilarItem_result deepCopy() {return new deleteSimilarItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteSimilarItem_result)return this.equals((deleteSimilarItem_result)that);return false;}public boolean equals(deleteSimilarItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteSimilarItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteSimilarItem_result typedOther = (deleteSimilarItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteSimilarItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class checkSimilarItem_args implements org.apache.thrift.TBase<checkSimilarItem_args, checkSimilarItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkSimilarItem_args");private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)4);private String brand; // requiredprivate String modelNumber; // requiredprivate String modelName; // requiredprivate String color; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BRAND((short)1, "brand"),MODEL_NUMBER((short)2, "modelNumber"),MODEL_NAME((short)3, "modelName"),COLOR((short)4, "color");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BRANDreturn BRAND;case 2: // MODEL_NUMBERreturn MODEL_NUMBER;case 3: // MODEL_NAMEreturn MODEL_NAME;case 4: // COLORreturn COLOR;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkSimilarItem_args.class, metaDataMap);}public checkSimilarItem_args() {}public checkSimilarItem_args(String brand,String modelNumber,String modelName,String color){this();this.brand = brand;this.modelNumber = modelNumber;this.modelName = modelName;this.color = color;}/*** Performs a deep copy on <i>other</i>.*/public checkSimilarItem_args(checkSimilarItem_args other) {if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetModelNumber()) {this.modelNumber = other.modelNumber;}if (other.isSetModelName()) {this.modelName = other.modelName;}if (other.isSetColor()) {this.color = other.color;}}public checkSimilarItem_args deepCopy() {return new checkSimilarItem_args(this);}@Overridepublic void clear() {this.brand = null;this.modelNumber = null;this.modelName = null;this.color = null;}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public String getModelNumber() {return this.modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public void unsetModelNumber() {this.modelNumber = null;}/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */public boolean isSetModelNumber() {return this.modelNumber != null;}public void setModelNumberIsSet(boolean value) {if (!value) {this.modelNumber = null;}}public String getModelName() {return this.modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public void unsetModelName() {this.modelName = null;}/** Returns true if field modelName is set (has been assigned a value) and false otherwise */public boolean isSetModelName() {return this.modelName != null;}public void setModelNameIsSet(boolean value) {if (!value) {this.modelName = null;}}public String getColor() {return this.color;}public void setColor(String color) {this.color = color;}public void unsetColor() {this.color = null;}/** Returns true if field color is set (has been assigned a value) and false otherwise */public boolean isSetColor() {return this.color != null;}public void setColorIsSet(boolean value) {if (!value) {this.color = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case MODEL_NUMBER:if (value == null) {unsetModelNumber();} else {setModelNumber((String)value);}break;case MODEL_NAME:if (value == null) {unsetModelName();} else {setModelName((String)value);}break;case COLOR:if (value == null) {unsetColor();} else {setColor((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BRAND:return getBrand();case MODEL_NUMBER:return getModelNumber();case MODEL_NAME:return getModelName();case COLOR:return getColor();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BRAND:return isSetBrand();case MODEL_NUMBER:return isSetModelNumber();case MODEL_NAME:return isSetModelName();case COLOR:return isSetColor();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof checkSimilarItem_args)return this.equals((checkSimilarItem_args)that);return false;}public boolean equals(checkSimilarItem_args that) {if (that == null)return false;boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_modelNumber = true && this.isSetModelNumber();boolean that_present_modelNumber = true && that.isSetModelNumber();if (this_present_modelNumber || that_present_modelNumber) {if (!(this_present_modelNumber && that_present_modelNumber))return false;if (!this.modelNumber.equals(that.modelNumber))return false;}boolean this_present_modelName = true && this.isSetModelName();boolean that_present_modelName = true && that.isSetModelName();if (this_present_modelName || that_present_modelName) {if (!(this_present_modelName && that_present_modelName))return false;if (!this.modelName.equals(that.modelName))return false;}boolean this_present_color = true && this.isSetColor();boolean that_present_color = true && that.isSetColor();if (this_present_color || that_present_color) {if (!(this_present_color && that_present_color))return false;if (!this.color.equals(that.color))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(checkSimilarItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;checkSimilarItem_args typedOther = (checkSimilarItem_args)other;lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());if (lastComparison != 0) {return lastComparison;}if (isSetModelNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());if (lastComparison != 0) {return lastComparison;}if (isSetModelName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());if (lastComparison != 0) {return lastComparison;}if (isSetColor()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // MODEL_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // MODEL_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // COLORif (field.type == org.apache.thrift.protocol.TType.STRING) {this.color = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.modelNumber != null) {oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);oprot.writeString(this.modelNumber);oprot.writeFieldEnd();}if (this.modelName != null) {oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);oprot.writeString(this.modelName);oprot.writeFieldEnd();}if (this.color != null) {oprot.writeFieldBegin(COLOR_FIELD_DESC);oprot.writeString(this.color);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("checkSimilarItem_args(");boolean first = true;sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("modelNumber:");if (this.modelNumber == null) {sb.append("null");} else {sb.append(this.modelNumber);}first = false;if (!first) sb.append(", ");sb.append("modelName:");if (this.modelName == null) {sb.append("null");} else {sb.append(this.modelName);}first = false;if (!first) sb.append(", ");sb.append("color:");if (this.color == null) {sb.append("null");} else {sb.append(this.color);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class checkSimilarItem_result implements org.apache.thrift.TBase<checkSimilarItem_result, checkSimilarItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkSimilarItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkSimilarItem_result.class, metaDataMap);}public checkSimilarItem_result() {}public checkSimilarItem_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public checkSimilarItem_result(checkSimilarItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public checkSimilarItem_result deepCopy() {return new checkSimilarItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof checkSimilarItem_result)return this.equals((checkSimilarItem_result)that);return false;}public boolean equals(checkSimilarItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(checkSimilarItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;checkSimilarItem_result typedOther = (checkSimilarItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("checkSimilarItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateRiskyStatus_args implements org.apache.thrift.TBase<validateRiskyStatus_args, validateRiskyStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRiskyStatus_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRiskyStatus_args.class, metaDataMap);}public validateRiskyStatus_args() {}public validateRiskyStatus_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public validateRiskyStatus_args(validateRiskyStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public validateRiskyStatus_args deepCopy() {return new validateRiskyStatus_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateRiskyStatus_args)return this.equals((validateRiskyStatus_args)that);return false;}public boolean equals(validateRiskyStatus_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateRiskyStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateRiskyStatus_args typedOther = (validateRiskyStatus_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateRiskyStatus_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateRiskyStatus_result implements org.apache.thrift.TBase<validateRiskyStatus_result, validateRiskyStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRiskyStatus_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRiskyStatus_result.class, metaDataMap);}public validateRiskyStatus_result() {}/*** Performs a deep copy on <i>other</i>.*/public validateRiskyStatus_result(validateRiskyStatus_result other) {}public validateRiskyStatus_result deepCopy() {return new validateRiskyStatus_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateRiskyStatus_result)return this.equals((validateRiskyStatus_result)that);return false;}public boolean equals(validateRiskyStatus_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateRiskyStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateRiskyStatus_result typedOther = (validateRiskyStatus_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateRiskyStatus_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemRiskyFlag_args implements org.apache.thrift.TBase<changeItemRiskyFlag_args, changeItemRiskyFlag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemRiskyFlag_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)2);private long itemId; // requiredprivate boolean risky; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),RISKY((short)2, "risky");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // RISKYreturn RISKY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __RISKY_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemRiskyFlag_args.class, metaDataMap);}public changeItemRiskyFlag_args() {}public changeItemRiskyFlag_args(long itemId,boolean risky){this();this.itemId = itemId;setItemIdIsSet(true);this.risky = risky;setRiskyIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public changeItemRiskyFlag_args(changeItemRiskyFlag_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.risky = other.risky;}public changeItemRiskyFlag_args deepCopy() {return new changeItemRiskyFlag_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setRiskyIsSet(false);this.risky = false;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public boolean isRisky() {return this.risky;}public void setRisky(boolean risky) {this.risky = risky;setRiskyIsSet(true);}public void unsetRisky() {__isset_bit_vector.clear(__RISKY_ISSET_ID);}/** Returns true if field risky is set (has been assigned a value) and false otherwise */public boolean isSetRisky() {return __isset_bit_vector.get(__RISKY_ISSET_ID);}public void setRiskyIsSet(boolean value) {__isset_bit_vector.set(__RISKY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case RISKY:if (value == null) {unsetRisky();} else {setRisky((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case RISKY:return Boolean.valueOf(isRisky());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case RISKY:return isSetRisky();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemRiskyFlag_args)return this.equals((changeItemRiskyFlag_args)that);return false;}public boolean equals(changeItemRiskyFlag_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_risky = true;boolean that_present_risky = true;if (this_present_risky || that_present_risky) {if (!(this_present_risky && that_present_risky))return false;if (this.risky != that.risky)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemRiskyFlag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemRiskyFlag_args typedOther = (changeItemRiskyFlag_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());if (lastComparison != 0) {return lastComparison;}if (isSetRisky()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RISKYif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.risky = iprot.readBool();setRiskyIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(RISKY_FIELD_DESC);oprot.writeBool(this.risky);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemRiskyFlag_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("risky:");sb.append(this.risky);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemRiskyFlag_result implements org.apache.thrift.TBase<changeItemRiskyFlag_result, changeItemRiskyFlag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemRiskyFlag_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemRiskyFlag_result.class, metaDataMap);}public changeItemRiskyFlag_result() {}/*** Performs a deep copy on <i>other</i>.*/public changeItemRiskyFlag_result(changeItemRiskyFlag_result other) {}public changeItemRiskyFlag_result deepCopy() {return new changeItemRiskyFlag_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemRiskyFlag_result)return this.equals((changeItemRiskyFlag_result)that);return false;}public boolean equals(changeItemRiskyFlag_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemRiskyFlag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemRiskyFlag_result typedOther = (changeItemRiskyFlag_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemRiskyFlag_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByRiskyFlag_args implements org.apache.thrift.TBase<getItemsByRiskyFlag_args, getItemsByRiskyFlag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByRiskyFlag_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_args.class, metaDataMap);}public getItemsByRiskyFlag_args() {}/*** Performs a deep copy on <i>other</i>.*/public getItemsByRiskyFlag_args(getItemsByRiskyFlag_args other) {}public getItemsByRiskyFlag_args deepCopy() {return new getItemsByRiskyFlag_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByRiskyFlag_args)return this.equals((getItemsByRiskyFlag_args)that);return false;}public boolean equals(getItemsByRiskyFlag_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByRiskyFlag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByRiskyFlag_args typedOther = (getItemsByRiskyFlag_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByRiskyFlag_result implements org.apache.thrift.TBase<getItemsByRiskyFlag_result, getItemsByRiskyFlag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByRiskyFlag_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_result.class, metaDataMap);}public getItemsByRiskyFlag_result() {}public getItemsByRiskyFlag_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getItemsByRiskyFlag_result(getItemsByRiskyFlag_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getItemsByRiskyFlag_result deepCopy() {return new getItemsByRiskyFlag_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByRiskyFlag_result)return this.equals((getItemsByRiskyFlag_result)that);return false;}public boolean equals(getItemsByRiskyFlag_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByRiskyFlag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByRiskyFlag_result typedOther = (getItemsByRiskyFlag_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list181 = iprot.readListBegin();this.success = new ArrayList<Item>(_list181.size);for (int _i182 = 0; _i182 < _list181.size; ++_i182){Item _elem183; // required_elem183 = new Item();_elem183.read(iprot);this.success.add(_elem183);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter184 : this.success){_iter184.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsForMasterSheet_args implements org.apache.thrift.TBase<getItemsForMasterSheet_args, getItemsForMasterSheet_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsForMasterSheet_args");private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)2);private String category; // requiredprivate String brand; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY((short)1, "category"),BRAND((short)2, "brand");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORYreturn CATEGORY;case 2: // BRANDreturn BRAND;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsForMasterSheet_args.class, metaDataMap);}public getItemsForMasterSheet_args() {}public getItemsForMasterSheet_args(String category,String brand){this();this.category = category;this.brand = brand;}/*** Performs a deep copy on <i>other</i>.*/public getItemsForMasterSheet_args(getItemsForMasterSheet_args other) {if (other.isSetCategory()) {this.category = other.category;}if (other.isSetBrand()) {this.brand = other.brand;}}public getItemsForMasterSheet_args deepCopy() {return new getItemsForMasterSheet_args(this);}@Overridepublic void clear() {this.category = null;this.brand = null;}public String getCategory() {return this.category;}public void setCategory(String category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((String)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY:return getCategory();case BRAND:return getBrand();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY:return isSetCategory();case BRAND:return isSetBrand();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsForMasterSheet_args)return this.equals((getItemsForMasterSheet_args)that);return false;}public boolean equals(getItemsForMasterSheet_args that) {if (that == null)return false;boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsForMasterSheet_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsForMasterSheet_args typedOther = (getItemsForMasterSheet_args)other;lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.category = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeString(this.category);oprot.writeFieldEnd();}if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsForMasterSheet_args(");boolean first = true;sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsForMasterSheet_result implements org.apache.thrift.TBase<getItemsForMasterSheet_result, getItemsForMasterSheet_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsForMasterSheet_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsForMasterSheet_result.class, metaDataMap);}public getItemsForMasterSheet_result() {}public getItemsForMasterSheet_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getItemsForMasterSheet_result(getItemsForMasterSheet_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getItemsForMasterSheet_result deepCopy() {return new getItemsForMasterSheet_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsForMasterSheet_result)return this.equals((getItemsForMasterSheet_result)that);return false;}public boolean equals(getItemsForMasterSheet_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsForMasterSheet_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsForMasterSheet_result typedOther = (getItemsForMasterSheet_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list185 = iprot.readListBegin();this.success = new ArrayList<Item>(_list185.size);for (int _i186 = 0; _i186 < _list185.size; ++_i186){Item _elem187; // required_elem187 = new Item();_elem187.read(iprot);this.success.add(_elem187);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter188 : this.success){_iter188.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsForMasterSheet_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSimilarItemsCatalogIds_args implements org.apache.thrift.TBase<getSimilarItemsCatalogIds_args, getSimilarItemsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSimilarItemsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)3);private long beginIndex; // requiredprivate long totalItems; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),ITEM_ID((short)3, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __ITEMID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSimilarItemsCatalogIds_args.class, metaDataMap);}public getSimilarItemsCatalogIds_args() {}public getSimilarItemsCatalogIds_args(long beginIndex,long totalItems,long itemId){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSimilarItemsCatalogIds_args(getSimilarItemsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;this.itemId = other.itemId;}public getSimilarItemsCatalogIds_args deepCopy() {return new getSimilarItemsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;setItemIdIsSet(false);this.itemId = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSimilarItemsCatalogIds_args)return this.equals((getSimilarItemsCatalogIds_args)that);return false;}public boolean equals(getSimilarItemsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSimilarItemsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSimilarItemsCatalogIds_args typedOther = (getSimilarItemsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSimilarItemsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSimilarItemsCatalogIds_result implements org.apache.thrift.TBase<getSimilarItemsCatalogIds_result, getSimilarItemsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSimilarItemsCatalogIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSimilarItemsCatalogIds_result.class, metaDataMap);}public getSimilarItemsCatalogIds_result() {}public getSimilarItemsCatalogIds_result(List<Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getSimilarItemsCatalogIds_result(getSimilarItemsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getSimilarItemsCatalogIds_result deepCopy() {return new getSimilarItemsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSimilarItemsCatalogIds_result)return this.equals((getSimilarItemsCatalogIds_result)that);return false;}public boolean equals(getSimilarItemsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSimilarItemsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSimilarItemsCatalogIds_result typedOther = (getSimilarItemsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list189 = iprot.readListBegin();this.success = new ArrayList<Long>(_list189.size);for (int _i190 = 0; _i190 < _list189.size; ++_i190){long _elem191; // required_elem191 = iprot.readI64();this.success.add(_elem191);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter192 : this.success){oprot.writeI64(_iter192);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSimilarItemsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addProductNotification_args implements org.apache.thrift.TBase<addProductNotification_args, addProductNotification_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductNotification_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)-1);private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)-2);private long itemId; // requiredprivate String email; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)-1, "itemId"),EMAIL((short)-2, "email");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // ITEM_IDreturn ITEM_ID;case -2: // EMAILreturn EMAIL;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductNotification_args.class, metaDataMap);}public addProductNotification_args() {}public addProductNotification_args(long itemId,String email){this();this.itemId = itemId;setItemIdIsSet(true);this.email = email;}/*** Performs a deep copy on <i>other</i>.*/public addProductNotification_args(addProductNotification_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;if (other.isSetEmail()) {this.email = other.email;}}public addProductNotification_args deepCopy() {return new addProductNotification_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;this.email = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public String getEmail() {return this.email;}public void setEmail(String email) {this.email = email;}public void unsetEmail() {this.email = null;}/** Returns true if field email is set (has been assigned a value) and false otherwise */public boolean isSetEmail() {return this.email != null;}public void setEmailIsSet(boolean value) {if (!value) {this.email = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case EMAIL:if (value == null) {unsetEmail();} else {setEmail((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case EMAIL:return getEmail();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case EMAIL:return isSetEmail();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addProductNotification_args)return this.equals((addProductNotification_args)that);return false;}public boolean equals(addProductNotification_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_email = true && this.isSetEmail();boolean that_present_email = true && that.isSetEmail();if (this_present_email || that_present_email) {if (!(this_present_email && that_present_email))return false;if (!this.email.equals(that.email))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addProductNotification_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addProductNotification_args typedOther = (addProductNotification_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());if (lastComparison != 0) {return lastComparison;}if (isSetEmail()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -2: // EMAILif (field.type == org.apache.thrift.protocol.TType.STRING) {this.email = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.email != null) {oprot.writeFieldBegin(EMAIL_FIELD_DESC);oprot.writeString(this.email);oprot.writeFieldEnd();}oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addProductNotification_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("email:");if (this.email == null) {sb.append("null");} else {sb.append(this.email);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addProductNotification_result implements org.apache.thrift.TBase<addProductNotification_result, addProductNotification_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductNotification_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductNotification_result.class, metaDataMap);}public addProductNotification_result() {}public addProductNotification_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addProductNotification_result(addProductNotification_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addProductNotification_result deepCopy() {return new addProductNotification_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addProductNotification_result)return this.equals((addProductNotification_result)that);return false;}public boolean equals(addProductNotification_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addProductNotification_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addProductNotification_result typedOther = (addProductNotification_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addProductNotification_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendProductNotifications_args implements org.apache.thrift.TBase<sendProductNotifications_args, sendProductNotifications_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendProductNotifications_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendProductNotifications_args.class, metaDataMap);}public sendProductNotifications_args() {}/*** Performs a deep copy on <i>other</i>.*/public sendProductNotifications_args(sendProductNotifications_args other) {}public sendProductNotifications_args deepCopy() {return new sendProductNotifications_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendProductNotifications_args)return this.equals((sendProductNotifications_args)that);return false;}public boolean equals(sendProductNotifications_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendProductNotifications_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendProductNotifications_args typedOther = (sendProductNotifications_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendProductNotifications_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendProductNotifications_result implements org.apache.thrift.TBase<sendProductNotifications_result, sendProductNotifications_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendProductNotifications_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendProductNotifications_result.class, metaDataMap);}public sendProductNotifications_result() {}public sendProductNotifications_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public sendProductNotifications_result(sendProductNotifications_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public sendProductNotifications_result deepCopy() {return new sendProductNotifications_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendProductNotifications_result)return this.equals((sendProductNotifications_result)that);return false;}public boolean equals(sendProductNotifications_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendProductNotifications_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendProductNotifications_result typedOther = (sendProductNotifications_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendProductNotifications_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrandsByCategory_args implements org.apache.thrift.TBase<getAllBrandsByCategory_args, getAllBrandsByCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrandsByCategory_args");private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)1);private long categoryId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY_ID((short)1, "categoryId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORY_IDreturn CATEGORY_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATEGORYID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrandsByCategory_args.class, metaDataMap);}public getAllBrandsByCategory_args() {}public getAllBrandsByCategory_args(long categoryId){this();this.categoryId = categoryId;setCategoryIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllBrandsByCategory_args(getAllBrandsByCategory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.categoryId = other.categoryId;}public getAllBrandsByCategory_args deepCopy() {return new getAllBrandsByCategory_args(this);}@Overridepublic void clear() {setCategoryIdIsSet(false);this.categoryId = 0;}public long getCategoryId() {return this.categoryId;}public void setCategoryId(long categoryId) {this.categoryId = categoryId;setCategoryIdIsSet(true);}public void unsetCategoryId() {__isset_bit_vector.clear(__CATEGORYID_ISSET_ID);}/** Returns true if field categoryId is set (has been assigned a value) and false otherwise */public boolean isSetCategoryId() {return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);}public void setCategoryIdIsSet(boolean value) {__isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY_ID:if (value == null) {unsetCategoryId();} else {setCategoryId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY_ID:return Long.valueOf(getCategoryId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY_ID:return isSetCategoryId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrandsByCategory_args)return this.equals((getAllBrandsByCategory_args)that);return false;}public boolean equals(getAllBrandsByCategory_args that) {if (that == null)return false;boolean this_present_categoryId = true;boolean that_present_categoryId = true;if (this_present_categoryId || that_present_categoryId) {if (!(this_present_categoryId && that_present_categoryId))return false;if (this.categoryId != that.categoryId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrandsByCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrandsByCategory_args typedOther = (getAllBrandsByCategory_args)other;lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());if (lastComparison != 0) {return lastComparison;}if (isSetCategoryId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.categoryId = iprot.readI64();setCategoryIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);oprot.writeI64(this.categoryId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrandsByCategory_args(");boolean first = true;sb.append("categoryId:");sb.append(this.categoryId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrandsByCategory_result implements org.apache.thrift.TBase<getAllBrandsByCategory_result, getAllBrandsByCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrandsByCategory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrandsByCategory_result.class, metaDataMap);}public getAllBrandsByCategory_result() {}public getAllBrandsByCategory_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllBrandsByCategory_result(getAllBrandsByCategory_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllBrandsByCategory_result deepCopy() {return new getAllBrandsByCategory_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrandsByCategory_result)return this.equals((getAllBrandsByCategory_result)that);return false;}public boolean equals(getAllBrandsByCategory_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrandsByCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrandsByCategory_result typedOther = (getAllBrandsByCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list193 = iprot.readListBegin();this.success = new ArrayList<String>(_list193.size);for (int _i194 = 0; _i194 < _list193.size; ++_i194){String _elem195; // required_elem195 = iprot.readString();this.success.add(_elem195);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter196 : this.success){oprot.writeString(_iter196);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrandsByCategory_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrands_args implements org.apache.thrift.TBase<getAllBrands_args, getAllBrands_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrands_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrands_args.class, metaDataMap);}public getAllBrands_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllBrands_args(getAllBrands_args other) {}public getAllBrands_args deepCopy() {return new getAllBrands_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrands_args)return this.equals((getAllBrands_args)that);return false;}public boolean equals(getAllBrands_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrands_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrands_args typedOther = (getAllBrands_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrands_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrands_result implements org.apache.thrift.TBase<getAllBrands_result, getAllBrands_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrands_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrands_result.class, metaDataMap);}public getAllBrands_result() {}public getAllBrands_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllBrands_result(getAllBrands_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllBrands_result deepCopy() {return new getAllBrands_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrands_result)return this.equals((getAllBrands_result)that);return false;}public boolean equals(getAllBrands_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrands_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrands_result typedOther = (getAllBrands_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list197 = iprot.readListBegin();this.success = new ArrayList<String>(_list197.size);for (int _i198 = 0; _i198 < _list197.size; ++_i198){String _elem199; // required_elem199 = iprot.readString();this.success.add(_elem199);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter200 : this.success){oprot.writeString(_iter200);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrands_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSources_args implements org.apache.thrift.TBase<getAllSources_args, getAllSources_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_args.class, metaDataMap);}public getAllSources_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllSources_args(getAllSources_args other) {}public getAllSources_args deepCopy() {return new getAllSources_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSources_args)return this.equals((getAllSources_args)that);return false;}public boolean equals(getAllSources_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSources_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSources_args typedOther = (getAllSources_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSources_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSources_result implements org.apache.thrift.TBase<getAllSources_result, getAllSources_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Source> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Source.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_result.class, metaDataMap);}public getAllSources_result() {}public getAllSources_result(List<Source> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllSources_result(getAllSources_result other) {if (other.isSetSuccess()) {List<Source> __this__success = new ArrayList<Source>();for (Source other_element : other.success) {__this__success.add(new Source(other_element));}this.success = __this__success;}}public getAllSources_result deepCopy() {return new getAllSources_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Source> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Source elem) {if (this.success == null) {this.success = new ArrayList<Source>();}this.success.add(elem);}public List<Source> getSuccess() {return this.success;}public void setSuccess(List<Source> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Source>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSources_result)return this.equals((getAllSources_result)that);return false;}public boolean equals(getAllSources_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSources_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSources_result typedOther = (getAllSources_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list201 = iprot.readListBegin();this.success = new ArrayList<Source>(_list201.size);for (int _i202 = 0; _i202 < _list201.size; ++_i202){Source _elem203; // required_elem203 = new Source();_elem203.read(iprot);this.success.add(_elem203);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Source _iter204 : this.success){_iter204.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSources_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemPricingBySource_args implements org.apache.thrift.TBase<getItemPricingBySource_args, getItemPricingBySource_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long sourceId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),SOURCE_ID((short)2, "sourceId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCE_IDreturn SOURCE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __SOURCEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_args.class, metaDataMap);}public getItemPricingBySource_args() {}public getItemPricingBySource_args(long itemId,long sourceId){this();this.itemId = itemId;setItemIdIsSet(true);this.sourceId = sourceId;setSourceIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemPricingBySource_args(getItemPricingBySource_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.sourceId = other.sourceId;}public getItemPricingBySource_args deepCopy() {return new getItemPricingBySource_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setSourceIdIsSet(false);this.sourceId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getSourceId() {return this.sourceId;}public void setSourceId(long sourceId) {this.sourceId = sourceId;setSourceIdIsSet(true);}public void unsetSourceId() {__isset_bit_vector.clear(__SOURCEID_ISSET_ID);}/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */public boolean isSetSourceId() {return __isset_bit_vector.get(__SOURCEID_ISSET_ID);}public void setSourceIdIsSet(boolean value) {__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case SOURCE_ID:if (value == null) {unsetSourceId();} else {setSourceId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case SOURCE_ID:return Long.valueOf(getSourceId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case SOURCE_ID:return isSetSourceId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemPricingBySource_args)return this.equals((getItemPricingBySource_args)that);return false;}public boolean equals(getItemPricingBySource_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_sourceId = true;boolean that_present_sourceId = true;if (this_present_sourceId || that_present_sourceId) {if (!(this_present_sourceId && that_present_sourceId))return false;if (this.sourceId != that.sourceId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemPricingBySource_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemPricingBySource_args typedOther = (getItemPricingBySource_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());if (lastComparison != 0) {return lastComparison;}if (isSetSourceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.sourceId = iprot.readI64();setSourceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);oprot.writeI64(this.sourceId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemPricingBySource_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("sourceId:");sb.append(this.sourceId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemPricingBySource_result implements org.apache.thrift.TBase<getItemPricingBySource_result, getItemPricingBySource_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private SourceItemPricing success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_result.class, metaDataMap);}public getItemPricingBySource_result() {}public getItemPricingBySource_result(SourceItemPricing success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItemPricingBySource_result(getItemPricingBySource_result other) {if (other.isSetSuccess()) {this.success = new SourceItemPricing(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItemPricingBySource_result deepCopy() {return new getItemPricingBySource_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public SourceItemPricing getSuccess() {return this.success;}public void setSuccess(SourceItemPricing success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((SourceItemPricing)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemPricingBySource_result)return this.equals((getItemPricingBySource_result)that);return false;}public boolean equals(getItemPricingBySource_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemPricingBySource_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemPricingBySource_result typedOther = (getItemPricingBySource_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new SourceItemPricing();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemPricingBySource_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSourceItemPricing_args implements org.apache.thrift.TBase<addSourceItemPricing_args, addSourceItemPricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_args");private static final org.apache.thrift.protocol.TField SOURCE_ITEM_PRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceItemPricing", org.apache.thrift.protocol.TType.STRUCT, (short)1);private SourceItemPricing sourceItemPricing; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE_ITEM_PRICING((short)1, "sourceItemPricing");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCE_ITEM_PRICINGreturn SOURCE_ITEM_PRICING;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("sourceItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_args.class, metaDataMap);}public addSourceItemPricing_args() {}public addSourceItemPricing_args(SourceItemPricing sourceItemPricing){this();this.sourceItemPricing = sourceItemPricing;}/*** Performs a deep copy on <i>other</i>.*/public addSourceItemPricing_args(addSourceItemPricing_args other) {if (other.isSetSourceItemPricing()) {this.sourceItemPricing = new SourceItemPricing(other.sourceItemPricing);}}public addSourceItemPricing_args deepCopy() {return new addSourceItemPricing_args(this);}@Overridepublic void clear() {this.sourceItemPricing = null;}public SourceItemPricing getSourceItemPricing() {return this.sourceItemPricing;}public void setSourceItemPricing(SourceItemPricing sourceItemPricing) {this.sourceItemPricing = sourceItemPricing;}public void unsetSourceItemPricing() {this.sourceItemPricing = null;}/** Returns true if field sourceItemPricing is set (has been assigned a value) and false otherwise */public boolean isSetSourceItemPricing() {return this.sourceItemPricing != null;}public void setSourceItemPricingIsSet(boolean value) {if (!value) {this.sourceItemPricing = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE_ITEM_PRICING:if (value == null) {unsetSourceItemPricing();} else {setSourceItemPricing((SourceItemPricing)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE_ITEM_PRICING:return getSourceItemPricing();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE_ITEM_PRICING:return isSetSourceItemPricing();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSourceItemPricing_args)return this.equals((addSourceItemPricing_args)that);return false;}public boolean equals(addSourceItemPricing_args that) {if (that == null)return false;boolean this_present_sourceItemPricing = true && this.isSetSourceItemPricing();boolean that_present_sourceItemPricing = true && that.isSetSourceItemPricing();if (this_present_sourceItemPricing || that_present_sourceItemPricing) {if (!(this_present_sourceItemPricing && that_present_sourceItemPricing))return false;if (!this.sourceItemPricing.equals(that.sourceItemPricing))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSourceItemPricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSourceItemPricing_args typedOther = (addSourceItemPricing_args)other;lastComparison = Boolean.valueOf(isSetSourceItemPricing()).compareTo(typedOther.isSetSourceItemPricing());if (lastComparison != 0) {return lastComparison;}if (isSetSourceItemPricing()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceItemPricing, typedOther.sourceItemPricing);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCE_ITEM_PRICINGif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.sourceItemPricing = new SourceItemPricing();this.sourceItemPricing.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.sourceItemPricing != null) {oprot.writeFieldBegin(SOURCE_ITEM_PRICING_FIELD_DESC);this.sourceItemPricing.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSourceItemPricing_args(");boolean first = true;sb.append("sourceItemPricing:");if (this.sourceItemPricing == null) {sb.append("null");} else {sb.append(this.sourceItemPricing);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSourceItemPricing_result implements org.apache.thrift.TBase<addSourceItemPricing_result, addSourceItemPricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_result");private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_result.class, metaDataMap);}public addSourceItemPricing_result() {}public addSourceItemPricing_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addSourceItemPricing_result(addSourceItemPricing_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addSourceItemPricing_result deepCopy() {return new addSourceItemPricing_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSourceItemPricing_result)return this.equals((addSourceItemPricing_result)that);return false;}public boolean equals(addSourceItemPricing_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSourceItemPricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSourceItemPricing_result typedOther = (addSourceItemPricing_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSourceItemPricing_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSourcePricing_args implements org.apache.thrift.TBase<getAllSourcePricing_args, getAllSourcePricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_args.class, metaDataMap);}public getAllSourcePricing_args() {}public getAllSourcePricing_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllSourcePricing_args(getAllSourcePricing_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAllSourcePricing_args deepCopy() {return new getAllSourcePricing_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSourcePricing_args)return this.equals((getAllSourcePricing_args)that);return false;}public boolean equals(getAllSourcePricing_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSourcePricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSourcePricing_args typedOther = (getAllSourcePricing_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSourcePricing_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSourcePricing_result implements org.apache.thrift.TBase<getAllSourcePricing_result, getAllSourcePricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<SourceItemPricing> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_result.class, metaDataMap);}public getAllSourcePricing_result() {}public getAllSourcePricing_result(List<SourceItemPricing> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllSourcePricing_result(getAllSourcePricing_result other) {if (other.isSetSuccess()) {List<SourceItemPricing> __this__success = new ArrayList<SourceItemPricing>();for (SourceItemPricing other_element : other.success) {__this__success.add(new SourceItemPricing(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllSourcePricing_result deepCopy() {return new getAllSourcePricing_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<SourceItemPricing> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(SourceItemPricing elem) {if (this.success == null) {this.success = new ArrayList<SourceItemPricing>();}this.success.add(elem);}public List<SourceItemPricing> getSuccess() {return this.success;}public void setSuccess(List<SourceItemPricing> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<SourceItemPricing>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSourcePricing_result)return this.equals((getAllSourcePricing_result)that);return false;}public boolean equals(getAllSourcePricing_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSourcePricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSourcePricing_result typedOther = (getAllSourcePricing_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list205 = iprot.readListBegin();this.success = new ArrayList<SourceItemPricing>(_list205.size);for (int _i206 = 0; _i206 < _list205.size; ++_i206){SourceItemPricing _elem207; // required_elem207 = new SourceItemPricing();_elem207.read(iprot);this.success.add(_elem207);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (SourceItemPricing _iter208 : this.success){_iter208.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSourcePricing_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemForSource_args implements org.apache.thrift.TBase<getItemForSource_args, getItemForSource_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);private long item_id; // requiredprivate long sourceId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),SOURCE_ID((short)2, "sourceId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCE_IDreturn SOURCE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __SOURCEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_args.class, metaDataMap);}public getItemForSource_args() {}public getItemForSource_args(long item_id,long sourceId){this();this.item_id = item_id;setItem_idIsSet(true);this.sourceId = sourceId;setSourceIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemForSource_args(getItemForSource_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.sourceId = other.sourceId;}public getItemForSource_args deepCopy() {return new getItemForSource_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setSourceIdIsSet(false);this.sourceId = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getSourceId() {return this.sourceId;}public void setSourceId(long sourceId) {this.sourceId = sourceId;setSourceIdIsSet(true);}public void unsetSourceId() {__isset_bit_vector.clear(__SOURCEID_ISSET_ID);}/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */public boolean isSetSourceId() {return __isset_bit_vector.get(__SOURCEID_ISSET_ID);}public void setSourceIdIsSet(boolean value) {__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case SOURCE_ID:if (value == null) {unsetSourceId();} else {setSourceId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case SOURCE_ID:return Long.valueOf(getSourceId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case SOURCE_ID:return isSetSourceId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemForSource_args)return this.equals((getItemForSource_args)that);return false;}public boolean equals(getItemForSource_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_sourceId = true;boolean that_present_sourceId = true;if (this_present_sourceId || that_present_sourceId) {if (!(this_present_sourceId && that_present_sourceId))return false;if (this.sourceId != that.sourceId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemForSource_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemForSource_args typedOther = (getItemForSource_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());if (lastComparison != 0) {return lastComparison;}if (isSetSourceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.sourceId = iprot.readI64();setSourceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);oprot.writeI64(this.sourceId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemForSource_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("sourceId:");sb.append(this.sourceId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemForSource_result implements org.apache.thrift.TBase<getItemForSource_result, getItemForSource_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_result.class, metaDataMap);}public getItemForSource_result() {}public getItemForSource_result(Item success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItemForSource_result(getItemForSource_result other) {if (other.isSetSuccess()) {this.success = new Item(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItemForSource_result deepCopy() {return new getItemForSource_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public Item getSuccess() {return this.success;}public void setSuccess(Item success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Item)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemForSource_result)return this.equals((getItemForSource_result)that);return false;}public boolean equals(getItemForSource_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemForSource_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemForSource_result typedOther = (getItemForSource_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Item();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemForSource_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchItemsInRange_args implements org.apache.thrift.TBase<searchItemsInRange_args, searchItemsInRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchItemsInRange_args");private static final org.apache.thrift.protocol.TField SEARCH_TERMS_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerms", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private List<String> searchTerms; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERMS((short)1, "searchTerms"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMSreturn SEARCH_TERMS;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERMS, new org.apache.thrift.meta_data.FieldMetaData("searchTerms", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchItemsInRange_args.class, metaDataMap);}public searchItemsInRange_args() {}public searchItemsInRange_args(List<String> searchTerms,long offset,long limit){this();this.searchTerms = searchTerms;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public searchItemsInRange_args(searchItemsInRange_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSearchTerms()) {List<String> __this__searchTerms = new ArrayList<String>();for (String other_element : other.searchTerms) {__this__searchTerms.add(other_element);}this.searchTerms = __this__searchTerms;}this.offset = other.offset;this.limit = other.limit;}public searchItemsInRange_args deepCopy() {return new searchItemsInRange_args(this);}@Overridepublic void clear() {this.searchTerms = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public int getSearchTermsSize() {return (this.searchTerms == null) ? 0 : this.searchTerms.size();}public java.util.Iterator<String> getSearchTermsIterator() {return (this.searchTerms == null) ? null : this.searchTerms.iterator();}public void addToSearchTerms(String elem) {if (this.searchTerms == null) {this.searchTerms = new ArrayList<String>();}this.searchTerms.add(elem);}public List<String> getSearchTerms() {return this.searchTerms;}public void setSearchTerms(List<String> searchTerms) {this.searchTerms = searchTerms;}public void unsetSearchTerms() {this.searchTerms = null;}/** Returns true if field searchTerms is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerms() {return this.searchTerms != null;}public void setSearchTermsIsSet(boolean value) {if (!value) {this.searchTerms = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERMS:if (value == null) {unsetSearchTerms();} else {setSearchTerms((List<String>)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERMS:return getSearchTerms();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERMS:return isSetSearchTerms();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchItemsInRange_args)return this.equals((searchItemsInRange_args)that);return false;}public boolean equals(searchItemsInRange_args that) {if (that == null)return false;boolean this_present_searchTerms = true && this.isSetSearchTerms();boolean that_present_searchTerms = true && that.isSetSearchTerms();if (this_present_searchTerms || that_present_searchTerms) {if (!(this_present_searchTerms && that_present_searchTerms))return false;if (!this.searchTerms.equals(that.searchTerms))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchItemsInRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchItemsInRange_args typedOther = (searchItemsInRange_args)other;lastComparison = Boolean.valueOf(isSetSearchTerms()).compareTo(typedOther.isSetSearchTerms());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerms()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerms, typedOther.searchTerms);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list209 = iprot.readListBegin();this.searchTerms = new ArrayList<String>(_list209.size);for (int _i210 = 0; _i210 < _list209.size; ++_i210){String _elem211; // required_elem211 = iprot.readString();this.searchTerms.add(_elem211);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerms != null) {oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));for (String _iter212 : this.searchTerms){oprot.writeString(_iter212);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchItemsInRange_args(");boolean first = true;sb.append("searchTerms:");if (this.searchTerms == null) {sb.append("null");} else {sb.append(this.searchTerms);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchItemsInRange_result implements org.apache.thrift.TBase<searchItemsInRange_result, searchItemsInRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchItemsInRange_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchItemsInRange_result.class, metaDataMap);}public searchItemsInRange_result() {}public searchItemsInRange_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public searchItemsInRange_result(searchItemsInRange_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public searchItemsInRange_result deepCopy() {return new searchItemsInRange_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchItemsInRange_result)return this.equals((searchItemsInRange_result)that);return false;}public boolean equals(searchItemsInRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchItemsInRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchItemsInRange_result typedOther = (searchItemsInRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list213 = iprot.readListBegin();this.success = new ArrayList<Item>(_list213.size);for (int _i214 = 0; _i214 < _list213.size; ++_i214){Item _elem215; // required_elem215 = new Item();_elem215.read(iprot);this.success.add(_elem215);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter216 : this.success){_iter216.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchItemsInRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSearchResultCount_args implements org.apache.thrift.TBase<getSearchResultCount_args, getSearchResultCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSearchResultCount_args");private static final org.apache.thrift.protocol.TField SEARCH_TERMS_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerms", org.apache.thrift.protocol.TType.LIST, (short)1);private List<String> searchTerms; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERMS((short)1, "searchTerms");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMSreturn SEARCH_TERMS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERMS, new org.apache.thrift.meta_data.FieldMetaData("searchTerms", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSearchResultCount_args.class, metaDataMap);}public getSearchResultCount_args() {}public getSearchResultCount_args(List<String> searchTerms){this();this.searchTerms = searchTerms;}/*** Performs a deep copy on <i>other</i>.*/public getSearchResultCount_args(getSearchResultCount_args other) {if (other.isSetSearchTerms()) {List<String> __this__searchTerms = new ArrayList<String>();for (String other_element : other.searchTerms) {__this__searchTerms.add(other_element);}this.searchTerms = __this__searchTerms;}}public getSearchResultCount_args deepCopy() {return new getSearchResultCount_args(this);}@Overridepublic void clear() {this.searchTerms = null;}public int getSearchTermsSize() {return (this.searchTerms == null) ? 0 : this.searchTerms.size();}public java.util.Iterator<String> getSearchTermsIterator() {return (this.searchTerms == null) ? null : this.searchTerms.iterator();}public void addToSearchTerms(String elem) {if (this.searchTerms == null) {this.searchTerms = new ArrayList<String>();}this.searchTerms.add(elem);}public List<String> getSearchTerms() {return this.searchTerms;}public void setSearchTerms(List<String> searchTerms) {this.searchTerms = searchTerms;}public void unsetSearchTerms() {this.searchTerms = null;}/** Returns true if field searchTerms is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerms() {return this.searchTerms != null;}public void setSearchTermsIsSet(boolean value) {if (!value) {this.searchTerms = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERMS:if (value == null) {unsetSearchTerms();} else {setSearchTerms((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERMS:return getSearchTerms();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERMS:return isSetSearchTerms();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSearchResultCount_args)return this.equals((getSearchResultCount_args)that);return false;}public boolean equals(getSearchResultCount_args that) {if (that == null)return false;boolean this_present_searchTerms = true && this.isSetSearchTerms();boolean that_present_searchTerms = true && that.isSetSearchTerms();if (this_present_searchTerms || that_present_searchTerms) {if (!(this_present_searchTerms && that_present_searchTerms))return false;if (!this.searchTerms.equals(that.searchTerms))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSearchResultCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSearchResultCount_args typedOther = (getSearchResultCount_args)other;lastComparison = Boolean.valueOf(isSetSearchTerms()).compareTo(typedOther.isSetSearchTerms());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerms()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerms, typedOther.searchTerms);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list217 = iprot.readListBegin();this.searchTerms = new ArrayList<String>(_list217.size);for (int _i218 = 0; _i218 < _list217.size; ++_i218){String _elem219; // required_elem219 = iprot.readString();this.searchTerms.add(_elem219);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerms != null) {oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));for (String _iter220 : this.searchTerms){oprot.writeString(_iter220);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSearchResultCount_args(");boolean first = true;sb.append("searchTerms:");if (this.searchTerms == null) {sb.append("null");} else {sb.append(this.searchTerms);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSearchResultCount_result implements org.apache.thrift.TBase<getSearchResultCount_result, getSearchResultCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSearchResultCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private int success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSearchResultCount_result.class, metaDataMap);}public getSearchResultCount_result() {}public getSearchResultCount_result(int success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSearchResultCount_result(getSearchResultCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getSearchResultCount_result deepCopy() {return new getSearchResultCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public int getSuccess() {return this.success;}public void setSuccess(int success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Integer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Integer.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSearchResultCount_result)return this.equals((getSearchResultCount_result)that);return false;}public boolean equals(getSearchResultCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSearchResultCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSearchResultCount_result typedOther = (getSearchResultCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = iprot.readI32();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSearchResultCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotifications_args implements org.apache.thrift.TBase<getProductNotifications_args, getProductNotifications_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_args");private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);private long startDateTime; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATE_TIME((short)1, "startDateTime");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATE_TIMEreturn START_DATE_TIME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STARTDATETIME_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_args.class, metaDataMap);}public getProductNotifications_args() {}public getProductNotifications_args(long startDateTime){this();this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getProductNotifications_args(getProductNotifications_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDateTime = other.startDateTime;}public getProductNotifications_args deepCopy() {return new getProductNotifications_args(this);}@Overridepublic void clear() {setStartDateTimeIsSet(false);this.startDateTime = 0;}public long getStartDateTime() {return this.startDateTime;}public void setStartDateTime(long startDateTime) {this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}public void unsetStartDateTime() {__isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);}/** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */public boolean isSetStartDateTime() {return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);}public void setStartDateTimeIsSet(boolean value) {__isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATE_TIME:if (value == null) {unsetStartDateTime();} else {setStartDateTime((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATE_TIME:return Long.valueOf(getStartDateTime());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATE_TIME:return isSetStartDateTime();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotifications_args)return this.equals((getProductNotifications_args)that);return false;}public boolean equals(getProductNotifications_args that) {if (that == null)return false;boolean this_present_startDateTime = true;boolean that_present_startDateTime = true;if (this_present_startDateTime || that_present_startDateTime) {if (!(this_present_startDateTime && that_present_startDateTime))return false;if (this.startDateTime != that.startDateTime)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotifications_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotifications_args typedOther = (getProductNotifications_args)other;lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());if (lastComparison != 0) {return lastComparison;}if (isSetStartDateTime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATE_TIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDateTime = iprot.readI64();setStartDateTimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);oprot.writeI64(this.startDateTime);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotifications_args(");boolean first = true;sb.append("startDateTime:");sb.append(this.startDateTime);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotifications_result implements org.apache.thrift.TBase<getProductNotifications_result, getProductNotifications_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<ProductNotificationRequest> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequest.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_result.class, metaDataMap);}public getProductNotifications_result() {}public getProductNotifications_result(List<ProductNotificationRequest> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getProductNotifications_result(getProductNotifications_result other) {if (other.isSetSuccess()) {List<ProductNotificationRequest> __this__success = new ArrayList<ProductNotificationRequest>();for (ProductNotificationRequest other_element : other.success) {__this__success.add(new ProductNotificationRequest(other_element));}this.success = __this__success;}}public getProductNotifications_result deepCopy() {return new getProductNotifications_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ProductNotificationRequest> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ProductNotificationRequest elem) {if (this.success == null) {this.success = new ArrayList<ProductNotificationRequest>();}this.success.add(elem);}public List<ProductNotificationRequest> getSuccess() {return this.success;}public void setSuccess(List<ProductNotificationRequest> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ProductNotificationRequest>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotifications_result)return this.equals((getProductNotifications_result)that);return false;}public boolean equals(getProductNotifications_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotifications_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotifications_result typedOther = (getProductNotifications_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list221 = iprot.readListBegin();this.success = new ArrayList<ProductNotificationRequest>(_list221.size);for (int _i222 = 0; _i222 < _list221.size; ++_i222){ProductNotificationRequest _elem223; // required_elem223 = new ProductNotificationRequest();_elem223.read(iprot);this.success.add(_elem223);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ProductNotificationRequest _iter224 : this.success){_iter224.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotifications_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotificationRequestCount_args implements org.apache.thrift.TBase<getProductNotificationRequestCount_args, getProductNotificationRequestCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_args");private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)2);private long startDateTime; // requiredprivate long categoryId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATE_TIME((short)1, "startDateTime"),CATEGORY_ID((short)2, "categoryId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATE_TIMEreturn START_DATE_TIME;case 2: // CATEGORY_IDreturn CATEGORY_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STARTDATETIME_ISSET_ID = 0;private static final int __CATEGORYID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_args.class, metaDataMap);}public getProductNotificationRequestCount_args() {}public getProductNotificationRequestCount_args(long startDateTime,long categoryId){this();this.startDateTime = startDateTime;setStartDateTimeIsSet(true);this.categoryId = categoryId;setCategoryIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getProductNotificationRequestCount_args(getProductNotificationRequestCount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDateTime = other.startDateTime;this.categoryId = other.categoryId;}public getProductNotificationRequestCount_args deepCopy() {return new getProductNotificationRequestCount_args(this);}@Overridepublic void clear() {setStartDateTimeIsSet(false);this.startDateTime = 0;setCategoryIdIsSet(false);this.categoryId = 0;}public long getStartDateTime() {return this.startDateTime;}public void setStartDateTime(long startDateTime) {this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}public void unsetStartDateTime() {__isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);}/** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */public boolean isSetStartDateTime() {return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);}public void setStartDateTimeIsSet(boolean value) {__isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);}public long getCategoryId() {return this.categoryId;}public void setCategoryId(long categoryId) {this.categoryId = categoryId;setCategoryIdIsSet(true);}public void unsetCategoryId() {__isset_bit_vector.clear(__CATEGORYID_ISSET_ID);}/** Returns true if field categoryId is set (has been assigned a value) and false otherwise */public boolean isSetCategoryId() {return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);}public void setCategoryIdIsSet(boolean value) {__isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATE_TIME:if (value == null) {unsetStartDateTime();} else {setStartDateTime((Long)value);}break;case CATEGORY_ID:if (value == null) {unsetCategoryId();} else {setCategoryId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATE_TIME:return Long.valueOf(getStartDateTime());case CATEGORY_ID:return Long.valueOf(getCategoryId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATE_TIME:return isSetStartDateTime();case CATEGORY_ID:return isSetCategoryId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotificationRequestCount_args)return this.equals((getProductNotificationRequestCount_args)that);return false;}public boolean equals(getProductNotificationRequestCount_args that) {if (that == null)return false;boolean this_present_startDateTime = true;boolean that_present_startDateTime = true;if (this_present_startDateTime || that_present_startDateTime) {if (!(this_present_startDateTime && that_present_startDateTime))return false;if (this.startDateTime != that.startDateTime)return false;}boolean this_present_categoryId = true;boolean that_present_categoryId = true;if (this_present_categoryId || that_present_categoryId) {if (!(this_present_categoryId && that_present_categoryId))return false;if (this.categoryId != that.categoryId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotificationRequestCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotificationRequestCount_args typedOther = (getProductNotificationRequestCount_args)other;lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());if (lastComparison != 0) {return lastComparison;}if (isSetStartDateTime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());if (lastComparison != 0) {return lastComparison;}if (isSetCategoryId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATE_TIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDateTime = iprot.readI64();setStartDateTimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATEGORY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.categoryId = iprot.readI64();setCategoryIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);oprot.writeI64(this.startDateTime);oprot.writeFieldEnd();oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);oprot.writeI64(this.categoryId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_args(");boolean first = true;sb.append("startDateTime:");sb.append(this.startDateTime);first = false;if (!first) sb.append(", ");sb.append("categoryId:");sb.append(this.categoryId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotificationRequestCount_result implements org.apache.thrift.TBase<getProductNotificationRequestCount_result, getProductNotificationRequestCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<ProductNotificationRequestCount> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequestCount.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_result.class, metaDataMap);}public getProductNotificationRequestCount_result() {}public getProductNotificationRequestCount_result(List<ProductNotificationRequestCount> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getProductNotificationRequestCount_result(getProductNotificationRequestCount_result other) {if (other.isSetSuccess()) {List<ProductNotificationRequestCount> __this__success = new ArrayList<ProductNotificationRequestCount>();for (ProductNotificationRequestCount other_element : other.success) {__this__success.add(new ProductNotificationRequestCount(other_element));}this.success = __this__success;}}public getProductNotificationRequestCount_result deepCopy() {return new getProductNotificationRequestCount_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ProductNotificationRequestCount> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ProductNotificationRequestCount elem) {if (this.success == null) {this.success = new ArrayList<ProductNotificationRequestCount>();}this.success.add(elem);}public List<ProductNotificationRequestCount> getSuccess() {return this.success;}public void setSuccess(List<ProductNotificationRequestCount> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ProductNotificationRequestCount>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotificationRequestCount_result)return this.equals((getProductNotificationRequestCount_result)that);return false;}public boolean equals(getProductNotificationRequestCount_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotificationRequestCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotificationRequestCount_result typedOther = (getProductNotificationRequestCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list225 = iprot.readListBegin();this.success = new ArrayList<ProductNotificationRequestCount>(_list225.size);for (int _i226 = 0; _i226 < _list225.size; ++_i226){ProductNotificationRequestCount _elem227; // required_elem227 = new ProductNotificationRequestCount();_elem227.read(iprot);this.success.add(_elem227);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ProductNotificationRequestCount _iter228 : this.success){_iter228.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAuthorizationLog_args implements org.apache.thrift.TBase<addAuthorizationLog_args, addAuthorizationLog_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);private long itemId; // requiredprivate String username; // requiredprivate String reason; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),USERNAME((short)2, "username"),REASON((short)3, "reason");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // USERNAMEreturn USERNAME;case 3: // REASONreturn REASON;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_args.class, metaDataMap);}public addAuthorizationLog_args() {}public addAuthorizationLog_args(long itemId,String username,String reason){this();this.itemId = itemId;setItemIdIsSet(true);this.username = username;this.reason = reason;}/*** Performs a deep copy on <i>other</i>.*/public addAuthorizationLog_args(addAuthorizationLog_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;if (other.isSetUsername()) {this.username = other.username;}if (other.isSetReason()) {this.reason = other.reason;}}public addAuthorizationLog_args deepCopy() {return new addAuthorizationLog_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;this.username = null;this.reason = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getReason() {return this.reason;}public void setReason(String reason) {this.reason = reason;}public void unsetReason() {this.reason = null;}/** Returns true if field reason is set (has been assigned a value) and false otherwise */public boolean isSetReason() {return this.reason != null;}public void setReasonIsSet(boolean value) {if (!value) {this.reason = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case REASON:if (value == null) {unsetReason();} else {setReason((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case USERNAME:return getUsername();case REASON:return getReason();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case USERNAME:return isSetUsername();case REASON:return isSetReason();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAuthorizationLog_args)return this.equals((addAuthorizationLog_args)that);return false;}public boolean equals(addAuthorizationLog_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}boolean this_present_reason = true && this.isSetReason();boolean that_present_reason = true && that.isSetReason();if (this_present_reason || that_present_reason) {if (!(this_present_reason && that_present_reason))return false;if (!this.reason.equals(that.reason))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAuthorizationLog_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAuthorizationLog_args typedOther = (addAuthorizationLog_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());if (lastComparison != 0) {return lastComparison;}if (isSetReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.reason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.reason != null) {oprot.writeFieldBegin(REASON_FIELD_DESC);oprot.writeString(this.reason);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAuthorizationLog_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("reason:");if (this.reason == null) {sb.append("null");} else {sb.append(this.reason);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAuthorizationLog_result implements org.apache.thrift.TBase<addAuthorizationLog_result, addAuthorizationLog_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_result.class, metaDataMap);}public addAuthorizationLog_result() {}public addAuthorizationLog_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addAuthorizationLog_result(addAuthorizationLog_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addAuthorizationLog_result deepCopy() {return new addAuthorizationLog_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAuthorizationLog_result)return this.equals((addAuthorizationLog_result)that);return false;}public boolean equals(addAuthorizationLog_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAuthorizationLog_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAuthorizationLog_result typedOther = (addAuthorizationLog_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAuthorizationLog_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField VOUCHER_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherAmount", org.apache.thrift.protocol.TType.I64, (short)3);private long catalog_item_id; // requiredprivate long voucherType; // requiredprivate long voucherAmount; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id"),VOUCHER_TYPE((short)2, "voucherType"),VOUCHER_AMOUNT((short)3, "voucherAmount");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;case 2: // VOUCHER_TYPEreturn VOUCHER_TYPE;case 3: // VOUCHER_AMOUNTreturn VOUCHER_AMOUNT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private static final int __VOUCHERTYPE_ISSET_ID = 1;private static final int __VOUCHERAMOUNT_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("voucherAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_args.class, metaDataMap);}public addupdateVoucherForItem_args() {}public addupdateVoucherForItem_args(long catalog_item_id,long voucherType,long voucherAmount){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);this.voucherType = voucherType;setVoucherTypeIsSet(true);this.voucherAmount = voucherAmount;setVoucherAmountIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addupdateVoucherForItem_args(addupdateVoucherForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;this.voucherType = other.voucherType;this.voucherAmount = other.voucherAmount;}public addupdateVoucherForItem_args deepCopy() {return new addupdateVoucherForItem_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;setVoucherTypeIsSet(false);this.voucherType = 0;setVoucherAmountIsSet(false);this.voucherAmount = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public long getVoucherType() {return this.voucherType;}public void setVoucherType(long voucherType) {this.voucherType = voucherType;setVoucherTypeIsSet(true);}public void unsetVoucherType() {__isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);}/** Returns true if field voucherType is set (has been assigned a value) and false otherwise */public boolean isSetVoucherType() {return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);}public void setVoucherTypeIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);}public long getVoucherAmount() {return this.voucherAmount;}public void setVoucherAmount(long voucherAmount) {this.voucherAmount = voucherAmount;setVoucherAmountIsSet(true);}public void unsetVoucherAmount() {__isset_bit_vector.clear(__VOUCHERAMOUNT_ISSET_ID);}/** Returns true if field voucherAmount is set (has been assigned a value) and false otherwise */public boolean isSetVoucherAmount() {return __isset_bit_vector.get(__VOUCHERAMOUNT_ISSET_ID);}public void setVoucherAmountIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERAMOUNT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;case VOUCHER_TYPE:if (value == null) {unsetVoucherType();} else {setVoucherType((Long)value);}break;case VOUCHER_AMOUNT:if (value == null) {unsetVoucherAmount();} else {setVoucherAmount((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());case VOUCHER_TYPE:return Long.valueOf(getVoucherType());case VOUCHER_AMOUNT:return Long.valueOf(getVoucherAmount());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();case VOUCHER_TYPE:return isSetVoucherType();case VOUCHER_AMOUNT:return isSetVoucherAmount();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addupdateVoucherForItem_args)return this.equals((addupdateVoucherForItem_args)that);return false;}public boolean equals(addupdateVoucherForItem_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}boolean this_present_voucherType = true;boolean that_present_voucherType = true;if (this_present_voucherType || that_present_voucherType) {if (!(this_present_voucherType && that_present_voucherType))return false;if (this.voucherType != that.voucherType)return false;}boolean this_present_voucherAmount = true;boolean that_present_voucherAmount = true;if (this_present_voucherAmount || that_present_voucherAmount) {if (!(this_present_voucherAmount && that_present_voucherAmount))return false;if (this.voucherAmount != that.voucherAmount)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addupdateVoucherForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addupdateVoucherForItem_args typedOther = (addupdateVoucherForItem_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherAmount()).compareTo(typedOther.isSetVoucherAmount());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherAmount, typedOther.voucherAmount);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VOUCHER_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherType = iprot.readI64();setVoucherTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // VOUCHER_AMOUNTif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherAmount = iprot.readI64();setVoucherAmountIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);oprot.writeI64(this.voucherType);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_AMOUNT_FIELD_DESC);oprot.writeI64(this.voucherAmount);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addupdateVoucherForItem_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;if (!first) sb.append(", ");sb.append("voucherType:");sb.append(this.voucherType);first = false;if (!first) sb.append(", ");sb.append("voucherAmount:");sb.append(this.voucherAmount);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addupdateVoucherForItem_result implements org.apache.thrift.TBase<addupdateVoucherForItem_result, addupdateVoucherForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_result.class, metaDataMap);}public addupdateVoucherForItem_result() {}public addupdateVoucherForItem_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addupdateVoucherForItem_result(addupdateVoucherForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addupdateVoucherForItem_result deepCopy() {return new addupdateVoucherForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addupdateVoucherForItem_result)return this.equals((addupdateVoucherForItem_result)that);return false;}public boolean equals(addupdateVoucherForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addupdateVoucherForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addupdateVoucherForItem_result typedOther = (addupdateVoucherForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addupdateVoucherForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteVoucherForItem_args implements org.apache.thrift.TBase<deleteVoucherForItem_args, deleteVoucherForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);private long catalog_item_id; // requiredprivate long voucherType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id"),VOUCHER_TYPE((short)2, "voucherType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;case 2: // VOUCHER_TYPEreturn VOUCHER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private static final int __VOUCHERTYPE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_args.class, metaDataMap);}public deleteVoucherForItem_args() {}public deleteVoucherForItem_args(long catalog_item_id,long voucherType){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);this.voucherType = voucherType;setVoucherTypeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteVoucherForItem_args(deleteVoucherForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;this.voucherType = other.voucherType;}public deleteVoucherForItem_args deepCopy() {return new deleteVoucherForItem_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;setVoucherTypeIsSet(false);this.voucherType = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public long getVoucherType() {return this.voucherType;}public void setVoucherType(long voucherType) {this.voucherType = voucherType;setVoucherTypeIsSet(true);}public void unsetVoucherType() {__isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);}/** Returns true if field voucherType is set (has been assigned a value) and false otherwise */public boolean isSetVoucherType() {return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);}public void setVoucherTypeIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;case VOUCHER_TYPE:if (value == null) {unsetVoucherType();} else {setVoucherType((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());case VOUCHER_TYPE:return Long.valueOf(getVoucherType());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();case VOUCHER_TYPE:return isSetVoucherType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteVoucherForItem_args)return this.equals((deleteVoucherForItem_args)that);return false;}public boolean equals(deleteVoucherForItem_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}boolean this_present_voucherType = true;boolean that_present_voucherType = true;if (this_present_voucherType || that_present_voucherType) {if (!(this_present_voucherType && that_present_voucherType))return false;if (this.voucherType != that.voucherType)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteVoucherForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteVoucherForItem_args typedOther = (deleteVoucherForItem_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VOUCHER_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherType = iprot.readI64();setVoucherTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);oprot.writeI64(this.voucherType);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteVoucherForItem_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;if (!first) sb.append(", ");sb.append("voucherType:");sb.append(this.voucherType);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteVoucherForItem_result implements org.apache.thrift.TBase<deleteVoucherForItem_result, deleteVoucherForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_result.class, metaDataMap);}public deleteVoucherForItem_result() {}public deleteVoucherForItem_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public deleteVoucherForItem_result(deleteVoucherForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public deleteVoucherForItem_result deepCopy() {return new deleteVoucherForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteVoucherForItem_result)return this.equals((deleteVoucherForItem_result)that);return false;}public boolean equals(deleteVoucherForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteVoucherForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteVoucherForItem_result typedOther = (deleteVoucherForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteVoucherForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVoucherAmount_args implements org.apache.thrift.TBase<getVoucherAmount_args, getVoucherAmount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long voucherType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),VOUCHER_TYPE((short)2, "voucherType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // VOUCHER_TYPEreturn VOUCHER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __VOUCHERTYPE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_args.class, metaDataMap);}public getVoucherAmount_args() {}public getVoucherAmount_args(long itemId,long voucherType){this();this.itemId = itemId;setItemIdIsSet(true);this.voucherType = voucherType;setVoucherTypeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVoucherAmount_args(getVoucherAmount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.voucherType = other.voucherType;}public getVoucherAmount_args deepCopy() {return new getVoucherAmount_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setVoucherTypeIsSet(false);this.voucherType = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getVoucherType() {return this.voucherType;}public void setVoucherType(long voucherType) {this.voucherType = voucherType;setVoucherTypeIsSet(true);}public void unsetVoucherType() {__isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);}/** Returns true if field voucherType is set (has been assigned a value) and false otherwise */public boolean isSetVoucherType() {return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);}public void setVoucherTypeIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case VOUCHER_TYPE:if (value == null) {unsetVoucherType();} else {setVoucherType((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case VOUCHER_TYPE:return Long.valueOf(getVoucherType());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case VOUCHER_TYPE:return isSetVoucherType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVoucherAmount_args)return this.equals((getVoucherAmount_args)that);return false;}public boolean equals(getVoucherAmount_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_voucherType = true;boolean that_present_voucherType = true;if (this_present_voucherType || that_present_voucherType) {if (!(this_present_voucherType && that_present_voucherType))return false;if (this.voucherType != that.voucherType)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVoucherAmount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVoucherAmount_args typedOther = (getVoucherAmount_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VOUCHER_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherType = iprot.readI64();setVoucherTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);oprot.writeI64(this.voucherType);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVoucherAmount_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("voucherType:");sb.append(this.voucherType);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVoucherAmount_result implements org.apache.thrift.TBase<getVoucherAmount_result, getVoucherAmount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_result.class, metaDataMap);}public getVoucherAmount_result() {}public getVoucherAmount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVoucherAmount_result(getVoucherAmount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getVoucherAmount_result deepCopy() {return new getVoucherAmount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVoucherAmount_result)return this.equals((getVoucherAmount_result)that);return false;}public boolean equals(getVoucherAmount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVoucherAmount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVoucherAmount_result typedOther = (getVoucherAmount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVoucherAmount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemVouchers_args implements org.apache.thrift.TBase<getAllItemVouchers_args, getAllItemVouchers_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_args.class, metaDataMap);}public getAllItemVouchers_args() {}public getAllItemVouchers_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItemVouchers_args(getAllItemVouchers_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAllItemVouchers_args deepCopy() {return new getAllItemVouchers_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemVouchers_args)return this.equals((getAllItemVouchers_args)that);return false;}public boolean equals(getAllItemVouchers_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemVouchers_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemVouchers_args typedOther = (getAllItemVouchers_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemVouchers_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemVouchers_result implements org.apache.thrift.TBase<getAllItemVouchers_result, getAllItemVouchers_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<VoucherItemMapping> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VoucherItemMapping.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_result.class, metaDataMap);}public getAllItemVouchers_result() {}public getAllItemVouchers_result(List<VoucherItemMapping> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemVouchers_result(getAllItemVouchers_result other) {if (other.isSetSuccess()) {List<VoucherItemMapping> __this__success = new ArrayList<VoucherItemMapping>();for (VoucherItemMapping other_element : other.success) {__this__success.add(new VoucherItemMapping(other_element));}this.success = __this__success;}}public getAllItemVouchers_result deepCopy() {return new getAllItemVouchers_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<VoucherItemMapping> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(VoucherItemMapping elem) {if (this.success == null) {this.success = new ArrayList<VoucherItemMapping>();}this.success.add(elem);}public List<VoucherItemMapping> getSuccess() {return this.success;}public void setSuccess(List<VoucherItemMapping> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<VoucherItemMapping>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemVouchers_result)return this.equals((getAllItemVouchers_result)that);return false;}public boolean equals(getAllItemVouchers_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemVouchers_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemVouchers_result typedOther = (getAllItemVouchers_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list229 = iprot.readListBegin();this.success = new ArrayList<VoucherItemMapping>(_list229.size);for (int _i230 = 0; _i230 < _list229.size; ++_i230){VoucherItemMapping _elem231; // required_elem231 = new VoucherItemMapping();_elem231.read(iprot);this.success.add(_elem231);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (VoucherItemMapping _iter232 : this.success){_iter232.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemVouchers_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isValidCatalogItemId_args implements org.apache.thrift.TBase<isValidCatalogItemId_args, isValidCatalogItemId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isValidCatalogItemId_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long catalog_item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isValidCatalogItemId_args.class, metaDataMap);}public isValidCatalogItemId_args() {}public isValidCatalogItemId_args(long catalog_item_id){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public isValidCatalogItemId_args(isValidCatalogItemId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;}public isValidCatalogItemId_args deepCopy() {return new isValidCatalogItemId_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isValidCatalogItemId_args)return this.equals((isValidCatalogItemId_args)that);return false;}public boolean equals(isValidCatalogItemId_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isValidCatalogItemId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isValidCatalogItemId_args typedOther = (isValidCatalogItemId_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isValidCatalogItemId_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isValidCatalogItemId_result implements org.apache.thrift.TBase<isValidCatalogItemId_result, isValidCatalogItemId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isValidCatalogItemId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isValidCatalogItemId_result.class, metaDataMap);}public isValidCatalogItemId_result() {}public isValidCatalogItemId_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public isValidCatalogItemId_result(isValidCatalogItemId_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public isValidCatalogItemId_result deepCopy() {return new isValidCatalogItemId_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isValidCatalogItemId_result)return this.equals((isValidCatalogItemId_result)that);return false;}public boolean equals(isValidCatalogItemId_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isValidCatalogItemId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isValidCatalogItemId_result typedOther = (isValidCatalogItemId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isValidCatalogItemId_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVatPercentageForItem_args implements org.apache.thrift.TBase<getVatPercentageForItem_args, getVatPercentageForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)3);private long itemId; // requiredprivate long stateId; // requiredprivate double price; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),STATE_ID((short)2, "stateId"),PRICE((short)3, "price");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // STATE_IDreturn STATE_ID;case 3: // PRICEreturn PRICE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __STATEID_ISSET_ID = 1;private static final int __PRICE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_args.class, metaDataMap);}public getVatPercentageForItem_args() {}public getVatPercentageForItem_args(long itemId,long stateId,double price){this();this.itemId = itemId;setItemIdIsSet(true);this.stateId = stateId;setStateIdIsSet(true);this.price = price;setPriceIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVatPercentageForItem_args(getVatPercentageForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.stateId = other.stateId;this.price = other.price;}public getVatPercentageForItem_args deepCopy() {return new getVatPercentageForItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setStateIdIsSet(false);this.stateId = 0;setPriceIsSet(false);this.price = 0.0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getStateId() {return this.stateId;}public void setStateId(long stateId) {this.stateId = stateId;setStateIdIsSet(true);}public void unsetStateId() {__isset_bit_vector.clear(__STATEID_ISSET_ID);}/** Returns true if field stateId is set (has been assigned a value) and false otherwise */public boolean isSetStateId() {return __isset_bit_vector.get(__STATEID_ISSET_ID);}public void setStateIdIsSet(boolean value) {__isset_bit_vector.set(__STATEID_ISSET_ID, value);}public double getPrice() {return this.price;}public void setPrice(double price) {this.price = price;setPriceIsSet(true);}public void unsetPrice() {__isset_bit_vector.clear(__PRICE_ISSET_ID);}/** Returns true if field price is set (has been assigned a value) and false otherwise */public boolean isSetPrice() {return __isset_bit_vector.get(__PRICE_ISSET_ID);}public void setPriceIsSet(boolean value) {__isset_bit_vector.set(__PRICE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case STATE_ID:if (value == null) {unsetStateId();} else {setStateId((Long)value);}break;case PRICE:if (value == null) {unsetPrice();} else {setPrice((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case STATE_ID:return Long.valueOf(getStateId());case PRICE:return Double.valueOf(getPrice());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case STATE_ID:return isSetStateId();case PRICE:return isSetPrice();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVatPercentageForItem_args)return this.equals((getVatPercentageForItem_args)that);return false;}public boolean equals(getVatPercentageForItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_stateId = true;boolean that_present_stateId = true;if (this_present_stateId || that_present_stateId) {if (!(this_present_stateId && that_present_stateId))return false;if (this.stateId != that.stateId)return false;}boolean this_present_price = true;boolean that_present_price = true;if (this_present_price || that_present_price) {if (!(this_present_price && that_present_price))return false;if (this.price != that.price)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVatPercentageForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVatPercentageForItem_args typedOther = (getVatPercentageForItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());if (lastComparison != 0) {return lastComparison;}if (isSetStateId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());if (lastComparison != 0) {return lastComparison;}if (isSetPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // STATE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.stateId = iprot.readI64();setStateIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.price = iprot.readDouble();setPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(STATE_ID_FIELD_DESC);oprot.writeI64(this.stateId);oprot.writeFieldEnd();oprot.writeFieldBegin(PRICE_FIELD_DESC);oprot.writeDouble(this.price);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVatPercentageForItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("stateId:");sb.append(this.stateId);first = false;if (!first) sb.append(", ");sb.append("price:");sb.append(this.price);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVatPercentageForItem_result implements org.apache.thrift.TBase<getVatPercentageForItem_result, getVatPercentageForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private double success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_result.class, metaDataMap);}public getVatPercentageForItem_result() {}public getVatPercentageForItem_result(double success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getVatPercentageForItem_result(getVatPercentageForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getVatPercentageForItem_result deepCopy() {return new getVatPercentageForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0.0;this.cex = null;}public double getSuccess() {return this.success;}public void setSuccess(double success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Double)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Double.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVatPercentageForItem_result)return this.equals((getVatPercentageForItem_result)that);return false;}public boolean equals(getVatPercentageForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVatPercentageForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVatPercentageForItem_result typedOther = (getVatPercentageForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.success = iprot.readDouble();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeDouble(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVatPercentageForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVatAmountForItem_args implements org.apache.thrift.TBase<getVatAmountForItem_args, getVatAmountForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatAmountForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);private long itemId; // requiredprivate double price; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),PRICE((short)2, "price");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // PRICEreturn PRICE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __PRICE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatAmountForItem_args.class, metaDataMap);}public getVatAmountForItem_args() {}public getVatAmountForItem_args(long itemId,double price){this();this.itemId = itemId;setItemIdIsSet(true);this.price = price;setPriceIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVatAmountForItem_args(getVatAmountForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.price = other.price;}public getVatAmountForItem_args deepCopy() {return new getVatAmountForItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setPriceIsSet(false);this.price = 0.0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public double getPrice() {return this.price;}public void setPrice(double price) {this.price = price;setPriceIsSet(true);}public void unsetPrice() {__isset_bit_vector.clear(__PRICE_ISSET_ID);}/** Returns true if field price is set (has been assigned a value) and false otherwise */public boolean isSetPrice() {return __isset_bit_vector.get(__PRICE_ISSET_ID);}public void setPriceIsSet(boolean value) {__isset_bit_vector.set(__PRICE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case PRICE:if (value == null) {unsetPrice();} else {setPrice((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case PRICE:return Double.valueOf(getPrice());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case PRICE:return isSetPrice();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVatAmountForItem_args)return this.equals((getVatAmountForItem_args)that);return false;}public boolean equals(getVatAmountForItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_price = true;boolean that_present_price = true;if (this_present_price || that_present_price) {if (!(this_present_price && that_present_price))return false;if (this.price != that.price)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVatAmountForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVatAmountForItem_args typedOther = (getVatAmountForItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());if (lastComparison != 0) {return lastComparison;}if (isSetPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.price = iprot.readDouble();setPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(PRICE_FIELD_DESC);oprot.writeDouble(this.price);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVatAmountForItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("price:");sb.append(this.price);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVatAmountForItem_result implements org.apache.thrift.TBase<getVatAmountForItem_result, getVatAmountForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatAmountForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);private double success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatAmountForItem_result.class, metaDataMap);}public getVatAmountForItem_result() {}public getVatAmountForItem_result(double success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVatAmountForItem_result(getVatAmountForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getVatAmountForItem_result deepCopy() {return new getVatAmountForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0.0;}public double getSuccess() {return this.success;}public void setSuccess(double success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Double.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVatAmountForItem_result)return this.equals((getVatAmountForItem_result)that);return false;}public boolean equals(getVatAmountForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVatAmountForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVatAmountForItem_result typedOther = (getVatAmountForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.success = iprot.readDouble();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeDouble(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVatAmountForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllIgnoredInventoryUpdateItemsList_args implements org.apache.thrift.TBase<getAllIgnoredInventoryUpdateItemsList_args, getAllIgnoredInventoryUpdateItemsList_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryUpdateItemsList_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)2);private int offset; // requiredprivate int limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryUpdateItemsList_args.class, metaDataMap);}public getAllIgnoredInventoryUpdateItemsList_args() {}public getAllIgnoredInventoryUpdateItemsList_args(int offset,int limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllIgnoredInventoryUpdateItemsList_args(getAllIgnoredInventoryUpdateItemsList_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getAllIgnoredInventoryUpdateItemsList_args deepCopy() {return new getAllIgnoredInventoryUpdateItemsList_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public int getOffset() {return this.offset;}public void setOffset(int offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public int getLimit() {return this.limit;}public void setLimit(int limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Integer)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Integer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Integer.valueOf(getOffset());case LIMIT:return Integer.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllIgnoredInventoryUpdateItemsList_args)return this.equals((getAllIgnoredInventoryUpdateItemsList_args)that);return false;}public boolean equals(getAllIgnoredInventoryUpdateItemsList_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllIgnoredInventoryUpdateItemsList_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllIgnoredInventoryUpdateItemsList_args typedOther = (getAllIgnoredInventoryUpdateItemsList_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I32) {this.offset = iprot.readI32();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I32) {this.limit = iprot.readI32();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI32(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI32(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllIgnoredInventoryUpdateItemsList_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllIgnoredInventoryUpdateItemsList_result implements org.apache.thrift.TBase<getAllIgnoredInventoryUpdateItemsList_result, getAllIgnoredInventoryUpdateItemsList_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryUpdateItemsList_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryUpdateItemsList_result.class, metaDataMap);}public getAllIgnoredInventoryUpdateItemsList_result() {}public getAllIgnoredInventoryUpdateItemsList_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllIgnoredInventoryUpdateItemsList_result(getAllIgnoredInventoryUpdateItemsList_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getAllIgnoredInventoryUpdateItemsList_result deepCopy() {return new getAllIgnoredInventoryUpdateItemsList_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllIgnoredInventoryUpdateItemsList_result)return this.equals((getAllIgnoredInventoryUpdateItemsList_result)that);return false;}public boolean equals(getAllIgnoredInventoryUpdateItemsList_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllIgnoredInventoryUpdateItemsList_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllIgnoredInventoryUpdateItemsList_result typedOther = (getAllIgnoredInventoryUpdateItemsList_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list233 = iprot.readListBegin();this.success = new ArrayList<Item>(_list233.size);for (int _i234 = 0; _i234 < _list233.size; ++_i234){Item _elem235; // required_elem235 = new Item();_elem235.read(iprot);this.success.add(_elem235);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter236 : this.success){_iter236.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllIgnoredInventoryUpdateItemsList_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllAliveItems_args implements org.apache.thrift.TBase<getAllAliveItems_args, getAllAliveItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAliveItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAliveItems_args.class, metaDataMap);}public getAllAliveItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllAliveItems_args(getAllAliveItems_args other) {}public getAllAliveItems_args deepCopy() {return new getAllAliveItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAliveItems_args)return this.equals((getAllAliveItems_args)that);return false;}public boolean equals(getAllAliveItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAliveItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAliveItems_args typedOther = (getAllAliveItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAliveItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllAliveItems_result implements org.apache.thrift.TBase<getAllAliveItems_result, getAllAliveItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAliveItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAliveItems_result.class, metaDataMap);}public getAllAliveItems_result() {}public getAllAliveItems_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllAliveItems_result(getAllAliveItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getAllAliveItems_result deepCopy() {return new getAllAliveItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAliveItems_result)return this.equals((getAllAliveItems_result)that);return false;}public boolean equals(getAllAliveItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAliveItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAliveItems_result typedOther = (getAllAliveItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list237 = iprot.readListBegin();this.success = new ArrayList<Item>(_list237.size);for (int _i238 = 0; _i238 < _list237.size; ++_i238){Item _elem239; // required_elem239 = new Item();_elem239.read(iprot);this.success.add(_elem239);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter240 : this.success){_iter240.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAliveItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getInsuranceAmount_args implements org.apache.thrift.TBase<getInsuranceAmount_args, getInsuranceAmount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);private long itemId; // requiredprivate double price; // requiredprivate long insurerId; // requiredprivate long quantity; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),PRICE((short)2, "price"),INSURER_ID((short)3, "insurerId"),QUANTITY((short)4, "quantity");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // PRICEreturn PRICE;case 3: // INSURER_IDreturn INSURER_ID;case 4: // QUANTITYreturn QUANTITY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __PRICE_ISSET_ID = 1;private static final int __INSURERID_ISSET_ID = 2;private static final int __QUANTITY_ISSET_ID = 3;private BitSet __isset_bit_vector = new BitSet(4);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsuranceAmount_args.class, metaDataMap);}public getInsuranceAmount_args() {}public getInsuranceAmount_args(long itemId,double price,long insurerId,long quantity){this();this.itemId = itemId;setItemIdIsSet(true);this.price = price;setPriceIsSet(true);this.insurerId = insurerId;setInsurerIdIsSet(true);this.quantity = quantity;setQuantityIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getInsuranceAmount_args(getInsuranceAmount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.price = other.price;this.insurerId = other.insurerId;this.quantity = other.quantity;}public getInsuranceAmount_args deepCopy() {return new getInsuranceAmount_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setPriceIsSet(false);this.price = 0.0;setInsurerIdIsSet(false);this.insurerId = 0;setQuantityIsSet(false);this.quantity = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public double getPrice() {return this.price;}public void setPrice(double price) {this.price = price;setPriceIsSet(true);}public void unsetPrice() {__isset_bit_vector.clear(__PRICE_ISSET_ID);}/** Returns true if field price is set (has been assigned a value) and false otherwise */public boolean isSetPrice() {return __isset_bit_vector.get(__PRICE_ISSET_ID);}public void setPriceIsSet(boolean value) {__isset_bit_vector.set(__PRICE_ISSET_ID, value);}public long getInsurerId() {return this.insurerId;}public void setInsurerId(long insurerId) {this.insurerId = insurerId;setInsurerIdIsSet(true);}public void unsetInsurerId() {__isset_bit_vector.clear(__INSURERID_ISSET_ID);}/** Returns true if field insurerId is set (has been assigned a value) and false otherwise */public boolean isSetInsurerId() {return __isset_bit_vector.get(__INSURERID_ISSET_ID);}public void setInsurerIdIsSet(boolean value) {__isset_bit_vector.set(__INSURERID_ISSET_ID, value);}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case PRICE:if (value == null) {unsetPrice();} else {setPrice((Double)value);}break;case INSURER_ID:if (value == null) {unsetInsurerId();} else {setInsurerId((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case PRICE:return Double.valueOf(getPrice());case INSURER_ID:return Long.valueOf(getInsurerId());case QUANTITY:return Long.valueOf(getQuantity());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case PRICE:return isSetPrice();case INSURER_ID:return isSetInsurerId();case QUANTITY:return isSetQuantity();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getInsuranceAmount_args)return this.equals((getInsuranceAmount_args)that);return false;}public boolean equals(getInsuranceAmount_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_price = true;boolean that_present_price = true;if (this_present_price || that_present_price) {if (!(this_present_price && that_present_price))return false;if (this.price != that.price)return false;}boolean this_present_insurerId = true;boolean that_present_insurerId = true;if (this_present_insurerId || that_present_insurerId) {if (!(this_present_insurerId && that_present_insurerId))return false;if (this.insurerId != that.insurerId)return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getInsuranceAmount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getInsuranceAmount_args typedOther = (getInsuranceAmount_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());if (lastComparison != 0) {return lastComparison;}if (isSetPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());if (lastComparison != 0) {return lastComparison;}if (isSetInsurerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.price = iprot.readDouble();setPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // INSURER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.insurerId = iprot.readI64();setInsurerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(PRICE_FIELD_DESC);oprot.writeDouble(this.price);oprot.writeFieldEnd();oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);oprot.writeI64(this.insurerId);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getInsuranceAmount_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("price:");sb.append(this.price);first = false;if (!first) sb.append(", ");sb.append("insurerId:");sb.append(this.insurerId);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getInsuranceAmount_result implements org.apache.thrift.TBase<getInsuranceAmount_result, getInsuranceAmount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsuranceAmount_result.class, metaDataMap);}public getInsuranceAmount_result() {}public getInsuranceAmount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getInsuranceAmount_result(getInsuranceAmount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getInsuranceAmount_result deepCopy() {return new getInsuranceAmount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getInsuranceAmount_result)return this.equals((getInsuranceAmount_result)that);return false;}public boolean equals(getInsuranceAmount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getInsuranceAmount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getInsuranceAmount_result typedOther = (getInsuranceAmount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getInsuranceAmount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getInsurer_args implements org.apache.thrift.TBase<getInsurer_args, getInsurer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsurer_args");private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)1);private long insurerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {INSURER_ID((short)1, "insurerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // INSURER_IDreturn INSURER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __INSURERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsurer_args.class, metaDataMap);}public getInsurer_args() {}public getInsurer_args(long insurerId){this();this.insurerId = insurerId;setInsurerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getInsurer_args(getInsurer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.insurerId = other.insurerId;}public getInsurer_args deepCopy() {return new getInsurer_args(this);}@Overridepublic void clear() {setInsurerIdIsSet(false);this.insurerId = 0;}public long getInsurerId() {return this.insurerId;}public void setInsurerId(long insurerId) {this.insurerId = insurerId;setInsurerIdIsSet(true);}public void unsetInsurerId() {__isset_bit_vector.clear(__INSURERID_ISSET_ID);}/** Returns true if field insurerId is set (has been assigned a value) and false otherwise */public boolean isSetInsurerId() {return __isset_bit_vector.get(__INSURERID_ISSET_ID);}public void setInsurerIdIsSet(boolean value) {__isset_bit_vector.set(__INSURERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case INSURER_ID:if (value == null) {unsetInsurerId();} else {setInsurerId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case INSURER_ID:return Long.valueOf(getInsurerId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case INSURER_ID:return isSetInsurerId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getInsurer_args)return this.equals((getInsurer_args)that);return false;}public boolean equals(getInsurer_args that) {if (that == null)return false;boolean this_present_insurerId = true;boolean that_present_insurerId = true;if (this_present_insurerId || that_present_insurerId) {if (!(this_present_insurerId && that_present_insurerId))return false;if (this.insurerId != that.insurerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getInsurer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getInsurer_args typedOther = (getInsurer_args)other;lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());if (lastComparison != 0) {return lastComparison;}if (isSetInsurerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // INSURER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.insurerId = iprot.readI64();setInsurerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);oprot.writeI64(this.insurerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getInsurer_args(");boolean first = true;sb.append("insurerId:");sb.append(this.insurerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getInsurer_result implements org.apache.thrift.TBase<getInsurer_result, getInsurer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsurer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private Insurer success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Insurer.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsurer_result.class, metaDataMap);}public getInsurer_result() {}public getInsurer_result(Insurer success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getInsurer_result(getInsurer_result other) {if (other.isSetSuccess()) {this.success = new Insurer(other.success);}}public getInsurer_result deepCopy() {return new getInsurer_result(this);}@Overridepublic void clear() {this.success = null;}public Insurer getSuccess() {return this.success;}public void setSuccess(Insurer success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Insurer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getInsurer_result)return this.equals((getInsurer_result)that);return false;}public boolean equals(getInsurer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getInsurer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getInsurer_result typedOther = (getInsurer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Insurer();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getInsurer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllInsurers_args implements org.apache.thrift.TBase<getAllInsurers_args, getAllInsurers_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllInsurers_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllInsurers_args.class, metaDataMap);}public getAllInsurers_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllInsurers_args(getAllInsurers_args other) {}public getAllInsurers_args deepCopy() {return new getAllInsurers_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllInsurers_args)return this.equals((getAllInsurers_args)that);return false;}public boolean equals(getAllInsurers_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllInsurers_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllInsurers_args typedOther = (getAllInsurers_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllInsurers_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllInsurers_result implements org.apache.thrift.TBase<getAllInsurers_result, getAllInsurers_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllInsurers_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Insurer> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Insurer.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllInsurers_result.class, metaDataMap);}public getAllInsurers_result() {}public getAllInsurers_result(List<Insurer> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllInsurers_result(getAllInsurers_result other) {if (other.isSetSuccess()) {List<Insurer> __this__success = new ArrayList<Insurer>();for (Insurer other_element : other.success) {__this__success.add(new Insurer(other_element));}this.success = __this__success;}}public getAllInsurers_result deepCopy() {return new getAllInsurers_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Insurer> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Insurer elem) {if (this.success == null) {this.success = new ArrayList<Insurer>();}this.success.add(elem);}public List<Insurer> getSuccess() {return this.success;}public void setSuccess(List<Insurer> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Insurer>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllInsurers_result)return this.equals((getAllInsurers_result)that);return false;}public boolean equals(getAllInsurers_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllInsurers_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllInsurers_result typedOther = (getAllInsurers_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list241 = iprot.readListBegin();this.success = new ArrayList<Insurer>(_list241.size);for (int _i242 = 0; _i242 < _list241.size; ++_i242){Insurer _elem243; // required_elem243 = new Insurer();_elem243.read(iprot);this.success.add(_elem243);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Insurer _iter244 : this.success){_iter244.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllInsurers_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateInsuranceDeclaredAmount_args implements org.apache.thrift.TBase<updateInsuranceDeclaredAmount_args, updateInsuranceDeclaredAmount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInsuranceDeclaredAmount_args");private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);private long insurerId; // requiredprivate double amount; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {INSURER_ID((short)1, "insurerId"),AMOUNT((short)2, "amount");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // INSURER_IDreturn INSURER_ID;case 2: // AMOUNTreturn AMOUNT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __INSURERID_ISSET_ID = 0;private static final int __AMOUNT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInsuranceDeclaredAmount_args.class, metaDataMap);}public updateInsuranceDeclaredAmount_args() {}public updateInsuranceDeclaredAmount_args(long insurerId,double amount){this();this.insurerId = insurerId;setInsurerIdIsSet(true);this.amount = amount;setAmountIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateInsuranceDeclaredAmount_args(updateInsuranceDeclaredAmount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.insurerId = other.insurerId;this.amount = other.amount;}public updateInsuranceDeclaredAmount_args deepCopy() {return new updateInsuranceDeclaredAmount_args(this);}@Overridepublic void clear() {setInsurerIdIsSet(false);this.insurerId = 0;setAmountIsSet(false);this.amount = 0.0;}public long getInsurerId() {return this.insurerId;}public void setInsurerId(long insurerId) {this.insurerId = insurerId;setInsurerIdIsSet(true);}public void unsetInsurerId() {__isset_bit_vector.clear(__INSURERID_ISSET_ID);}/** Returns true if field insurerId is set (has been assigned a value) and false otherwise */public boolean isSetInsurerId() {return __isset_bit_vector.get(__INSURERID_ISSET_ID);}public void setInsurerIdIsSet(boolean value) {__isset_bit_vector.set(__INSURERID_ISSET_ID, value);}public double getAmount() {return this.amount;}public void setAmount(double amount) {this.amount = amount;setAmountIsSet(true);}public void unsetAmount() {__isset_bit_vector.clear(__AMOUNT_ISSET_ID);}/** Returns true if field amount is set (has been assigned a value) and false otherwise */public boolean isSetAmount() {return __isset_bit_vector.get(__AMOUNT_ISSET_ID);}public void setAmountIsSet(boolean value) {__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case INSURER_ID:if (value == null) {unsetInsurerId();} else {setInsurerId((Long)value);}break;case AMOUNT:if (value == null) {unsetAmount();} else {setAmount((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case INSURER_ID:return Long.valueOf(getInsurerId());case AMOUNT:return Double.valueOf(getAmount());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case INSURER_ID:return isSetInsurerId();case AMOUNT:return isSetAmount();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateInsuranceDeclaredAmount_args)return this.equals((updateInsuranceDeclaredAmount_args)that);return false;}public boolean equals(updateInsuranceDeclaredAmount_args that) {if (that == null)return false;boolean this_present_insurerId = true;boolean that_present_insurerId = true;if (this_present_insurerId || that_present_insurerId) {if (!(this_present_insurerId && that_present_insurerId))return false;if (this.insurerId != that.insurerId)return false;}boolean this_present_amount = true;boolean that_present_amount = true;if (this_present_amount || that_present_amount) {if (!(this_present_amount && that_present_amount))return false;if (this.amount != that.amount)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateInsuranceDeclaredAmount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateInsuranceDeclaredAmount_args typedOther = (updateInsuranceDeclaredAmount_args)other;lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());if (lastComparison != 0) {return lastComparison;}if (isSetInsurerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());if (lastComparison != 0) {return lastComparison;}if (isSetAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // INSURER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.insurerId = iprot.readI64();setInsurerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // AMOUNTif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.amount = iprot.readDouble();setAmountIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);oprot.writeI64(this.insurerId);oprot.writeFieldEnd();oprot.writeFieldBegin(AMOUNT_FIELD_DESC);oprot.writeDouble(this.amount);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateInsuranceDeclaredAmount_args(");boolean first = true;sb.append("insurerId:");sb.append(this.insurerId);first = false;if (!first) sb.append(", ");sb.append("amount:");sb.append(this.amount);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateInsuranceDeclaredAmount_result implements org.apache.thrift.TBase<updateInsuranceDeclaredAmount_result, updateInsuranceDeclaredAmount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInsuranceDeclaredAmount_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInsuranceDeclaredAmount_result.class, metaDataMap);}public updateInsuranceDeclaredAmount_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateInsuranceDeclaredAmount_result(updateInsuranceDeclaredAmount_result other) {}public updateInsuranceDeclaredAmount_result deepCopy() {return new updateInsuranceDeclaredAmount_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateInsuranceDeclaredAmount_result)return this.equals((updateInsuranceDeclaredAmount_result)that);return false;}public boolean equals(updateInsuranceDeclaredAmount_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateInsuranceDeclaredAmount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateInsuranceDeclaredAmount_result typedOther = (updateInsuranceDeclaredAmount_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateInsuranceDeclaredAmount_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFreebieForItem_args implements org.apache.thrift.TBase<getFreebieForItem_args, getFreebieForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreebieForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreebieForItem_args.class, metaDataMap);}public getFreebieForItem_args() {}public getFreebieForItem_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getFreebieForItem_args(getFreebieForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getFreebieForItem_args deepCopy() {return new getFreebieForItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFreebieForItem_args)return this.equals((getFreebieForItem_args)that);return false;}public boolean equals(getFreebieForItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFreebieForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFreebieForItem_args typedOther = (getFreebieForItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFreebieForItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFreebieForItem_result implements org.apache.thrift.TBase<getFreebieForItem_result, getFreebieForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreebieForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreebieForItem_result.class, metaDataMap);}public getFreebieForItem_result() {}public getFreebieForItem_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getFreebieForItem_result(getFreebieForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getFreebieForItem_result deepCopy() {return new getFreebieForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFreebieForItem_result)return this.equals((getFreebieForItem_result)that);return false;}public boolean equals(getFreebieForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFreebieForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFreebieForItem_result typedOther = (getFreebieForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFreebieForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateFreebieForItem_args implements org.apache.thrift.TBase<addOrUpdateFreebieForItem_args, addOrUpdateFreebieForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFreebieForItem_args");private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);private FreebieItem freebieItem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {FREEBIE_ITEM((short)1, "freebieItem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // FREEBIE_ITEMreturn FREEBIE_ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.FREEBIE_ITEM, new org.apache.thrift.meta_data.FieldMetaData("freebieItem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FreebieItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFreebieForItem_args.class, metaDataMap);}public addOrUpdateFreebieForItem_args() {}public addOrUpdateFreebieForItem_args(FreebieItem freebieItem){this();this.freebieItem = freebieItem;}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateFreebieForItem_args(addOrUpdateFreebieForItem_args other) {if (other.isSetFreebieItem()) {this.freebieItem = new FreebieItem(other.freebieItem);}}public addOrUpdateFreebieForItem_args deepCopy() {return new addOrUpdateFreebieForItem_args(this);}@Overridepublic void clear() {this.freebieItem = null;}public FreebieItem getFreebieItem() {return this.freebieItem;}public void setFreebieItem(FreebieItem freebieItem) {this.freebieItem = freebieItem;}public void unsetFreebieItem() {this.freebieItem = null;}/** Returns true if field freebieItem is set (has been assigned a value) and false otherwise */public boolean isSetFreebieItem() {return this.freebieItem != null;}public void setFreebieItemIsSet(boolean value) {if (!value) {this.freebieItem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case FREEBIE_ITEM:if (value == null) {unsetFreebieItem();} else {setFreebieItem((FreebieItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case FREEBIE_ITEM:return getFreebieItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case FREEBIE_ITEM:return isSetFreebieItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateFreebieForItem_args)return this.equals((addOrUpdateFreebieForItem_args)that);return false;}public boolean equals(addOrUpdateFreebieForItem_args that) {if (that == null)return false;boolean this_present_freebieItem = true && this.isSetFreebieItem();boolean that_present_freebieItem = true && that.isSetFreebieItem();if (this_present_freebieItem || that_present_freebieItem) {if (!(this_present_freebieItem && that_present_freebieItem))return false;if (!this.freebieItem.equals(that.freebieItem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateFreebieForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateFreebieForItem_args typedOther = (addOrUpdateFreebieForItem_args)other;lastComparison = Boolean.valueOf(isSetFreebieItem()).compareTo(typedOther.isSetFreebieItem());if (lastComparison != 0) {return lastComparison;}if (isSetFreebieItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItem, typedOther.freebieItem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // FREEBIE_ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.freebieItem = new FreebieItem();this.freebieItem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.freebieItem != null) {oprot.writeFieldBegin(FREEBIE_ITEM_FIELD_DESC);this.freebieItem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateFreebieForItem_args(");boolean first = true;sb.append("freebieItem:");if (this.freebieItem == null) {sb.append("null");} else {sb.append(this.freebieItem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateFreebieForItem_result implements org.apache.thrift.TBase<addOrUpdateFreebieForItem_result, addOrUpdateFreebieForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFreebieForItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFreebieForItem_result.class, metaDataMap);}public addOrUpdateFreebieForItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateFreebieForItem_result(addOrUpdateFreebieForItem_result other) {}public addOrUpdateFreebieForItem_result deepCopy() {return new addOrUpdateFreebieForItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateFreebieForItem_result)return this.equals((addOrUpdateFreebieForItem_result)that);return false;}public boolean equals(addOrUpdateFreebieForItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateFreebieForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateFreebieForItem_result typedOther = (addOrUpdateFreebieForItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateFreebieForItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateBrandInfo_args implements org.apache.thrift.TBase<addOrUpdateBrandInfo_args, addOrUpdateBrandInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateBrandInfo_args");private static final org.apache.thrift.protocol.TField BRAND_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("brandInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);private BrandInfo brandInfo; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BRAND_INFO((short)1, "brandInfo");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BRAND_INFOreturn BRAND_INFO;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BRAND_INFO, new org.apache.thrift.meta_data.FieldMetaData("brandInfo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BrandInfo.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateBrandInfo_args.class, metaDataMap);}public addOrUpdateBrandInfo_args() {}public addOrUpdateBrandInfo_args(BrandInfo brandInfo){this();this.brandInfo = brandInfo;}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateBrandInfo_args(addOrUpdateBrandInfo_args other) {if (other.isSetBrandInfo()) {this.brandInfo = new BrandInfo(other.brandInfo);}}public addOrUpdateBrandInfo_args deepCopy() {return new addOrUpdateBrandInfo_args(this);}@Overridepublic void clear() {this.brandInfo = null;}public BrandInfo getBrandInfo() {return this.brandInfo;}public void setBrandInfo(BrandInfo brandInfo) {this.brandInfo = brandInfo;}public void unsetBrandInfo() {this.brandInfo = null;}/** Returns true if field brandInfo is set (has been assigned a value) and false otherwise */public boolean isSetBrandInfo() {return this.brandInfo != null;}public void setBrandInfoIsSet(boolean value) {if (!value) {this.brandInfo = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BRAND_INFO:if (value == null) {unsetBrandInfo();} else {setBrandInfo((BrandInfo)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BRAND_INFO:return getBrandInfo();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BRAND_INFO:return isSetBrandInfo();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateBrandInfo_args)return this.equals((addOrUpdateBrandInfo_args)that);return false;}public boolean equals(addOrUpdateBrandInfo_args that) {if (that == null)return false;boolean this_present_brandInfo = true && this.isSetBrandInfo();boolean that_present_brandInfo = true && that.isSetBrandInfo();if (this_present_brandInfo || that_present_brandInfo) {if (!(this_present_brandInfo && that_present_brandInfo))return false;if (!this.brandInfo.equals(that.brandInfo))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateBrandInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateBrandInfo_args typedOther = (addOrUpdateBrandInfo_args)other;lastComparison = Boolean.valueOf(isSetBrandInfo()).compareTo(typedOther.isSetBrandInfo());if (lastComparison != 0) {return lastComparison;}if (isSetBrandInfo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brandInfo, typedOther.brandInfo);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BRAND_INFOif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.brandInfo = new BrandInfo();this.brandInfo.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.brandInfo != null) {oprot.writeFieldBegin(BRAND_INFO_FIELD_DESC);this.brandInfo.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateBrandInfo_args(");boolean first = true;sb.append("brandInfo:");if (this.brandInfo == null) {sb.append("null");} else {sb.append(this.brandInfo);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateBrandInfo_result implements org.apache.thrift.TBase<addOrUpdateBrandInfo_result, addOrUpdateBrandInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateBrandInfo_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateBrandInfo_result.class, metaDataMap);}public addOrUpdateBrandInfo_result() {}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateBrandInfo_result(addOrUpdateBrandInfo_result other) {}public addOrUpdateBrandInfo_result deepCopy() {return new addOrUpdateBrandInfo_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateBrandInfo_result)return this.equals((addOrUpdateBrandInfo_result)that);return false;}public boolean equals(addOrUpdateBrandInfo_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateBrandInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateBrandInfo_result typedOther = (addOrUpdateBrandInfo_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateBrandInfo_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBrandInfo_args implements org.apache.thrift.TBase<getBrandInfo_args, getBrandInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrandInfo_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrandInfo_args.class, metaDataMap);}public getBrandInfo_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBrandInfo_args(getBrandInfo_args other) {}public getBrandInfo_args deepCopy() {return new getBrandInfo_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBrandInfo_args)return this.equals((getBrandInfo_args)that);return false;}public boolean equals(getBrandInfo_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBrandInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBrandInfo_args typedOther = (getBrandInfo_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBrandInfo_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBrandInfo_result implements org.apache.thrift.TBase<getBrandInfo_result, getBrandInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrandInfo_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<String,BrandInfo> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BrandInfo.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrandInfo_result.class, metaDataMap);}public getBrandInfo_result() {}public getBrandInfo_result(Map<String,BrandInfo> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getBrandInfo_result(getBrandInfo_result other) {if (other.isSetSuccess()) {Map<String,BrandInfo> __this__success = new HashMap<String,BrandInfo>();for (Map.Entry<String, BrandInfo> other_element : other.success.entrySet()) {String other_element_key = other_element.getKey();BrandInfo other_element_value = other_element.getValue();String __this__success_copy_key = other_element_key;BrandInfo __this__success_copy_value = new BrandInfo(other_element_value);__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getBrandInfo_result deepCopy() {return new getBrandInfo_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(String key, BrandInfo val) {if (this.success == null) {this.success = new HashMap<String,BrandInfo>();}this.success.put(key, val);}public Map<String,BrandInfo> getSuccess() {return this.success;}public void setSuccess(Map<String,BrandInfo> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<String,BrandInfo>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBrandInfo_result)return this.equals((getBrandInfo_result)that);return false;}public boolean equals(getBrandInfo_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBrandInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBrandInfo_result typedOther = (getBrandInfo_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map245 = iprot.readMapBegin();this.success = new HashMap<String,BrandInfo>(2*_map245.size);for (int _i246 = 0; _i246 < _map245.size; ++_i246){String _key247; // requiredBrandInfo _val248; // required_key247 = iprot.readString();_val248 = new BrandInfo();_val248.read(iprot);this.success.put(_key247, _val248);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Map.Entry<String, BrandInfo> _iter249 : this.success.entrySet()){oprot.writeString(_iter249.getKey());_iter249.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBrandInfo_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStorePricing_args implements org.apache.thrift.TBase<getStorePricing_args, getStorePricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricing_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStorePricing_args.class, metaDataMap);}public getStorePricing_args() {}public getStorePricing_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getStorePricing_args(getStorePricing_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getStorePricing_args deepCopy() {return new getStorePricing_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStorePricing_args)return this.equals((getStorePricing_args)that);return false;}public boolean equals(getStorePricing_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStorePricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStorePricing_args typedOther = (getStorePricing_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStorePricing_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStorePricing_result implements org.apache.thrift.TBase<getStorePricing_result, getStorePricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricing_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private StorePricing success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorePricing.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStorePricing_result.class, metaDataMap);}public getStorePricing_result() {}public getStorePricing_result(StorePricing success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getStorePricing_result(getStorePricing_result other) {if (other.isSetSuccess()) {this.success = new StorePricing(other.success);}}public getStorePricing_result deepCopy() {return new getStorePricing_result(this);}@Overridepublic void clear() {this.success = null;}public StorePricing getSuccess() {return this.success;}public void setSuccess(StorePricing success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((StorePricing)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStorePricing_result)return this.equals((getStorePricing_result)that);return false;}public boolean equals(getStorePricing_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStorePricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStorePricing_result typedOther = (getStorePricing_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new StorePricing();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStorePricing_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStorePricings_args implements org.apache.thrift.TBase<getStorePricings_args, getStorePricings_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricings_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> itemIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStorePricings_args.class, metaDataMap);}public getStorePricings_args() {}public getStorePricings_args(List<Long> itemIds){this();this.itemIds = itemIds;}/*** Performs a deep copy on <i>other</i>.*/public getStorePricings_args(getStorePricings_args other) {if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}}public getStorePricings_args deepCopy() {return new getStorePricings_args(this);}@Overridepublic void clear() {this.itemIds = null;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStorePricings_args)return this.equals((getStorePricings_args)that);return false;}public boolean equals(getStorePricings_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStorePricings_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStorePricings_args typedOther = (getStorePricings_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list250 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list250.size);for (int _i251 = 0; _i251 < _list250.size; ++_i251){long _elem252; // required_elem252 = iprot.readI64();this.itemIds.add(_elem252);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter253 : this.itemIds){oprot.writeI64(_iter253);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStorePricings_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStorePricings_result implements org.apache.thrift.TBase<getStorePricings_result, getStorePricings_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricings_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<StorePricing> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorePricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStorePricings_result.class, metaDataMap);}public getStorePricings_result() {}public getStorePricings_result(List<StorePricing> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getStorePricings_result(getStorePricings_result other) {if (other.isSetSuccess()) {List<StorePricing> __this__success = new ArrayList<StorePricing>();for (StorePricing other_element : other.success) {__this__success.add(new StorePricing(other_element));}this.success = __this__success;}}public getStorePricings_result deepCopy() {return new getStorePricings_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<StorePricing> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(StorePricing elem) {if (this.success == null) {this.success = new ArrayList<StorePricing>();}this.success.add(elem);}public List<StorePricing> getSuccess() {return this.success;}public void setSuccess(List<StorePricing> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<StorePricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStorePricings_result)return this.equals((getStorePricings_result)that);return false;}public boolean equals(getStorePricings_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStorePricings_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStorePricings_result typedOther = (getStorePricings_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list254 = iprot.readListBegin();this.success = new ArrayList<StorePricing>(_list254.size);for (int _i255 = 0; _i255 < _list254.size; ++_i255){StorePricing _elem256; // required_elem256 = new StorePricing();_elem256.read(iprot);this.success.add(_elem256);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (StorePricing _iter257 : this.success){_iter257.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStorePricings_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateStorePricing_args implements org.apache.thrift.TBase<updateStorePricing_args, updateStorePricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateStorePricing_args");private static final org.apache.thrift.protocol.TField SP_FIELD_DESC = new org.apache.thrift.protocol.TField("sp", org.apache.thrift.protocol.TType.STRUCT, (short)1);private static final org.apache.thrift.protocol.TField ALL_COLORS_FIELD_DESC = new org.apache.thrift.protocol.TField("allColors", org.apache.thrift.protocol.TType.BOOL, (short)2);private StorePricing sp; // requiredprivate boolean allColors; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SP((short)1, "sp"),ALL_COLORS((short)2, "allColors");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SPreturn SP;case 2: // ALL_COLORSreturn ALL_COLORS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ALLCOLORS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SP, new org.apache.thrift.meta_data.FieldMetaData("sp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorePricing.class)));tmpMap.put(_Fields.ALL_COLORS, new org.apache.thrift.meta_data.FieldMetaData("allColors", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateStorePricing_args.class, metaDataMap);}public updateStorePricing_args() {}public updateStorePricing_args(StorePricing sp,boolean allColors){this();this.sp = sp;this.allColors = allColors;setAllColorsIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateStorePricing_args(updateStorePricing_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSp()) {this.sp = new StorePricing(other.sp);}this.allColors = other.allColors;}public updateStorePricing_args deepCopy() {return new updateStorePricing_args(this);}@Overridepublic void clear() {this.sp = null;setAllColorsIsSet(false);this.allColors = false;}public StorePricing getSp() {return this.sp;}public void setSp(StorePricing sp) {this.sp = sp;}public void unsetSp() {this.sp = null;}/** Returns true if field sp is set (has been assigned a value) and false otherwise */public boolean isSetSp() {return this.sp != null;}public void setSpIsSet(boolean value) {if (!value) {this.sp = null;}}public boolean isAllColors() {return this.allColors;}public void setAllColors(boolean allColors) {this.allColors = allColors;setAllColorsIsSet(true);}public void unsetAllColors() {__isset_bit_vector.clear(__ALLCOLORS_ISSET_ID);}/** Returns true if field allColors is set (has been assigned a value) and false otherwise */public boolean isSetAllColors() {return __isset_bit_vector.get(__ALLCOLORS_ISSET_ID);}public void setAllColorsIsSet(boolean value) {__isset_bit_vector.set(__ALLCOLORS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SP:if (value == null) {unsetSp();} else {setSp((StorePricing)value);}break;case ALL_COLORS:if (value == null) {unsetAllColors();} else {setAllColors((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SP:return getSp();case ALL_COLORS:return Boolean.valueOf(isAllColors());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SP:return isSetSp();case ALL_COLORS:return isSetAllColors();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateStorePricing_args)return this.equals((updateStorePricing_args)that);return false;}public boolean equals(updateStorePricing_args that) {if (that == null)return false;boolean this_present_sp = true && this.isSetSp();boolean that_present_sp = true && that.isSetSp();if (this_present_sp || that_present_sp) {if (!(this_present_sp && that_present_sp))return false;if (!this.sp.equals(that.sp))return false;}boolean this_present_allColors = true;boolean that_present_allColors = true;if (this_present_allColors || that_present_allColors) {if (!(this_present_allColors && that_present_allColors))return false;if (this.allColors != that.allColors)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateStorePricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateStorePricing_args typedOther = (updateStorePricing_args)other;lastComparison = Boolean.valueOf(isSetSp()).compareTo(typedOther.isSetSp());if (lastComparison != 0) {return lastComparison;}if (isSetSp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sp, typedOther.sp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAllColors()).compareTo(typedOther.isSetAllColors());if (lastComparison != 0) {return lastComparison;}if (isSetAllColors()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allColors, typedOther.allColors);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SPif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.sp = new StorePricing();this.sp.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ALL_COLORSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.allColors = iprot.readBool();setAllColorsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.sp != null) {oprot.writeFieldBegin(SP_FIELD_DESC);this.sp.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldBegin(ALL_COLORS_FIELD_DESC);oprot.writeBool(this.allColors);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateStorePricing_args(");boolean first = true;sb.append("sp:");if (this.sp == null) {sb.append("null");} else {sb.append(this.sp);}first = false;if (!first) sb.append(", ");sb.append("allColors:");sb.append(this.allColors);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateStorePricing_result implements org.apache.thrift.TBase<updateStorePricing_result, updateStorePricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateStorePricing_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateStorePricing_result.class, metaDataMap);}public updateStorePricing_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateStorePricing_result(updateStorePricing_result other) {}public updateStorePricing_result deepCopy() {return new updateStorePricing_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateStorePricing_result)return this.equals((updateStorePricing_result)that);return false;}public boolean equals(updateStorePricing_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateStorePricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateStorePricing_result typedOther = (updateStorePricing_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateStorePricing_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllAmazonListedItems_args implements org.apache.thrift.TBase<getAllAmazonListedItems_args, getAllAmazonListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonListedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonListedItems_args.class, metaDataMap);}public getAllAmazonListedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllAmazonListedItems_args(getAllAmazonListedItems_args other) {}public getAllAmazonListedItems_args deepCopy() {return new getAllAmazonListedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAmazonListedItems_args)return this.equals((getAllAmazonListedItems_args)that);return false;}public boolean equals(getAllAmazonListedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAmazonListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAmazonListedItems_args typedOther = (getAllAmazonListedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAmazonListedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllAmazonListedItems_result implements org.apache.thrift.TBase<getAllAmazonListedItems_result, getAllAmazonListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonListedItems_result.class, metaDataMap);}public getAllAmazonListedItems_result() {}public getAllAmazonListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllAmazonListedItems_result(getAllAmazonListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllAmazonListedItems_result deepCopy() {return new getAllAmazonListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAmazonListedItems_result)return this.equals((getAllAmazonListedItems_result)that);return false;}public boolean equals(getAllAmazonListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAmazonListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAmazonListedItems_result typedOther = (getAllAmazonListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list258 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list258.size);for (int _i259 = 0; _i259 < _list258.size; ++_i259){Amazonlisted _elem260; // required_elem260 = new Amazonlisted();_elem260.read(iprot);this.success.add(_elem260);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter261 : this.success){_iter261.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAmazonListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchAmazonItems_args implements org.apache.thrift.TBase<searchAmazonItems_args, searchAmazonItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchAmazonItems_args");private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private List<String> searchTerm; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERM((short)1, "searchTerm"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMreturn SEARCH_TERM;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchAmazonItems_args.class, metaDataMap);}public searchAmazonItems_args() {}public searchAmazonItems_args(List<String> searchTerm,long offset,long limit){this();this.searchTerm = searchTerm;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public searchAmazonItems_args(searchAmazonItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSearchTerm()) {List<String> __this__searchTerm = new ArrayList<String>();for (String other_element : other.searchTerm) {__this__searchTerm.add(other_element);}this.searchTerm = __this__searchTerm;}this.offset = other.offset;this.limit = other.limit;}public searchAmazonItems_args deepCopy() {return new searchAmazonItems_args(this);}@Overridepublic void clear() {this.searchTerm = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public int getSearchTermSize() {return (this.searchTerm == null) ? 0 : this.searchTerm.size();}public java.util.Iterator<String> getSearchTermIterator() {return (this.searchTerm == null) ? null : this.searchTerm.iterator();}public void addToSearchTerm(String elem) {if (this.searchTerm == null) {this.searchTerm = new ArrayList<String>();}this.searchTerm.add(elem);}public List<String> getSearchTerm() {return this.searchTerm;}public void setSearchTerm(List<String> searchTerm) {this.searchTerm = searchTerm;}public void unsetSearchTerm() {this.searchTerm = null;}/** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerm() {return this.searchTerm != null;}public void setSearchTermIsSet(boolean value) {if (!value) {this.searchTerm = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERM:if (value == null) {unsetSearchTerm();} else {setSearchTerm((List<String>)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERM:return getSearchTerm();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERM:return isSetSearchTerm();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchAmazonItems_args)return this.equals((searchAmazonItems_args)that);return false;}public boolean equals(searchAmazonItems_args that) {if (that == null)return false;boolean this_present_searchTerm = true && this.isSetSearchTerm();boolean that_present_searchTerm = true && that.isSetSearchTerm();if (this_present_searchTerm || that_present_searchTerm) {if (!(this_present_searchTerm && that_present_searchTerm))return false;if (!this.searchTerm.equals(that.searchTerm))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchAmazonItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchAmazonItems_args typedOther = (searchAmazonItems_args)other;lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerm()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list262 = iprot.readListBegin();this.searchTerm = new ArrayList<String>(_list262.size);for (int _i263 = 0; _i263 < _list262.size; ++_i263){String _elem264; // required_elem264 = iprot.readString();this.searchTerm.add(_elem264);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerm != null) {oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));for (String _iter265 : this.searchTerm){oprot.writeString(_iter265);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchAmazonItems_args(");boolean first = true;sb.append("searchTerm:");if (this.searchTerm == null) {sb.append("null");} else {sb.append(this.searchTerm);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchAmazonItems_result implements org.apache.thrift.TBase<searchAmazonItems_result, searchAmazonItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchAmazonItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchAmazonItems_result.class, metaDataMap);}public searchAmazonItems_result() {}public searchAmazonItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public searchAmazonItems_result(searchAmazonItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public searchAmazonItems_result deepCopy() {return new searchAmazonItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchAmazonItems_result)return this.equals((searchAmazonItems_result)that);return false;}public boolean equals(searchAmazonItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchAmazonItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchAmazonItems_result typedOther = (searchAmazonItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list266 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list266.size);for (int _i267 = 0; _i267 < _list266.size; ++_i267){Amazonlisted _elem268; // required_elem268 = new Amazonlisted();_elem268.read(iprot);this.success.add(_elem268);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter269 : this.success){_iter269.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchAmazonItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonSearchResultCount_args implements org.apache.thrift.TBase<getAmazonSearchResultCount_args, getAmazonSearchResultCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonSearchResultCount_args");private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);private List<String> searchTerm; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERM((short)1, "searchTerm");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMreturn SEARCH_TERM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonSearchResultCount_args.class, metaDataMap);}public getAmazonSearchResultCount_args() {}public getAmazonSearchResultCount_args(List<String> searchTerm){this();this.searchTerm = searchTerm;}/*** Performs a deep copy on <i>other</i>.*/public getAmazonSearchResultCount_args(getAmazonSearchResultCount_args other) {if (other.isSetSearchTerm()) {List<String> __this__searchTerm = new ArrayList<String>();for (String other_element : other.searchTerm) {__this__searchTerm.add(other_element);}this.searchTerm = __this__searchTerm;}}public getAmazonSearchResultCount_args deepCopy() {return new getAmazonSearchResultCount_args(this);}@Overridepublic void clear() {this.searchTerm = null;}public int getSearchTermSize() {return (this.searchTerm == null) ? 0 : this.searchTerm.size();}public java.util.Iterator<String> getSearchTermIterator() {return (this.searchTerm == null) ? null : this.searchTerm.iterator();}public void addToSearchTerm(String elem) {if (this.searchTerm == null) {this.searchTerm = new ArrayList<String>();}this.searchTerm.add(elem);}public List<String> getSearchTerm() {return this.searchTerm;}public void setSearchTerm(List<String> searchTerm) {this.searchTerm = searchTerm;}public void unsetSearchTerm() {this.searchTerm = null;}/** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerm() {return this.searchTerm != null;}public void setSearchTermIsSet(boolean value) {if (!value) {this.searchTerm = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERM:if (value == null) {unsetSearchTerm();} else {setSearchTerm((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERM:return getSearchTerm();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERM:return isSetSearchTerm();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonSearchResultCount_args)return this.equals((getAmazonSearchResultCount_args)that);return false;}public boolean equals(getAmazonSearchResultCount_args that) {if (that == null)return false;boolean this_present_searchTerm = true && this.isSetSearchTerm();boolean that_present_searchTerm = true && that.isSetSearchTerm();if (this_present_searchTerm || that_present_searchTerm) {if (!(this_present_searchTerm && that_present_searchTerm))return false;if (!this.searchTerm.equals(that.searchTerm))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonSearchResultCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonSearchResultCount_args typedOther = (getAmazonSearchResultCount_args)other;lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerm()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list270 = iprot.readListBegin();this.searchTerm = new ArrayList<String>(_list270.size);for (int _i271 = 0; _i271 < _list270.size; ++_i271){String _elem272; // required_elem272 = iprot.readString();this.searchTerm.add(_elem272);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerm != null) {oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));for (String _iter273 : this.searchTerm){oprot.writeString(_iter273);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonSearchResultCount_args(");boolean first = true;sb.append("searchTerm:");if (this.searchTerm == null) {sb.append("null");} else {sb.append(this.searchTerm);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonSearchResultCount_result implements org.apache.thrift.TBase<getAmazonSearchResultCount_result, getAmazonSearchResultCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonSearchResultCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonSearchResultCount_result.class, metaDataMap);}public getAmazonSearchResultCount_result() {}public getAmazonSearchResultCount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAmazonSearchResultCount_result(getAmazonSearchResultCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getAmazonSearchResultCount_result deepCopy() {return new getAmazonSearchResultCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonSearchResultCount_result)return this.equals((getAmazonSearchResultCount_result)that);return false;}public boolean equals(getAmazonSearchResultCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonSearchResultCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonSearchResultCount_result typedOther = (getAmazonSearchResultCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonSearchResultCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForAmazonlistedItems_args implements org.apache.thrift.TBase<getCountForAmazonlistedItems_args, getCountForAmazonlistedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForAmazonlistedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForAmazonlistedItems_args.class, metaDataMap);}public getCountForAmazonlistedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getCountForAmazonlistedItems_args(getCountForAmazonlistedItems_args other) {}public getCountForAmazonlistedItems_args deepCopy() {return new getCountForAmazonlistedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForAmazonlistedItems_args)return this.equals((getCountForAmazonlistedItems_args)that);return false;}public boolean equals(getCountForAmazonlistedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForAmazonlistedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForAmazonlistedItems_args typedOther = (getCountForAmazonlistedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForAmazonlistedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForAmazonlistedItems_result implements org.apache.thrift.TBase<getCountForAmazonlistedItems_result, getCountForAmazonlistedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForAmazonlistedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForAmazonlistedItems_result.class, metaDataMap);}public getCountForAmazonlistedItems_result() {}public getCountForAmazonlistedItems_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCountForAmazonlistedItems_result(getCountForAmazonlistedItems_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getCountForAmazonlistedItems_result deepCopy() {return new getCountForAmazonlistedItems_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForAmazonlistedItems_result)return this.equals((getCountForAmazonlistedItems_result)that);return false;}public boolean equals(getCountForAmazonlistedItems_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForAmazonlistedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForAmazonlistedItems_result typedOther = (getCountForAmazonlistedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForAmazonlistedItems_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonItemDetails_args implements org.apache.thrift.TBase<getAmazonItemDetails_args, getAmazonItemDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonItemDetails_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonItemDetails_args.class, metaDataMap);}public getAmazonItemDetails_args() {}public getAmazonItemDetails_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAmazonItemDetails_args(getAmazonItemDetails_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAmazonItemDetails_args deepCopy() {return new getAmazonItemDetails_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonItemDetails_args)return this.equals((getAmazonItemDetails_args)that);return false;}public boolean equals(getAmazonItemDetails_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonItemDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonItemDetails_args typedOther = (getAmazonItemDetails_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonItemDetails_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonItemDetails_result implements org.apache.thrift.TBase<getAmazonItemDetails_result, getAmazonItemDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonItemDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private Amazonlisted success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonItemDetails_result.class, metaDataMap);}public getAmazonItemDetails_result() {}public getAmazonItemDetails_result(Amazonlisted success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAmazonItemDetails_result(getAmazonItemDetails_result other) {if (other.isSetSuccess()) {this.success = new Amazonlisted(other.success);}}public getAmazonItemDetails_result deepCopy() {return new getAmazonItemDetails_result(this);}@Overridepublic void clear() {this.success = null;}public Amazonlisted getSuccess() {return this.success;}public void setSuccess(Amazonlisted success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Amazonlisted)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonItemDetails_result)return this.equals((getAmazonItemDetails_result)that);return false;}public boolean equals(getAmazonItemDetails_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonItemDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonItemDetails_result typedOther = (getAmazonItemDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Amazonlisted();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonItemDetails_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAmazonItemDetails_args implements org.apache.thrift.TBase<updateAmazonItemDetails_args, updateAmazonItemDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonItemDetails_args");private static final org.apache.thrift.protocol.TField AMAZONLISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonlisted", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Amazonlisted amazonlisted; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AMAZONLISTED((short)1, "amazonlisted");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AMAZONLISTEDreturn AMAZONLISTED;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AMAZONLISTED, new org.apache.thrift.meta_data.FieldMetaData("amazonlisted", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonItemDetails_args.class, metaDataMap);}public updateAmazonItemDetails_args() {}public updateAmazonItemDetails_args(Amazonlisted amazonlisted){this();this.amazonlisted = amazonlisted;}/*** Performs a deep copy on <i>other</i>.*/public updateAmazonItemDetails_args(updateAmazonItemDetails_args other) {if (other.isSetAmazonlisted()) {this.amazonlisted = new Amazonlisted(other.amazonlisted);}}public updateAmazonItemDetails_args deepCopy() {return new updateAmazonItemDetails_args(this);}@Overridepublic void clear() {this.amazonlisted = null;}public Amazonlisted getAmazonlisted() {return this.amazonlisted;}public void setAmazonlisted(Amazonlisted amazonlisted) {this.amazonlisted = amazonlisted;}public void unsetAmazonlisted() {this.amazonlisted = null;}/** Returns true if field amazonlisted is set (has been assigned a value) and false otherwise */public boolean isSetAmazonlisted() {return this.amazonlisted != null;}public void setAmazonlistedIsSet(boolean value) {if (!value) {this.amazonlisted = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AMAZONLISTED:if (value == null) {unsetAmazonlisted();} else {setAmazonlisted((Amazonlisted)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AMAZONLISTED:return getAmazonlisted();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AMAZONLISTED:return isSetAmazonlisted();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAmazonItemDetails_args)return this.equals((updateAmazonItemDetails_args)that);return false;}public boolean equals(updateAmazonItemDetails_args that) {if (that == null)return false;boolean this_present_amazonlisted = true && this.isSetAmazonlisted();boolean that_present_amazonlisted = true && that.isSetAmazonlisted();if (this_present_amazonlisted || that_present_amazonlisted) {if (!(this_present_amazonlisted && that_present_amazonlisted))return false;if (!this.amazonlisted.equals(that.amazonlisted))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAmazonItemDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAmazonItemDetails_args typedOther = (updateAmazonItemDetails_args)other;lastComparison = Boolean.valueOf(isSetAmazonlisted()).compareTo(typedOther.isSetAmazonlisted());if (lastComparison != 0) {return lastComparison;}if (isSetAmazonlisted()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonlisted, typedOther.amazonlisted);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AMAZONLISTEDif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.amazonlisted = new Amazonlisted();this.amazonlisted.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.amazonlisted != null) {oprot.writeFieldBegin(AMAZONLISTED_FIELD_DESC);this.amazonlisted.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAmazonItemDetails_args(");boolean first = true;sb.append("amazonlisted:");if (this.amazonlisted == null) {sb.append("null");} else {sb.append(this.amazonlisted);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAmazonItemDetails_result implements org.apache.thrift.TBase<updateAmazonItemDetails_result, updateAmazonItemDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonItemDetails_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonItemDetails_result.class, metaDataMap);}public updateAmazonItemDetails_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateAmazonItemDetails_result(updateAmazonItemDetails_result other) {}public updateAmazonItemDetails_result deepCopy() {return new updateAmazonItemDetails_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAmazonItemDetails_result)return this.equals((updateAmazonItemDetails_result)that);return false;}public boolean equals(updateAmazonItemDetails_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAmazonItemDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAmazonItemDetails_result typedOther = (updateAmazonItemDetails_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAmazonItemDetails_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAmazonItem_args implements org.apache.thrift.TBase<addAmazonItem_args, addAmazonItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonItem_args");private static final org.apache.thrift.protocol.TField AMAZONLISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonlisted", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Amazonlisted amazonlisted; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AMAZONLISTED((short)1, "amazonlisted");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AMAZONLISTEDreturn AMAZONLISTED;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AMAZONLISTED, new org.apache.thrift.meta_data.FieldMetaData("amazonlisted", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonItem_args.class, metaDataMap);}public addAmazonItem_args() {}public addAmazonItem_args(Amazonlisted amazonlisted){this();this.amazonlisted = amazonlisted;}/*** Performs a deep copy on <i>other</i>.*/public addAmazonItem_args(addAmazonItem_args other) {if (other.isSetAmazonlisted()) {this.amazonlisted = new Amazonlisted(other.amazonlisted);}}public addAmazonItem_args deepCopy() {return new addAmazonItem_args(this);}@Overridepublic void clear() {this.amazonlisted = null;}public Amazonlisted getAmazonlisted() {return this.amazonlisted;}public void setAmazonlisted(Amazonlisted amazonlisted) {this.amazonlisted = amazonlisted;}public void unsetAmazonlisted() {this.amazonlisted = null;}/** Returns true if field amazonlisted is set (has been assigned a value) and false otherwise */public boolean isSetAmazonlisted() {return this.amazonlisted != null;}public void setAmazonlistedIsSet(boolean value) {if (!value) {this.amazonlisted = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AMAZONLISTED:if (value == null) {unsetAmazonlisted();} else {setAmazonlisted((Amazonlisted)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AMAZONLISTED:return getAmazonlisted();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AMAZONLISTED:return isSetAmazonlisted();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAmazonItem_args)return this.equals((addAmazonItem_args)that);return false;}public boolean equals(addAmazonItem_args that) {if (that == null)return false;boolean this_present_amazonlisted = true && this.isSetAmazonlisted();boolean that_present_amazonlisted = true && that.isSetAmazonlisted();if (this_present_amazonlisted || that_present_amazonlisted) {if (!(this_present_amazonlisted && that_present_amazonlisted))return false;if (!this.amazonlisted.equals(that.amazonlisted))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAmazonItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAmazonItem_args typedOther = (addAmazonItem_args)other;lastComparison = Boolean.valueOf(isSetAmazonlisted()).compareTo(typedOther.isSetAmazonlisted());if (lastComparison != 0) {return lastComparison;}if (isSetAmazonlisted()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonlisted, typedOther.amazonlisted);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AMAZONLISTEDif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.amazonlisted = new Amazonlisted();this.amazonlisted.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.amazonlisted != null) {oprot.writeFieldBegin(AMAZONLISTED_FIELD_DESC);this.amazonlisted.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAmazonItem_args(");boolean first = true;sb.append("amazonlisted:");if (this.amazonlisted == null) {sb.append("null");} else {sb.append(this.amazonlisted);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAmazonItem_result implements org.apache.thrift.TBase<addAmazonItem_result, addAmazonItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonItem_result.class, metaDataMap);}public addAmazonItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public addAmazonItem_result(addAmazonItem_result other) {}public addAmazonItem_result deepCopy() {return new addAmazonItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAmazonItem_result)return this.equals((addAmazonItem_result)that);return false;}public boolean equals(addAmazonItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAmazonItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAmazonItem_result typedOther = (addAmazonItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAmazonItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAsinItems_args implements org.apache.thrift.TBase<getAsinItems_args, getAsinItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAsinItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAsinItems_args.class, metaDataMap);}public getAsinItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAsinItems_args(getAsinItems_args other) {}public getAsinItems_args deepCopy() {return new getAsinItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAsinItems_args)return this.equals((getAsinItems_args)that);return false;}public boolean equals(getAsinItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAsinItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAsinItems_args typedOther = (getAsinItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAsinItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAsinItems_result implements org.apache.thrift.TBase<getAsinItems_result, getAsinItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAsinItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAsinItems_result.class, metaDataMap);}public getAsinItems_result() {}public getAsinItems_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAsinItems_result(getAsinItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getAsinItems_result deepCopy() {return new getAsinItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAsinItems_result)return this.equals((getAsinItems_result)that);return false;}public boolean equals(getAsinItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAsinItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAsinItems_result typedOther = (getAsinItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list274 = iprot.readListBegin();this.success = new ArrayList<Item>(_list274.size);for (int _i275 = 0; _i275 < _list274.size; ++_i275){Item _elem276; // required_elem276 = new Item();_elem276.read(iprot);this.success.add(_elem276);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter277 : this.success){_iter277.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAsinItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbaListedItems_args implements org.apache.thrift.TBase<getAllFbaListedItems_args, getAllFbaListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbaListedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbaListedItems_args.class, metaDataMap);}public getAllFbaListedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFbaListedItems_args(getAllFbaListedItems_args other) {}public getAllFbaListedItems_args deepCopy() {return new getAllFbaListedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbaListedItems_args)return this.equals((getAllFbaListedItems_args)that);return false;}public boolean equals(getAllFbaListedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbaListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbaListedItems_args typedOther = (getAllFbaListedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbaListedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbaListedItems_result implements org.apache.thrift.TBase<getAllFbaListedItems_result, getAllFbaListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbaListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbaListedItems_result.class, metaDataMap);}public getAllFbaListedItems_result() {}public getAllFbaListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFbaListedItems_result(getAllFbaListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllFbaListedItems_result deepCopy() {return new getAllFbaListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbaListedItems_result)return this.equals((getAllFbaListedItems_result)that);return false;}public boolean equals(getAllFbaListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbaListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbaListedItems_result typedOther = (getAllFbaListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list278.size);for (int _i279 = 0; _i279 < _list278.size; ++_i279){Amazonlisted _elem280; // required_elem280 = new Amazonlisted();_elem280.read(iprot);this.success.add(_elem280);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter281 : this.success){_iter281.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbaListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllNonFbaListedItems_args implements org.apache.thrift.TBase<getAllNonFbaListedItems_args, getAllNonFbaListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllNonFbaListedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllNonFbaListedItems_args.class, metaDataMap);}public getAllNonFbaListedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllNonFbaListedItems_args(getAllNonFbaListedItems_args other) {}public getAllNonFbaListedItems_args deepCopy() {return new getAllNonFbaListedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllNonFbaListedItems_args)return this.equals((getAllNonFbaListedItems_args)that);return false;}public boolean equals(getAllNonFbaListedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllNonFbaListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllNonFbaListedItems_args typedOther = (getAllNonFbaListedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllNonFbaListedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllNonFbaListedItems_result implements org.apache.thrift.TBase<getAllNonFbaListedItems_result, getAllNonFbaListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllNonFbaListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllNonFbaListedItems_result.class, metaDataMap);}public getAllNonFbaListedItems_result() {}public getAllNonFbaListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllNonFbaListedItems_result(getAllNonFbaListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllNonFbaListedItems_result deepCopy() {return new getAllNonFbaListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllNonFbaListedItems_result)return this.equals((getAllNonFbaListedItems_result)that);return false;}public boolean equals(getAllNonFbaListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllNonFbaListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllNonFbaListedItems_result typedOther = (getAllNonFbaListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list282 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list282.size);for (int _i283 = 0; _i283 < _list282.size; ++_i283){Amazonlisted _elem284; // required_elem284 = new Amazonlisted();_elem284.read(iprot);this.success.add(_elem284);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter285 : this.success){_iter285.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllNonFbaListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemInventory_args implements org.apache.thrift.TBase<updateItemInventory_args, updateItemInventory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemInventory_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField HOLD_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdInventory", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField DEFAULT_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultInventory", org.apache.thrift.protocol.TType.I64, (short)3);private long itemId; // requiredprivate long holdInventory; // requiredprivate long defaultInventory; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),HOLD_INVENTORY((short)2, "holdInventory"),DEFAULT_INVENTORY((short)3, "defaultInventory");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // HOLD_INVENTORYreturn HOLD_INVENTORY;case 3: // DEFAULT_INVENTORYreturn DEFAULT_INVENTORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __HOLDINVENTORY_ISSET_ID = 1;private static final int __DEFAULTINVENTORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.HOLD_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("holdInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DEFAULT_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("defaultInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemInventory_args.class, metaDataMap);}public updateItemInventory_args() {}public updateItemInventory_args(long itemId,long holdInventory,long defaultInventory){this();this.itemId = itemId;setItemIdIsSet(true);this.holdInventory = holdInventory;setHoldInventoryIsSet(true);this.defaultInventory = defaultInventory;setDefaultInventoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateItemInventory_args(updateItemInventory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.holdInventory = other.holdInventory;this.defaultInventory = other.defaultInventory;}public updateItemInventory_args deepCopy() {return new updateItemInventory_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setHoldInventoryIsSet(false);this.holdInventory = 0;setDefaultInventoryIsSet(false);this.defaultInventory = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getHoldInventory() {return this.holdInventory;}public void setHoldInventory(long holdInventory) {this.holdInventory = holdInventory;setHoldInventoryIsSet(true);}public void unsetHoldInventory() {__isset_bit_vector.clear(__HOLDINVENTORY_ISSET_ID);}/** Returns true if field holdInventory is set (has been assigned a value) and false otherwise */public boolean isSetHoldInventory() {return __isset_bit_vector.get(__HOLDINVENTORY_ISSET_ID);}public void setHoldInventoryIsSet(boolean value) {__isset_bit_vector.set(__HOLDINVENTORY_ISSET_ID, value);}public long getDefaultInventory() {return this.defaultInventory;}public void setDefaultInventory(long defaultInventory) {this.defaultInventory = defaultInventory;setDefaultInventoryIsSet(true);}public void unsetDefaultInventory() {__isset_bit_vector.clear(__DEFAULTINVENTORY_ISSET_ID);}/** Returns true if field defaultInventory is set (has been assigned a value) and false otherwise */public boolean isSetDefaultInventory() {return __isset_bit_vector.get(__DEFAULTINVENTORY_ISSET_ID);}public void setDefaultInventoryIsSet(boolean value) {__isset_bit_vector.set(__DEFAULTINVENTORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case HOLD_INVENTORY:if (value == null) {unsetHoldInventory();} else {setHoldInventory((Long)value);}break;case DEFAULT_INVENTORY:if (value == null) {unsetDefaultInventory();} else {setDefaultInventory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case HOLD_INVENTORY:return Long.valueOf(getHoldInventory());case DEFAULT_INVENTORY:return Long.valueOf(getDefaultInventory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case HOLD_INVENTORY:return isSetHoldInventory();case DEFAULT_INVENTORY:return isSetDefaultInventory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemInventory_args)return this.equals((updateItemInventory_args)that);return false;}public boolean equals(updateItemInventory_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_holdInventory = true;boolean that_present_holdInventory = true;if (this_present_holdInventory || that_present_holdInventory) {if (!(this_present_holdInventory && that_present_holdInventory))return false;if (this.holdInventory != that.holdInventory)return false;}boolean this_present_defaultInventory = true;boolean that_present_defaultInventory = true;if (this_present_defaultInventory || that_present_defaultInventory) {if (!(this_present_defaultInventory && that_present_defaultInventory))return false;if (this.defaultInventory != that.defaultInventory)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemInventory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemInventory_args typedOther = (updateItemInventory_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHoldInventory()).compareTo(typedOther.isSetHoldInventory());if (lastComparison != 0) {return lastComparison;}if (isSetHoldInventory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdInventory, typedOther.holdInventory);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDefaultInventory()).compareTo(typedOther.isSetDefaultInventory());if (lastComparison != 0) {return lastComparison;}if (isSetDefaultInventory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultInventory, typedOther.defaultInventory);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // HOLD_INVENTORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.holdInventory = iprot.readI64();setHoldInventoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // DEFAULT_INVENTORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.defaultInventory = iprot.readI64();setDefaultInventoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(HOLD_INVENTORY_FIELD_DESC);oprot.writeI64(this.holdInventory);oprot.writeFieldEnd();oprot.writeFieldBegin(DEFAULT_INVENTORY_FIELD_DESC);oprot.writeI64(this.defaultInventory);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemInventory_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("holdInventory:");sb.append(this.holdInventory);first = false;if (!first) sb.append(", ");sb.append("defaultInventory:");sb.append(this.defaultInventory);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemInventory_result implements org.apache.thrift.TBase<updateItemInventory_result, updateItemInventory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemInventory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemInventory_result.class, metaDataMap);}public updateItemInventory_result() {}public updateItemInventory_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateItemInventory_result(updateItemInventory_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateItemInventory_result deepCopy() {return new updateItemInventory_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemInventory_result)return this.equals((updateItemInventory_result)that);return false;}public boolean equals(updateItemInventory_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemInventory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemInventory_result typedOther = (updateItemInventory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemInventory_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateTimestampForAmazonFeeds_args implements org.apache.thrift.TBase<updateTimestampForAmazonFeeds_args, updateTimestampForAmazonFeeds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTimestampForAmazonFeeds_args");private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.LIST, (short)2);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);private String type; // requiredprivate List<Long> sku; // requiredprivate long timestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TYPE((short)1, "type"),SKU((short)2, "sku"),TIMESTAMP((short)3, "timestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TYPEreturn TYPE;case 2: // SKUreturn SKU;case 3: // TIMESTAMPreturn TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TIMESTAMP_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SKU, new org.apache.thrift.meta_data.FieldMetaData("sku", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTimestampForAmazonFeeds_args.class, metaDataMap);}public updateTimestampForAmazonFeeds_args() {}public updateTimestampForAmazonFeeds_args(String type,List<Long> sku,long timestamp){this();this.type = type;this.sku = sku;this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateTimestampForAmazonFeeds_args(updateTimestampForAmazonFeeds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetType()) {this.type = other.type;}if (other.isSetSku()) {List<Long> __this__sku = new ArrayList<Long>();for (Long other_element : other.sku) {__this__sku.add(other_element);}this.sku = __this__sku;}this.timestamp = other.timestamp;}public updateTimestampForAmazonFeeds_args deepCopy() {return new updateTimestampForAmazonFeeds_args(this);}@Overridepublic void clear() {this.type = null;this.sku = null;setTimestampIsSet(false);this.timestamp = 0;}public String getType() {return this.type;}public void setType(String type) {this.type = type;}public void unsetType() {this.type = null;}/** Returns true if field type is set (has been assigned a value) and false otherwise */public boolean isSetType() {return this.type != null;}public void setTypeIsSet(boolean value) {if (!value) {this.type = null;}}public int getSkuSize() {return (this.sku == null) ? 0 : this.sku.size();}public java.util.Iterator<Long> getSkuIterator() {return (this.sku == null) ? null : this.sku.iterator();}public void addToSku(long elem) {if (this.sku == null) {this.sku = new ArrayList<Long>();}this.sku.add(elem);}public List<Long> getSku() {return this.sku;}public void setSku(List<Long> sku) {this.sku = sku;}public void unsetSku() {this.sku = null;}/** Returns true if field sku is set (has been assigned a value) and false otherwise */public boolean isSetSku() {return this.sku != null;}public void setSkuIsSet(boolean value) {if (!value) {this.sku = null;}}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TYPE:if (value == null) {unsetType();} else {setType((String)value);}break;case SKU:if (value == null) {unsetSku();} else {setSku((List<Long>)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TYPE:return getType();case SKU:return getSku();case TIMESTAMP:return Long.valueOf(getTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TYPE:return isSetType();case SKU:return isSetSku();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateTimestampForAmazonFeeds_args)return this.equals((updateTimestampForAmazonFeeds_args)that);return false;}public boolean equals(updateTimestampForAmazonFeeds_args that) {if (that == null)return false;boolean this_present_type = true && this.isSetType();boolean that_present_type = true && that.isSetType();if (this_present_type || that_present_type) {if (!(this_present_type && that_present_type))return false;if (!this.type.equals(that.type))return false;}boolean this_present_sku = true && this.isSetSku();boolean that_present_sku = true && that.isSetSku();if (this_present_sku || that_present_sku) {if (!(this_present_sku && that_present_sku))return false;if (!this.sku.equals(that.sku))return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateTimestampForAmazonFeeds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateTimestampForAmazonFeeds_args typedOther = (updateTimestampForAmazonFeeds_args)other;lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());if (lastComparison != 0) {return lastComparison;}if (isSetType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSku()).compareTo(typedOther.isSetSku());if (lastComparison != 0) {return lastComparison;}if (isSetSku()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sku, typedOther.sku);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TYPEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.type = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SKUif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list286 = iprot.readListBegin();this.sku = new ArrayList<Long>(_list286.size);for (int _i287 = 0; _i287 < _list286.size; ++_i287){long _elem288; // required_elem288 = iprot.readI64();this.sku.add(_elem288);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.type != null) {oprot.writeFieldBegin(TYPE_FIELD_DESC);oprot.writeString(this.type);oprot.writeFieldEnd();}if (this.sku != null) {oprot.writeFieldBegin(SKU_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.sku.size()));for (long _iter289 : this.sku){oprot.writeI64(_iter289);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateTimestampForAmazonFeeds_args(");boolean first = true;sb.append("type:");if (this.type == null) {sb.append("null");} else {sb.append(this.type);}first = false;if (!first) sb.append(", ");sb.append("sku:");if (this.sku == null) {sb.append("null");} else {sb.append(this.sku);}first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateTimestampForAmazonFeeds_result implements org.apache.thrift.TBase<updateTimestampForAmazonFeeds_result, updateTimestampForAmazonFeeds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTimestampForAmazonFeeds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTimestampForAmazonFeeds_result.class, metaDataMap);}public updateTimestampForAmazonFeeds_result() {}public updateTimestampForAmazonFeeds_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateTimestampForAmazonFeeds_result(updateTimestampForAmazonFeeds_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateTimestampForAmazonFeeds_result deepCopy() {return new updateTimestampForAmazonFeeds_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateTimestampForAmazonFeeds_result)return this.equals((updateTimestampForAmazonFeeds_result)that);return false;}public boolean equals(updateTimestampForAmazonFeeds_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateTimestampForAmazonFeeds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateTimestampForAmazonFeeds_result typedOther = (updateTimestampForAmazonFeeds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateTimestampForAmazonFeeds_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllParentCategories_args implements org.apache.thrift.TBase<getAllParentCategories_args, getAllParentCategories_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllParentCategories_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllParentCategories_args.class, metaDataMap);}public getAllParentCategories_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllParentCategories_args(getAllParentCategories_args other) {}public getAllParentCategories_args deepCopy() {return new getAllParentCategories_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllParentCategories_args)return this.equals((getAllParentCategories_args)that);return false;}public boolean equals(getAllParentCategories_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllParentCategories_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllParentCategories_args typedOther = (getAllParentCategories_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllParentCategories_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllParentCategories_result implements org.apache.thrift.TBase<getAllParentCategories_result, getAllParentCategories_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllParentCategories_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Category> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllParentCategories_result.class, metaDataMap);}public getAllParentCategories_result() {}public getAllParentCategories_result(List<Category> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllParentCategories_result(getAllParentCategories_result other) {if (other.isSetSuccess()) {List<Category> __this__success = new ArrayList<Category>();for (Category other_element : other.success) {__this__success.add(new Category(other_element));}this.success = __this__success;}}public getAllParentCategories_result deepCopy() {return new getAllParentCategories_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Category> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Category elem) {if (this.success == null) {this.success = new ArrayList<Category>();}this.success.add(elem);}public List<Category> getSuccess() {return this.success;}public void setSuccess(List<Category> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Category>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllParentCategories_result)return this.equals((getAllParentCategories_result)that);return false;}public boolean equals(getAllParentCategories_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllParentCategories_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllParentCategories_result typedOther = (getAllParentCategories_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list290 = iprot.readListBegin();this.success = new ArrayList<Category>(_list290.size);for (int _i291 = 0; _i291 < _list290.size; ++_i291){Category _elem292; // required_elem292 = new Category();_elem292.read(iprot);this.success.add(_elem292);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Category _iter293 : this.success){_iter293.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllParentCategories_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addPageViewEvent_args implements org.apache.thrift.TBase<addPageViewEvent_args, addPageViewEvent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPageViewEvent_args");private static final org.apache.thrift.protocol.TField PAGE_VIEW_EVENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("pageViewEvents", org.apache.thrift.protocol.TType.STRUCT, (short)1);private PageViewEvents pageViewEvents; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PAGE_VIEW_EVENTS((short)1, "pageViewEvents");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PAGE_VIEW_EVENTSreturn PAGE_VIEW_EVENTS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PAGE_VIEW_EVENTS, new org.apache.thrift.meta_data.FieldMetaData("pageViewEvents", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PageViewEvents.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPageViewEvent_args.class, metaDataMap);}public addPageViewEvent_args() {}public addPageViewEvent_args(PageViewEvents pageViewEvents){this();this.pageViewEvents = pageViewEvents;}/*** Performs a deep copy on <i>other</i>.*/public addPageViewEvent_args(addPageViewEvent_args other) {if (other.isSetPageViewEvents()) {this.pageViewEvents = new PageViewEvents(other.pageViewEvents);}}public addPageViewEvent_args deepCopy() {return new addPageViewEvent_args(this);}@Overridepublic void clear() {this.pageViewEvents = null;}public PageViewEvents getPageViewEvents() {return this.pageViewEvents;}public void setPageViewEvents(PageViewEvents pageViewEvents) {this.pageViewEvents = pageViewEvents;}public void unsetPageViewEvents() {this.pageViewEvents = null;}/** Returns true if field pageViewEvents is set (has been assigned a value) and false otherwise */public boolean isSetPageViewEvents() {return this.pageViewEvents != null;}public void setPageViewEventsIsSet(boolean value) {if (!value) {this.pageViewEvents = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PAGE_VIEW_EVENTS:if (value == null) {unsetPageViewEvents();} else {setPageViewEvents((PageViewEvents)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PAGE_VIEW_EVENTS:return getPageViewEvents();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PAGE_VIEW_EVENTS:return isSetPageViewEvents();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addPageViewEvent_args)return this.equals((addPageViewEvent_args)that);return false;}public boolean equals(addPageViewEvent_args that) {if (that == null)return false;boolean this_present_pageViewEvents = true && this.isSetPageViewEvents();boolean that_present_pageViewEvents = true && that.isSetPageViewEvents();if (this_present_pageViewEvents || that_present_pageViewEvents) {if (!(this_present_pageViewEvents && that_present_pageViewEvents))return false;if (!this.pageViewEvents.equals(that.pageViewEvents))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addPageViewEvent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addPageViewEvent_args typedOther = (addPageViewEvent_args)other;lastComparison = Boolean.valueOf(isSetPageViewEvents()).compareTo(typedOther.isSetPageViewEvents());if (lastComparison != 0) {return lastComparison;}if (isSetPageViewEvents()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pageViewEvents, typedOther.pageViewEvents);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PAGE_VIEW_EVENTSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.pageViewEvents = new PageViewEvents();this.pageViewEvents.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.pageViewEvents != null) {oprot.writeFieldBegin(PAGE_VIEW_EVENTS_FIELD_DESC);this.pageViewEvents.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addPageViewEvent_args(");boolean first = true;sb.append("pageViewEvents:");if (this.pageViewEvents == null) {sb.append("null");} else {sb.append(this.pageViewEvents);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addPageViewEvent_result implements org.apache.thrift.TBase<addPageViewEvent_result, addPageViewEvent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPageViewEvent_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPageViewEvent_result.class, metaDataMap);}public addPageViewEvent_result() {}/*** Performs a deep copy on <i>other</i>.*/public addPageViewEvent_result(addPageViewEvent_result other) {}public addPageViewEvent_result deepCopy() {return new addPageViewEvent_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addPageViewEvent_result)return this.equals((addPageViewEvent_result)that);return false;}public boolean equals(addPageViewEvent_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addPageViewEvent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addPageViewEvent_result typedOther = (addPageViewEvent_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addPageViewEvent_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCartEvent_args implements org.apache.thrift.TBase<addCartEvent_args, addCartEvent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCartEvent_args");private static final org.apache.thrift.protocol.TField CART_EVENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("cartEvents", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CartEvents cartEvents; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CART_EVENTS((short)1, "cartEvents");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CART_EVENTSreturn CART_EVENTS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CART_EVENTS, new org.apache.thrift.meta_data.FieldMetaData("cartEvents", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CartEvents.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCartEvent_args.class, metaDataMap);}public addCartEvent_args() {}public addCartEvent_args(CartEvents cartEvents){this();this.cartEvents = cartEvents;}/*** Performs a deep copy on <i>other</i>.*/public addCartEvent_args(addCartEvent_args other) {if (other.isSetCartEvents()) {this.cartEvents = new CartEvents(other.cartEvents);}}public addCartEvent_args deepCopy() {return new addCartEvent_args(this);}@Overridepublic void clear() {this.cartEvents = null;}public CartEvents getCartEvents() {return this.cartEvents;}public void setCartEvents(CartEvents cartEvents) {this.cartEvents = cartEvents;}public void unsetCartEvents() {this.cartEvents = null;}/** Returns true if field cartEvents is set (has been assigned a value) and false otherwise */public boolean isSetCartEvents() {return this.cartEvents != null;}public void setCartEventsIsSet(boolean value) {if (!value) {this.cartEvents = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CART_EVENTS:if (value == null) {unsetCartEvents();} else {setCartEvents((CartEvents)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CART_EVENTS:return getCartEvents();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CART_EVENTS:return isSetCartEvents();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCartEvent_args)return this.equals((addCartEvent_args)that);return false;}public boolean equals(addCartEvent_args that) {if (that == null)return false;boolean this_present_cartEvents = true && this.isSetCartEvents();boolean that_present_cartEvents = true && that.isSetCartEvents();if (this_present_cartEvents || that_present_cartEvents) {if (!(this_present_cartEvents && that_present_cartEvents))return false;if (!this.cartEvents.equals(that.cartEvents))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCartEvent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCartEvent_args typedOther = (addCartEvent_args)other;lastComparison = Boolean.valueOf(isSetCartEvents()).compareTo(typedOther.isSetCartEvents());if (lastComparison != 0) {return lastComparison;}if (isSetCartEvents()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartEvents, typedOther.cartEvents);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CART_EVENTSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cartEvents = new CartEvents();this.cartEvents.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.cartEvents != null) {oprot.writeFieldBegin(CART_EVENTS_FIELD_DESC);this.cartEvents.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCartEvent_args(");boolean first = true;sb.append("cartEvents:");if (this.cartEvents == null) {sb.append("null");} else {sb.append(this.cartEvents);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCartEvent_result implements org.apache.thrift.TBase<addCartEvent_result, addCartEvent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCartEvent_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCartEvent_result.class, metaDataMap);}public addCartEvent_result() {}/*** Performs a deep copy on <i>other</i>.*/public addCartEvent_result(addCartEvent_result other) {}public addCartEvent_result deepCopy() {return new addCartEvent_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCartEvent_result)return this.equals((addCartEvent_result)that);return false;}public boolean equals(addCartEvent_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCartEvent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCartEvent_result typedOther = (addCartEvent_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCartEvent_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addEbayItem_args implements org.apache.thrift.TBase<addEbayItem_args, addEbayItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addEbayItem_args");private static final org.apache.thrift.protocol.TField EBAY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);private EbayItem ebayItem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EBAY_ITEM((short)1, "ebayItem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EBAY_ITEMreturn EBAY_ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EBAY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("ebayItem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addEbayItem_args.class, metaDataMap);}public addEbayItem_args() {}public addEbayItem_args(EbayItem ebayItem){this();this.ebayItem = ebayItem;}/*** Performs a deep copy on <i>other</i>.*/public addEbayItem_args(addEbayItem_args other) {if (other.isSetEbayItem()) {this.ebayItem = new EbayItem(other.ebayItem);}}public addEbayItem_args deepCopy() {return new addEbayItem_args(this);}@Overridepublic void clear() {this.ebayItem = null;}public EbayItem getEbayItem() {return this.ebayItem;}public void setEbayItem(EbayItem ebayItem) {this.ebayItem = ebayItem;}public void unsetEbayItem() {this.ebayItem = null;}/** Returns true if field ebayItem is set (has been assigned a value) and false otherwise */public boolean isSetEbayItem() {return this.ebayItem != null;}public void setEbayItemIsSet(boolean value) {if (!value) {this.ebayItem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EBAY_ITEM:if (value == null) {unsetEbayItem();} else {setEbayItem((EbayItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EBAY_ITEM:return getEbayItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EBAY_ITEM:return isSetEbayItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addEbayItem_args)return this.equals((addEbayItem_args)that);return false;}public boolean equals(addEbayItem_args that) {if (that == null)return false;boolean this_present_ebayItem = true && this.isSetEbayItem();boolean that_present_ebayItem = true && that.isSetEbayItem();if (this_present_ebayItem || that_present_ebayItem) {if (!(this_present_ebayItem && that_present_ebayItem))return false;if (!this.ebayItem.equals(that.ebayItem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addEbayItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addEbayItem_args typedOther = (addEbayItem_args)other;lastComparison = Boolean.valueOf(isSetEbayItem()).compareTo(typedOther.isSetEbayItem());if (lastComparison != 0) {return lastComparison;}if (isSetEbayItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayItem, typedOther.ebayItem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EBAY_ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ebayItem = new EbayItem();this.ebayItem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.ebayItem != null) {oprot.writeFieldBegin(EBAY_ITEM_FIELD_DESC);this.ebayItem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addEbayItem_args(");boolean first = true;sb.append("ebayItem:");if (this.ebayItem == null) {sb.append("null");} else {sb.append(this.ebayItem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addEbayItem_result implements org.apache.thrift.TBase<addEbayItem_result, addEbayItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addEbayItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addEbayItem_result.class, metaDataMap);}public addEbayItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public addEbayItem_result(addEbayItem_result other) {}public addEbayItem_result deepCopy() {return new addEbayItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addEbayItem_result)return this.equals((addEbayItem_result)that);return false;}public boolean equals(addEbayItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addEbayItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addEbayItem_result typedOther = (addEbayItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addEbayItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEbayItem_args implements org.apache.thrift.TBase<getEbayItem_args, getEbayItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayItem_args");private static final org.apache.thrift.protocol.TField LISTING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("listingId", org.apache.thrift.protocol.TType.STRING, (short)1);private String listingId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {LISTING_ID((short)1, "listingId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // LISTING_IDreturn LISTING_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.LISTING_ID, new org.apache.thrift.meta_data.FieldMetaData("listingId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayItem_args.class, metaDataMap);}public getEbayItem_args() {}public getEbayItem_args(String listingId){this();this.listingId = listingId;}/*** Performs a deep copy on <i>other</i>.*/public getEbayItem_args(getEbayItem_args other) {if (other.isSetListingId()) {this.listingId = other.listingId;}}public getEbayItem_args deepCopy() {return new getEbayItem_args(this);}@Overridepublic void clear() {this.listingId = null;}public String getListingId() {return this.listingId;}public void setListingId(String listingId) {this.listingId = listingId;}public void unsetListingId() {this.listingId = null;}/** Returns true if field listingId is set (has been assigned a value) and false otherwise */public boolean isSetListingId() {return this.listingId != null;}public void setListingIdIsSet(boolean value) {if (!value) {this.listingId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case LISTING_ID:if (value == null) {unsetListingId();} else {setListingId((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case LISTING_ID:return getListingId();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case LISTING_ID:return isSetListingId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEbayItem_args)return this.equals((getEbayItem_args)that);return false;}public boolean equals(getEbayItem_args that) {if (that == null)return false;boolean this_present_listingId = true && this.isSetListingId();boolean that_present_listingId = true && that.isSetListingId();if (this_present_listingId || that_present_listingId) {if (!(this_present_listingId && that_present_listingId))return false;if (!this.listingId.equals(that.listingId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEbayItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEbayItem_args typedOther = (getEbayItem_args)other;lastComparison = Boolean.valueOf(isSetListingId()).compareTo(typedOther.isSetListingId());if (lastComparison != 0) {return lastComparison;}if (isSetListingId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingId, typedOther.listingId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // LISTING_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.listingId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.listingId != null) {oprot.writeFieldBegin(LISTING_ID_FIELD_DESC);oprot.writeString(this.listingId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEbayItem_args(");boolean first = true;sb.append("listingId:");if (this.listingId == null) {sb.append("null");} else {sb.append(this.listingId);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEbayItem_result implements org.apache.thrift.TBase<getEbayItem_result, getEbayItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private EbayItem success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayItem_result.class, metaDataMap);}public getEbayItem_result() {}public getEbayItem_result(EbayItem success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getEbayItem_result(getEbayItem_result other) {if (other.isSetSuccess()) {this.success = new EbayItem(other.success);}}public getEbayItem_result deepCopy() {return new getEbayItem_result(this);}@Overridepublic void clear() {this.success = null;}public EbayItem getSuccess() {return this.success;}public void setSuccess(EbayItem success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((EbayItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEbayItem_result)return this.equals((getEbayItem_result)that);return false;}public boolean equals(getEbayItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEbayItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEbayItem_result typedOther = (getEbayItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new EbayItem();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEbayItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateEbayItem_args implements org.apache.thrift.TBase<updateEbayItem_args, updateEbayItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateEbayItem_args");private static final org.apache.thrift.protocol.TField EBAY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);private EbayItem ebayItem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EBAY_ITEM((short)1, "ebayItem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EBAY_ITEMreturn EBAY_ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EBAY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("ebayItem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateEbayItem_args.class, metaDataMap);}public updateEbayItem_args() {}public updateEbayItem_args(EbayItem ebayItem){this();this.ebayItem = ebayItem;}/*** Performs a deep copy on <i>other</i>.*/public updateEbayItem_args(updateEbayItem_args other) {if (other.isSetEbayItem()) {this.ebayItem = new EbayItem(other.ebayItem);}}public updateEbayItem_args deepCopy() {return new updateEbayItem_args(this);}@Overridepublic void clear() {this.ebayItem = null;}public EbayItem getEbayItem() {return this.ebayItem;}public void setEbayItem(EbayItem ebayItem) {this.ebayItem = ebayItem;}public void unsetEbayItem() {this.ebayItem = null;}/** Returns true if field ebayItem is set (has been assigned a value) and false otherwise */public boolean isSetEbayItem() {return this.ebayItem != null;}public void setEbayItemIsSet(boolean value) {if (!value) {this.ebayItem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EBAY_ITEM:if (value == null) {unsetEbayItem();} else {setEbayItem((EbayItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EBAY_ITEM:return getEbayItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EBAY_ITEM:return isSetEbayItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateEbayItem_args)return this.equals((updateEbayItem_args)that);return false;}public boolean equals(updateEbayItem_args that) {if (that == null)return false;boolean this_present_ebayItem = true && this.isSetEbayItem();boolean that_present_ebayItem = true && that.isSetEbayItem();if (this_present_ebayItem || that_present_ebayItem) {if (!(this_present_ebayItem && that_present_ebayItem))return false;if (!this.ebayItem.equals(that.ebayItem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateEbayItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateEbayItem_args typedOther = (updateEbayItem_args)other;lastComparison = Boolean.valueOf(isSetEbayItem()).compareTo(typedOther.isSetEbayItem());if (lastComparison != 0) {return lastComparison;}if (isSetEbayItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayItem, typedOther.ebayItem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EBAY_ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ebayItem = new EbayItem();this.ebayItem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.ebayItem != null) {oprot.writeFieldBegin(EBAY_ITEM_FIELD_DESC);this.ebayItem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateEbayItem_args(");boolean first = true;sb.append("ebayItem:");if (this.ebayItem == null) {sb.append("null");} else {sb.append(this.ebayItem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateEbayItem_result implements org.apache.thrift.TBase<updateEbayItem_result, updateEbayItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateEbayItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateEbayItem_result.class, metaDataMap);}public updateEbayItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateEbayItem_result(updateEbayItem_result other) {}public updateEbayItem_result deepCopy() {return new updateEbayItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateEbayItem_result)return this.equals((updateEbayItem_result)that);return false;}public boolean equals(updateEbayItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateEbayItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateEbayItem_result typedOther = (updateEbayItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateEbayItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonListedItems_args implements org.apache.thrift.TBase<getAmazonListedItems_args, getAmazonListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonListedItems_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonListedItems_args.class, metaDataMap);}public getAmazonListedItems_args() {}public getAmazonListedItems_args(long offset,long limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAmazonListedItems_args(getAmazonListedItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getAmazonListedItems_args deepCopy() {return new getAmazonListedItems_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonListedItems_args)return this.equals((getAmazonListedItems_args)that);return false;}public boolean equals(getAmazonListedItems_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonListedItems_args typedOther = (getAmazonListedItems_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonListedItems_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonListedItems_result implements org.apache.thrift.TBase<getAmazonListedItems_result, getAmazonListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonListedItems_result.class, metaDataMap);}public getAmazonListedItems_result() {}public getAmazonListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAmazonListedItems_result(getAmazonListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAmazonListedItems_result deepCopy() {return new getAmazonListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonListedItems_result)return this.equals((getAmazonListedItems_result)that);return false;}public boolean equals(getAmazonListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonListedItems_result typedOther = (getAmazonListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list294 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list294.size);for (int _i295 = 0; _i295 < _list294.size; ++_i295){Amazonlisted _elem296; // required_elem296 = new Amazonlisted();_elem296.read(iprot);this.success.add(_elem296);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter297 : this.success){_iter297.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAmazonAttributesInBulk_args implements org.apache.thrift.TBase<updateAmazonAttributesInBulk_args, updateAmazonAttributesInBulk_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonAttributesInBulk_args");private static final org.apache.thrift.protocol.TField AMAZONLISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonlisted", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<Long,Amazonlisted> amazonlisted; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AMAZONLISTED((short)1, "amazonlisted");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AMAZONLISTEDreturn AMAZONLISTED;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AMAZONLISTED, new org.apache.thrift.meta_data.FieldMetaData("amazonlisted", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonAttributesInBulk_args.class, metaDataMap);}public updateAmazonAttributesInBulk_args() {}public updateAmazonAttributesInBulk_args(Map<Long,Amazonlisted> amazonlisted){this();this.amazonlisted = amazonlisted;}/*** Performs a deep copy on <i>other</i>.*/public updateAmazonAttributesInBulk_args(updateAmazonAttributesInBulk_args other) {if (other.isSetAmazonlisted()) {Map<Long,Amazonlisted> __this__amazonlisted = new HashMap<Long,Amazonlisted>();for (Map.Entry<Long, Amazonlisted> other_element : other.amazonlisted.entrySet()) {Long other_element_key = other_element.getKey();Amazonlisted other_element_value = other_element.getValue();Long __this__amazonlisted_copy_key = other_element_key;Amazonlisted __this__amazonlisted_copy_value = new Amazonlisted(other_element_value);__this__amazonlisted.put(__this__amazonlisted_copy_key, __this__amazonlisted_copy_value);}this.amazonlisted = __this__amazonlisted;}}public updateAmazonAttributesInBulk_args deepCopy() {return new updateAmazonAttributesInBulk_args(this);}@Overridepublic void clear() {this.amazonlisted = null;}public int getAmazonlistedSize() {return (this.amazonlisted == null) ? 0 : this.amazonlisted.size();}public void putToAmazonlisted(long key, Amazonlisted val) {if (this.amazonlisted == null) {this.amazonlisted = new HashMap<Long,Amazonlisted>();}this.amazonlisted.put(key, val);}public Map<Long,Amazonlisted> getAmazonlisted() {return this.amazonlisted;}public void setAmazonlisted(Map<Long,Amazonlisted> amazonlisted) {this.amazonlisted = amazonlisted;}public void unsetAmazonlisted() {this.amazonlisted = null;}/** Returns true if field amazonlisted is set (has been assigned a value) and false otherwise */public boolean isSetAmazonlisted() {return this.amazonlisted != null;}public void setAmazonlistedIsSet(boolean value) {if (!value) {this.amazonlisted = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AMAZONLISTED:if (value == null) {unsetAmazonlisted();} else {setAmazonlisted((Map<Long,Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AMAZONLISTED:return getAmazonlisted();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AMAZONLISTED:return isSetAmazonlisted();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAmazonAttributesInBulk_args)return this.equals((updateAmazonAttributesInBulk_args)that);return false;}public boolean equals(updateAmazonAttributesInBulk_args that) {if (that == null)return false;boolean this_present_amazonlisted = true && this.isSetAmazonlisted();boolean that_present_amazonlisted = true && that.isSetAmazonlisted();if (this_present_amazonlisted || that_present_amazonlisted) {if (!(this_present_amazonlisted && that_present_amazonlisted))return false;if (!this.amazonlisted.equals(that.amazonlisted))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAmazonAttributesInBulk_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAmazonAttributesInBulk_args typedOther = (updateAmazonAttributesInBulk_args)other;lastComparison = Boolean.valueOf(isSetAmazonlisted()).compareTo(typedOther.isSetAmazonlisted());if (lastComparison != 0) {return lastComparison;}if (isSetAmazonlisted()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonlisted, typedOther.amazonlisted);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AMAZONLISTEDif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map298 = iprot.readMapBegin();this.amazonlisted = new HashMap<Long,Amazonlisted>(2*_map298.size);for (int _i299 = 0; _i299 < _map298.size; ++_i299){long _key300; // requiredAmazonlisted _val301; // required_key300 = iprot.readI64();_val301 = new Amazonlisted();_val301.read(iprot);this.amazonlisted.put(_key300, _val301);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.amazonlisted != null) {oprot.writeFieldBegin(AMAZONLISTED_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.amazonlisted.size()));for (Map.Entry<Long, Amazonlisted> _iter302 : this.amazonlisted.entrySet()){oprot.writeI64(_iter302.getKey());_iter302.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAmazonAttributesInBulk_args(");boolean first = true;sb.append("amazonlisted:");if (this.amazonlisted == null) {sb.append("null");} else {sb.append(this.amazonlisted);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAmazonAttributesInBulk_result implements org.apache.thrift.TBase<updateAmazonAttributesInBulk_result, updateAmazonAttributesInBulk_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonAttributesInBulk_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonAttributesInBulk_result.class, metaDataMap);}public updateAmazonAttributesInBulk_result() {}public updateAmazonAttributesInBulk_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateAmazonAttributesInBulk_result(updateAmazonAttributesInBulk_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateAmazonAttributesInBulk_result deepCopy() {return new updateAmazonAttributesInBulk_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAmazonAttributesInBulk_result)return this.equals((updateAmazonAttributesInBulk_result)that);return false;}public boolean equals(updateAmazonAttributesInBulk_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAmazonAttributesInBulk_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAmazonAttributesInBulk_result typedOther = (updateAmazonAttributesInBulk_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAmazonAttributesInBulk_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnFba_args implements org.apache.thrift.TBase<getAllItemstoListOnFba_args, getAllItemstoListOnFba_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFba_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFba_args.class, metaDataMap);}public getAllItemstoListOnFba_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnFba_args(getAllItemstoListOnFba_args other) {}public getAllItemstoListOnFba_args deepCopy() {return new getAllItemstoListOnFba_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnFba_args)return this.equals((getAllItemstoListOnFba_args)that);return false;}public boolean equals(getAllItemstoListOnFba_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnFba_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnFba_args typedOther = (getAllItemstoListOnFba_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnFba_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnFba_result implements org.apache.thrift.TBase<getAllItemstoListOnFba_result, getAllItemstoListOnFba_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFba_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFba_result.class, metaDataMap);}public getAllItemstoListOnFba_result() {}public getAllItemstoListOnFba_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnFba_result(getAllItemstoListOnFba_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllItemstoListOnFba_result deepCopy() {return new getAllItemstoListOnFba_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnFba_result)return this.equals((getAllItemstoListOnFba_result)that);return false;}public boolean equals(getAllItemstoListOnFba_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnFba_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnFba_result typedOther = (getAllItemstoListOnFba_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list303 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list303.size);for (int _i304 = 0; _i304 < _list303.size; ++_i304){Amazonlisted _elem305; // required_elem305 = new Amazonlisted();_elem305.read(iprot);this.success.add(_elem305);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter306 : this.success){_iter306.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnFba_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnNonFba_args implements org.apache.thrift.TBase<getAllItemstoListOnNonFba_args, getAllItemstoListOnNonFba_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnNonFba_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnNonFba_args.class, metaDataMap);}public getAllItemstoListOnNonFba_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnNonFba_args(getAllItemstoListOnNonFba_args other) {}public getAllItemstoListOnNonFba_args deepCopy() {return new getAllItemstoListOnNonFba_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnNonFba_args)return this.equals((getAllItemstoListOnNonFba_args)that);return false;}public boolean equals(getAllItemstoListOnNonFba_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnNonFba_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnNonFba_args typedOther = (getAllItemstoListOnNonFba_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnNonFba_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnNonFba_result implements org.apache.thrift.TBase<getAllItemstoListOnNonFba_result, getAllItemstoListOnNonFba_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnNonFba_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnNonFba_result.class, metaDataMap);}public getAllItemstoListOnNonFba_result() {}public getAllItemstoListOnNonFba_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnNonFba_result(getAllItemstoListOnNonFba_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllItemstoListOnNonFba_result deepCopy() {return new getAllItemstoListOnNonFba_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnNonFba_result)return this.equals((getAllItemstoListOnNonFba_result)that);return false;}public boolean equals(getAllItemstoListOnNonFba_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnNonFba_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnNonFba_result typedOther = (getAllItemstoListOnNonFba_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list307 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list307.size);for (int _i308 = 0; _i308 < _list307.size; ++_i308){Amazonlisted _elem309; // required_elem309 = new Amazonlisted();_elem309.read(iprot);this.success.add(_elem309);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter310 : this.success){_iter310.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnNonFba_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAsin_args implements org.apache.thrift.TBase<updateAsin_args, updateAsin_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_args");private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<Long,Item> item; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM((short)1, "item");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEMreturn ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_args.class, metaDataMap);}public updateAsin_args() {}public updateAsin_args(Map<Long,Item> item){this();this.item = item;}/*** Performs a deep copy on <i>other</i>.*/public updateAsin_args(updateAsin_args other) {if (other.isSetItem()) {Map<Long,Item> __this__item = new HashMap<Long,Item>();for (Map.Entry<Long, Item> other_element : other.item.entrySet()) {Long other_element_key = other_element.getKey();Item other_element_value = other_element.getValue();Long __this__item_copy_key = other_element_key;Item __this__item_copy_value = new Item(other_element_value);__this__item.put(__this__item_copy_key, __this__item_copy_value);}this.item = __this__item;}}public updateAsin_args deepCopy() {return new updateAsin_args(this);}@Overridepublic void clear() {this.item = null;}public int getItemSize() {return (this.item == null) ? 0 : this.item.size();}public void putToItem(long key, Item val) {if (this.item == null) {this.item = new HashMap<Long,Item>();}this.item.put(key, val);}public Map<Long,Item> getItem() {return this.item;}public void setItem(Map<Long,Item> item) {this.item = item;}public void unsetItem() {this.item = null;}/** Returns true if field item is set (has been assigned a value) and false otherwise */public boolean isSetItem() {return this.item != null;}public void setItemIsSet(boolean value) {if (!value) {this.item = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM:if (value == null) {unsetItem();} else {setItem((Map<Long,Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM:return getItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM:return isSetItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAsin_args)return this.equals((updateAsin_args)that);return false;}public boolean equals(updateAsin_args that) {if (that == null)return false;boolean this_present_item = true && this.isSetItem();boolean that_present_item = true && that.isSetItem();if (this_present_item || that_present_item) {if (!(this_present_item && that_present_item))return false;if (!this.item.equals(that.item))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAsin_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAsin_args typedOther = (updateAsin_args)other;lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());if (lastComparison != 0) {return lastComparison;}if (isSetItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEMif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map311 = iprot.readMapBegin();this.item = new HashMap<Long,Item>(2*_map311.size);for (int _i312 = 0; _i312 < _map311.size; ++_i312){long _key313; // requiredItem _val314; // required_key313 = iprot.readI64();_val314 = new Item();_val314.read(iprot);this.item.put(_key313, _val314);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.item != null) {oprot.writeFieldBegin(ITEM_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.item.size()));for (Map.Entry<Long, Item> _iter315 : this.item.entrySet()){oprot.writeI64(_iter315.getKey());_iter315.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAsin_args(");boolean first = true;sb.append("item:");if (this.item == null) {sb.append("null");} else {sb.append(this.item);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAsin_result implements org.apache.thrift.TBase<updateAsin_result, updateAsin_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_result.class, metaDataMap);}public updateAsin_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateAsin_result(updateAsin_result other) {}public updateAsin_result deepCopy() {return new updateAsin_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAsin_result)return this.equals((updateAsin_result)that);return false;}public boolean equals(updateAsin_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAsin_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAsin_result typedOther = (updateAsin_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAsin_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateSnapdealItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_args, addOrUpdateSnapdealItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_args");private static final org.apache.thrift.protocol.TField SNAPDEALITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealitem", org.apache.thrift.protocol.TType.STRUCT, (short)-1);private SnapdealItem snapdealitem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SNAPDEALITEM((short)-1, "snapdealitem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // SNAPDEALITEMreturn SNAPDEALITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SNAPDEALITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealitem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_args.class, metaDataMap);}public addOrUpdateSnapdealItem_args() {}public addOrUpdateSnapdealItem_args(SnapdealItem snapdealitem){this();this.snapdealitem = snapdealitem;}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateSnapdealItem_args(addOrUpdateSnapdealItem_args other) {if (other.isSetSnapdealitem()) {this.snapdealitem = new SnapdealItem(other.snapdealitem);}}public addOrUpdateSnapdealItem_args deepCopy() {return new addOrUpdateSnapdealItem_args(this);}@Overridepublic void clear() {this.snapdealitem = null;}public SnapdealItem getSnapdealitem() {return this.snapdealitem;}public void setSnapdealitem(SnapdealItem snapdealitem) {this.snapdealitem = snapdealitem;}public void unsetSnapdealitem() {this.snapdealitem = null;}/** Returns true if field snapdealitem is set (has been assigned a value) and false otherwise */public boolean isSetSnapdealitem() {return this.snapdealitem != null;}public void setSnapdealitemIsSet(boolean value) {if (!value) {this.snapdealitem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SNAPDEALITEM:if (value == null) {unsetSnapdealitem();} else {setSnapdealitem((SnapdealItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SNAPDEALITEM:return getSnapdealitem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SNAPDEALITEM:return isSetSnapdealitem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateSnapdealItem_args)return this.equals((addOrUpdateSnapdealItem_args)that);return false;}public boolean equals(addOrUpdateSnapdealItem_args that) {if (that == null)return false;boolean this_present_snapdealitem = true && this.isSetSnapdealitem();boolean that_present_snapdealitem = true && that.isSetSnapdealitem();if (this_present_snapdealitem || that_present_snapdealitem) {if (!(this_present_snapdealitem && that_present_snapdealitem))return false;if (!this.snapdealitem.equals(that.snapdealitem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateSnapdealItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateSnapdealItem_args typedOther = (addOrUpdateSnapdealItem_args)other;lastComparison = Boolean.valueOf(isSetSnapdealitem()).compareTo(typedOther.isSetSnapdealitem());if (lastComparison != 0) {return lastComparison;}if (isSetSnapdealitem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealitem, typedOther.snapdealitem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // SNAPDEALITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.snapdealitem = new SnapdealItem();this.snapdealitem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.snapdealitem != null) {oprot.writeFieldBegin(SNAPDEALITEM_FIELD_DESC);this.snapdealitem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_args(");boolean first = true;sb.append("snapdealitem:");if (this.snapdealitem == null) {sb.append("null");} else {sb.append(this.snapdealitem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateSnapdealItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_result, addOrUpdateSnapdealItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_result.class, metaDataMap);}public addOrUpdateSnapdealItem_result() {}public addOrUpdateSnapdealItem_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateSnapdealItem_result(addOrUpdateSnapdealItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addOrUpdateSnapdealItem_result deepCopy() {return new addOrUpdateSnapdealItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateSnapdealItem_result)return this.equals((addOrUpdateSnapdealItem_result)that);return false;}public boolean equals(addOrUpdateSnapdealItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateSnapdealItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateSnapdealItem_result typedOther = (addOrUpdateSnapdealItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItem_args implements org.apache.thrift.TBase<getSnapdealItem_args, getSnapdealItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_args.class, metaDataMap);}public getSnapdealItem_args() {}public getSnapdealItem_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItem_args(getSnapdealItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getSnapdealItem_args deepCopy() {return new getSnapdealItem_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItem_args)return this.equals((getSnapdealItem_args)that);return false;}public boolean equals(getSnapdealItem_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItem_args typedOther = (getSnapdealItem_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItem_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItem_result implements org.apache.thrift.TBase<getSnapdealItem_result, getSnapdealItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private SnapdealItem success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_result.class, metaDataMap);}public getSnapdealItem_result() {}public getSnapdealItem_result(SnapdealItem success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItem_result(getSnapdealItem_result other) {if (other.isSetSuccess()) {this.success = new SnapdealItem(other.success);}}public getSnapdealItem_result deepCopy() {return new getSnapdealItem_result(this);}@Overridepublic void clear() {this.success = null;}public SnapdealItem getSuccess() {return this.success;}public void setSuccess(SnapdealItem success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((SnapdealItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItem_result)return this.equals((getSnapdealItem_result)that);return false;}public boolean equals(getSnapdealItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItem_result typedOther = (getSnapdealItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new SnapdealItem();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItemDetails_args implements org.apache.thrift.TBase<getSnapdealItemDetails_args, getSnapdealItemDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItemDetails_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItemDetails_args.class, metaDataMap);}public getSnapdealItemDetails_args() {}public getSnapdealItemDetails_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItemDetails_args(getSnapdealItemDetails_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getSnapdealItemDetails_args deepCopy() {return new getSnapdealItemDetails_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItemDetails_args)return this.equals((getSnapdealItemDetails_args)that);return false;}public boolean equals(getSnapdealItemDetails_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItemDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItemDetails_args typedOther = (getSnapdealItemDetails_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItemDetails_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItemDetails_result implements org.apache.thrift.TBase<getSnapdealItemDetails_result, getSnapdealItemDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItemDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private SnapdealItemDetails success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItemDetails_result.class, metaDataMap);}public getSnapdealItemDetails_result() {}public getSnapdealItemDetails_result(SnapdealItemDetails success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItemDetails_result(getSnapdealItemDetails_result other) {if (other.isSetSuccess()) {this.success = new SnapdealItemDetails(other.success);}}public getSnapdealItemDetails_result deepCopy() {return new getSnapdealItemDetails_result(this);}@Overridepublic void clear() {this.success = null;}public SnapdealItemDetails getSuccess() {return this.success;}public void setSuccess(SnapdealItemDetails success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((SnapdealItemDetails)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItemDetails_result)return this.equals((getSnapdealItemDetails_result)that);return false;}public boolean equals(getSnapdealItemDetails_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItemDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItemDetails_result typedOther = (getSnapdealItemDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new SnapdealItemDetails();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItemDetails_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSnapdealItems_args implements org.apache.thrift.TBase<getAllSnapdealItems_args, getAllSnapdealItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealItems_args.class, metaDataMap);}public getAllSnapdealItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllSnapdealItems_args(getAllSnapdealItems_args other) {}public getAllSnapdealItems_args deepCopy() {return new getAllSnapdealItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSnapdealItems_args)return this.equals((getAllSnapdealItems_args)that);return false;}public boolean equals(getAllSnapdealItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSnapdealItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSnapdealItems_args typedOther = (getAllSnapdealItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSnapdealItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSnapdealItems_result implements org.apache.thrift.TBase<getAllSnapdealItems_result, getAllSnapdealItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<SnapdealItemDetails> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealItems_result.class, metaDataMap);}public getAllSnapdealItems_result() {}public getAllSnapdealItems_result(List<SnapdealItemDetails> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllSnapdealItems_result(getAllSnapdealItems_result other) {if (other.isSetSuccess()) {List<SnapdealItemDetails> __this__success = new ArrayList<SnapdealItemDetails>();for (SnapdealItemDetails other_element : other.success) {__this__success.add(new SnapdealItemDetails(other_element));}this.success = __this__success;}}public getAllSnapdealItems_result deepCopy() {return new getAllSnapdealItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<SnapdealItemDetails> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(SnapdealItemDetails elem) {if (this.success == null) {this.success = new ArrayList<SnapdealItemDetails>();}this.success.add(elem);}public List<SnapdealItemDetails> getSuccess() {return this.success;}public void setSuccess(List<SnapdealItemDetails> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<SnapdealItemDetails>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSnapdealItems_result)return this.equals((getAllSnapdealItems_result)that);return false;}public boolean equals(getAllSnapdealItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSnapdealItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSnapdealItems_result typedOther = (getAllSnapdealItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list316 = iprot.readListBegin();this.success = new ArrayList<SnapdealItemDetails>(_list316.size);for (int _i317 = 0; _i317 < _list316.size; ++_i317){SnapdealItemDetails _elem318; // required_elem318 = new SnapdealItemDetails();_elem318.read(iprot);this.success.add(_elem318);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (SnapdealItemDetails _iter319 : this.success){_iter319.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSnapdealItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItems_args implements org.apache.thrift.TBase<getSnapdealItems_args, getSnapdealItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItems_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItems_args.class, metaDataMap);}public getSnapdealItems_args() {}public getSnapdealItems_args(long offset,long limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItems_args(getSnapdealItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getSnapdealItems_args deepCopy() {return new getSnapdealItems_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItems_args)return this.equals((getSnapdealItems_args)that);return false;}public boolean equals(getSnapdealItems_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItems_args typedOther = (getSnapdealItems_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItems_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItems_result implements org.apache.thrift.TBase<getSnapdealItems_result, getSnapdealItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<SnapdealItemDetails> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItems_result.class, metaDataMap);}public getSnapdealItems_result() {}public getSnapdealItems_result(List<SnapdealItemDetails> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItems_result(getSnapdealItems_result other) {if (other.isSetSuccess()) {List<SnapdealItemDetails> __this__success = new ArrayList<SnapdealItemDetails>();for (SnapdealItemDetails other_element : other.success) {__this__success.add(new SnapdealItemDetails(other_element));}this.success = __this__success;}}public getSnapdealItems_result deepCopy() {return new getSnapdealItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<SnapdealItemDetails> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(SnapdealItemDetails elem) {if (this.success == null) {this.success = new ArrayList<SnapdealItemDetails>();}this.success.add(elem);}public List<SnapdealItemDetails> getSuccess() {return this.success;}public void setSuccess(List<SnapdealItemDetails> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<SnapdealItemDetails>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItems_result)return this.equals((getSnapdealItems_result)that);return false;}public boolean equals(getSnapdealItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItems_result typedOther = (getSnapdealItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list320 = iprot.readListBegin();this.success = new ArrayList<SnapdealItemDetails>(_list320.size);for (int _i321 = 0; _i321 < _list320.size; ++_i321){SnapdealItemDetails _elem322; // required_elem322 = new SnapdealItemDetails();_elem322.read(iprot);this.success.add(_elem322);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (SnapdealItemDetails _iter323 : this.success){_iter323.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchSnapdealItems_args implements org.apache.thrift.TBase<searchSnapdealItems_args, searchSnapdealItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchSnapdealItems_args");private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private List<String> searchTerm; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERM((short)1, "searchTerm"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMreturn SEARCH_TERM;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchSnapdealItems_args.class, metaDataMap);}public searchSnapdealItems_args() {}public searchSnapdealItems_args(List<String> searchTerm,long offset,long limit){this();this.searchTerm = searchTerm;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public searchSnapdealItems_args(searchSnapdealItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSearchTerm()) {List<String> __this__searchTerm = new ArrayList<String>();for (String other_element : other.searchTerm) {__this__searchTerm.add(other_element);}this.searchTerm = __this__searchTerm;}this.offset = other.offset;this.limit = other.limit;}public searchSnapdealItems_args deepCopy() {return new searchSnapdealItems_args(this);}@Overridepublic void clear() {this.searchTerm = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public int getSearchTermSize() {return (this.searchTerm == null) ? 0 : this.searchTerm.size();}public java.util.Iterator<String> getSearchTermIterator() {return (this.searchTerm == null) ? null : this.searchTerm.iterator();}public void addToSearchTerm(String elem) {if (this.searchTerm == null) {this.searchTerm = new ArrayList<String>();}this.searchTerm.add(elem);}public List<String> getSearchTerm() {return this.searchTerm;}public void setSearchTerm(List<String> searchTerm) {this.searchTerm = searchTerm;}public void unsetSearchTerm() {this.searchTerm = null;}/** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerm() {return this.searchTerm != null;}public void setSearchTermIsSet(boolean value) {if (!value) {this.searchTerm = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERM:if (value == null) {unsetSearchTerm();} else {setSearchTerm((List<String>)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERM:return getSearchTerm();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERM:return isSetSearchTerm();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchSnapdealItems_args)return this.equals((searchSnapdealItems_args)that);return false;}public boolean equals(searchSnapdealItems_args that) {if (that == null)return false;boolean this_present_searchTerm = true && this.isSetSearchTerm();boolean that_present_searchTerm = true && that.isSetSearchTerm();if (this_present_searchTerm || that_present_searchTerm) {if (!(this_present_searchTerm && that_present_searchTerm))return false;if (!this.searchTerm.equals(that.searchTerm))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchSnapdealItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchSnapdealItems_args typedOther = (searchSnapdealItems_args)other;lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerm()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list324 = iprot.readListBegin();this.searchTerm = new ArrayList<String>(_list324.size);for (int _i325 = 0; _i325 < _list324.size; ++_i325){String _elem326; // required_elem326 = iprot.readString();this.searchTerm.add(_elem326);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerm != null) {oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));for (String _iter327 : this.searchTerm){oprot.writeString(_iter327);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchSnapdealItems_args(");boolean first = true;sb.append("searchTerm:");if (this.searchTerm == null) {sb.append("null");} else {sb.append(this.searchTerm);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchSnapdealItems_result implements org.apache.thrift.TBase<searchSnapdealItems_result, searchSnapdealItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchSnapdealItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<SnapdealItemDetails> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchSnapdealItems_result.class, metaDataMap);}public searchSnapdealItems_result() {}public searchSnapdealItems_result(List<SnapdealItemDetails> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public searchSnapdealItems_result(searchSnapdealItems_result other) {if (other.isSetSuccess()) {List<SnapdealItemDetails> __this__success = new ArrayList<SnapdealItemDetails>();for (SnapdealItemDetails other_element : other.success) {__this__success.add(new SnapdealItemDetails(other_element));}this.success = __this__success;}}public searchSnapdealItems_result deepCopy() {return new searchSnapdealItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<SnapdealItemDetails> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(SnapdealItemDetails elem) {if (this.success == null) {this.success = new ArrayList<SnapdealItemDetails>();}this.success.add(elem);}public List<SnapdealItemDetails> getSuccess() {return this.success;}public void setSuccess(List<SnapdealItemDetails> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<SnapdealItemDetails>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchSnapdealItems_result)return this.equals((searchSnapdealItems_result)that);return false;}public boolean equals(searchSnapdealItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchSnapdealItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchSnapdealItems_result typedOther = (searchSnapdealItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list328 = iprot.readListBegin();this.success = new ArrayList<SnapdealItemDetails>(_list328.size);for (int _i329 = 0; _i329 < _list328.size; ++_i329){SnapdealItemDetails _elem330; // required_elem330 = new SnapdealItemDetails();_elem330.read(iprot);this.success.add(_elem330);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (SnapdealItemDetails _iter331 : this.success){_iter331.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchSnapdealItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForSnapdealItems_args implements org.apache.thrift.TBase<getCountForSnapdealItems_args, getCountForSnapdealItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForSnapdealItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForSnapdealItems_args.class, metaDataMap);}public getCountForSnapdealItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getCountForSnapdealItems_args(getCountForSnapdealItems_args other) {}public getCountForSnapdealItems_args deepCopy() {return new getCountForSnapdealItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForSnapdealItems_args)return this.equals((getCountForSnapdealItems_args)that);return false;}public boolean equals(getCountForSnapdealItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForSnapdealItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForSnapdealItems_args typedOther = (getCountForSnapdealItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForSnapdealItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForSnapdealItems_result implements org.apache.thrift.TBase<getCountForSnapdealItems_result, getCountForSnapdealItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForSnapdealItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForSnapdealItems_result.class, metaDataMap);}public getCountForSnapdealItems_result() {}public getCountForSnapdealItems_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCountForSnapdealItems_result(getCountForSnapdealItems_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getCountForSnapdealItems_result deepCopy() {return new getCountForSnapdealItems_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForSnapdealItems_result)return this.equals((getCountForSnapdealItems_result)that);return false;}public boolean equals(getCountForSnapdealItems_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForSnapdealItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForSnapdealItems_result typedOther = (getCountForSnapdealItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForSnapdealItems_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealSearchResultCount_args implements org.apache.thrift.TBase<getSnapdealSearchResultCount_args, getSnapdealSearchResultCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealSearchResultCount_args");private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);private List<String> searchTerm; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERM((short)1, "searchTerm");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMreturn SEARCH_TERM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealSearchResultCount_args.class, metaDataMap);}public getSnapdealSearchResultCount_args() {}public getSnapdealSearchResultCount_args(List<String> searchTerm){this();this.searchTerm = searchTerm;}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealSearchResultCount_args(getSnapdealSearchResultCount_args other) {if (other.isSetSearchTerm()) {List<String> __this__searchTerm = new ArrayList<String>();for (String other_element : other.searchTerm) {__this__searchTerm.add(other_element);}this.searchTerm = __this__searchTerm;}}public getSnapdealSearchResultCount_args deepCopy() {return new getSnapdealSearchResultCount_args(this);}@Overridepublic void clear() {this.searchTerm = null;}public int getSearchTermSize() {return (this.searchTerm == null) ? 0 : this.searchTerm.size();}public java.util.Iterator<String> getSearchTermIterator() {return (this.searchTerm == null) ? null : this.searchTerm.iterator();}public void addToSearchTerm(String elem) {if (this.searchTerm == null) {this.searchTerm = new ArrayList<String>();}this.searchTerm.add(elem);}public List<String> getSearchTerm() {return this.searchTerm;}public void setSearchTerm(List<String> searchTerm) {this.searchTerm = searchTerm;}public void unsetSearchTerm() {this.searchTerm = null;}/** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerm() {return this.searchTerm != null;}public void setSearchTermIsSet(boolean value) {if (!value) {this.searchTerm = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERM:if (value == null) {unsetSearchTerm();} else {setSearchTerm((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERM:return getSearchTerm();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERM:return isSetSearchTerm();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealSearchResultCount_args)return this.equals((getSnapdealSearchResultCount_args)that);return false;}public boolean equals(getSnapdealSearchResultCount_args that) {if (that == null)return false;boolean this_present_searchTerm = true && this.isSetSearchTerm();boolean that_present_searchTerm = true && that.isSetSearchTerm();if (this_present_searchTerm || that_present_searchTerm) {if (!(this_present_searchTerm && that_present_searchTerm))return false;if (!this.searchTerm.equals(that.searchTerm))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealSearchResultCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealSearchResultCount_args typedOther = (getSnapdealSearchResultCount_args)other;lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerm()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list332 = iprot.readListBegin();this.searchTerm = new ArrayList<String>(_list332.size);for (int _i333 = 0; _i333 < _list332.size; ++_i333){String _elem334; // required_elem334 = iprot.readString();this.searchTerm.add(_elem334);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerm != null) {oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));for (String _iter335 : this.searchTerm){oprot.writeString(_iter335);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealSearchResultCount_args(");boolean first = true;sb.append("searchTerm:");if (this.searchTerm == null) {sb.append("null");} else {sb.append(this.searchTerm);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealSearchResultCount_result implements org.apache.thrift.TBase<getSnapdealSearchResultCount_result, getSnapdealSearchResultCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealSearchResultCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealSearchResultCount_result.class, metaDataMap);}public getSnapdealSearchResultCount_result() {}public getSnapdealSearchResultCount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealSearchResultCount_result(getSnapdealSearchResultCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getSnapdealSearchResultCount_result deepCopy() {return new getSnapdealSearchResultCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealSearchResultCount_result)return this.equals((getSnapdealSearchResultCount_result)that);return false;}public boolean equals(getSnapdealSearchResultCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealSearchResultCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealSearchResultCount_result typedOther = (getSnapdealSearchResultCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealSearchResultCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrefferedInsurerForItem_args implements org.apache.thrift.TBase<getPrefferedInsurerForItem_args, getPrefferedInsurerForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrefferedInsurerForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField INSURER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerType", org.apache.thrift.protocol.TType.I32, (short)2);private long itemId; // requiredprivate InsurerType insurerType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),/**** @see InsurerType*/INSURER_TYPE((short)2, "insurerType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // INSURER_TYPEreturn INSURER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.INSURER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("insurerType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InsurerType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrefferedInsurerForItem_args.class, metaDataMap);}public getPrefferedInsurerForItem_args() {}public getPrefferedInsurerForItem_args(long itemId,InsurerType insurerType){this();this.itemId = itemId;setItemIdIsSet(true);this.insurerType = insurerType;}/*** Performs a deep copy on <i>other</i>.*/public getPrefferedInsurerForItem_args(getPrefferedInsurerForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;if (other.isSetInsurerType()) {this.insurerType = other.insurerType;}}public getPrefferedInsurerForItem_args deepCopy() {return new getPrefferedInsurerForItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;this.insurerType = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}/**** @see InsurerType*/public InsurerType getInsurerType() {return this.insurerType;}/**** @see InsurerType*/public void setInsurerType(InsurerType insurerType) {this.insurerType = insurerType;}public void unsetInsurerType() {this.insurerType = null;}/** Returns true if field insurerType is set (has been assigned a value) and false otherwise */public boolean isSetInsurerType() {return this.insurerType != null;}public void setInsurerTypeIsSet(boolean value) {if (!value) {this.insurerType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case INSURER_TYPE:if (value == null) {unsetInsurerType();} else {setInsurerType((InsurerType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case INSURER_TYPE:return getInsurerType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case INSURER_TYPE:return isSetInsurerType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrefferedInsurerForItem_args)return this.equals((getPrefferedInsurerForItem_args)that);return false;}public boolean equals(getPrefferedInsurerForItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_insurerType = true && this.isSetInsurerType();boolean that_present_insurerType = true && that.isSetInsurerType();if (this_present_insurerType || that_present_insurerType) {if (!(this_present_insurerType && that_present_insurerType))return false;if (!this.insurerType.equals(that.insurerType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrefferedInsurerForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrefferedInsurerForItem_args typedOther = (getPrefferedInsurerForItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetInsurerType()).compareTo(typedOther.isSetInsurerType());if (lastComparison != 0) {return lastComparison;}if (isSetInsurerType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerType, typedOther.insurerType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // INSURER_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.insurerType = InsurerType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();if (this.insurerType != null) {oprot.writeFieldBegin(INSURER_TYPE_FIELD_DESC);oprot.writeI32(this.insurerType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrefferedInsurerForItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("insurerType:");if (this.insurerType == null) {sb.append("null");} else {sb.append(this.insurerType);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrefferedInsurerForItem_result implements org.apache.thrift.TBase<getPrefferedInsurerForItem_result, getPrefferedInsurerForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrefferedInsurerForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrefferedInsurerForItem_result.class, metaDataMap);}public getPrefferedInsurerForItem_result() {}public getPrefferedInsurerForItem_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPrefferedInsurerForItem_result(getPrefferedInsurerForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getPrefferedInsurerForItem_result deepCopy() {return new getPrefferedInsurerForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrefferedInsurerForItem_result)return this.equals((getPrefferedInsurerForItem_result)that);return false;}public boolean equals(getPrefferedInsurerForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrefferedInsurerForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrefferedInsurerForItem_result typedOther = (getPrefferedInsurerForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrefferedInsurerForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItembySkuAtSnapdeal_args implements org.apache.thrift.TBase<getSnapdealItembySkuAtSnapdeal_args, getSnapdealItembySkuAtSnapdeal_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItembySkuAtSnapdeal_args");private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)-1);private String skuAtSnapdeal; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SKU_AT_SNAPDEAL((short)-1, "skuAtSnapdeal");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // SKU_AT_SNAPDEALreturn SKU_AT_SNAPDEAL;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItembySkuAtSnapdeal_args.class, metaDataMap);}public getSnapdealItembySkuAtSnapdeal_args() {}public getSnapdealItembySkuAtSnapdeal_args(String skuAtSnapdeal){this();this.skuAtSnapdeal = skuAtSnapdeal;}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItembySkuAtSnapdeal_args(getSnapdealItembySkuAtSnapdeal_args other) {if (other.isSetSkuAtSnapdeal()) {this.skuAtSnapdeal = other.skuAtSnapdeal;}}public getSnapdealItembySkuAtSnapdeal_args deepCopy() {return new getSnapdealItembySkuAtSnapdeal_args(this);}@Overridepublic void clear() {this.skuAtSnapdeal = null;}public String getSkuAtSnapdeal() {return this.skuAtSnapdeal;}public void setSkuAtSnapdeal(String skuAtSnapdeal) {this.skuAtSnapdeal = skuAtSnapdeal;}public void unsetSkuAtSnapdeal() {this.skuAtSnapdeal = null;}/** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */public boolean isSetSkuAtSnapdeal() {return this.skuAtSnapdeal != null;}public void setSkuAtSnapdealIsSet(boolean value) {if (!value) {this.skuAtSnapdeal = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SKU_AT_SNAPDEAL:if (value == null) {unsetSkuAtSnapdeal();} else {setSkuAtSnapdeal((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SKU_AT_SNAPDEAL:return getSkuAtSnapdeal();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SKU_AT_SNAPDEAL:return isSetSkuAtSnapdeal();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItembySkuAtSnapdeal_args)return this.equals((getSnapdealItembySkuAtSnapdeal_args)that);return false;}public boolean equals(getSnapdealItembySkuAtSnapdeal_args that) {if (that == null)return false;boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))return false;if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItembySkuAtSnapdeal_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItembySkuAtSnapdeal_args typedOther = (getSnapdealItembySkuAtSnapdeal_args)other;lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());if (lastComparison != 0) {return lastComparison;}if (isSetSkuAtSnapdeal()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // SKU_AT_SNAPDEALif (field.type == org.apache.thrift.protocol.TType.STRING) {this.skuAtSnapdeal = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.skuAtSnapdeal != null) {oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);oprot.writeString(this.skuAtSnapdeal);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItembySkuAtSnapdeal_args(");boolean first = true;sb.append("skuAtSnapdeal:");if (this.skuAtSnapdeal == null) {sb.append("null");} else {sb.append(this.skuAtSnapdeal);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSnapdealItembySkuAtSnapdeal_result implements org.apache.thrift.TBase<getSnapdealItembySkuAtSnapdeal_result, getSnapdealItembySkuAtSnapdeal_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItembySkuAtSnapdeal_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private SnapdealItem success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItembySkuAtSnapdeal_result.class, metaDataMap);}public getSnapdealItembySkuAtSnapdeal_result() {}public getSnapdealItembySkuAtSnapdeal_result(SnapdealItem success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getSnapdealItembySkuAtSnapdeal_result(getSnapdealItembySkuAtSnapdeal_result other) {if (other.isSetSuccess()) {this.success = new SnapdealItem(other.success);}}public getSnapdealItembySkuAtSnapdeal_result deepCopy() {return new getSnapdealItembySkuAtSnapdeal_result(this);}@Overridepublic void clear() {this.success = null;}public SnapdealItem getSuccess() {return this.success;}public void setSuccess(SnapdealItem success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((SnapdealItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSnapdealItembySkuAtSnapdeal_result)return this.equals((getSnapdealItembySkuAtSnapdeal_result)that);return false;}public boolean equals(getSnapdealItembySkuAtSnapdeal_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSnapdealItembySkuAtSnapdeal_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSnapdealItembySkuAtSnapdeal_result typedOther = (getSnapdealItembySkuAtSnapdeal_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new SnapdealItem();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSnapdealItembySkuAtSnapdeal_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductFeedSubmit_args implements org.apache.thrift.TBase<getProductFeedSubmit_args, getProductFeedSubmit_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductFeedSubmit_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);private long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOGITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductFeedSubmit_args.class, metaDataMap);}public getProductFeedSubmit_args() {}public getProductFeedSubmit_args(long catalogItemId){this();this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getProductFeedSubmit_args(getProductFeedSubmit_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalogItemId = other.catalogItemId;}public getProductFeedSubmit_args deepCopy() {return new getProductFeedSubmit_args(this);}@Overridepublic void clear() {setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductFeedSubmit_args)return this.equals((getProductFeedSubmit_args)that);return false;}public boolean equals(getProductFeedSubmit_args that) {if (that == null)return false;boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductFeedSubmit_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductFeedSubmit_args typedOther = (getProductFeedSubmit_args)other;lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductFeedSubmit_args(");boolean first = true;sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductFeedSubmit_result implements org.apache.thrift.TBase<getProductFeedSubmit_result, getProductFeedSubmit_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductFeedSubmit_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ProductFeedSubmit success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductFeedSubmit.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductFeedSubmit_result.class, metaDataMap);}public getProductFeedSubmit_result() {}public getProductFeedSubmit_result(ProductFeedSubmit success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getProductFeedSubmit_result(getProductFeedSubmit_result other) {if (other.isSetSuccess()) {this.success = new ProductFeedSubmit(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getProductFeedSubmit_result deepCopy() {return new getProductFeedSubmit_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public ProductFeedSubmit getSuccess() {return this.success;}public void setSuccess(ProductFeedSubmit success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((ProductFeedSubmit)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductFeedSubmit_result)return this.equals((getProductFeedSubmit_result)that);return false;}public boolean equals(getProductFeedSubmit_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductFeedSubmit_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductFeedSubmit_result typedOther = (getProductFeedSubmit_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new ProductFeedSubmit();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductFeedSubmit_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addProductFeedSubmit_args implements org.apache.thrift.TBase<addProductFeedSubmit_args, addProductFeedSubmit_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductFeedSubmit_args");private static final org.apache.thrift.protocol.TField PRODUCT_FEED_SUBMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("productFeedSubmit", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ProductFeedSubmit productFeedSubmit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PRODUCT_FEED_SUBMIT((short)1, "productFeedSubmit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PRODUCT_FEED_SUBMITreturn PRODUCT_FEED_SUBMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PRODUCT_FEED_SUBMIT, new org.apache.thrift.meta_data.FieldMetaData("productFeedSubmit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductFeedSubmit.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductFeedSubmit_args.class, metaDataMap);}public addProductFeedSubmit_args() {}public addProductFeedSubmit_args(ProductFeedSubmit productFeedSubmit){this();this.productFeedSubmit = productFeedSubmit;}/*** Performs a deep copy on <i>other</i>.*/public addProductFeedSubmit_args(addProductFeedSubmit_args other) {if (other.isSetProductFeedSubmit()) {this.productFeedSubmit = new ProductFeedSubmit(other.productFeedSubmit);}}public addProductFeedSubmit_args deepCopy() {return new addProductFeedSubmit_args(this);}@Overridepublic void clear() {this.productFeedSubmit = null;}public ProductFeedSubmit getProductFeedSubmit() {return this.productFeedSubmit;}public void setProductFeedSubmit(ProductFeedSubmit productFeedSubmit) {this.productFeedSubmit = productFeedSubmit;}public void unsetProductFeedSubmit() {this.productFeedSubmit = null;}/** Returns true if field productFeedSubmit is set (has been assigned a value) and false otherwise */public boolean isSetProductFeedSubmit() {return this.productFeedSubmit != null;}public void setProductFeedSubmitIsSet(boolean value) {if (!value) {this.productFeedSubmit = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PRODUCT_FEED_SUBMIT:if (value == null) {unsetProductFeedSubmit();} else {setProductFeedSubmit((ProductFeedSubmit)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PRODUCT_FEED_SUBMIT:return getProductFeedSubmit();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PRODUCT_FEED_SUBMIT:return isSetProductFeedSubmit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addProductFeedSubmit_args)return this.equals((addProductFeedSubmit_args)that);return false;}public boolean equals(addProductFeedSubmit_args that) {if (that == null)return false;boolean this_present_productFeedSubmit = true && this.isSetProductFeedSubmit();boolean that_present_productFeedSubmit = true && that.isSetProductFeedSubmit();if (this_present_productFeedSubmit || that_present_productFeedSubmit) {if (!(this_present_productFeedSubmit && that_present_productFeedSubmit))return false;if (!this.productFeedSubmit.equals(that.productFeedSubmit))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addProductFeedSubmit_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addProductFeedSubmit_args typedOther = (addProductFeedSubmit_args)other;lastComparison = Boolean.valueOf(isSetProductFeedSubmit()).compareTo(typedOther.isSetProductFeedSubmit());if (lastComparison != 0) {return lastComparison;}if (isSetProductFeedSubmit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productFeedSubmit, typedOther.productFeedSubmit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PRODUCT_FEED_SUBMITif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.productFeedSubmit = new ProductFeedSubmit();this.productFeedSubmit.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.productFeedSubmit != null) {oprot.writeFieldBegin(PRODUCT_FEED_SUBMIT_FIELD_DESC);this.productFeedSubmit.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addProductFeedSubmit_args(");boolean first = true;sb.append("productFeedSubmit:");if (this.productFeedSubmit == null) {sb.append("null");} else {sb.append(this.productFeedSubmit);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addProductFeedSubmit_result implements org.apache.thrift.TBase<addProductFeedSubmit_result, addProductFeedSubmit_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductFeedSubmit_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductFeedSubmit_result.class, metaDataMap);}public addProductFeedSubmit_result() {}public addProductFeedSubmit_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addProductFeedSubmit_result(addProductFeedSubmit_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addProductFeedSubmit_result deepCopy() {return new addProductFeedSubmit_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addProductFeedSubmit_result)return this.equals((addProductFeedSubmit_result)that);return false;}public boolean equals(addProductFeedSubmit_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addProductFeedSubmit_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addProductFeedSubmit_result typedOther = (addProductFeedSubmit_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addProductFeedSubmit_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateProductFeedSubmit_args implements org.apache.thrift.TBase<updateProductFeedSubmit_args, updateProductFeedSubmit_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateProductFeedSubmit_args");private static final org.apache.thrift.protocol.TField PRODUCT_FEED_SUBMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("productFeedSubmit", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ProductFeedSubmit productFeedSubmit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PRODUCT_FEED_SUBMIT((short)1, "productFeedSubmit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PRODUCT_FEED_SUBMITreturn PRODUCT_FEED_SUBMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PRODUCT_FEED_SUBMIT, new org.apache.thrift.meta_data.FieldMetaData("productFeedSubmit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductFeedSubmit.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateProductFeedSubmit_args.class, metaDataMap);}public updateProductFeedSubmit_args() {}public updateProductFeedSubmit_args(ProductFeedSubmit productFeedSubmit){this();this.productFeedSubmit = productFeedSubmit;}/*** Performs a deep copy on <i>other</i>.*/public updateProductFeedSubmit_args(updateProductFeedSubmit_args other) {if (other.isSetProductFeedSubmit()) {this.productFeedSubmit = new ProductFeedSubmit(other.productFeedSubmit);}}public updateProductFeedSubmit_args deepCopy() {return new updateProductFeedSubmit_args(this);}@Overridepublic void clear() {this.productFeedSubmit = null;}public ProductFeedSubmit getProductFeedSubmit() {return this.productFeedSubmit;}public void setProductFeedSubmit(ProductFeedSubmit productFeedSubmit) {this.productFeedSubmit = productFeedSubmit;}public void unsetProductFeedSubmit() {this.productFeedSubmit = null;}/** Returns true if field productFeedSubmit is set (has been assigned a value) and false otherwise */public boolean isSetProductFeedSubmit() {return this.productFeedSubmit != null;}public void setProductFeedSubmitIsSet(boolean value) {if (!value) {this.productFeedSubmit = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PRODUCT_FEED_SUBMIT:if (value == null) {unsetProductFeedSubmit();} else {setProductFeedSubmit((ProductFeedSubmit)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PRODUCT_FEED_SUBMIT:return getProductFeedSubmit();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PRODUCT_FEED_SUBMIT:return isSetProductFeedSubmit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateProductFeedSubmit_args)return this.equals((updateProductFeedSubmit_args)that);return false;}public boolean equals(updateProductFeedSubmit_args that) {if (that == null)return false;boolean this_present_productFeedSubmit = true && this.isSetProductFeedSubmit();boolean that_present_productFeedSubmit = true && that.isSetProductFeedSubmit();if (this_present_productFeedSubmit || that_present_productFeedSubmit) {if (!(this_present_productFeedSubmit && that_present_productFeedSubmit))return false;if (!this.productFeedSubmit.equals(that.productFeedSubmit))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateProductFeedSubmit_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateProductFeedSubmit_args typedOther = (updateProductFeedSubmit_args)other;lastComparison = Boolean.valueOf(isSetProductFeedSubmit()).compareTo(typedOther.isSetProductFeedSubmit());if (lastComparison != 0) {return lastComparison;}if (isSetProductFeedSubmit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productFeedSubmit, typedOther.productFeedSubmit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PRODUCT_FEED_SUBMITif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.productFeedSubmit = new ProductFeedSubmit();this.productFeedSubmit.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.productFeedSubmit != null) {oprot.writeFieldBegin(PRODUCT_FEED_SUBMIT_FIELD_DESC);this.productFeedSubmit.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateProductFeedSubmit_args(");boolean first = true;sb.append("productFeedSubmit:");if (this.productFeedSubmit == null) {sb.append("null");} else {sb.append(this.productFeedSubmit);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateProductFeedSubmit_result implements org.apache.thrift.TBase<updateProductFeedSubmit_result, updateProductFeedSubmit_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateProductFeedSubmit_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateProductFeedSubmit_result.class, metaDataMap);}public updateProductFeedSubmit_result() {}public updateProductFeedSubmit_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public updateProductFeedSubmit_result(updateProductFeedSubmit_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public updateProductFeedSubmit_result deepCopy() {return new updateProductFeedSubmit_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateProductFeedSubmit_result)return this.equals((updateProductFeedSubmit_result)that);return false;}public boolean equals(updateProductFeedSubmit_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateProductFeedSubmit_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateProductFeedSubmit_result typedOther = (updateProductFeedSubmit_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateProductFeedSubmit_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteProductFeedSubmit_args implements org.apache.thrift.TBase<deleteProductFeedSubmit_args, deleteProductFeedSubmit_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteProductFeedSubmit_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);private long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOGITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteProductFeedSubmit_args.class, metaDataMap);}public deleteProductFeedSubmit_args() {}public deleteProductFeedSubmit_args(long catalogItemId){this();this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteProductFeedSubmit_args(deleteProductFeedSubmit_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalogItemId = other.catalogItemId;}public deleteProductFeedSubmit_args deepCopy() {return new deleteProductFeedSubmit_args(this);}@Overridepublic void clear() {setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteProductFeedSubmit_args)return this.equals((deleteProductFeedSubmit_args)that);return false;}public boolean equals(deleteProductFeedSubmit_args that) {if (that == null)return false;boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteProductFeedSubmit_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteProductFeedSubmit_args typedOther = (deleteProductFeedSubmit_args)other;lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteProductFeedSubmit_args(");boolean first = true;sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteProductFeedSubmit_result implements org.apache.thrift.TBase<deleteProductFeedSubmit_result, deleteProductFeedSubmit_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteProductFeedSubmit_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteProductFeedSubmit_result.class, metaDataMap);}public deleteProductFeedSubmit_result() {}public deleteProductFeedSubmit_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public deleteProductFeedSubmit_result(deleteProductFeedSubmit_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public deleteProductFeedSubmit_result deepCopy() {return new deleteProductFeedSubmit_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteProductFeedSubmit_result)return this.equals((deleteProductFeedSubmit_result)that);return false;}public boolean equals(deleteProductFeedSubmit_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteProductFeedSubmit_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteProductFeedSubmit_result typedOther = (deleteProductFeedSubmit_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteProductFeedSubmit_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllProductFeedSubmit_args implements org.apache.thrift.TBase<getAllProductFeedSubmit_args, getAllProductFeedSubmit_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProductFeedSubmit_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProductFeedSubmit_args.class, metaDataMap);}public getAllProductFeedSubmit_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllProductFeedSubmit_args(getAllProductFeedSubmit_args other) {}public getAllProductFeedSubmit_args deepCopy() {return new getAllProductFeedSubmit_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllProductFeedSubmit_args)return this.equals((getAllProductFeedSubmit_args)that);return false;}public boolean equals(getAllProductFeedSubmit_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllProductFeedSubmit_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllProductFeedSubmit_args typedOther = (getAllProductFeedSubmit_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllProductFeedSubmit_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllProductFeedSubmit_result implements org.apache.thrift.TBase<getAllProductFeedSubmit_result, getAllProductFeedSubmit_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProductFeedSubmit_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<ProductFeedSubmit> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductFeedSubmit.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProductFeedSubmit_result.class, metaDataMap);}public getAllProductFeedSubmit_result() {}public getAllProductFeedSubmit_result(List<ProductFeedSubmit> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllProductFeedSubmit_result(getAllProductFeedSubmit_result other) {if (other.isSetSuccess()) {List<ProductFeedSubmit> __this__success = new ArrayList<ProductFeedSubmit>();for (ProductFeedSubmit other_element : other.success) {__this__success.add(new ProductFeedSubmit(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllProductFeedSubmit_result deepCopy() {return new getAllProductFeedSubmit_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ProductFeedSubmit> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ProductFeedSubmit elem) {if (this.success == null) {this.success = new ArrayList<ProductFeedSubmit>();}this.success.add(elem);}public List<ProductFeedSubmit> getSuccess() {return this.success;}public void setSuccess(List<ProductFeedSubmit> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ProductFeedSubmit>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllProductFeedSubmit_result)return this.equals((getAllProductFeedSubmit_result)that);return false;}public boolean equals(getAllProductFeedSubmit_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllProductFeedSubmit_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllProductFeedSubmit_result typedOther = (getAllProductFeedSubmit_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list336 = iprot.readListBegin();this.success = new ArrayList<ProductFeedSubmit>(_list336.size);for (int _i337 = 0; _i337 < _list336.size; ++_i337){ProductFeedSubmit _elem338; // required_elem338 = new ProductFeedSubmit();_elem338.read(iprot);this.success.add(_elem338);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ProductFeedSubmit _iter339 : this.success){_iter339.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllProductFeedSubmit_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketplacedetailsForItem_args implements org.apache.thrift.TBase<getMarketplacedetailsForItem_args, getMarketplacedetailsForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplacedetailsForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long sourceId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),SOURCE_ID((short)2, "sourceId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCE_IDreturn SOURCE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __SOURCEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplacedetailsForItem_args.class, metaDataMap);}public getMarketplacedetailsForItem_args() {}public getMarketplacedetailsForItem_args(long itemId,long sourceId){this();this.itemId = itemId;setItemIdIsSet(true);this.sourceId = sourceId;setSourceIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getMarketplacedetailsForItem_args(getMarketplacedetailsForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.sourceId = other.sourceId;}public getMarketplacedetailsForItem_args deepCopy() {return new getMarketplacedetailsForItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setSourceIdIsSet(false);this.sourceId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getSourceId() {return this.sourceId;}public void setSourceId(long sourceId) {this.sourceId = sourceId;setSourceIdIsSet(true);}public void unsetSourceId() {__isset_bit_vector.clear(__SOURCEID_ISSET_ID);}/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */public boolean isSetSourceId() {return __isset_bit_vector.get(__SOURCEID_ISSET_ID);}public void setSourceIdIsSet(boolean value) {__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case SOURCE_ID:if (value == null) {unsetSourceId();} else {setSourceId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case SOURCE_ID:return Long.valueOf(getSourceId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case SOURCE_ID:return isSetSourceId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketplacedetailsForItem_args)return this.equals((getMarketplacedetailsForItem_args)that);return false;}public boolean equals(getMarketplacedetailsForItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_sourceId = true;boolean that_present_sourceId = true;if (this_present_sourceId || that_present_sourceId) {if (!(this_present_sourceId && that_present_sourceId))return false;if (this.sourceId != that.sourceId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketplacedetailsForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketplacedetailsForItem_args typedOther = (getMarketplacedetailsForItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());if (lastComparison != 0) {return lastComparison;}if (isSetSourceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.sourceId = iprot.readI64();setSourceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);oprot.writeI64(this.sourceId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketplacedetailsForItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("sourceId:");sb.append(this.sourceId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketplacedetailsForItem_result implements org.apache.thrift.TBase<getMarketplacedetailsForItem_result, getMarketplacedetailsForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplacedetailsForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private MarketplaceItems success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplacedetailsForItem_result.class, metaDataMap);}public getMarketplacedetailsForItem_result() {}public getMarketplacedetailsForItem_result(MarketplaceItems success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getMarketplacedetailsForItem_result(getMarketplacedetailsForItem_result other) {if (other.isSetSuccess()) {this.success = new MarketplaceItems(other.success);}}public getMarketplacedetailsForItem_result deepCopy() {return new getMarketplacedetailsForItem_result(this);}@Overridepublic void clear() {this.success = null;}public MarketplaceItems getSuccess() {return this.success;}public void setSuccess(MarketplaceItems success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((MarketplaceItems)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketplacedetailsForItem_result)return this.equals((getMarketplacedetailsForItem_result)that);return false;}public boolean equals(getMarketplacedetailsForItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketplacedetailsForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketplacedetailsForItem_result typedOther = (getMarketplacedetailsForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new MarketplaceItems();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketplacedetailsForItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateMarketplaceAttributesForItem_args implements org.apache.thrift.TBase<updateMarketplaceAttributesForItem_args, updateMarketplaceAttributesForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMarketplaceAttributesForItem_args");private static final org.apache.thrift.protocol.TField MARKET_PLACE_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("marketPlaceItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);private MarketplaceItems marketPlaceItem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {MARKET_PLACE_ITEM((short)1, "marketPlaceItem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // MARKET_PLACE_ITEMreturn MARKET_PLACE_ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.MARKET_PLACE_ITEM, new org.apache.thrift.meta_data.FieldMetaData("marketPlaceItem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMarketplaceAttributesForItem_args.class, metaDataMap);}public updateMarketplaceAttributesForItem_args() {}public updateMarketplaceAttributesForItem_args(MarketplaceItems marketPlaceItem){this();this.marketPlaceItem = marketPlaceItem;}/*** Performs a deep copy on <i>other</i>.*/public updateMarketplaceAttributesForItem_args(updateMarketplaceAttributesForItem_args other) {if (other.isSetMarketPlaceItem()) {this.marketPlaceItem = new MarketplaceItems(other.marketPlaceItem);}}public updateMarketplaceAttributesForItem_args deepCopy() {return new updateMarketplaceAttributesForItem_args(this);}@Overridepublic void clear() {this.marketPlaceItem = null;}public MarketplaceItems getMarketPlaceItem() {return this.marketPlaceItem;}public void setMarketPlaceItem(MarketplaceItems marketPlaceItem) {this.marketPlaceItem = marketPlaceItem;}public void unsetMarketPlaceItem() {this.marketPlaceItem = null;}/** Returns true if field marketPlaceItem is set (has been assigned a value) and false otherwise */public boolean isSetMarketPlaceItem() {return this.marketPlaceItem != null;}public void setMarketPlaceItemIsSet(boolean value) {if (!value) {this.marketPlaceItem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MARKET_PLACE_ITEM:if (value == null) {unsetMarketPlaceItem();} else {setMarketPlaceItem((MarketplaceItems)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case MARKET_PLACE_ITEM:return getMarketPlaceItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case MARKET_PLACE_ITEM:return isSetMarketPlaceItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateMarketplaceAttributesForItem_args)return this.equals((updateMarketplaceAttributesForItem_args)that);return false;}public boolean equals(updateMarketplaceAttributesForItem_args that) {if (that == null)return false;boolean this_present_marketPlaceItem = true && this.isSetMarketPlaceItem();boolean that_present_marketPlaceItem = true && that.isSetMarketPlaceItem();if (this_present_marketPlaceItem || that_present_marketPlaceItem) {if (!(this_present_marketPlaceItem && that_present_marketPlaceItem))return false;if (!this.marketPlaceItem.equals(that.marketPlaceItem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMarketplaceAttributesForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMarketplaceAttributesForItem_args typedOther = (updateMarketplaceAttributesForItem_args)other;lastComparison = Boolean.valueOf(isSetMarketPlaceItem()).compareTo(typedOther.isSetMarketPlaceItem());if (lastComparison != 0) {return lastComparison;}if (isSetMarketPlaceItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketPlaceItem, typedOther.marketPlaceItem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // MARKET_PLACE_ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.marketPlaceItem = new MarketplaceItems();this.marketPlaceItem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.marketPlaceItem != null) {oprot.writeFieldBegin(MARKET_PLACE_ITEM_FIELD_DESC);this.marketPlaceItem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMarketplaceAttributesForItem_args(");boolean first = true;sb.append("marketPlaceItem:");if (this.marketPlaceItem == null) {sb.append("null");} else {sb.append(this.marketPlaceItem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateMarketplaceAttributesForItem_result implements org.apache.thrift.TBase<updateMarketplaceAttributesForItem_result, updateMarketplaceAttributesForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMarketplaceAttributesForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMarketplaceAttributesForItem_result.class, metaDataMap);}public updateMarketplaceAttributesForItem_result() {}public updateMarketplaceAttributesForItem_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateMarketplaceAttributesForItem_result(updateMarketplaceAttributesForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateMarketplaceAttributesForItem_result deepCopy() {return new updateMarketplaceAttributesForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateMarketplaceAttributesForItem_result)return this.equals((updateMarketplaceAttributesForItem_result)that);return false;}public boolean equals(updateMarketplaceAttributesForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMarketplaceAttributesForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMarketplaceAttributesForItem_result typedOther = (updateMarketplaceAttributesForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMarketplaceAttributesForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCostingForMarketplace_args implements org.apache.thrift.TBase<getCostingForMarketplace_args, getCostingForMarketplace_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingForMarketplace_args");private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);private long source; // requiredprivate long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE((short)1, "source"),ITEM_ID((short)2, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCEreturn SOURCE;case 2: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SOURCE_ISSET_ID = 0;private static final int __ITEM_ID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingForMarketplace_args.class, metaDataMap);}public getCostingForMarketplace_args() {}public getCostingForMarketplace_args(long source,long item_id){this();this.source = source;setSourceIsSet(true);this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCostingForMarketplace_args(getCostingForMarketplace_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.source = other.source;this.item_id = other.item_id;}public getCostingForMarketplace_args deepCopy() {return new getCostingForMarketplace_args(this);}@Overridepublic void clear() {setSourceIsSet(false);this.source = 0;setItem_idIsSet(false);this.item_id = 0;}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE:return Long.valueOf(getSource());case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE:return isSetSource();case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCostingForMarketplace_args)return this.equals((getCostingForMarketplace_args)that);return false;}public boolean equals(getCostingForMarketplace_args that) {if (that == null)return false;boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCostingForMarketplace_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCostingForMarketplace_args typedOther = (getCostingForMarketplace_args)other;lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCostingForMarketplace_args(");boolean first = true;sb.append("source:");sb.append(this.source);first = false;if (!first) sb.append(", ");sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCostingForMarketplace_result implements org.apache.thrift.TBase<getCostingForMarketplace_result, getCostingForMarketplace_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingForMarketplace_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private MarketplacePercentage success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplacePercentage.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingForMarketplace_result.class, metaDataMap);}public getCostingForMarketplace_result() {}public getCostingForMarketplace_result(MarketplacePercentage success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getCostingForMarketplace_result(getCostingForMarketplace_result other) {if (other.isSetSuccess()) {this.success = new MarketplacePercentage(other.success);}}public getCostingForMarketplace_result deepCopy() {return new getCostingForMarketplace_result(this);}@Overridepublic void clear() {this.success = null;}public MarketplacePercentage getSuccess() {return this.success;}public void setSuccess(MarketplacePercentage success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((MarketplacePercentage)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCostingForMarketplace_result)return this.equals((getCostingForMarketplace_result)that);return false;}public boolean equals(getCostingForMarketplace_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCostingForMarketplace_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCostingForMarketplace_result typedOther = (getCostingForMarketplace_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new MarketplacePercentage();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCostingForMarketplace_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketPlaceItemsForPriceUpdate_args implements org.apache.thrift.TBase<getMarketPlaceItemsForPriceUpdate_args, getMarketPlaceItemsForPriceUpdate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketPlaceItemsForPriceUpdate_args");private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);private long source; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE((short)1, "source");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCEreturn SOURCE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SOURCE_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketPlaceItemsForPriceUpdate_args.class, metaDataMap);}public getMarketPlaceItemsForPriceUpdate_args() {}public getMarketPlaceItemsForPriceUpdate_args(long source){this();this.source = source;setSourceIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getMarketPlaceItemsForPriceUpdate_args(getMarketPlaceItemsForPriceUpdate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.source = other.source;}public getMarketPlaceItemsForPriceUpdate_args deepCopy() {return new getMarketPlaceItemsForPriceUpdate_args(this);}@Overridepublic void clear() {setSourceIsSet(false);this.source = 0;}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE:return Long.valueOf(getSource());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE:return isSetSource();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketPlaceItemsForPriceUpdate_args)return this.equals((getMarketPlaceItemsForPriceUpdate_args)that);return false;}public boolean equals(getMarketPlaceItemsForPriceUpdate_args that) {if (that == null)return false;boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketPlaceItemsForPriceUpdate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketPlaceItemsForPriceUpdate_args typedOther = (getMarketPlaceItemsForPriceUpdate_args)other;lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketPlaceItemsForPriceUpdate_args(");boolean first = true;sb.append("source:");sb.append(this.source);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketPlaceItemsForPriceUpdate_result implements org.apache.thrift.TBase<getMarketPlaceItemsForPriceUpdate_result, getMarketPlaceItemsForPriceUpdate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketPlaceItemsForPriceUpdate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<MarketPlaceItemPrice> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketPlaceItemPrice.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketPlaceItemsForPriceUpdate_result.class, metaDataMap);}public getMarketPlaceItemsForPriceUpdate_result() {}public getMarketPlaceItemsForPriceUpdate_result(List<MarketPlaceItemPrice> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getMarketPlaceItemsForPriceUpdate_result(getMarketPlaceItemsForPriceUpdate_result other) {if (other.isSetSuccess()) {List<MarketPlaceItemPrice> __this__success = new ArrayList<MarketPlaceItemPrice>();for (MarketPlaceItemPrice other_element : other.success) {__this__success.add(new MarketPlaceItemPrice(other_element));}this.success = __this__success;}}public getMarketPlaceItemsForPriceUpdate_result deepCopy() {return new getMarketPlaceItemsForPriceUpdate_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<MarketPlaceItemPrice> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(MarketPlaceItemPrice elem) {if (this.success == null) {this.success = new ArrayList<MarketPlaceItemPrice>();}this.success.add(elem);}public List<MarketPlaceItemPrice> getSuccess() {return this.success;}public void setSuccess(List<MarketPlaceItemPrice> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<MarketPlaceItemPrice>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketPlaceItemsForPriceUpdate_result)return this.equals((getMarketPlaceItemsForPriceUpdate_result)that);return false;}public boolean equals(getMarketPlaceItemsForPriceUpdate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketPlaceItemsForPriceUpdate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketPlaceItemsForPriceUpdate_result typedOther = (getMarketPlaceItemsForPriceUpdate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list340 = iprot.readListBegin();this.success = new ArrayList<MarketPlaceItemPrice>(_list340.size);for (int _i341 = 0; _i341 < _list340.size; ++_i341){MarketPlaceItemPrice _elem342; // required_elem342 = new MarketPlaceItemPrice();_elem342.read(iprot);this.success.add(_elem342);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (MarketPlaceItemPrice _iter343 : this.success){_iter343.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketPlaceItemsForPriceUpdate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateMarketPlacePriceUpdateStatus_args implements org.apache.thrift.TBase<updateMarketPlacePriceUpdateStatus_args, updateMarketPlacePriceUpdateStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMarketPlacePriceUpdateStatus_args");private static final org.apache.thrift.protocol.TField SKULIST_FIELD_DESC = new org.apache.thrift.protocol.TField("skulist", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)3);private List<Long> skulist; // requiredprivate long timestamp; // requiredprivate long source; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SKULIST((short)1, "skulist"),TIMESTAMP((short)2, "timestamp"),SOURCE((short)3, "source");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SKULISTreturn SKULIST;case 2: // TIMESTAMPreturn TIMESTAMP;case 3: // SOURCEreturn SOURCE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TIMESTAMP_ISSET_ID = 0;private static final int __SOURCE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SKULIST, new org.apache.thrift.meta_data.FieldMetaData("skulist", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMarketPlacePriceUpdateStatus_args.class, metaDataMap);}public updateMarketPlacePriceUpdateStatus_args() {}public updateMarketPlacePriceUpdateStatus_args(List<Long> skulist,long timestamp,long source){this();this.skulist = skulist;this.timestamp = timestamp;setTimestampIsSet(true);this.source = source;setSourceIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateMarketPlacePriceUpdateStatus_args(updateMarketPlacePriceUpdateStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSkulist()) {List<Long> __this__skulist = new ArrayList<Long>();for (Long other_element : other.skulist) {__this__skulist.add(other_element);}this.skulist = __this__skulist;}this.timestamp = other.timestamp;this.source = other.source;}public updateMarketPlacePriceUpdateStatus_args deepCopy() {return new updateMarketPlacePriceUpdateStatus_args(this);}@Overridepublic void clear() {this.skulist = null;setTimestampIsSet(false);this.timestamp = 0;setSourceIsSet(false);this.source = 0;}public int getSkulistSize() {return (this.skulist == null) ? 0 : this.skulist.size();}public java.util.Iterator<Long> getSkulistIterator() {return (this.skulist == null) ? null : this.skulist.iterator();}public void addToSkulist(long elem) {if (this.skulist == null) {this.skulist = new ArrayList<Long>();}this.skulist.add(elem);}public List<Long> getSkulist() {return this.skulist;}public void setSkulist(List<Long> skulist) {this.skulist = skulist;}public void unsetSkulist() {this.skulist = null;}/** Returns true if field skulist is set (has been assigned a value) and false otherwise */public boolean isSetSkulist() {return this.skulist != null;}public void setSkulistIsSet(boolean value) {if (!value) {this.skulist = null;}}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SKULIST:if (value == null) {unsetSkulist();} else {setSkulist((List<Long>)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SKULIST:return getSkulist();case TIMESTAMP:return Long.valueOf(getTimestamp());case SOURCE:return Long.valueOf(getSource());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SKULIST:return isSetSkulist();case TIMESTAMP:return isSetTimestamp();case SOURCE:return isSetSource();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateMarketPlacePriceUpdateStatus_args)return this.equals((updateMarketPlacePriceUpdateStatus_args)that);return false;}public boolean equals(updateMarketPlacePriceUpdateStatus_args that) {if (that == null)return false;boolean this_present_skulist = true && this.isSetSkulist();boolean that_present_skulist = true && that.isSetSkulist();if (this_present_skulist || that_present_skulist) {if (!(this_present_skulist && that_present_skulist))return false;if (!this.skulist.equals(that.skulist))return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMarketPlacePriceUpdateStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMarketPlacePriceUpdateStatus_args typedOther = (updateMarketPlacePriceUpdateStatus_args)other;lastComparison = Boolean.valueOf(isSetSkulist()).compareTo(typedOther.isSetSkulist());if (lastComparison != 0) {return lastComparison;}if (isSetSkulist()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skulist, typedOther.skulist);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SKULISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list344 = iprot.readListBegin();this.skulist = new ArrayList<Long>(_list344.size);for (int _i345 = 0; _i345 < _list344.size; ++_i345){long _elem346; // required_elem346 = iprot.readI64();this.skulist.add(_elem346);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.skulist != null) {oprot.writeFieldBegin(SKULIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.skulist.size()));for (long _iter347 : this.skulist){oprot.writeI64(_iter347);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMarketPlacePriceUpdateStatus_args(");boolean first = true;sb.append("skulist:");if (this.skulist == null) {sb.append("null");} else {sb.append(this.skulist);}first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;if (!first) sb.append(", ");sb.append("source:");sb.append(this.source);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateMarketPlacePriceUpdateStatus_result implements org.apache.thrift.TBase<updateMarketPlacePriceUpdateStatus_result, updateMarketPlacePriceUpdateStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMarketPlacePriceUpdateStatus_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMarketPlacePriceUpdateStatus_result.class, metaDataMap);}public updateMarketPlacePriceUpdateStatus_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateMarketPlacePriceUpdateStatus_result(updateMarketPlacePriceUpdateStatus_result other) {}public updateMarketPlacePriceUpdateStatus_result deepCopy() {return new updateMarketPlacePriceUpdateStatus_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateMarketPlacePriceUpdateStatus_result)return this.equals((updateMarketPlacePriceUpdateStatus_result)that);return false;}public boolean equals(updateMarketPlacePriceUpdateStatus_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMarketPlacePriceUpdateStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMarketPlacePriceUpdateStatus_result typedOther = (updateMarketPlacePriceUpdateStatus_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMarketPlacePriceUpdateStatus_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemHoldInventory_args implements org.apache.thrift.TBase<updateItemHoldInventory_args, updateItemHoldInventory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemHoldInventory_args");private static final org.apache.thrift.protocol.TField ITEM_HOLD_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("itemHoldMap", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<Long,Long> itemHoldMap; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_HOLD_MAP((short)1, "itemHoldMap");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_HOLD_MAPreturn ITEM_HOLD_MAP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_HOLD_MAP, new org.apache.thrift.meta_data.FieldMetaData("itemHoldMap", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemHoldInventory_args.class, metaDataMap);}public updateItemHoldInventory_args() {}public updateItemHoldInventory_args(Map<Long,Long> itemHoldMap){this();this.itemHoldMap = itemHoldMap;}/*** Performs a deep copy on <i>other</i>.*/public updateItemHoldInventory_args(updateItemHoldInventory_args other) {if (other.isSetItemHoldMap()) {Map<Long,Long> __this__itemHoldMap = new HashMap<Long,Long>();for (Map.Entry<Long, Long> other_element : other.itemHoldMap.entrySet()) {Long other_element_key = other_element.getKey();Long other_element_value = other_element.getValue();Long __this__itemHoldMap_copy_key = other_element_key;Long __this__itemHoldMap_copy_value = other_element_value;__this__itemHoldMap.put(__this__itemHoldMap_copy_key, __this__itemHoldMap_copy_value);}this.itemHoldMap = __this__itemHoldMap;}}public updateItemHoldInventory_args deepCopy() {return new updateItemHoldInventory_args(this);}@Overridepublic void clear() {this.itemHoldMap = null;}public int getItemHoldMapSize() {return (this.itemHoldMap == null) ? 0 : this.itemHoldMap.size();}public void putToItemHoldMap(long key, long val) {if (this.itemHoldMap == null) {this.itemHoldMap = new HashMap<Long,Long>();}this.itemHoldMap.put(key, val);}public Map<Long,Long> getItemHoldMap() {return this.itemHoldMap;}public void setItemHoldMap(Map<Long,Long> itemHoldMap) {this.itemHoldMap = itemHoldMap;}public void unsetItemHoldMap() {this.itemHoldMap = null;}/** Returns true if field itemHoldMap is set (has been assigned a value) and false otherwise */public boolean isSetItemHoldMap() {return this.itemHoldMap != null;}public void setItemHoldMapIsSet(boolean value) {if (!value) {this.itemHoldMap = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_HOLD_MAP:if (value == null) {unsetItemHoldMap();} else {setItemHoldMap((Map<Long,Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_HOLD_MAP:return getItemHoldMap();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_HOLD_MAP:return isSetItemHoldMap();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemHoldInventory_args)return this.equals((updateItemHoldInventory_args)that);return false;}public boolean equals(updateItemHoldInventory_args that) {if (that == null)return false;boolean this_present_itemHoldMap = true && this.isSetItemHoldMap();boolean that_present_itemHoldMap = true && that.isSetItemHoldMap();if (this_present_itemHoldMap || that_present_itemHoldMap) {if (!(this_present_itemHoldMap && that_present_itemHoldMap))return false;if (!this.itemHoldMap.equals(that.itemHoldMap))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemHoldInventory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemHoldInventory_args typedOther = (updateItemHoldInventory_args)other;lastComparison = Boolean.valueOf(isSetItemHoldMap()).compareTo(typedOther.isSetItemHoldMap());if (lastComparison != 0) {return lastComparison;}if (isSetItemHoldMap()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemHoldMap, typedOther.itemHoldMap);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_HOLD_MAPif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map348 = iprot.readMapBegin();this.itemHoldMap = new HashMap<Long,Long>(2*_map348.size);for (int _i349 = 0; _i349 < _map348.size; ++_i349){long _key350; // requiredlong _val351; // required_key350 = iprot.readI64();_val351 = iprot.readI64();this.itemHoldMap.put(_key350, _val351);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemHoldMap != null) {oprot.writeFieldBegin(ITEM_HOLD_MAP_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itemHoldMap.size()));for (Map.Entry<Long, Long> _iter352 : this.itemHoldMap.entrySet()){oprot.writeI64(_iter352.getKey());oprot.writeI64(_iter352.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemHoldInventory_args(");boolean first = true;sb.append("itemHoldMap:");if (this.itemHoldMap == null) {sb.append("null");} else {sb.append(this.itemHoldMap);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemHoldInventory_result implements org.apache.thrift.TBase<updateItemHoldInventory_result, updateItemHoldInventory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemHoldInventory_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemHoldInventory_result.class, metaDataMap);}public updateItemHoldInventory_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateItemHoldInventory_result(updateItemHoldInventory_result other) {}public updateItemHoldInventory_result deepCopy() {return new updateItemHoldInventory_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemHoldInventory_result)return this.equals((updateItemHoldInventory_result)that);return false;}public boolean equals(updateItemHoldInventory_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemHoldInventory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemHoldInventory_result typedOther = (updateItemHoldInventory_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemHoldInventory_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateNlcAtMarketplaces_args implements org.apache.thrift.TBase<updateNlcAtMarketplaces_args, updateNlcAtMarketplaces_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNlcAtMarketplaces_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor_id", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)-1);private long item_id; // requiredprivate long vendor_id; // requiredprivate double nlc; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),VENDOR_ID((short)2, "vendor_id"),NLC((short)-1, "nlc");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // VENDOR_IDreturn VENDOR_ID;case -1: // NLCreturn NLC;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __VENDOR_ID_ISSET_ID = 1;private static final int __NLC_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendor_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNlcAtMarketplaces_args.class, metaDataMap);}public updateNlcAtMarketplaces_args() {}public updateNlcAtMarketplaces_args(long item_id,long vendor_id,double nlc){this();this.item_id = item_id;setItem_idIsSet(true);this.vendor_id = vendor_id;setVendor_idIsSet(true);this.nlc = nlc;setNlcIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateNlcAtMarketplaces_args(updateNlcAtMarketplaces_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.vendor_id = other.vendor_id;this.nlc = other.nlc;}public updateNlcAtMarketplaces_args deepCopy() {return new updateNlcAtMarketplaces_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setVendor_idIsSet(false);this.vendor_id = 0;setNlcIsSet(false);this.nlc = 0.0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getVendor_id() {return this.vendor_id;}public void setVendor_id(long vendor_id) {this.vendor_id = vendor_id;setVendor_idIsSet(true);}public void unsetVendor_id() {__isset_bit_vector.clear(__VENDOR_ID_ISSET_ID);}/** Returns true if field vendor_id is set (has been assigned a value) and false otherwise */public boolean isSetVendor_id() {return __isset_bit_vector.get(__VENDOR_ID_ISSET_ID);}public void setVendor_idIsSet(boolean value) {__isset_bit_vector.set(__VENDOR_ID_ISSET_ID, value);}public double getNlc() {return this.nlc;}public void setNlc(double nlc) {this.nlc = nlc;setNlcIsSet(true);}public void unsetNlc() {__isset_bit_vector.clear(__NLC_ISSET_ID);}/** Returns true if field nlc is set (has been assigned a value) and false otherwise */public boolean isSetNlc() {return __isset_bit_vector.get(__NLC_ISSET_ID);}public void setNlcIsSet(boolean value) {__isset_bit_vector.set(__NLC_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case VENDOR_ID:if (value == null) {unsetVendor_id();} else {setVendor_id((Long)value);}break;case NLC:if (value == null) {unsetNlc();} else {setNlc((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case VENDOR_ID:return Long.valueOf(getVendor_id());case NLC:return Double.valueOf(getNlc());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case VENDOR_ID:return isSetVendor_id();case NLC:return isSetNlc();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateNlcAtMarketplaces_args)return this.equals((updateNlcAtMarketplaces_args)that);return false;}public boolean equals(updateNlcAtMarketplaces_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_vendor_id = true;boolean that_present_vendor_id = true;if (this_present_vendor_id || that_present_vendor_id) {if (!(this_present_vendor_id && that_present_vendor_id))return false;if (this.vendor_id != that.vendor_id)return false;}boolean this_present_nlc = true;boolean that_present_nlc = true;if (this_present_nlc || that_present_nlc) {if (!(this_present_nlc && that_present_nlc))return false;if (this.nlc != that.nlc)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateNlcAtMarketplaces_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateNlcAtMarketplaces_args typedOther = (updateNlcAtMarketplaces_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVendor_id()).compareTo(typedOther.isSetVendor_id());if (lastComparison != 0) {return lastComparison;}if (isSetVendor_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor_id, typedOther.vendor_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());if (lastComparison != 0) {return lastComparison;}if (isSetNlc()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendor_id = iprot.readI64();setVendor_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -1: // NLCif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.nlc = iprot.readDouble();setNlcIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(NLC_FIELD_DESC);oprot.writeDouble(this.nlc);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendor_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateNlcAtMarketplaces_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("vendor_id:");sb.append(this.vendor_id);first = false;if (!first) sb.append(", ");sb.append("nlc:");sb.append(this.nlc);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateNlcAtMarketplaces_result implements org.apache.thrift.TBase<updateNlcAtMarketplaces_result, updateNlcAtMarketplaces_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNlcAtMarketplaces_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNlcAtMarketplaces_result.class, metaDataMap);}public updateNlcAtMarketplaces_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateNlcAtMarketplaces_result(updateNlcAtMarketplaces_result other) {}public updateNlcAtMarketplaces_result deepCopy() {return new updateNlcAtMarketplaces_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateNlcAtMarketplaces_result)return this.equals((updateNlcAtMarketplaces_result)that);return false;}public boolean equals(updateNlcAtMarketplaces_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateNlcAtMarketplaces_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateNlcAtMarketplaces_result typedOther = (updateNlcAtMarketplaces_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateNlcAtMarketplaces_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFlipkartItems_args implements org.apache.thrift.TBase<getAllFlipkartItems_args, getAllFlipkartItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartItems_args.class, metaDataMap);}public getAllFlipkartItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFlipkartItems_args(getAllFlipkartItems_args other) {}public getAllFlipkartItems_args deepCopy() {return new getAllFlipkartItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFlipkartItems_args)return this.equals((getAllFlipkartItems_args)that);return false;}public boolean equals(getAllFlipkartItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFlipkartItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFlipkartItems_args typedOther = (getAllFlipkartItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFlipkartItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFlipkartItems_result implements org.apache.thrift.TBase<getAllFlipkartItems_result, getAllFlipkartItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<FlipkartItem> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartItems_result.class, metaDataMap);}public getAllFlipkartItems_result() {}public getAllFlipkartItems_result(List<FlipkartItem> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFlipkartItems_result(getAllFlipkartItems_result other) {if (other.isSetSuccess()) {List<FlipkartItem> __this__success = new ArrayList<FlipkartItem>();for (FlipkartItem other_element : other.success) {__this__success.add(new FlipkartItem(other_element));}this.success = __this__success;}}public getAllFlipkartItems_result deepCopy() {return new getAllFlipkartItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<FlipkartItem> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(FlipkartItem elem) {if (this.success == null) {this.success = new ArrayList<FlipkartItem>();}this.success.add(elem);}public List<FlipkartItem> getSuccess() {return this.success;}public void setSuccess(List<FlipkartItem> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<FlipkartItem>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFlipkartItems_result)return this.equals((getAllFlipkartItems_result)that);return false;}public boolean equals(getAllFlipkartItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFlipkartItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFlipkartItems_result typedOther = (getAllFlipkartItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list353 = iprot.readListBegin();this.success = new ArrayList<FlipkartItem>(_list353.size);for (int _i354 = 0; _i354 < _list353.size; ++_i354){FlipkartItem _elem355; // required_elem355 = new FlipkartItem();_elem355.read(iprot);this.success.add(_elem355);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (FlipkartItem _iter356 : this.success){_iter356.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFlipkartItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateFlipkartItem_args implements org.apache.thrift.TBase<addOrUpdateFlipkartItem_args, addOrUpdateFlipkartItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartItem_args");private static final org.apache.thrift.protocol.TField FLIPKARTITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("flipkartitem", org.apache.thrift.protocol.TType.STRUCT, (short)-1);private FlipkartItem flipkartitem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {FLIPKARTITEM((short)-1, "flipkartitem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // FLIPKARTITEMreturn FLIPKARTITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.FLIPKARTITEM, new org.apache.thrift.meta_data.FieldMetaData("flipkartitem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartItem_args.class, metaDataMap);}public addOrUpdateFlipkartItem_args() {}public addOrUpdateFlipkartItem_args(FlipkartItem flipkartitem){this();this.flipkartitem = flipkartitem;}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateFlipkartItem_args(addOrUpdateFlipkartItem_args other) {if (other.isSetFlipkartitem()) {this.flipkartitem = new FlipkartItem(other.flipkartitem);}}public addOrUpdateFlipkartItem_args deepCopy() {return new addOrUpdateFlipkartItem_args(this);}@Overridepublic void clear() {this.flipkartitem = null;}public FlipkartItem getFlipkartitem() {return this.flipkartitem;}public void setFlipkartitem(FlipkartItem flipkartitem) {this.flipkartitem = flipkartitem;}public void unsetFlipkartitem() {this.flipkartitem = null;}/** Returns true if field flipkartitem is set (has been assigned a value) and false otherwise */public boolean isSetFlipkartitem() {return this.flipkartitem != null;}public void setFlipkartitemIsSet(boolean value) {if (!value) {this.flipkartitem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case FLIPKARTITEM:if (value == null) {unsetFlipkartitem();} else {setFlipkartitem((FlipkartItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case FLIPKARTITEM:return getFlipkartitem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case FLIPKARTITEM:return isSetFlipkartitem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateFlipkartItem_args)return this.equals((addOrUpdateFlipkartItem_args)that);return false;}public boolean equals(addOrUpdateFlipkartItem_args that) {if (that == null)return false;boolean this_present_flipkartitem = true && this.isSetFlipkartitem();boolean that_present_flipkartitem = true && that.isSetFlipkartitem();if (this_present_flipkartitem || that_present_flipkartitem) {if (!(this_present_flipkartitem && that_present_flipkartitem))return false;if (!this.flipkartitem.equals(that.flipkartitem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateFlipkartItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateFlipkartItem_args typedOther = (addOrUpdateFlipkartItem_args)other;lastComparison = Boolean.valueOf(isSetFlipkartitem()).compareTo(typedOther.isSetFlipkartitem());if (lastComparison != 0) {return lastComparison;}if (isSetFlipkartitem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartitem, typedOther.flipkartitem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // FLIPKARTITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.flipkartitem = new FlipkartItem();this.flipkartitem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.flipkartitem != null) {oprot.writeFieldBegin(FLIPKARTITEM_FIELD_DESC);this.flipkartitem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateFlipkartItem_args(");boolean first = true;sb.append("flipkartitem:");if (this.flipkartitem == null) {sb.append("null");} else {sb.append(this.flipkartitem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdateFlipkartItem_result implements org.apache.thrift.TBase<addOrUpdateFlipkartItem_result, addOrUpdateFlipkartItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartItem_result.class, metaDataMap);}public addOrUpdateFlipkartItem_result() {}public addOrUpdateFlipkartItem_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdateFlipkartItem_result(addOrUpdateFlipkartItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addOrUpdateFlipkartItem_result deepCopy() {return new addOrUpdateFlipkartItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdateFlipkartItem_result)return this.equals((addOrUpdateFlipkartItem_result)that);return false;}public boolean equals(addOrUpdateFlipkartItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdateFlipkartItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdateFlipkartItem_result typedOther = (addOrUpdateFlipkartItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdateFlipkartItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItem_args implements org.apache.thrift.TBase<getFlipkartItem_args, getFlipkartItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItem_args.class, metaDataMap);}public getFlipkartItem_args() {}public getFlipkartItem_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItem_args(getFlipkartItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getFlipkartItem_args deepCopy() {return new getFlipkartItem_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItem_args)return this.equals((getFlipkartItem_args)that);return false;}public boolean equals(getFlipkartItem_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItem_args typedOther = (getFlipkartItem_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItem_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItem_result implements org.apache.thrift.TBase<getFlipkartItem_result, getFlipkartItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private FlipkartItem success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItem_result.class, metaDataMap);}public getFlipkartItem_result() {}public getFlipkartItem_result(FlipkartItem success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItem_result(getFlipkartItem_result other) {if (other.isSetSuccess()) {this.success = new FlipkartItem(other.success);}}public getFlipkartItem_result deepCopy() {return new getFlipkartItem_result(this);}@Overridepublic void clear() {this.success = null;}public FlipkartItem getSuccess() {return this.success;}public void setSuccess(FlipkartItem success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((FlipkartItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItem_result)return this.equals((getFlipkartItem_result)that);return false;}public boolean equals(getFlipkartItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItem_result typedOther = (getFlipkartItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new FlipkartItem();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItemDetails_args implements org.apache.thrift.TBase<getFlipkartItemDetails_args, getFlipkartItemDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemDetails_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemDetails_args.class, metaDataMap);}public getFlipkartItemDetails_args() {}public getFlipkartItemDetails_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItemDetails_args(getFlipkartItemDetails_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getFlipkartItemDetails_args deepCopy() {return new getFlipkartItemDetails_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItemDetails_args)return this.equals((getFlipkartItemDetails_args)that);return false;}public boolean equals(getFlipkartItemDetails_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItemDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItemDetails_args typedOther = (getFlipkartItemDetails_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItemDetails_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItemDetails_result implements org.apache.thrift.TBase<getFlipkartItemDetails_result, getFlipkartItemDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private FlipkartItemDetails success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemDetails_result.class, metaDataMap);}public getFlipkartItemDetails_result() {}public getFlipkartItemDetails_result(FlipkartItemDetails success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItemDetails_result(getFlipkartItemDetails_result other) {if (other.isSetSuccess()) {this.success = new FlipkartItemDetails(other.success);}}public getFlipkartItemDetails_result deepCopy() {return new getFlipkartItemDetails_result(this);}@Overridepublic void clear() {this.success = null;}public FlipkartItemDetails getSuccess() {return this.success;}public void setSuccess(FlipkartItemDetails success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((FlipkartItemDetails)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItemDetails_result)return this.equals((getFlipkartItemDetails_result)that);return false;}public boolean equals(getFlipkartItemDetails_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItemDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItemDetails_result typedOther = (getFlipkartItemDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new FlipkartItemDetails();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItemDetails_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItems_args implements org.apache.thrift.TBase<getFlipkartItems_args, getFlipkartItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItems_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItems_args.class, metaDataMap);}public getFlipkartItems_args() {}public getFlipkartItems_args(long offset,long limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItems_args(getFlipkartItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getFlipkartItems_args deepCopy() {return new getFlipkartItems_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItems_args)return this.equals((getFlipkartItems_args)that);return false;}public boolean equals(getFlipkartItems_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItems_args typedOther = (getFlipkartItems_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItems_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItems_result implements org.apache.thrift.TBase<getFlipkartItems_result, getFlipkartItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<FlipkartItemDetails> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItems_result.class, metaDataMap);}public getFlipkartItems_result() {}public getFlipkartItems_result(List<FlipkartItemDetails> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItems_result(getFlipkartItems_result other) {if (other.isSetSuccess()) {List<FlipkartItemDetails> __this__success = new ArrayList<FlipkartItemDetails>();for (FlipkartItemDetails other_element : other.success) {__this__success.add(new FlipkartItemDetails(other_element));}this.success = __this__success;}}public getFlipkartItems_result deepCopy() {return new getFlipkartItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<FlipkartItemDetails> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(FlipkartItemDetails elem) {if (this.success == null) {this.success = new ArrayList<FlipkartItemDetails>();}this.success.add(elem);}public List<FlipkartItemDetails> getSuccess() {return this.success;}public void setSuccess(List<FlipkartItemDetails> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<FlipkartItemDetails>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItems_result)return this.equals((getFlipkartItems_result)that);return false;}public boolean equals(getFlipkartItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItems_result typedOther = (getFlipkartItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list357 = iprot.readListBegin();this.success = new ArrayList<FlipkartItemDetails>(_list357.size);for (int _i358 = 0; _i358 < _list357.size; ++_i358){FlipkartItemDetails _elem359; // required_elem359 = new FlipkartItemDetails();_elem359.read(iprot);this.success.add(_elem359);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (FlipkartItemDetails _iter360 : this.success){_iter360.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchFlipkartItems_args implements org.apache.thrift.TBase<searchFlipkartItems_args, searchFlipkartItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchFlipkartItems_args");private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private List<String> searchTerm; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERM((short)1, "searchTerm"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMreturn SEARCH_TERM;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchFlipkartItems_args.class, metaDataMap);}public searchFlipkartItems_args() {}public searchFlipkartItems_args(List<String> searchTerm,long offset,long limit){this();this.searchTerm = searchTerm;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public searchFlipkartItems_args(searchFlipkartItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSearchTerm()) {List<String> __this__searchTerm = new ArrayList<String>();for (String other_element : other.searchTerm) {__this__searchTerm.add(other_element);}this.searchTerm = __this__searchTerm;}this.offset = other.offset;this.limit = other.limit;}public searchFlipkartItems_args deepCopy() {return new searchFlipkartItems_args(this);}@Overridepublic void clear() {this.searchTerm = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public int getSearchTermSize() {return (this.searchTerm == null) ? 0 : this.searchTerm.size();}public java.util.Iterator<String> getSearchTermIterator() {return (this.searchTerm == null) ? null : this.searchTerm.iterator();}public void addToSearchTerm(String elem) {if (this.searchTerm == null) {this.searchTerm = new ArrayList<String>();}this.searchTerm.add(elem);}public List<String> getSearchTerm() {return this.searchTerm;}public void setSearchTerm(List<String> searchTerm) {this.searchTerm = searchTerm;}public void unsetSearchTerm() {this.searchTerm = null;}/** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerm() {return this.searchTerm != null;}public void setSearchTermIsSet(boolean value) {if (!value) {this.searchTerm = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERM:if (value == null) {unsetSearchTerm();} else {setSearchTerm((List<String>)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERM:return getSearchTerm();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERM:return isSetSearchTerm();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchFlipkartItems_args)return this.equals((searchFlipkartItems_args)that);return false;}public boolean equals(searchFlipkartItems_args that) {if (that == null)return false;boolean this_present_searchTerm = true && this.isSetSearchTerm();boolean that_present_searchTerm = true && that.isSetSearchTerm();if (this_present_searchTerm || that_present_searchTerm) {if (!(this_present_searchTerm && that_present_searchTerm))return false;if (!this.searchTerm.equals(that.searchTerm))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchFlipkartItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchFlipkartItems_args typedOther = (searchFlipkartItems_args)other;lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerm()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list361 = iprot.readListBegin();this.searchTerm = new ArrayList<String>(_list361.size);for (int _i362 = 0; _i362 < _list361.size; ++_i362){String _elem363; // required_elem363 = iprot.readString();this.searchTerm.add(_elem363);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerm != null) {oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));for (String _iter364 : this.searchTerm){oprot.writeString(_iter364);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchFlipkartItems_args(");boolean first = true;sb.append("searchTerm:");if (this.searchTerm == null) {sb.append("null");} else {sb.append(this.searchTerm);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchFlipkartItems_result implements org.apache.thrift.TBase<searchFlipkartItems_result, searchFlipkartItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchFlipkartItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<FlipkartItemDetails> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchFlipkartItems_result.class, metaDataMap);}public searchFlipkartItems_result() {}public searchFlipkartItems_result(List<FlipkartItemDetails> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public searchFlipkartItems_result(searchFlipkartItems_result other) {if (other.isSetSuccess()) {List<FlipkartItemDetails> __this__success = new ArrayList<FlipkartItemDetails>();for (FlipkartItemDetails other_element : other.success) {__this__success.add(new FlipkartItemDetails(other_element));}this.success = __this__success;}}public searchFlipkartItems_result deepCopy() {return new searchFlipkartItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<FlipkartItemDetails> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(FlipkartItemDetails elem) {if (this.success == null) {this.success = new ArrayList<FlipkartItemDetails>();}this.success.add(elem);}public List<FlipkartItemDetails> getSuccess() {return this.success;}public void setSuccess(List<FlipkartItemDetails> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<FlipkartItemDetails>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchFlipkartItems_result)return this.equals((searchFlipkartItems_result)that);return false;}public boolean equals(searchFlipkartItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchFlipkartItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchFlipkartItems_result typedOther = (searchFlipkartItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list365 = iprot.readListBegin();this.success = new ArrayList<FlipkartItemDetails>(_list365.size);for (int _i366 = 0; _i366 < _list365.size; ++_i366){FlipkartItemDetails _elem367; // required_elem367 = new FlipkartItemDetails();_elem367.read(iprot);this.success.add(_elem367);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (FlipkartItemDetails _iter368 : this.success){_iter368.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchFlipkartItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForFlipkartItems_args implements org.apache.thrift.TBase<getCountForFlipkartItems_args, getCountForFlipkartItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForFlipkartItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForFlipkartItems_args.class, metaDataMap);}public getCountForFlipkartItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getCountForFlipkartItems_args(getCountForFlipkartItems_args other) {}public getCountForFlipkartItems_args deepCopy() {return new getCountForFlipkartItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForFlipkartItems_args)return this.equals((getCountForFlipkartItems_args)that);return false;}public boolean equals(getCountForFlipkartItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForFlipkartItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForFlipkartItems_args typedOther = (getCountForFlipkartItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForFlipkartItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForFlipkartItems_result implements org.apache.thrift.TBase<getCountForFlipkartItems_result, getCountForFlipkartItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForFlipkartItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForFlipkartItems_result.class, metaDataMap);}public getCountForFlipkartItems_result() {}public getCountForFlipkartItems_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCountForFlipkartItems_result(getCountForFlipkartItems_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getCountForFlipkartItems_result deepCopy() {return new getCountForFlipkartItems_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForFlipkartItems_result)return this.equals((getCountForFlipkartItems_result)that);return false;}public boolean equals(getCountForFlipkartItems_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForFlipkartItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForFlipkartItems_result typedOther = (getCountForFlipkartItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForFlipkartItems_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartSearchResultCount_args implements org.apache.thrift.TBase<getFlipkartSearchResultCount_args, getFlipkartSearchResultCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartSearchResultCount_args");private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);private List<String> searchTerm; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERM((short)1, "searchTerm");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMreturn SEARCH_TERM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartSearchResultCount_args.class, metaDataMap);}public getFlipkartSearchResultCount_args() {}public getFlipkartSearchResultCount_args(List<String> searchTerm){this();this.searchTerm = searchTerm;}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartSearchResultCount_args(getFlipkartSearchResultCount_args other) {if (other.isSetSearchTerm()) {List<String> __this__searchTerm = new ArrayList<String>();for (String other_element : other.searchTerm) {__this__searchTerm.add(other_element);}this.searchTerm = __this__searchTerm;}}public getFlipkartSearchResultCount_args deepCopy() {return new getFlipkartSearchResultCount_args(this);}@Overridepublic void clear() {this.searchTerm = null;}public int getSearchTermSize() {return (this.searchTerm == null) ? 0 : this.searchTerm.size();}public java.util.Iterator<String> getSearchTermIterator() {return (this.searchTerm == null) ? null : this.searchTerm.iterator();}public void addToSearchTerm(String elem) {if (this.searchTerm == null) {this.searchTerm = new ArrayList<String>();}this.searchTerm.add(elem);}public List<String> getSearchTerm() {return this.searchTerm;}public void setSearchTerm(List<String> searchTerm) {this.searchTerm = searchTerm;}public void unsetSearchTerm() {this.searchTerm = null;}/** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerm() {return this.searchTerm != null;}public void setSearchTermIsSet(boolean value) {if (!value) {this.searchTerm = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERM:if (value == null) {unsetSearchTerm();} else {setSearchTerm((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERM:return getSearchTerm();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERM:return isSetSearchTerm();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartSearchResultCount_args)return this.equals((getFlipkartSearchResultCount_args)that);return false;}public boolean equals(getFlipkartSearchResultCount_args that) {if (that == null)return false;boolean this_present_searchTerm = true && this.isSetSearchTerm();boolean that_present_searchTerm = true && that.isSetSearchTerm();if (this_present_searchTerm || that_present_searchTerm) {if (!(this_present_searchTerm && that_present_searchTerm))return false;if (!this.searchTerm.equals(that.searchTerm))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartSearchResultCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartSearchResultCount_args typedOther = (getFlipkartSearchResultCount_args)other;lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerm()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list369 = iprot.readListBegin();this.searchTerm = new ArrayList<String>(_list369.size);for (int _i370 = 0; _i370 < _list369.size; ++_i370){String _elem371; // required_elem371 = iprot.readString();this.searchTerm.add(_elem371);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerm != null) {oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));for (String _iter372 : this.searchTerm){oprot.writeString(_iter372);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartSearchResultCount_args(");boolean first = true;sb.append("searchTerm:");if (this.searchTerm == null) {sb.append("null");} else {sb.append(this.searchTerm);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartSearchResultCount_result implements org.apache.thrift.TBase<getFlipkartSearchResultCount_result, getFlipkartSearchResultCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartSearchResultCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartSearchResultCount_result.class, metaDataMap);}public getFlipkartSearchResultCount_result() {}public getFlipkartSearchResultCount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartSearchResultCount_result(getFlipkartSearchResultCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getFlipkartSearchResultCount_result deepCopy() {return new getFlipkartSearchResultCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartSearchResultCount_result)return this.equals((getFlipkartSearchResultCount_result)that);return false;}public boolean equals(getFlipkartSearchResultCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartSearchResultCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartSearchResultCount_result typedOther = (getFlipkartSearchResultCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartSearchResultCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFkItems_args implements org.apache.thrift.TBase<getAllFkItems_args, getAllFkItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFkItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFkItems_args.class, metaDataMap);}public getAllFkItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFkItems_args(getAllFkItems_args other) {}public getAllFkItems_args deepCopy() {return new getAllFkItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFkItems_args)return this.equals((getAllFkItems_args)that);return false;}public boolean equals(getAllFkItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFkItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFkItems_args typedOther = (getAllFkItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFkItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFkItems_result implements org.apache.thrift.TBase<getAllFkItems_result, getAllFkItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFkItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<FlipkartItemDetails> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFkItems_result.class, metaDataMap);}public getAllFkItems_result() {}public getAllFkItems_result(List<FlipkartItemDetails> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFkItems_result(getAllFkItems_result other) {if (other.isSetSuccess()) {List<FlipkartItemDetails> __this__success = new ArrayList<FlipkartItemDetails>();for (FlipkartItemDetails other_element : other.success) {__this__success.add(new FlipkartItemDetails(other_element));}this.success = __this__success;}}public getAllFkItems_result deepCopy() {return new getAllFkItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<FlipkartItemDetails> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(FlipkartItemDetails elem) {if (this.success == null) {this.success = new ArrayList<FlipkartItemDetails>();}this.success.add(elem);}public List<FlipkartItemDetails> getSuccess() {return this.success;}public void setSuccess(List<FlipkartItemDetails> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<FlipkartItemDetails>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFkItems_result)return this.equals((getAllFkItems_result)that);return false;}public boolean equals(getAllFkItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFkItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFkItems_result typedOther = (getAllFkItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list373 = iprot.readListBegin();this.success = new ArrayList<FlipkartItemDetails>(_list373.size);for (int _i374 = 0; _i374 < _list373.size; ++_i374){FlipkartItemDetails _elem375; // required_elem375 = new FlipkartItemDetails();_elem375.read(iprot);this.success.add(_elem375);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (FlipkartItemDetails _iter376 : this.success){_iter376.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFkItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItemBySkyAtFlipkart_args implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_args, getFlipkartItemBySkyAtFlipkart_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_args");private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.STRING, (short)-1);private String sku; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SKU((short)-1, "sku");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // SKUreturn SKU;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SKU, new org.apache.thrift.meta_data.FieldMetaData("sku", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemBySkyAtFlipkart_args.class, metaDataMap);}public getFlipkartItemBySkyAtFlipkart_args() {}public getFlipkartItemBySkyAtFlipkart_args(String sku){this();this.sku = sku;}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItemBySkyAtFlipkart_args(getFlipkartItemBySkyAtFlipkart_args other) {if (other.isSetSku()) {this.sku = other.sku;}}public getFlipkartItemBySkyAtFlipkart_args deepCopy() {return new getFlipkartItemBySkyAtFlipkart_args(this);}@Overridepublic void clear() {this.sku = null;}public String getSku() {return this.sku;}public void setSku(String sku) {this.sku = sku;}public void unsetSku() {this.sku = null;}/** Returns true if field sku is set (has been assigned a value) and false otherwise */public boolean isSetSku() {return this.sku != null;}public void setSkuIsSet(boolean value) {if (!value) {this.sku = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SKU:if (value == null) {unsetSku();} else {setSku((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SKU:return getSku();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SKU:return isSetSku();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItemBySkyAtFlipkart_args)return this.equals((getFlipkartItemBySkyAtFlipkart_args)that);return false;}public boolean equals(getFlipkartItemBySkyAtFlipkart_args that) {if (that == null)return false;boolean this_present_sku = true && this.isSetSku();boolean that_present_sku = true && that.isSetSku();if (this_present_sku || that_present_sku) {if (!(this_present_sku && that_present_sku))return false;if (!this.sku.equals(that.sku))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItemBySkyAtFlipkart_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItemBySkyAtFlipkart_args typedOther = (getFlipkartItemBySkyAtFlipkart_args)other;lastComparison = Boolean.valueOf(isSetSku()).compareTo(typedOther.isSetSku());if (lastComparison != 0) {return lastComparison;}if (isSetSku()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sku, typedOther.sku);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // SKUif (field.type == org.apache.thrift.protocol.TType.STRING) {this.sku = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.sku != null) {oprot.writeFieldBegin(SKU_FIELD_DESC);oprot.writeString(this.sku);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItemBySkyAtFlipkart_args(");boolean first = true;sb.append("sku:");if (this.sku == null) {sb.append("null");} else {sb.append(this.sku);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getFlipkartItemBySkyAtFlipkart_result implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_result, getFlipkartItemBySkyAtFlipkart_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private FlipkartItem success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemBySkyAtFlipkart_result.class, metaDataMap);}public getFlipkartItemBySkyAtFlipkart_result() {}public getFlipkartItemBySkyAtFlipkart_result(FlipkartItem success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getFlipkartItemBySkyAtFlipkart_result(getFlipkartItemBySkyAtFlipkart_result other) {if (other.isSetSuccess()) {this.success = new FlipkartItem(other.success);}}public getFlipkartItemBySkyAtFlipkart_result deepCopy() {return new getFlipkartItemBySkyAtFlipkart_result(this);}@Overridepublic void clear() {this.success = null;}public FlipkartItem getSuccess() {return this.success;}public void setSuccess(FlipkartItem success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((FlipkartItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getFlipkartItemBySkyAtFlipkart_result)return this.equals((getFlipkartItemBySkyAtFlipkart_result)that);return false;}public boolean equals(getFlipkartItemBySkyAtFlipkart_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getFlipkartItemBySkyAtFlipkart_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getFlipkartItemBySkyAtFlipkart_result typedOther = (getFlipkartItemBySkyAtFlipkart_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new FlipkartItem();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getFlipkartItemBySkyAtFlipkart_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketplaceHistory_args implements org.apache.thrift.TBase<getMarketplaceHistory_args, getMarketplaceHistory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistory_args");private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)3);private long source; // requiredprivate long offset; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE((short)1, "source"),OFFSET((short)2, "offset"),ITEM_ID((short)3, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCEreturn SOURCE;case 2: // OFFSETreturn OFFSET;case 3: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SOURCE_ISSET_ID = 0;private static final int __OFFSET_ISSET_ID = 1;private static final int __ITEMID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistory_args.class, metaDataMap);}public getMarketplaceHistory_args() {}public getMarketplaceHistory_args(long source,long offset,long itemId){this();this.source = source;setSourceIsSet(true);this.offset = offset;setOffsetIsSet(true);this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getMarketplaceHistory_args(getMarketplaceHistory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.source = other.source;this.offset = other.offset;this.itemId = other.itemId;}public getMarketplaceHistory_args deepCopy() {return new getMarketplaceHistory_args(this);}@Overridepublic void clear() {setSourceIsSet(false);this.source = 0;setOffsetIsSet(false);this.offset = 0;setItemIdIsSet(false);this.itemId = 0;}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE:return Long.valueOf(getSource());case OFFSET:return Long.valueOf(getOffset());case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE:return isSetSource();case OFFSET:return isSetOffset();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketplaceHistory_args)return this.equals((getMarketplaceHistory_args)that);return false;}public boolean equals(getMarketplaceHistory_args that) {if (that == null)return false;boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketplaceHistory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketplaceHistory_args typedOther = (getMarketplaceHistory_args)other;lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketplaceHistory_args(");boolean first = true;sb.append("source:");sb.append(this.source);first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketplaceHistory_result implements org.apache.thrift.TBase<getMarketplaceHistory_result, getMarketplaceHistory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<MarketplaceHistory> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceHistory.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistory_result.class, metaDataMap);}public getMarketplaceHistory_result() {}public getMarketplaceHistory_result(List<MarketplaceHistory> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getMarketplaceHistory_result(getMarketplaceHistory_result other) {if (other.isSetSuccess()) {List<MarketplaceHistory> __this__success = new ArrayList<MarketplaceHistory>();for (MarketplaceHistory other_element : other.success) {__this__success.add(new MarketplaceHistory(other_element));}this.success = __this__success;}}public getMarketplaceHistory_result deepCopy() {return new getMarketplaceHistory_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<MarketplaceHistory> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(MarketplaceHistory elem) {if (this.success == null) {this.success = new ArrayList<MarketplaceHistory>();}this.success.add(elem);}public List<MarketplaceHistory> getSuccess() {return this.success;}public void setSuccess(List<MarketplaceHistory> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<MarketplaceHistory>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketplaceHistory_result)return this.equals((getMarketplaceHistory_result)that);return false;}public boolean equals(getMarketplaceHistory_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketplaceHistory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketplaceHistory_result typedOther = (getMarketplaceHistory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list377 = iprot.readListBegin();this.success = new ArrayList<MarketplaceHistory>(_list377.size);for (int _i378 = 0; _i378 < _list377.size; ++_i378){MarketplaceHistory _elem379; // required_elem379 = new MarketplaceHistory();_elem379.read(iprot);this.success.add(_elem379);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (MarketplaceHistory _iter380 : this.success){_iter380.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketplaceHistory_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbbListedItems_args implements org.apache.thrift.TBase<getAllFbbListedItems_args, getAllFbbListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbListedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbListedItems_args.class, metaDataMap);}public getAllFbbListedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFbbListedItems_args(getAllFbbListedItems_args other) {}public getAllFbbListedItems_args deepCopy() {return new getAllFbbListedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbbListedItems_args)return this.equals((getAllFbbListedItems_args)that);return false;}public boolean equals(getAllFbbListedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbbListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbbListedItems_args typedOther = (getAllFbbListedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbbListedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbbListedItems_result implements org.apache.thrift.TBase<getAllFbbListedItems_result, getAllFbbListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbListedItems_result.class, metaDataMap);}public getAllFbbListedItems_result() {}public getAllFbbListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFbbListedItems_result(getAllFbbListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllFbbListedItems_result deepCopy() {return new getAllFbbListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbbListedItems_result)return this.equals((getAllFbbListedItems_result)that);return false;}public boolean equals(getAllFbbListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbbListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbbListedItems_result typedOther = (getAllFbbListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list381 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list381.size);for (int _i382 = 0; _i382 < _list381.size; ++_i382){Amazonlisted _elem383; // required_elem383 = new Amazonlisted();_elem383.read(iprot);this.success.add(_elem383);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter384 : this.success){_iter384.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbbListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbbPricingItems_args implements org.apache.thrift.TBase<getAllFbbPricingItems_args, getAllFbbPricingItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbPricingItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbPricingItems_args.class, metaDataMap);}public getAllFbbPricingItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFbbPricingItems_args(getAllFbbPricingItems_args other) {}public getAllFbbPricingItems_args deepCopy() {return new getAllFbbPricingItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbbPricingItems_args)return this.equals((getAllFbbPricingItems_args)that);return false;}public boolean equals(getAllFbbPricingItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbbPricingItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbbPricingItems_args typedOther = (getAllFbbPricingItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbbPricingItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbbPricingItems_result implements org.apache.thrift.TBase<getAllFbbPricingItems_result, getAllFbbPricingItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbPricingItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbPricingItems_result.class, metaDataMap);}public getAllFbbPricingItems_result() {}public getAllFbbPricingItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFbbPricingItems_result(getAllFbbPricingItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllFbbPricingItems_result deepCopy() {return new getAllFbbPricingItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbbPricingItems_result)return this.equals((getAllFbbPricingItems_result)that);return false;}public boolean equals(getAllFbbPricingItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbbPricingItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbbPricingItems_result typedOther = (getAllFbbPricingItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list385 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list385.size);for (int _i386 = 0; _i386 < _list385.size; ++_i386){Amazonlisted _elem387; // required_elem387 = new Amazonlisted();_elem387.read(iprot);this.success.add(_elem387);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter388 : this.success){_iter388.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbbPricingItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForMarketplaceHistory_args implements org.apache.thrift.TBase<getCountForMarketplaceHistory_args, getCountForMarketplaceHistory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForMarketplaceHistory_args");private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private long source; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE((short)1, "source"),ITEM_ID((short)2, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCEreturn SOURCE;case 2: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SOURCE_ISSET_ID = 0;private static final int __ITEMID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForMarketplaceHistory_args.class, metaDataMap);}public getCountForMarketplaceHistory_args() {}public getCountForMarketplaceHistory_args(long source,long itemId){this();this.source = source;setSourceIsSet(true);this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCountForMarketplaceHistory_args(getCountForMarketplaceHistory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.source = other.source;this.itemId = other.itemId;}public getCountForMarketplaceHistory_args deepCopy() {return new getCountForMarketplaceHistory_args(this);}@Overridepublic void clear() {setSourceIsSet(false);this.source = 0;setItemIdIsSet(false);this.itemId = 0;}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE:return Long.valueOf(getSource());case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE:return isSetSource();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForMarketplaceHistory_args)return this.equals((getCountForMarketplaceHistory_args)that);return false;}public boolean equals(getCountForMarketplaceHistory_args that) {if (that == null)return false;boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForMarketplaceHistory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForMarketplaceHistory_args typedOther = (getCountForMarketplaceHistory_args)other;lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForMarketplaceHistory_args(");boolean first = true;sb.append("source:");sb.append(this.source);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCountForMarketplaceHistory_result implements org.apache.thrift.TBase<getCountForMarketplaceHistory_result, getCountForMarketplaceHistory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForMarketplaceHistory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForMarketplaceHistory_result.class, metaDataMap);}public getCountForMarketplaceHistory_result() {}public getCountForMarketplaceHistory_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCountForMarketplaceHistory_result(getCountForMarketplaceHistory_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getCountForMarketplaceHistory_result deepCopy() {return new getCountForMarketplaceHistory_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCountForMarketplaceHistory_result)return this.equals((getCountForMarketplaceHistory_result)that);return false;}public boolean equals(getCountForMarketplaceHistory_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCountForMarketplaceHistory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCountForMarketplaceHistory_result typedOther = (getCountForMarketplaceHistory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCountForMarketplaceHistory_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketplaceHistoryByDate_args implements org.apache.thrift.TBase<getMarketplaceHistoryByDate_args, getMarketplaceHistoryByDate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistoryByDate_args");private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)5);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)6);private long source; // requiredprivate long startDate; // requiredprivate long endDate; // requiredprivate long offset; // requiredprivate long limit; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE((short)1, "source"),START_DATE((short)2, "startDate"),END_DATE((short)3, "endDate"),OFFSET((short)4, "offset"),LIMIT((short)5, "limit"),ITEM_ID((short)6, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCEreturn SOURCE;case 2: // START_DATEreturn START_DATE;case 3: // END_DATEreturn END_DATE;case 4: // OFFSETreturn OFFSET;case 5: // LIMITreturn LIMIT;case 6: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SOURCE_ISSET_ID = 0;private static final int __STARTDATE_ISSET_ID = 1;private static final int __ENDDATE_ISSET_ID = 2;private static final int __OFFSET_ISSET_ID = 3;private static final int __LIMIT_ISSET_ID = 4;private static final int __ITEMID_ISSET_ID = 5;private BitSet __isset_bit_vector = new BitSet(6);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistoryByDate_args.class, metaDataMap);}public getMarketplaceHistoryByDate_args() {}public getMarketplaceHistoryByDate_args(long source,long startDate,long endDate,long offset,long limit,long itemId){this();this.source = source;setSourceIsSet(true);this.startDate = startDate;setStartDateIsSet(true);this.endDate = endDate;setEndDateIsSet(true);this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getMarketplaceHistoryByDate_args(getMarketplaceHistoryByDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.source = other.source;this.startDate = other.startDate;this.endDate = other.endDate;this.offset = other.offset;this.limit = other.limit;this.itemId = other.itemId;}public getMarketplaceHistoryByDate_args deepCopy() {return new getMarketplaceHistoryByDate_args(this);}@Overridepublic void clear() {setSourceIsSet(false);this.source = 0;setStartDateIsSet(false);this.startDate = 0;setEndDateIsSet(false);this.endDate = 0;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;setItemIdIsSet(false);this.itemId = 0;}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public long getStartDate() {return this.startDate;}public void setStartDate(long startDate) {this.startDate = startDate;setStartDateIsSet(true);}public void unsetStartDate() {__isset_bit_vector.clear(__STARTDATE_ISSET_ID);}/** Returns true if field startDate is set (has been assigned a value) and false otherwise */public boolean isSetStartDate() {return __isset_bit_vector.get(__STARTDATE_ISSET_ID);}public void setStartDateIsSet(boolean value) {__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);}public long getEndDate() {return this.endDate;}public void setEndDate(long endDate) {this.endDate = endDate;setEndDateIsSet(true);}public void unsetEndDate() {__isset_bit_vector.clear(__ENDDATE_ISSET_ID);}/** Returns true if field endDate is set (has been assigned a value) and false otherwise */public boolean isSetEndDate() {return __isset_bit_vector.get(__ENDDATE_ISSET_ID);}public void setEndDateIsSet(boolean value) {__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;case START_DATE:if (value == null) {unsetStartDate();} else {setStartDate((Long)value);}break;case END_DATE:if (value == null) {unsetEndDate();} else {setEndDate((Long)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE:return Long.valueOf(getSource());case START_DATE:return Long.valueOf(getStartDate());case END_DATE:return Long.valueOf(getEndDate());case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE:return isSetSource();case START_DATE:return isSetStartDate();case END_DATE:return isSetEndDate();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketplaceHistoryByDate_args)return this.equals((getMarketplaceHistoryByDate_args)that);return false;}public boolean equals(getMarketplaceHistoryByDate_args that) {if (that == null)return false;boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}boolean this_present_startDate = true;boolean that_present_startDate = true;if (this_present_startDate || that_present_startDate) {if (!(this_present_startDate && that_present_startDate))return false;if (this.startDate != that.startDate)return false;}boolean this_present_endDate = true;boolean that_present_endDate = true;if (this_present_endDate || that_present_endDate) {if (!(this_present_endDate && that_present_endDate))return false;if (this.endDate != that.endDate)return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketplaceHistoryByDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketplaceHistoryByDate_args typedOther = (getMarketplaceHistoryByDate_args)other;lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());if (lastComparison != 0) {return lastComparison;}if (isSetStartDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());if (lastComparison != 0) {return lastComparison;}if (isSetEndDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // START_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDate = iprot.readI64();setStartDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // END_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.endDate = iprot.readI64();setEndDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldBegin(START_DATE_FIELD_DESC);oprot.writeI64(this.startDate);oprot.writeFieldEnd();oprot.writeFieldBegin(END_DATE_FIELD_DESC);oprot.writeI64(this.endDate);oprot.writeFieldEnd();oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketplaceHistoryByDate_args(");boolean first = true;sb.append("source:");sb.append(this.source);first = false;if (!first) sb.append(", ");sb.append("startDate:");sb.append(this.startDate);first = false;if (!first) sb.append(", ");sb.append("endDate:");sb.append(this.endDate);first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMarketplaceHistoryByDate_result implements org.apache.thrift.TBase<getMarketplaceHistoryByDate_result, getMarketplaceHistoryByDate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMarketplaceHistoryByDate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<MarketplaceHistory> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceHistory.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMarketplaceHistoryByDate_result.class, metaDataMap);}public getMarketplaceHistoryByDate_result() {}public getMarketplaceHistoryByDate_result(List<MarketplaceHistory> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getMarketplaceHistoryByDate_result(getMarketplaceHistoryByDate_result other) {if (other.isSetSuccess()) {List<MarketplaceHistory> __this__success = new ArrayList<MarketplaceHistory>();for (MarketplaceHistory other_element : other.success) {__this__success.add(new MarketplaceHistory(other_element));}this.success = __this__success;}}public getMarketplaceHistoryByDate_result deepCopy() {return new getMarketplaceHistoryByDate_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<MarketplaceHistory> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(MarketplaceHistory elem) {if (this.success == null) {this.success = new ArrayList<MarketplaceHistory>();}this.success.add(elem);}public List<MarketplaceHistory> getSuccess() {return this.success;}public void setSuccess(List<MarketplaceHistory> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<MarketplaceHistory>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMarketplaceHistoryByDate_result)return this.equals((getMarketplaceHistoryByDate_result)that);return false;}public boolean equals(getMarketplaceHistoryByDate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMarketplaceHistoryByDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMarketplaceHistoryByDate_result typedOther = (getMarketplaceHistoryByDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list389 = iprot.readListBegin();this.success = new ArrayList<MarketplaceHistory>(_list389.size);for (int _i390 = 0; _i390 < _list389.size; ++_i390){MarketplaceHistory _elem391; // required_elem391 = new MarketplaceHistory();_elem391.read(iprot);this.success.add(_elem391);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (MarketplaceHistory _iter392 : this.success){_iter392.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMarketplaceHistoryByDate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealDetails_args implements org.apache.thrift.TBase<getPrivateDealDetails_args, getPrivateDealDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealDetails_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealDetails_args.class, metaDataMap);}public getPrivateDealDetails_args() {}public getPrivateDealDetails_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealDetails_args(getPrivateDealDetails_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getPrivateDealDetails_args deepCopy() {return new getPrivateDealDetails_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealDetails_args)return this.equals((getPrivateDealDetails_args)that);return false;}public boolean equals(getPrivateDealDetails_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealDetails_args typedOther = (getPrivateDealDetails_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealDetails_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealDetails_result implements org.apache.thrift.TBase<getPrivateDealDetails_result, getPrivateDealDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private PrivateDeal success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDeal.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealDetails_result.class, metaDataMap);}public getPrivateDealDetails_result() {}public getPrivateDealDetails_result(PrivateDeal success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealDetails_result(getPrivateDealDetails_result other) {if (other.isSetSuccess()) {this.success = new PrivateDeal(other.success);}}public getPrivateDealDetails_result deepCopy() {return new getPrivateDealDetails_result(this);}@Overridepublic void clear() {this.success = null;}public PrivateDeal getSuccess() {return this.success;}public void setSuccess(PrivateDeal success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((PrivateDeal)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealDetails_result)return this.equals((getPrivateDealDetails_result)that);return false;}public boolean equals(getPrivateDealDetails_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealDetails_result typedOther = (getPrivateDealDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new PrivateDeal();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealDetails_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealItems_args implements org.apache.thrift.TBase<getPrivateDealItems_args, getPrivateDealItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealItems_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealItems_args.class, metaDataMap);}public getPrivateDealItems_args() {}public getPrivateDealItems_args(long offset,long limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealItems_args(getPrivateDealItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getPrivateDealItems_args deepCopy() {return new getPrivateDealItems_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealItems_args)return this.equals((getPrivateDealItems_args)that);return false;}public boolean equals(getPrivateDealItems_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealItems_args typedOther = (getPrivateDealItems_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealItems_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealItems_result implements org.apache.thrift.TBase<getPrivateDealItems_result, getPrivateDealItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealItems_result.class, metaDataMap);}public getPrivateDealItems_result() {}public getPrivateDealItems_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealItems_result(getPrivateDealItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getPrivateDealItems_result deepCopy() {return new getPrivateDealItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealItems_result)return this.equals((getPrivateDealItems_result)that);return false;}public boolean equals(getPrivateDealItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealItems_result typedOther = (getPrivateDealItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list393 = iprot.readListBegin();this.success = new ArrayList<Item>(_list393.size);for (int _i394 = 0; _i394 < _list393.size; ++_i394){Item _elem395; // required_elem395 = new Item();_elem395.read(iprot);this.success.add(_elem395);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter396 : this.success){_iter396.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllActivePrivateDeals_args implements org.apache.thrift.TBase<getAllActivePrivateDeals_args, getAllActivePrivateDeals_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllActivePrivateDeals_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField DAYS_DELTA_FIELD_DESC = new org.apache.thrift.protocol.TField("daysDelta", org.apache.thrift.protocol.TType.I64, (short)2);private List<Long> itemIds; // requiredprivate long daysDelta; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds"),DAYS_DELTA((short)2, "daysDelta");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;case 2: // DAYS_DELTAreturn DAYS_DELTA;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __DAYSDELTA_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.DAYS_DELTA, new org.apache.thrift.meta_data.FieldMetaData("daysDelta", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllActivePrivateDeals_args.class, metaDataMap);}public getAllActivePrivateDeals_args() {}public getAllActivePrivateDeals_args(List<Long> itemIds,long daysDelta){this();this.itemIds = itemIds;this.daysDelta = daysDelta;setDaysDeltaIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllActivePrivateDeals_args(getAllActivePrivateDeals_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}this.daysDelta = other.daysDelta;}public getAllActivePrivateDeals_args deepCopy() {return new getAllActivePrivateDeals_args(this);}@Overridepublic void clear() {this.itemIds = null;setDaysDeltaIsSet(false);this.daysDelta = 0;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public long getDaysDelta() {return this.daysDelta;}public void setDaysDelta(long daysDelta) {this.daysDelta = daysDelta;setDaysDeltaIsSet(true);}public void unsetDaysDelta() {__isset_bit_vector.clear(__DAYSDELTA_ISSET_ID);}/** Returns true if field daysDelta is set (has been assigned a value) and false otherwise */public boolean isSetDaysDelta() {return __isset_bit_vector.get(__DAYSDELTA_ISSET_ID);}public void setDaysDeltaIsSet(boolean value) {__isset_bit_vector.set(__DAYSDELTA_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;case DAYS_DELTA:if (value == null) {unsetDaysDelta();} else {setDaysDelta((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();case DAYS_DELTA:return Long.valueOf(getDaysDelta());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();case DAYS_DELTA:return isSetDaysDelta();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllActivePrivateDeals_args)return this.equals((getAllActivePrivateDeals_args)that);return false;}public boolean equals(getAllActivePrivateDeals_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}boolean this_present_daysDelta = true;boolean that_present_daysDelta = true;if (this_present_daysDelta || that_present_daysDelta) {if (!(this_present_daysDelta && that_present_daysDelta))return false;if (this.daysDelta != that.daysDelta)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllActivePrivateDeals_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllActivePrivateDeals_args typedOther = (getAllActivePrivateDeals_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDaysDelta()).compareTo(typedOther.isSetDaysDelta());if (lastComparison != 0) {return lastComparison;}if (isSetDaysDelta()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysDelta, typedOther.daysDelta);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list397 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list397.size);for (int _i398 = 0; _i398 < _list397.size; ++_i398){long _elem399; // required_elem399 = iprot.readI64();this.itemIds.add(_elem399);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DAYS_DELTAif (field.type == org.apache.thrift.protocol.TType.I64) {this.daysDelta = iprot.readI64();setDaysDeltaIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter400 : this.itemIds){oprot.writeI64(_iter400);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(DAYS_DELTA_FIELD_DESC);oprot.writeI64(this.daysDelta);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllActivePrivateDeals_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;if (!first) sb.append(", ");sb.append("daysDelta:");sb.append(this.daysDelta);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllActivePrivateDeals_result implements org.apache.thrift.TBase<getAllActivePrivateDeals_result, getAllActivePrivateDeals_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllActivePrivateDeals_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,PrivateDeal> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDeal.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllActivePrivateDeals_result.class, metaDataMap);}public getAllActivePrivateDeals_result() {}public getAllActivePrivateDeals_result(Map<Long,PrivateDeal> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllActivePrivateDeals_result(getAllActivePrivateDeals_result other) {if (other.isSetSuccess()) {Map<Long,PrivateDeal> __this__success = new HashMap<Long,PrivateDeal>();for (Map.Entry<Long, PrivateDeal> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();PrivateDeal other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;PrivateDeal __this__success_copy_value = new PrivateDeal(other_element_value);__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getAllActivePrivateDeals_result deepCopy() {return new getAllActivePrivateDeals_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, PrivateDeal val) {if (this.success == null) {this.success = new HashMap<Long,PrivateDeal>();}this.success.put(key, val);}public Map<Long,PrivateDeal> getSuccess() {return this.success;}public void setSuccess(Map<Long,PrivateDeal> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,PrivateDeal>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllActivePrivateDeals_result)return this.equals((getAllActivePrivateDeals_result)that);return false;}public boolean equals(getAllActivePrivateDeals_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllActivePrivateDeals_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllActivePrivateDeals_result typedOther = (getAllActivePrivateDeals_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map401 = iprot.readMapBegin();this.success = new HashMap<Long,PrivateDeal>(2*_map401.size);for (int _i402 = 0; _i402 < _map401.size; ++_i402){long _key403; // requiredPrivateDeal _val404; // required_key403 = iprot.readI64();_val404 = new PrivateDeal();_val404.read(iprot);this.success.put(_key403, _val404);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Map.Entry<Long, PrivateDeal> _iter405 : this.success.entrySet()){oprot.writeI64(_iter405.getKey());_iter405.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllActivePrivateDeals_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdatePrivateDeal_args implements org.apache.thrift.TBase<addOrUpdatePrivateDeal_args, addOrUpdatePrivateDeal_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdatePrivateDeal_args");private static final org.apache.thrift.protocol.TField PRIVATE_DEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("privateDeal", org.apache.thrift.protocol.TType.STRUCT, (short)1);private PrivateDeal privateDeal; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PRIVATE_DEAL((short)1, "privateDeal");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PRIVATE_DEALreturn PRIVATE_DEAL;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PRIVATE_DEAL, new org.apache.thrift.meta_data.FieldMetaData("privateDeal", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDeal.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdatePrivateDeal_args.class, metaDataMap);}public addOrUpdatePrivateDeal_args() {}public addOrUpdatePrivateDeal_args(PrivateDeal privateDeal){this();this.privateDeal = privateDeal;}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdatePrivateDeal_args(addOrUpdatePrivateDeal_args other) {if (other.isSetPrivateDeal()) {this.privateDeal = new PrivateDeal(other.privateDeal);}}public addOrUpdatePrivateDeal_args deepCopy() {return new addOrUpdatePrivateDeal_args(this);}@Overridepublic void clear() {this.privateDeal = null;}public PrivateDeal getPrivateDeal() {return this.privateDeal;}public void setPrivateDeal(PrivateDeal privateDeal) {this.privateDeal = privateDeal;}public void unsetPrivateDeal() {this.privateDeal = null;}/** Returns true if field privateDeal is set (has been assigned a value) and false otherwise */public boolean isSetPrivateDeal() {return this.privateDeal != null;}public void setPrivateDealIsSet(boolean value) {if (!value) {this.privateDeal = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PRIVATE_DEAL:if (value == null) {unsetPrivateDeal();} else {setPrivateDeal((PrivateDeal)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PRIVATE_DEAL:return getPrivateDeal();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PRIVATE_DEAL:return isSetPrivateDeal();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdatePrivateDeal_args)return this.equals((addOrUpdatePrivateDeal_args)that);return false;}public boolean equals(addOrUpdatePrivateDeal_args that) {if (that == null)return false;boolean this_present_privateDeal = true && this.isSetPrivateDeal();boolean that_present_privateDeal = true && that.isSetPrivateDeal();if (this_present_privateDeal || that_present_privateDeal) {if (!(this_present_privateDeal && that_present_privateDeal))return false;if (!this.privateDeal.equals(that.privateDeal))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdatePrivateDeal_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdatePrivateDeal_args typedOther = (addOrUpdatePrivateDeal_args)other;lastComparison = Boolean.valueOf(isSetPrivateDeal()).compareTo(typedOther.isSetPrivateDeal());if (lastComparison != 0) {return lastComparison;}if (isSetPrivateDeal()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privateDeal, typedOther.privateDeal);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PRIVATE_DEALif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.privateDeal = new PrivateDeal();this.privateDeal.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.privateDeal != null) {oprot.writeFieldBegin(PRIVATE_DEAL_FIELD_DESC);this.privateDeal.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdatePrivateDeal_args(");boolean first = true;sb.append("privateDeal:");if (this.privateDeal == null) {sb.append("null");} else {sb.append(this.privateDeal);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addOrUpdatePrivateDeal_result implements org.apache.thrift.TBase<addOrUpdatePrivateDeal_result, addOrUpdatePrivateDeal_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdatePrivateDeal_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdatePrivateDeal_result.class, metaDataMap);}public addOrUpdatePrivateDeal_result() {}public addOrUpdatePrivateDeal_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addOrUpdatePrivateDeal_result(addOrUpdatePrivateDeal_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addOrUpdatePrivateDeal_result deepCopy() {return new addOrUpdatePrivateDeal_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addOrUpdatePrivateDeal_result)return this.equals((addOrUpdatePrivateDeal_result)that);return false;}public boolean equals(addOrUpdatePrivateDeal_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addOrUpdatePrivateDeal_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addOrUpdatePrivateDeal_result typedOther = (addOrUpdatePrivateDeal_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addOrUpdatePrivateDeal_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealsCatalogIds_args implements org.apache.thrift.TBase<getPrivateDealsCatalogIds_args, getPrivateDealsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private long beginIndex; // requiredprivate long totalItems; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCatalogIds_args.class, metaDataMap);}public getPrivateDealsCatalogIds_args() {}public getPrivateDealsCatalogIds_args(long beginIndex,long totalItems){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealsCatalogIds_args(getPrivateDealsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;}public getPrivateDealsCatalogIds_args deepCopy() {return new getPrivateDealsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealsCatalogIds_args)return this.equals((getPrivateDealsCatalogIds_args)that);return false;}public boolean equals(getPrivateDealsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealsCatalogIds_args typedOther = (getPrivateDealsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealsCatalogIds_result implements org.apache.thrift.TBase<getPrivateDealsCatalogIds_result, getPrivateDealsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCatalogIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCatalogIds_result.class, metaDataMap);}public getPrivateDealsCatalogIds_result() {}public getPrivateDealsCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealsCatalogIds_result(getPrivateDealsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getPrivateDealsCatalogIds_result deepCopy() {return new getPrivateDealsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealsCatalogIds_result)return this.equals((getPrivateDealsCatalogIds_result)that);return false;}public boolean equals(getPrivateDealsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealsCatalogIds_result typedOther = (getPrivateDealsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list406 = iprot.readListBegin();this.success = new ArrayList<Long>(_list406.size);for (int _i407 = 0; _i407 < _list406.size; ++_i407){long _elem408; // required_elem408 = iprot.readI64();this.success.add(_elem408);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter409 : this.success){oprot.writeI64(_iter409);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealsCount_args implements org.apache.thrift.TBase<getPrivateDealsCount_args, getPrivateDealsCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCount_args.class, metaDataMap);}public getPrivateDealsCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealsCount_args(getPrivateDealsCount_args other) {}public getPrivateDealsCount_args deepCopy() {return new getPrivateDealsCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealsCount_args)return this.equals((getPrivateDealsCount_args)that);return false;}public boolean equals(getPrivateDealsCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealsCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealsCount_args typedOther = (getPrivateDealsCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealsCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPrivateDealsCount_result implements org.apache.thrift.TBase<getPrivateDealsCount_result, getPrivateDealsCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private int success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCount_result.class, metaDataMap);}public getPrivateDealsCount_result() {}public getPrivateDealsCount_result(int success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPrivateDealsCount_result(getPrivateDealsCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getPrivateDealsCount_result deepCopy() {return new getPrivateDealsCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public int getSuccess() {return this.success;}public void setSuccess(int success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Integer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Integer.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPrivateDealsCount_result)return this.equals((getPrivateDealsCount_result)that);return false;}public boolean equals(getPrivateDealsCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPrivateDealsCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPrivateDealsCount_result typedOther = (getPrivateDealsCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = iprot.readI32();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPrivateDealsCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonOutSyncItems_args implements org.apache.thrift.TBase<getAmazonOutSyncItems_args, getAmazonOutSyncItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOutSyncItems_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOutSyncItems_args.class, metaDataMap);}public getAmazonOutSyncItems_args() {}public getAmazonOutSyncItems_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAmazonOutSyncItems_args(getAmazonOutSyncItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getAmazonOutSyncItems_args deepCopy() {return new getAmazonOutSyncItems_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonOutSyncItems_args)return this.equals((getAmazonOutSyncItems_args)that);return false;}public boolean equals(getAmazonOutSyncItems_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonOutSyncItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonOutSyncItems_args typedOther = (getAmazonOutSyncItems_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonOutSyncItems_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonOutSyncItems_result implements org.apache.thrift.TBase<getAmazonOutSyncItems_result, getAmazonOutSyncItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOutSyncItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private AmazonOutOfSync success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonOutOfSync.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOutSyncItems_result.class, metaDataMap);}public getAmazonOutSyncItems_result() {}public getAmazonOutSyncItems_result(AmazonOutOfSync success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAmazonOutSyncItems_result(getAmazonOutSyncItems_result other) {if (other.isSetSuccess()) {this.success = new AmazonOutOfSync(other.success);}}public getAmazonOutSyncItems_result deepCopy() {return new getAmazonOutSyncItems_result(this);}@Overridepublic void clear() {this.success = null;}public AmazonOutOfSync getSuccess() {return this.success;}public void setSuccess(AmazonOutOfSync success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((AmazonOutOfSync)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonOutSyncItems_result)return this.equals((getAmazonOutSyncItems_result)that);return false;}public boolean equals(getAmazonOutSyncItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonOutSyncItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonOutSyncItems_result typedOther = (getAmazonOutSyncItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new AmazonOutOfSync();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonOutSyncItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllPrivateDealsComparison_args implements org.apache.thrift.TBase<getAllPrivateDealsComparison_args, getAllPrivateDealsComparison_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPrivateDealsComparison_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPrivateDealsComparison_args.class, metaDataMap);}public getAllPrivateDealsComparison_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllPrivateDealsComparison_args(getAllPrivateDealsComparison_args other) {}public getAllPrivateDealsComparison_args deepCopy() {return new getAllPrivateDealsComparison_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllPrivateDealsComparison_args)return this.equals((getAllPrivateDealsComparison_args)that);return false;}public boolean equals(getAllPrivateDealsComparison_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllPrivateDealsComparison_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllPrivateDealsComparison_args typedOther = (getAllPrivateDealsComparison_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllPrivateDealsComparison_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllPrivateDealsComparison_result implements org.apache.thrift.TBase<getAllPrivateDealsComparison_result, getAllPrivateDealsComparison_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPrivateDealsComparison_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<PdPriceComp> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PdPriceComp.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPrivateDealsComparison_result.class, metaDataMap);}public getAllPrivateDealsComparison_result() {}public getAllPrivateDealsComparison_result(List<PdPriceComp> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllPrivateDealsComparison_result(getAllPrivateDealsComparison_result other) {if (other.isSetSuccess()) {List<PdPriceComp> __this__success = new ArrayList<PdPriceComp>();for (PdPriceComp other_element : other.success) {__this__success.add(new PdPriceComp(other_element));}this.success = __this__success;}}public getAllPrivateDealsComparison_result deepCopy() {return new getAllPrivateDealsComparison_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<PdPriceComp> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(PdPriceComp elem) {if (this.success == null) {this.success = new ArrayList<PdPriceComp>();}this.success.add(elem);}public List<PdPriceComp> getSuccess() {return this.success;}public void setSuccess(List<PdPriceComp> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<PdPriceComp>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllPrivateDealsComparison_result)return this.equals((getAllPrivateDealsComparison_result)that);return false;}public boolean equals(getAllPrivateDealsComparison_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllPrivateDealsComparison_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllPrivateDealsComparison_result typedOther = (getAllPrivateDealsComparison_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list410 = iprot.readListBegin();this.success = new ArrayList<PdPriceComp>(_list410.size);for (int _i411 = 0; _i411 < _list410.size; ++_i411){PdPriceComp _elem412; // required_elem412 = new PdPriceComp();_elem412.read(iprot);this.success.add(_elem412);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (PdPriceComp _iter413 : this.success){_iter413.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllPrivateDealsComparison_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSnapdealMarketplaceItem_args implements org.apache.thrift.TBase<getAllSnapdealMarketplaceItem_args, getAllSnapdealMarketplaceItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealMarketplaceItem_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealMarketplaceItem_args.class, metaDataMap);}public getAllSnapdealMarketplaceItem_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllSnapdealMarketplaceItem_args(getAllSnapdealMarketplaceItem_args other) {}public getAllSnapdealMarketplaceItem_args deepCopy() {return new getAllSnapdealMarketplaceItem_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSnapdealMarketplaceItem_args)return this.equals((getAllSnapdealMarketplaceItem_args)that);return false;}public boolean equals(getAllSnapdealMarketplaceItem_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSnapdealMarketplaceItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSnapdealMarketplaceItem_args typedOther = (getAllSnapdealMarketplaceItem_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSnapdealMarketplaceItem_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSnapdealMarketplaceItem_result implements org.apache.thrift.TBase<getAllSnapdealMarketplaceItem_result, getAllSnapdealMarketplaceItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealMarketplaceItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<SnapdealItem> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealMarketplaceItem_result.class, metaDataMap);}public getAllSnapdealMarketplaceItem_result() {}public getAllSnapdealMarketplaceItem_result(List<SnapdealItem> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllSnapdealMarketplaceItem_result(getAllSnapdealMarketplaceItem_result other) {if (other.isSetSuccess()) {List<SnapdealItem> __this__success = new ArrayList<SnapdealItem>();for (SnapdealItem other_element : other.success) {__this__success.add(new SnapdealItem(other_element));}this.success = __this__success;}}public getAllSnapdealMarketplaceItem_result deepCopy() {return new getAllSnapdealMarketplaceItem_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<SnapdealItem> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(SnapdealItem elem) {if (this.success == null) {this.success = new ArrayList<SnapdealItem>();}this.success.add(elem);}public List<SnapdealItem> getSuccess() {return this.success;}public void setSuccess(List<SnapdealItem> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<SnapdealItem>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSnapdealMarketplaceItem_result)return this.equals((getAllSnapdealMarketplaceItem_result)that);return false;}public boolean equals(getAllSnapdealMarketplaceItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSnapdealMarketplaceItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSnapdealMarketplaceItem_result typedOther = (getAllSnapdealMarketplaceItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list414 = iprot.readListBegin();this.success = new ArrayList<SnapdealItem>(_list414.size);for (int _i415 = 0; _i415 < _list414.size; ++_i415){SnapdealItem _elem416; // required_elem416 = new SnapdealItem();_elem416.read(iprot);this.success.add(_elem416);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (SnapdealItem _iter417 : this.success){_iter417.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSnapdealMarketplaceItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFlipkartMarketplaceItem_args implements org.apache.thrift.TBase<getAllFlipkartMarketplaceItem_args, getAllFlipkartMarketplaceItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartMarketplaceItem_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartMarketplaceItem_args.class, metaDataMap);}public getAllFlipkartMarketplaceItem_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFlipkartMarketplaceItem_args(getAllFlipkartMarketplaceItem_args other) {}public getAllFlipkartMarketplaceItem_args deepCopy() {return new getAllFlipkartMarketplaceItem_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFlipkartMarketplaceItem_args)return this.equals((getAllFlipkartMarketplaceItem_args)that);return false;}public boolean equals(getAllFlipkartMarketplaceItem_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFlipkartMarketplaceItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFlipkartMarketplaceItem_args typedOther = (getAllFlipkartMarketplaceItem_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFlipkartMarketplaceItem_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFlipkartMarketplaceItem_result implements org.apache.thrift.TBase<getAllFlipkartMarketplaceItem_result, getAllFlipkartMarketplaceItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartMarketplaceItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<FlipkartItem> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartMarketplaceItem_result.class, metaDataMap);}public getAllFlipkartMarketplaceItem_result() {}public getAllFlipkartMarketplaceItem_result(List<FlipkartItem> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFlipkartMarketplaceItem_result(getAllFlipkartMarketplaceItem_result other) {if (other.isSetSuccess()) {List<FlipkartItem> __this__success = new ArrayList<FlipkartItem>();for (FlipkartItem other_element : other.success) {__this__success.add(new FlipkartItem(other_element));}this.success = __this__success;}}public getAllFlipkartMarketplaceItem_result deepCopy() {return new getAllFlipkartMarketplaceItem_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<FlipkartItem> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(FlipkartItem elem) {if (this.success == null) {this.success = new ArrayList<FlipkartItem>();}this.success.add(elem);}public List<FlipkartItem> getSuccess() {return this.success;}public void setSuccess(List<FlipkartItem> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<FlipkartItem>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFlipkartMarketplaceItem_result)return this.equals((getAllFlipkartMarketplaceItem_result)that);return false;}public boolean equals(getAllFlipkartMarketplaceItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFlipkartMarketplaceItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFlipkartMarketplaceItem_result typedOther = (getAllFlipkartMarketplaceItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list418 = iprot.readListBegin();this.success = new ArrayList<FlipkartItem>(_list418.size);for (int _i419 = 0; _i419 < _list418.size; ++_i419){FlipkartItem _elem420; // required_elem420 = new FlipkartItem();_elem420.read(iprot);this.success.add(_elem420);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (FlipkartItem _iter421 : this.success){_iter421.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFlipkartMarketplaceItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCompetitorScraping_args implements org.apache.thrift.TBase<addCompetitorScraping_args, addCompetitorScraping_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCompetitorScraping_args");private static final org.apache.thrift.protocol.TField COMPETITOR_PRICING_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("competitorPricingMap", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<Long,CompetitorPricing> competitorPricingMap; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {COMPETITOR_PRICING_MAP((short)1, "competitorPricingMap");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // COMPETITOR_PRICING_MAPreturn COMPETITOR_PRICING_MAP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.COMPETITOR_PRICING_MAP, new org.apache.thrift.meta_data.FieldMetaData("competitorPricingMap", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompetitorPricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCompetitorScraping_args.class, metaDataMap);}public addCompetitorScraping_args() {}public addCompetitorScraping_args(Map<Long,CompetitorPricing> competitorPricingMap){this();this.competitorPricingMap = competitorPricingMap;}/*** Performs a deep copy on <i>other</i>.*/public addCompetitorScraping_args(addCompetitorScraping_args other) {if (other.isSetCompetitorPricingMap()) {Map<Long,CompetitorPricing> __this__competitorPricingMap = new HashMap<Long,CompetitorPricing>();for (Map.Entry<Long, CompetitorPricing> other_element : other.competitorPricingMap.entrySet()) {Long other_element_key = other_element.getKey();CompetitorPricing other_element_value = other_element.getValue();Long __this__competitorPricingMap_copy_key = other_element_key;CompetitorPricing __this__competitorPricingMap_copy_value = new CompetitorPricing(other_element_value);__this__competitorPricingMap.put(__this__competitorPricingMap_copy_key, __this__competitorPricingMap_copy_value);}this.competitorPricingMap = __this__competitorPricingMap;}}public addCompetitorScraping_args deepCopy() {return new addCompetitorScraping_args(this);}@Overridepublic void clear() {this.competitorPricingMap = null;}public int getCompetitorPricingMapSize() {return (this.competitorPricingMap == null) ? 0 : this.competitorPricingMap.size();}public void putToCompetitorPricingMap(long key, CompetitorPricing val) {if (this.competitorPricingMap == null) {this.competitorPricingMap = new HashMap<Long,CompetitorPricing>();}this.competitorPricingMap.put(key, val);}public Map<Long,CompetitorPricing> getCompetitorPricingMap() {return this.competitorPricingMap;}public void setCompetitorPricingMap(Map<Long,CompetitorPricing> competitorPricingMap) {this.competitorPricingMap = competitorPricingMap;}public void unsetCompetitorPricingMap() {this.competitorPricingMap = null;}/** Returns true if field competitorPricingMap is set (has been assigned a value) and false otherwise */public boolean isSetCompetitorPricingMap() {return this.competitorPricingMap != null;}public void setCompetitorPricingMapIsSet(boolean value) {if (!value) {this.competitorPricingMap = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case COMPETITOR_PRICING_MAP:if (value == null) {unsetCompetitorPricingMap();} else {setCompetitorPricingMap((Map<Long,CompetitorPricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case COMPETITOR_PRICING_MAP:return getCompetitorPricingMap();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case COMPETITOR_PRICING_MAP:return isSetCompetitorPricingMap();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCompetitorScraping_args)return this.equals((addCompetitorScraping_args)that);return false;}public boolean equals(addCompetitorScraping_args that) {if (that == null)return false;boolean this_present_competitorPricingMap = true && this.isSetCompetitorPricingMap();boolean that_present_competitorPricingMap = true && that.isSetCompetitorPricingMap();if (this_present_competitorPricingMap || that_present_competitorPricingMap) {if (!(this_present_competitorPricingMap && that_present_competitorPricingMap))return false;if (!this.competitorPricingMap.equals(that.competitorPricingMap))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCompetitorScraping_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCompetitorScraping_args typedOther = (addCompetitorScraping_args)other;lastComparison = Boolean.valueOf(isSetCompetitorPricingMap()).compareTo(typedOther.isSetCompetitorPricingMap());if (lastComparison != 0) {return lastComparison;}if (isSetCompetitorPricingMap()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.competitorPricingMap, typedOther.competitorPricingMap);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // COMPETITOR_PRICING_MAPif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map422 = iprot.readMapBegin();this.competitorPricingMap = new HashMap<Long,CompetitorPricing>(2*_map422.size);for (int _i423 = 0; _i423 < _map422.size; ++_i423){long _key424; // requiredCompetitorPricing _val425; // required_key424 = iprot.readI64();_val425 = new CompetitorPricing();_val425.read(iprot);this.competitorPricingMap.put(_key424, _val425);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.competitorPricingMap != null) {oprot.writeFieldBegin(COMPETITOR_PRICING_MAP_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.competitorPricingMap.size()));for (Map.Entry<Long, CompetitorPricing> _iter426 : this.competitorPricingMap.entrySet()){oprot.writeI64(_iter426.getKey());_iter426.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCompetitorScraping_args(");boolean first = true;sb.append("competitorPricingMap:");if (this.competitorPricingMap == null) {sb.append("null");} else {sb.append(this.competitorPricingMap);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCompetitorScraping_result implements org.apache.thrift.TBase<addCompetitorScraping_result, addCompetitorScraping_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCompetitorScraping_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCompetitorScraping_result.class, metaDataMap);}public addCompetitorScraping_result() {}/*** Performs a deep copy on <i>other</i>.*/public addCompetitorScraping_result(addCompetitorScraping_result other) {}public addCompetitorScraping_result deepCopy() {return new addCompetitorScraping_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCompetitorScraping_result)return this.equals((addCompetitorScraping_result)that);return false;}public boolean equals(addCompetitorScraping_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCompetitorScraping_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCompetitorScraping_result typedOther = (addCompetitorScraping_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCompetitorScraping_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPreviousCompetitorScraping_args implements org.apache.thrift.TBase<getPreviousCompetitorScraping_args, getPreviousCompetitorScraping_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviousCompetitorScraping_args");private static final org.apache.thrift.protocol.TField DELTA_FIELD_DESC = new org.apache.thrift.protocol.TField("delta", org.apache.thrift.protocol.TType.I64, (short)1);private long delta; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DELTA((short)1, "delta");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DELTAreturn DELTA;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __DELTA_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DELTA, new org.apache.thrift.meta_data.FieldMetaData("delta", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviousCompetitorScraping_args.class, metaDataMap);}public getPreviousCompetitorScraping_args() {}public getPreviousCompetitorScraping_args(long delta){this();this.delta = delta;setDeltaIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPreviousCompetitorScraping_args(getPreviousCompetitorScraping_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.delta = other.delta;}public getPreviousCompetitorScraping_args deepCopy() {return new getPreviousCompetitorScraping_args(this);}@Overridepublic void clear() {setDeltaIsSet(false);this.delta = 0;}public long getDelta() {return this.delta;}public void setDelta(long delta) {this.delta = delta;setDeltaIsSet(true);}public void unsetDelta() {__isset_bit_vector.clear(__DELTA_ISSET_ID);}/** Returns true if field delta is set (has been assigned a value) and false otherwise */public boolean isSetDelta() {return __isset_bit_vector.get(__DELTA_ISSET_ID);}public void setDeltaIsSet(boolean value) {__isset_bit_vector.set(__DELTA_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case DELTA:if (value == null) {unsetDelta();} else {setDelta((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DELTA:return Long.valueOf(getDelta());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DELTA:return isSetDelta();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPreviousCompetitorScraping_args)return this.equals((getPreviousCompetitorScraping_args)that);return false;}public boolean equals(getPreviousCompetitorScraping_args that) {if (that == null)return false;boolean this_present_delta = true;boolean that_present_delta = true;if (this_present_delta || that_present_delta) {if (!(this_present_delta && that_present_delta))return false;if (this.delta != that.delta)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPreviousCompetitorScraping_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPreviousCompetitorScraping_args typedOther = (getPreviousCompetitorScraping_args)other;lastComparison = Boolean.valueOf(isSetDelta()).compareTo(typedOther.isSetDelta());if (lastComparison != 0) {return lastComparison;}if (isSetDelta()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delta, typedOther.delta);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DELTAif (field.type == org.apache.thrift.protocol.TType.I64) {this.delta = iprot.readI64();setDeltaIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(DELTA_FIELD_DESC);oprot.writeI64(this.delta);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPreviousCompetitorScraping_args(");boolean first = true;sb.append("delta:");sb.append(this.delta);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPreviousCompetitorScraping_result implements org.apache.thrift.TBase<getPreviousCompetitorScraping_result, getPreviousCompetitorScraping_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviousCompetitorScraping_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<CompetitorPricing> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompetitorPricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviousCompetitorScraping_result.class, metaDataMap);}public getPreviousCompetitorScraping_result() {}public getPreviousCompetitorScraping_result(List<CompetitorPricing> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPreviousCompetitorScraping_result(getPreviousCompetitorScraping_result other) {if (other.isSetSuccess()) {List<CompetitorPricing> __this__success = new ArrayList<CompetitorPricing>();for (CompetitorPricing other_element : other.success) {__this__success.add(new CompetitorPricing(other_element));}this.success = __this__success;}}public getPreviousCompetitorScraping_result deepCopy() {return new getPreviousCompetitorScraping_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<CompetitorPricing> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(CompetitorPricing elem) {if (this.success == null) {this.success = new ArrayList<CompetitorPricing>();}this.success.add(elem);}public List<CompetitorPricing> getSuccess() {return this.success;}public void setSuccess(List<CompetitorPricing> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<CompetitorPricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPreviousCompetitorScraping_result)return this.equals((getPreviousCompetitorScraping_result)that);return false;}public boolean equals(getPreviousCompetitorScraping_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPreviousCompetitorScraping_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPreviousCompetitorScraping_result typedOther = (getPreviousCompetitorScraping_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list427 = iprot.readListBegin();this.success = new ArrayList<CompetitorPricing>(_list427.size);for (int _i428 = 0; _i428 < _list427.size; ++_i428){CompetitorPricing _elem429; // required_elem429 = new CompetitorPricing();_elem429.read(iprot);this.success.add(_elem429);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (CompetitorPricing _iter430 : this.success){_iter430.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPreviousCompetitorScraping_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUploadResultById_args implements org.apache.thrift.TBase<getUploadResultById_args, getUploadResultById_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUploadResultById_args");private static final org.apache.thrift.protocol.TField UPLOAD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadId", org.apache.thrift.protocol.TType.I64, (short)1);private long uploadId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {UPLOAD_ID((short)1, "uploadId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // UPLOAD_IDreturn UPLOAD_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __UPLOADID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.UPLOAD_ID, new org.apache.thrift.meta_data.FieldMetaData("uploadId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUploadResultById_args.class, metaDataMap);}public getUploadResultById_args() {}public getUploadResultById_args(long uploadId){this();this.uploadId = uploadId;setUploadIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getUploadResultById_args(getUploadResultById_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.uploadId = other.uploadId;}public getUploadResultById_args deepCopy() {return new getUploadResultById_args(this);}@Overridepublic void clear() {setUploadIdIsSet(false);this.uploadId = 0;}public long getUploadId() {return this.uploadId;}public void setUploadId(long uploadId) {this.uploadId = uploadId;setUploadIdIsSet(true);}public void unsetUploadId() {__isset_bit_vector.clear(__UPLOADID_ISSET_ID);}/** Returns true if field uploadId is set (has been assigned a value) and false otherwise */public boolean isSetUploadId() {return __isset_bit_vector.get(__UPLOADID_ISSET_ID);}public void setUploadIdIsSet(boolean value) {__isset_bit_vector.set(__UPLOADID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case UPLOAD_ID:if (value == null) {unsetUploadId();} else {setUploadId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case UPLOAD_ID:return Long.valueOf(getUploadId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case UPLOAD_ID:return isSetUploadId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUploadResultById_args)return this.equals((getUploadResultById_args)that);return false;}public boolean equals(getUploadResultById_args that) {if (that == null)return false;boolean this_present_uploadId = true;boolean that_present_uploadId = true;if (this_present_uploadId || that_present_uploadId) {if (!(this_present_uploadId && that_present_uploadId))return false;if (this.uploadId != that.uploadId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUploadResultById_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUploadResultById_args typedOther = (getUploadResultById_args)other;lastComparison = Boolean.valueOf(isSetUploadId()).compareTo(typedOther.isSetUploadId());if (lastComparison != 0) {return lastComparison;}if (isSetUploadId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uploadId, typedOther.uploadId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // UPLOAD_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.uploadId = iprot.readI64();setUploadIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(UPLOAD_ID_FIELD_DESC);oprot.writeI64(this.uploadId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUploadResultById_args(");boolean first = true;sb.append("uploadId:");sb.append(this.uploadId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUploadResultById_result implements org.apache.thrift.TBase<getUploadResultById_result, getUploadResultById_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUploadResultById_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<CompetitorPricing> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompetitorPricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUploadResultById_result.class, metaDataMap);}public getUploadResultById_result() {}public getUploadResultById_result(List<CompetitorPricing> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getUploadResultById_result(getUploadResultById_result other) {if (other.isSetSuccess()) {List<CompetitorPricing> __this__success = new ArrayList<CompetitorPricing>();for (CompetitorPricing other_element : other.success) {__this__success.add(new CompetitorPricing(other_element));}this.success = __this__success;}}public getUploadResultById_result deepCopy() {return new getUploadResultById_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<CompetitorPricing> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(CompetitorPricing elem) {if (this.success == null) {this.success = new ArrayList<CompetitorPricing>();}this.success.add(elem);}public List<CompetitorPricing> getSuccess() {return this.success;}public void setSuccess(List<CompetitorPricing> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<CompetitorPricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUploadResultById_result)return this.equals((getUploadResultById_result)that);return false;}public boolean equals(getUploadResultById_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUploadResultById_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUploadResultById_result typedOther = (getUploadResultById_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list431 = iprot.readListBegin();this.success = new ArrayList<CompetitorPricing>(_list431.size);for (int _i432 = 0; _i432 < _list431.size; ++_i432){CompetitorPricing _elem433; // required_elem433 = new CompetitorPricing();_elem433.read(iprot);this.success.add(_elem433);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (CompetitorPricing _iter434 : this.success){_iter434.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUploadResultById_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAmazonPromotion_args implements org.apache.thrift.TBase<addAmazonPromotion_args, addAmazonPromotion_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonPromotion_args");private static final org.apache.thrift.protocol.TField AMAZON_PROMOTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonPromotions", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<String,AmazonPromotion> amazonPromotions; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AMAZON_PROMOTIONS((short)1, "amazonPromotions");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AMAZON_PROMOTIONSreturn AMAZON_PROMOTIONS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AMAZON_PROMOTIONS, new org.apache.thrift.meta_data.FieldMetaData("amazonPromotions", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonPromotion.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonPromotion_args.class, metaDataMap);}public addAmazonPromotion_args() {}public addAmazonPromotion_args(Map<String,AmazonPromotion> amazonPromotions){this();this.amazonPromotions = amazonPromotions;}/*** Performs a deep copy on <i>other</i>.*/public addAmazonPromotion_args(addAmazonPromotion_args other) {if (other.isSetAmazonPromotions()) {Map<String,AmazonPromotion> __this__amazonPromotions = new HashMap<String,AmazonPromotion>();for (Map.Entry<String, AmazonPromotion> other_element : other.amazonPromotions.entrySet()) {String other_element_key = other_element.getKey();AmazonPromotion other_element_value = other_element.getValue();String __this__amazonPromotions_copy_key = other_element_key;AmazonPromotion __this__amazonPromotions_copy_value = new AmazonPromotion(other_element_value);__this__amazonPromotions.put(__this__amazonPromotions_copy_key, __this__amazonPromotions_copy_value);}this.amazonPromotions = __this__amazonPromotions;}}public addAmazonPromotion_args deepCopy() {return new addAmazonPromotion_args(this);}@Overridepublic void clear() {this.amazonPromotions = null;}public int getAmazonPromotionsSize() {return (this.amazonPromotions == null) ? 0 : this.amazonPromotions.size();}public void putToAmazonPromotions(String key, AmazonPromotion val) {if (this.amazonPromotions == null) {this.amazonPromotions = new HashMap<String,AmazonPromotion>();}this.amazonPromotions.put(key, val);}public Map<String,AmazonPromotion> getAmazonPromotions() {return this.amazonPromotions;}public void setAmazonPromotions(Map<String,AmazonPromotion> amazonPromotions) {this.amazonPromotions = amazonPromotions;}public void unsetAmazonPromotions() {this.amazonPromotions = null;}/** Returns true if field amazonPromotions is set (has been assigned a value) and false otherwise */public boolean isSetAmazonPromotions() {return this.amazonPromotions != null;}public void setAmazonPromotionsIsSet(boolean value) {if (!value) {this.amazonPromotions = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AMAZON_PROMOTIONS:if (value == null) {unsetAmazonPromotions();} else {setAmazonPromotions((Map<String,AmazonPromotion>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AMAZON_PROMOTIONS:return getAmazonPromotions();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AMAZON_PROMOTIONS:return isSetAmazonPromotions();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAmazonPromotion_args)return this.equals((addAmazonPromotion_args)that);return false;}public boolean equals(addAmazonPromotion_args that) {if (that == null)return false;boolean this_present_amazonPromotions = true && this.isSetAmazonPromotions();boolean that_present_amazonPromotions = true && that.isSetAmazonPromotions();if (this_present_amazonPromotions || that_present_amazonPromotions) {if (!(this_present_amazonPromotions && that_present_amazonPromotions))return false;if (!this.amazonPromotions.equals(that.amazonPromotions))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAmazonPromotion_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAmazonPromotion_args typedOther = (addAmazonPromotion_args)other;lastComparison = Boolean.valueOf(isSetAmazonPromotions()).compareTo(typedOther.isSetAmazonPromotions());if (lastComparison != 0) {return lastComparison;}if (isSetAmazonPromotions()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonPromotions, typedOther.amazonPromotions);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AMAZON_PROMOTIONSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map435 = iprot.readMapBegin();this.amazonPromotions = new HashMap<String,AmazonPromotion>(2*_map435.size);for (int _i436 = 0; _i436 < _map435.size; ++_i436){String _key437; // requiredAmazonPromotion _val438; // required_key437 = iprot.readString();_val438 = new AmazonPromotion();_val438.read(iprot);this.amazonPromotions.put(_key437, _val438);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.amazonPromotions != null) {oprot.writeFieldBegin(AMAZON_PROMOTIONS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.amazonPromotions.size()));for (Map.Entry<String, AmazonPromotion> _iter439 : this.amazonPromotions.entrySet()){oprot.writeString(_iter439.getKey());_iter439.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAmazonPromotion_args(");boolean first = true;sb.append("amazonPromotions:");if (this.amazonPromotions == null) {sb.append("null");} else {sb.append(this.amazonPromotions);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAmazonPromotion_result implements org.apache.thrift.TBase<addAmazonPromotion_result, addAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonPromotion_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<String> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonPromotion_result.class, metaDataMap);}public addAmazonPromotion_result() {}public addAmazonPromotion_result(List<String> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addAmazonPromotion_result(addAmazonPromotion_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addAmazonPromotion_result deepCopy() {return new addAmazonPromotion_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAmazonPromotion_result)return this.equals((addAmazonPromotion_result)that);return false;}public boolean equals(addAmazonPromotion_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAmazonPromotion_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAmazonPromotion_result typedOther = (addAmazonPromotion_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list440 = iprot.readListBegin();this.success = new ArrayList<String>(_list440.size);for (int _i441 = 0; _i441 < _list440.size; ++_i441){String _elem442; // required_elem442 = iprot.readString();this.success.add(_elem442);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter443 : this.success){oprot.writeString(_iter443);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAmazonPromotion_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonPromotion_args implements org.apache.thrift.TBase<getAmazonPromotion_args, getAmazonPromotion_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonPromotion_args");private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);private long startDate; // requiredprivate long endDate; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATE((short)1, "startDate"),END_DATE((short)2, "endDate");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATEreturn START_DATE;case 2: // END_DATEreturn END_DATE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STARTDATE_ISSET_ID = 0;private static final int __ENDDATE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonPromotion_args.class, metaDataMap);}public getAmazonPromotion_args() {}public getAmazonPromotion_args(long startDate,long endDate){this();this.startDate = startDate;setStartDateIsSet(true);this.endDate = endDate;setEndDateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAmazonPromotion_args(getAmazonPromotion_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDate = other.startDate;this.endDate = other.endDate;}public getAmazonPromotion_args deepCopy() {return new getAmazonPromotion_args(this);}@Overridepublic void clear() {setStartDateIsSet(false);this.startDate = 0;setEndDateIsSet(false);this.endDate = 0;}public long getStartDate() {return this.startDate;}public void setStartDate(long startDate) {this.startDate = startDate;setStartDateIsSet(true);}public void unsetStartDate() {__isset_bit_vector.clear(__STARTDATE_ISSET_ID);}/** Returns true if field startDate is set (has been assigned a value) and false otherwise */public boolean isSetStartDate() {return __isset_bit_vector.get(__STARTDATE_ISSET_ID);}public void setStartDateIsSet(boolean value) {__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);}public long getEndDate() {return this.endDate;}public void setEndDate(long endDate) {this.endDate = endDate;setEndDateIsSet(true);}public void unsetEndDate() {__isset_bit_vector.clear(__ENDDATE_ISSET_ID);}/** Returns true if field endDate is set (has been assigned a value) and false otherwise */public boolean isSetEndDate() {return __isset_bit_vector.get(__ENDDATE_ISSET_ID);}public void setEndDateIsSet(boolean value) {__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATE:if (value == null) {unsetStartDate();} else {setStartDate((Long)value);}break;case END_DATE:if (value == null) {unsetEndDate();} else {setEndDate((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATE:return Long.valueOf(getStartDate());case END_DATE:return Long.valueOf(getEndDate());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATE:return isSetStartDate();case END_DATE:return isSetEndDate();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonPromotion_args)return this.equals((getAmazonPromotion_args)that);return false;}public boolean equals(getAmazonPromotion_args that) {if (that == null)return false;boolean this_present_startDate = true;boolean that_present_startDate = true;if (this_present_startDate || that_present_startDate) {if (!(this_present_startDate && that_present_startDate))return false;if (this.startDate != that.startDate)return false;}boolean this_present_endDate = true;boolean that_present_endDate = true;if (this_present_endDate || that_present_endDate) {if (!(this_present_endDate && that_present_endDate))return false;if (this.endDate != that.endDate)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonPromotion_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonPromotion_args typedOther = (getAmazonPromotion_args)other;lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());if (lastComparison != 0) {return lastComparison;}if (isSetStartDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());if (lastComparison != 0) {return lastComparison;}if (isSetEndDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDate = iprot.readI64();setStartDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // END_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.endDate = iprot.readI64();setEndDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATE_FIELD_DESC);oprot.writeI64(this.startDate);oprot.writeFieldEnd();oprot.writeFieldBegin(END_DATE_FIELD_DESC);oprot.writeI64(this.endDate);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonPromotion_args(");boolean first = true;sb.append("startDate:");sb.append(this.startDate);first = false;if (!first) sb.append(", ");sb.append("endDate:");sb.append(this.endDate);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAmazonPromotion_result implements org.apache.thrift.TBase<getAmazonPromotion_result, getAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonPromotion_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<AmazonPromotion> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonPromotion.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonPromotion_result.class, metaDataMap);}public getAmazonPromotion_result() {}public getAmazonPromotion_result(List<AmazonPromotion> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAmazonPromotion_result(getAmazonPromotion_result other) {if (other.isSetSuccess()) {List<AmazonPromotion> __this__success = new ArrayList<AmazonPromotion>();for (AmazonPromotion other_element : other.success) {__this__success.add(new AmazonPromotion(other_element));}this.success = __this__success;}}public getAmazonPromotion_result deepCopy() {return new getAmazonPromotion_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<AmazonPromotion> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(AmazonPromotion elem) {if (this.success == null) {this.success = new ArrayList<AmazonPromotion>();}this.success.add(elem);}public List<AmazonPromotion> getSuccess() {return this.success;}public void setSuccess(List<AmazonPromotion> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<AmazonPromotion>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAmazonPromotion_result)return this.equals((getAmazonPromotion_result)that);return false;}public boolean equals(getAmazonPromotion_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAmazonPromotion_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAmazonPromotion_result typedOther = (getAmazonPromotion_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list444 = iprot.readListBegin();this.success = new ArrayList<AmazonPromotion>(_list444.size);for (int _i445 = 0; _i445 < _list444.size; ++_i445){AmazonPromotion _elem446; // required_elem446 = new AmazonPromotion();_elem446.read(iprot);this.success.add(_elem446);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (AmazonPromotion _iter447 : this.success){_iter447.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAmazonPromotion_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAmazonPromotion_args implements org.apache.thrift.TBase<updateAmazonPromotion_args, updateAmazonPromotion_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonPromotion_args");private static final org.apache.thrift.protocol.TField AMAZON_PROMOTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonPromotions", org.apache.thrift.protocol.TType.LIST, (short)1);private List<AmazonPromotion> amazonPromotions; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AMAZON_PROMOTIONS((short)1, "amazonPromotions");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AMAZON_PROMOTIONSreturn AMAZON_PROMOTIONS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AMAZON_PROMOTIONS, new org.apache.thrift.meta_data.FieldMetaData("amazonPromotions", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonPromotion.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonPromotion_args.class, metaDataMap);}public updateAmazonPromotion_args() {}public updateAmazonPromotion_args(List<AmazonPromotion> amazonPromotions){this();this.amazonPromotions = amazonPromotions;}/*** Performs a deep copy on <i>other</i>.*/public updateAmazonPromotion_args(updateAmazonPromotion_args other) {if (other.isSetAmazonPromotions()) {List<AmazonPromotion> __this__amazonPromotions = new ArrayList<AmazonPromotion>();for (AmazonPromotion other_element : other.amazonPromotions) {__this__amazonPromotions.add(new AmazonPromotion(other_element));}this.amazonPromotions = __this__amazonPromotions;}}public updateAmazonPromotion_args deepCopy() {return new updateAmazonPromotion_args(this);}@Overridepublic void clear() {this.amazonPromotions = null;}public int getAmazonPromotionsSize() {return (this.amazonPromotions == null) ? 0 : this.amazonPromotions.size();}public java.util.Iterator<AmazonPromotion> getAmazonPromotionsIterator() {return (this.amazonPromotions == null) ? null : this.amazonPromotions.iterator();}public void addToAmazonPromotions(AmazonPromotion elem) {if (this.amazonPromotions == null) {this.amazonPromotions = new ArrayList<AmazonPromotion>();}this.amazonPromotions.add(elem);}public List<AmazonPromotion> getAmazonPromotions() {return this.amazonPromotions;}public void setAmazonPromotions(List<AmazonPromotion> amazonPromotions) {this.amazonPromotions = amazonPromotions;}public void unsetAmazonPromotions() {this.amazonPromotions = null;}/** Returns true if field amazonPromotions is set (has been assigned a value) and false otherwise */public boolean isSetAmazonPromotions() {return this.amazonPromotions != null;}public void setAmazonPromotionsIsSet(boolean value) {if (!value) {this.amazonPromotions = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AMAZON_PROMOTIONS:if (value == null) {unsetAmazonPromotions();} else {setAmazonPromotions((List<AmazonPromotion>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AMAZON_PROMOTIONS:return getAmazonPromotions();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AMAZON_PROMOTIONS:return isSetAmazonPromotions();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAmazonPromotion_args)return this.equals((updateAmazonPromotion_args)that);return false;}public boolean equals(updateAmazonPromotion_args that) {if (that == null)return false;boolean this_present_amazonPromotions = true && this.isSetAmazonPromotions();boolean that_present_amazonPromotions = true && that.isSetAmazonPromotions();if (this_present_amazonPromotions || that_present_amazonPromotions) {if (!(this_present_amazonPromotions && that_present_amazonPromotions))return false;if (!this.amazonPromotions.equals(that.amazonPromotions))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAmazonPromotion_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAmazonPromotion_args typedOther = (updateAmazonPromotion_args)other;lastComparison = Boolean.valueOf(isSetAmazonPromotions()).compareTo(typedOther.isSetAmazonPromotions());if (lastComparison != 0) {return lastComparison;}if (isSetAmazonPromotions()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonPromotions, typedOther.amazonPromotions);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AMAZON_PROMOTIONSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list448 = iprot.readListBegin();this.amazonPromotions = new ArrayList<AmazonPromotion>(_list448.size);for (int _i449 = 0; _i449 < _list448.size; ++_i449){AmazonPromotion _elem450; // required_elem450 = new AmazonPromotion();_elem450.read(iprot);this.amazonPromotions.add(_elem450);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.amazonPromotions != null) {oprot.writeFieldBegin(AMAZON_PROMOTIONS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.amazonPromotions.size()));for (AmazonPromotion _iter451 : this.amazonPromotions){_iter451.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAmazonPromotion_args(");boolean first = true;sb.append("amazonPromotions:");if (this.amazonPromotions == null) {sb.append("null");} else {sb.append(this.amazonPromotions);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateAmazonPromotion_result implements org.apache.thrift.TBase<updateAmazonPromotion_result, updateAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonPromotion_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonPromotion_result.class, metaDataMap);}public updateAmazonPromotion_result() {}public updateAmazonPromotion_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateAmazonPromotion_result(updateAmazonPromotion_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateAmazonPromotion_result deepCopy() {return new updateAmazonPromotion_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateAmazonPromotion_result)return this.equals((updateAmazonPromotion_result)that);return false;}public boolean equals(updateAmazonPromotion_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateAmazonPromotion_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateAmazonPromotion_result typedOther = (updateAmazonPromotion_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateAmazonPromotion_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markPartiallyActive_args implements org.apache.thrift.TBase<markPartiallyActive_args, markPartiallyActive_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartiallyActive_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long categoryId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),CATEGORY_ID((short)2, "categoryId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // CATEGORY_IDreturn CATEGORY_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __CATEGORYID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPartiallyActive_args.class, metaDataMap);}public markPartiallyActive_args() {}public markPartiallyActive_args(long itemId,long categoryId){this();this.itemId = itemId;setItemIdIsSet(true);this.categoryId = categoryId;setCategoryIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markPartiallyActive_args(markPartiallyActive_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.categoryId = other.categoryId;}public markPartiallyActive_args deepCopy() {return new markPartiallyActive_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setCategoryIdIsSet(false);this.categoryId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getCategoryId() {return this.categoryId;}public void setCategoryId(long categoryId) {this.categoryId = categoryId;setCategoryIdIsSet(true);}public void unsetCategoryId() {__isset_bit_vector.clear(__CATEGORYID_ISSET_ID);}/** Returns true if field categoryId is set (has been assigned a value) and false otherwise */public boolean isSetCategoryId() {return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);}public void setCategoryIdIsSet(boolean value) {__isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case CATEGORY_ID:if (value == null) {unsetCategoryId();} else {setCategoryId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case CATEGORY_ID:return Long.valueOf(getCategoryId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case CATEGORY_ID:return isSetCategoryId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markPartiallyActive_args)return this.equals((markPartiallyActive_args)that);return false;}public boolean equals(markPartiallyActive_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_categoryId = true;boolean that_present_categoryId = true;if (this_present_categoryId || that_present_categoryId) {if (!(this_present_categoryId && that_present_categoryId))return false;if (this.categoryId != that.categoryId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markPartiallyActive_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markPartiallyActive_args typedOther = (markPartiallyActive_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());if (lastComparison != 0) {return lastComparison;}if (isSetCategoryId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATEGORY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.categoryId = iprot.readI64();setCategoryIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);oprot.writeI64(this.categoryId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markPartiallyActive_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("categoryId:");sb.append(this.categoryId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markPartiallyActive_result implements org.apache.thrift.TBase<markPartiallyActive_result, markPartiallyActive_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartiallyActive_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPartiallyActive_result.class, metaDataMap);}public markPartiallyActive_result() {}public markPartiallyActive_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markPartiallyActive_result(markPartiallyActive_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public markPartiallyActive_result deepCopy() {return new markPartiallyActive_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markPartiallyActive_result)return this.equals((markPartiallyActive_result)that);return false;}public boolean equals(markPartiallyActive_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markPartiallyActive_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markPartiallyActive_result typedOther = (markPartiallyActive_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markPartiallyActive_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemStateVat_args implements org.apache.thrift.TBase<updateItemStateVat_args, updateItemStateVat_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStateVat_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField STATEVAT_FIELD_DESC = new org.apache.thrift.protocol.TField("statevat", org.apache.thrift.protocol.TType.MAP, (short)2);private long itemId; // requiredprivate Map<Long,Double> statevat; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),STATEVAT((short)2, "statevat");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // STATEVATreturn STATEVAT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATEVAT, new org.apache.thrift.meta_data.FieldMetaData("statevat", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStateVat_args.class, metaDataMap);}public updateItemStateVat_args() {}public updateItemStateVat_args(long itemId,Map<Long,Double> statevat){this();this.itemId = itemId;setItemIdIsSet(true);this.statevat = statevat;}/*** Performs a deep copy on <i>other</i>.*/public updateItemStateVat_args(updateItemStateVat_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;if (other.isSetStatevat()) {Map<Long,Double> __this__statevat = new HashMap<Long,Double>();for (Map.Entry<Long, Double> other_element : other.statevat.entrySet()) {Long other_element_key = other_element.getKey();Double other_element_value = other_element.getValue();Long __this__statevat_copy_key = other_element_key;Double __this__statevat_copy_value = other_element_value;__this__statevat.put(__this__statevat_copy_key, __this__statevat_copy_value);}this.statevat = __this__statevat;}}public updateItemStateVat_args deepCopy() {return new updateItemStateVat_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;this.statevat = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public int getStatevatSize() {return (this.statevat == null) ? 0 : this.statevat.size();}public void putToStatevat(long key, double val) {if (this.statevat == null) {this.statevat = new HashMap<Long,Double>();}this.statevat.put(key, val);}public Map<Long,Double> getStatevat() {return this.statevat;}public void setStatevat(Map<Long,Double> statevat) {this.statevat = statevat;}public void unsetStatevat() {this.statevat = null;}/** Returns true if field statevat is set (has been assigned a value) and false otherwise */public boolean isSetStatevat() {return this.statevat != null;}public void setStatevatIsSet(boolean value) {if (!value) {this.statevat = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case STATEVAT:if (value == null) {unsetStatevat();} else {setStatevat((Map<Long,Double>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case STATEVAT:return getStatevat();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case STATEVAT:return isSetStatevat();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemStateVat_args)return this.equals((updateItemStateVat_args)that);return false;}public boolean equals(updateItemStateVat_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_statevat = true && this.isSetStatevat();boolean that_present_statevat = true && that.isSetStatevat();if (this_present_statevat || that_present_statevat) {if (!(this_present_statevat && that_present_statevat))return false;if (!this.statevat.equals(that.statevat))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemStateVat_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemStateVat_args typedOther = (updateItemStateVat_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatevat()).compareTo(typedOther.isSetStatevat());if (lastComparison != 0) {return lastComparison;}if (isSetStatevat()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statevat, typedOther.statevat);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // STATEVATif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map452 = iprot.readMapBegin();this.statevat = new HashMap<Long,Double>(2*_map452.size);for (int _i453 = 0; _i453 < _map452.size; ++_i453){long _key454; // requireddouble _val455; // required_key454 = iprot.readI64();_val455 = iprot.readDouble();this.statevat.put(_key454, _val455);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();if (this.statevat != null) {oprot.writeFieldBegin(STATEVAT_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.statevat.size()));for (Map.Entry<Long, Double> _iter456 : this.statevat.entrySet()){oprot.writeI64(_iter456.getKey());oprot.writeDouble(_iter456.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemStateVat_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("statevat:");if (this.statevat == null) {sb.append("null");} else {sb.append(this.statevat);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemStateVat_result implements org.apache.thrift.TBase<updateItemStateVat_result, updateItemStateVat_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStateVat_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStateVat_result.class, metaDataMap);}public updateItemStateVat_result() {}public updateItemStateVat_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateItemStateVat_result(updateItemStateVat_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateItemStateVat_result deepCopy() {return new updateItemStateVat_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemStateVat_result)return this.equals((updateItemStateVat_result)that);return false;}public boolean equals(updateItemStateVat_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemStateVat_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemStateVat_result typedOther = (updateItemStateVat_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemStateVat_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getExAffiliateItemInfo_args implements org.apache.thrift.TBase<getExAffiliateItemInfo_args, getExAffiliateItemInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExAffiliateItemInfo_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExAffiliateItemInfo_args.class, metaDataMap);}public getExAffiliateItemInfo_args() {}/*** Performs a deep copy on <i>other</i>.*/public getExAffiliateItemInfo_args(getExAffiliateItemInfo_args other) {}public getExAffiliateItemInfo_args deepCopy() {return new getExAffiliateItemInfo_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getExAffiliateItemInfo_args)return this.equals((getExAffiliateItemInfo_args)that);return false;}public boolean equals(getExAffiliateItemInfo_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getExAffiliateItemInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getExAffiliateItemInfo_args typedOther = (getExAffiliateItemInfo_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getExAffiliateItemInfo_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getExAffiliateItemInfo_result implements org.apache.thrift.TBase<getExAffiliateItemInfo_result, getExAffiliateItemInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExAffiliateItemInfo_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,ExclusiveAffiliateItemInfo> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ExclusiveAffiliateItemInfo.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExAffiliateItemInfo_result.class, metaDataMap);}public getExAffiliateItemInfo_result() {}public getExAffiliateItemInfo_result(Map<Long,ExclusiveAffiliateItemInfo> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getExAffiliateItemInfo_result(getExAffiliateItemInfo_result other) {if (other.isSetSuccess()) {Map<Long,ExclusiveAffiliateItemInfo> __this__success = new HashMap<Long,ExclusiveAffiliateItemInfo>();for (Map.Entry<Long, ExclusiveAffiliateItemInfo> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();ExclusiveAffiliateItemInfo other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;ExclusiveAffiliateItemInfo __this__success_copy_value = new ExclusiveAffiliateItemInfo(other_element_value);__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getExAffiliateItemInfo_result deepCopy() {return new getExAffiliateItemInfo_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, ExclusiveAffiliateItemInfo val) {if (this.success == null) {this.success = new HashMap<Long,ExclusiveAffiliateItemInfo>();}this.success.put(key, val);}public Map<Long,ExclusiveAffiliateItemInfo> getSuccess() {return this.success;}public void setSuccess(Map<Long,ExclusiveAffiliateItemInfo> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,ExclusiveAffiliateItemInfo>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getExAffiliateItemInfo_result)return this.equals((getExAffiliateItemInfo_result)that);return false;}public boolean equals(getExAffiliateItemInfo_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getExAffiliateItemInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getExAffiliateItemInfo_result typedOther = (getExAffiliateItemInfo_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map457 = iprot.readMapBegin();this.success = new HashMap<Long,ExclusiveAffiliateItemInfo>(2*_map457.size);for (int _i458 = 0; _i458 < _map457.size; ++_i458){long _key459; // requiredExclusiveAffiliateItemInfo _val460; // required_key459 = iprot.readI64();_val460 = new ExclusiveAffiliateItemInfo();_val460.read(iprot);this.success.put(_key459, _val460);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Map.Entry<Long, ExclusiveAffiliateItemInfo> _iter461 : this.success.entrySet()){oprot.writeI64(_iter461.getKey());_iter461.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getExAffiliateItemInfo_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnFbg_args implements org.apache.thrift.TBase<getAllItemstoListOnFbg_args, getAllItemstoListOnFbg_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbg_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbg_args.class, metaDataMap);}public getAllItemstoListOnFbg_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnFbg_args(getAllItemstoListOnFbg_args other) {}public getAllItemstoListOnFbg_args deepCopy() {return new getAllItemstoListOnFbg_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnFbg_args)return this.equals((getAllItemstoListOnFbg_args)that);return false;}public boolean equals(getAllItemstoListOnFbg_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnFbg_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnFbg_args typedOther = (getAllItemstoListOnFbg_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnFbg_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnFbg_result implements org.apache.thrift.TBase<getAllItemstoListOnFbg_result, getAllItemstoListOnFbg_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbg_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbg_result.class, metaDataMap);}public getAllItemstoListOnFbg_result() {}public getAllItemstoListOnFbg_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnFbg_result(getAllItemstoListOnFbg_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllItemstoListOnFbg_result deepCopy() {return new getAllItemstoListOnFbg_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnFbg_result)return this.equals((getAllItemstoListOnFbg_result)that);return false;}public boolean equals(getAllItemstoListOnFbg_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnFbg_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnFbg_result typedOther = (getAllItemstoListOnFbg_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list462 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list462.size);for (int _i463 = 0; _i463 < _list462.size; ++_i463){Amazonlisted _elem464; // required_elem464 = new Amazonlisted();_elem464.read(iprot);this.success.add(_elem464);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter465 : this.success){_iter465.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnFbg_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbgListedItems_args implements org.apache.thrift.TBase<getAllFbgListedItems_args, getAllFbgListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbgListedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbgListedItems_args.class, metaDataMap);}public getAllFbgListedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFbgListedItems_args(getAllFbgListedItems_args other) {}public getAllFbgListedItems_args deepCopy() {return new getAllFbgListedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbgListedItems_args)return this.equals((getAllFbgListedItems_args)that);return false;}public boolean equals(getAllFbgListedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbgListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbgListedItems_args typedOther = (getAllFbgListedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbgListedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbgListedItems_result implements org.apache.thrift.TBase<getAllFbgListedItems_result, getAllFbgListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbgListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbgListedItems_result.class, metaDataMap);}public getAllFbgListedItems_result() {}public getAllFbgListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFbgListedItems_result(getAllFbgListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllFbgListedItems_result deepCopy() {return new getAllFbgListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbgListedItems_result)return this.equals((getAllFbgListedItems_result)that);return false;}public boolean equals(getAllFbgListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbgListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbgListedItems_result typedOther = (getAllFbgListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list466 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list466.size);for (int _i467 = 0; _i467 < _list466.size; ++_i467){Amazonlisted _elem468; // required_elem468 = new Amazonlisted();_elem468.read(iprot);this.success.add(_elem468);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter469 : this.success){_iter469.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbgListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class checkServices_args implements org.apache.thrift.TBase<checkServices_args, checkServices_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkServices_args");private static final org.apache.thrift.protocol.TField LINES_FIELD_DESC = new org.apache.thrift.protocol.TField("lines", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<Long,Map<String,Long>> lines; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {LINES((short)1, "lines");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // LINESreturn LINES;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.LINES, new org.apache.thrift.meta_data.FieldMetaData("lines", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkServices_args.class, metaDataMap);}public checkServices_args() {}public checkServices_args(Map<Long,Map<String,Long>> lines){this();this.lines = lines;}/*** Performs a deep copy on <i>other</i>.*/public checkServices_args(checkServices_args other) {if (other.isSetLines()) {Map<Long,Map<String,Long>> __this__lines = new HashMap<Long,Map<String,Long>>();for (Map.Entry<Long, Map<String,Long>> other_element : other.lines.entrySet()) {Long other_element_key = other_element.getKey();Map<String,Long> other_element_value = other_element.getValue();Long __this__lines_copy_key = other_element_key;Map<String,Long> __this__lines_copy_value = new HashMap<String,Long>();for (Map.Entry<String, Long> other_element_value_element : other_element_value.entrySet()) {String other_element_value_element_key = other_element_value_element.getKey();Long other_element_value_element_value = other_element_value_element.getValue();String __this__lines_copy_value_copy_key = other_element_value_element_key;Long __this__lines_copy_value_copy_value = other_element_value_element_value;__this__lines_copy_value.put(__this__lines_copy_value_copy_key, __this__lines_copy_value_copy_value);}__this__lines.put(__this__lines_copy_key, __this__lines_copy_value);}this.lines = __this__lines;}}public checkServices_args deepCopy() {return new checkServices_args(this);}@Overridepublic void clear() {this.lines = null;}public int getLinesSize() {return (this.lines == null) ? 0 : this.lines.size();}public void putToLines(long key, Map<String,Long> val) {if (this.lines == null) {this.lines = new HashMap<Long,Map<String,Long>>();}this.lines.put(key, val);}public Map<Long,Map<String,Long>> getLines() {return this.lines;}public void setLines(Map<Long,Map<String,Long>> lines) {this.lines = lines;}public void unsetLines() {this.lines = null;}/** Returns true if field lines is set (has been assigned a value) and false otherwise */public boolean isSetLines() {return this.lines != null;}public void setLinesIsSet(boolean value) {if (!value) {this.lines = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case LINES:if (value == null) {unsetLines();} else {setLines((Map<Long,Map<String,Long>>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case LINES:return getLines();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case LINES:return isSetLines();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof checkServices_args)return this.equals((checkServices_args)that);return false;}public boolean equals(checkServices_args that) {if (that == null)return false;boolean this_present_lines = true && this.isSetLines();boolean that_present_lines = true && that.isSetLines();if (this_present_lines || that_present_lines) {if (!(this_present_lines && that_present_lines))return false;if (!this.lines.equals(that.lines))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(checkServices_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;checkServices_args typedOther = (checkServices_args)other;lastComparison = Boolean.valueOf(isSetLines()).compareTo(typedOther.isSetLines());if (lastComparison != 0) {return lastComparison;}if (isSetLines()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lines, typedOther.lines);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // LINESif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map470 = iprot.readMapBegin();this.lines = new HashMap<Long,Map<String,Long>>(2*_map470.size);for (int _i471 = 0; _i471 < _map470.size; ++_i471){long _key472; // requiredMap<String,Long> _val473; // required_key472 = iprot.readI64();{org.apache.thrift.protocol.TMap _map474 = iprot.readMapBegin();_val473 = new HashMap<String,Long>(2*_map474.size);for (int _i475 = 0; _i475 < _map474.size; ++_i475){String _key476; // requiredlong _val477; // required_key476 = iprot.readString();_val477 = iprot.readI64();_val473.put(_key476, _val477);}iprot.readMapEnd();}this.lines.put(_key472, _val473);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.lines != null) {oprot.writeFieldBegin(LINES_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.lines.size()));for (Map.Entry<Long, Map<String,Long>> _iter478 : this.lines.entrySet()){oprot.writeI64(_iter478.getKey());{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, _iter478.getValue().size()));for (Map.Entry<String, Long> _iter479 : _iter478.getValue().entrySet()){oprot.writeString(_iter479.getKey());oprot.writeI64(_iter479.getValue());}oprot.writeMapEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("checkServices_args(");boolean first = true;sb.append("lines:");if (this.lines == null) {sb.append("null");} else {sb.append(this.lines);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class checkServices_result implements org.apache.thrift.TBase<checkServices_result, checkServices_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkServices_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,Map<String,Long>> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkServices_result.class, metaDataMap);}public checkServices_result() {}public checkServices_result(Map<Long,Map<String,Long>> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public checkServices_result(checkServices_result other) {if (other.isSetSuccess()) {Map<Long,Map<String,Long>> __this__success = new HashMap<Long,Map<String,Long>>();for (Map.Entry<Long, Map<String,Long>> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Map<String,Long> other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Map<String,Long> __this__success_copy_value = new HashMap<String,Long>();for (Map.Entry<String, Long> other_element_value_element : other_element_value.entrySet()) {String other_element_value_element_key = other_element_value_element.getKey();Long other_element_value_element_value = other_element_value_element.getValue();String __this__success_copy_value_copy_key = other_element_value_element_key;Long __this__success_copy_value_copy_value = other_element_value_element_value;__this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);}__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public checkServices_result deepCopy() {return new checkServices_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, Map<String,Long> val) {if (this.success == null) {this.success = new HashMap<Long,Map<String,Long>>();}this.success.put(key, val);}public Map<Long,Map<String,Long>> getSuccess() {return this.success;}public void setSuccess(Map<Long,Map<String,Long>> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Map<String,Long>>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof checkServices_result)return this.equals((checkServices_result)that);return false;}public boolean equals(checkServices_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(checkServices_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;checkServices_result typedOther = (checkServices_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map480 = iprot.readMapBegin();this.success = new HashMap<Long,Map<String,Long>>(2*_map480.size);for (int _i481 = 0; _i481 < _map480.size; ++_i481){long _key482; // requiredMap<String,Long> _val483; // required_key482 = iprot.readI64();{org.apache.thrift.protocol.TMap _map484 = iprot.readMapBegin();_val483 = new HashMap<String,Long>(2*_map484.size);for (int _i485 = 0; _i485 < _map484.size; ++_i485){String _key486; // requiredlong _val487; // required_key486 = iprot.readString();_val487 = iprot.readI64();_val483.put(_key486, _val487);}iprot.readMapEnd();}this.success.put(_key482, _val483);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));for (Map.Entry<Long, Map<String,Long>> _iter488 : this.success.entrySet()){oprot.writeI64(_iter488.getKey());{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, _iter488.getValue().size()));for (Map.Entry<String, Long> _iter489 : _iter488.getValue().entrySet()){oprot.writeString(_iter489.getKey());oprot.writeI64(_iter489.getValue());}oprot.writeMapEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("checkServices_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addHsItem_args implements org.apache.thrift.TBase<addHsItem_args, addHsItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addHsItem_args");private static final org.apache.thrift.protocol.TField HS_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItems", org.apache.thrift.protocol.TType.LIST, (short)1);private List<HsItem> hsItems; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {HS_ITEMS((short)1, "hsItems");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // HS_ITEMSreturn HS_ITEMS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.HS_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("hsItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsItem.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addHsItem_args.class, metaDataMap);}public addHsItem_args() {}public addHsItem_args(List<HsItem> hsItems){this();this.hsItems = hsItems;}/*** Performs a deep copy on <i>other</i>.*/public addHsItem_args(addHsItem_args other) {if (other.isSetHsItems()) {List<HsItem> __this__hsItems = new ArrayList<HsItem>();for (HsItem other_element : other.hsItems) {__this__hsItems.add(new HsItem(other_element));}this.hsItems = __this__hsItems;}}public addHsItem_args deepCopy() {return new addHsItem_args(this);}@Overridepublic void clear() {this.hsItems = null;}public int getHsItemsSize() {return (this.hsItems == null) ? 0 : this.hsItems.size();}public java.util.Iterator<HsItem> getHsItemsIterator() {return (this.hsItems == null) ? null : this.hsItems.iterator();}public void addToHsItems(HsItem elem) {if (this.hsItems == null) {this.hsItems = new ArrayList<HsItem>();}this.hsItems.add(elem);}public List<HsItem> getHsItems() {return this.hsItems;}public void setHsItems(List<HsItem> hsItems) {this.hsItems = hsItems;}public void unsetHsItems() {this.hsItems = null;}/** Returns true if field hsItems is set (has been assigned a value) and false otherwise */public boolean isSetHsItems() {return this.hsItems != null;}public void setHsItemsIsSet(boolean value) {if (!value) {this.hsItems = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case HS_ITEMS:if (value == null) {unsetHsItems();} else {setHsItems((List<HsItem>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case HS_ITEMS:return getHsItems();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case HS_ITEMS:return isSetHsItems();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addHsItem_args)return this.equals((addHsItem_args)that);return false;}public boolean equals(addHsItem_args that) {if (that == null)return false;boolean this_present_hsItems = true && this.isSetHsItems();boolean that_present_hsItems = true && that.isSetHsItems();if (this_present_hsItems || that_present_hsItems) {if (!(this_present_hsItems && that_present_hsItems))return false;if (!this.hsItems.equals(that.hsItems))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addHsItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addHsItem_args typedOther = (addHsItem_args)other;lastComparison = Boolean.valueOf(isSetHsItems()).compareTo(typedOther.isSetHsItems());if (lastComparison != 0) {return lastComparison;}if (isSetHsItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItems, typedOther.hsItems);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // HS_ITEMSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list490 = iprot.readListBegin();this.hsItems = new ArrayList<HsItem>(_list490.size);for (int _i491 = 0; _i491 < _list490.size; ++_i491){HsItem _elem492; // required_elem492 = new HsItem();_elem492.read(iprot);this.hsItems.add(_elem492);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.hsItems != null) {oprot.writeFieldBegin(HS_ITEMS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.hsItems.size()));for (HsItem _iter493 : this.hsItems){_iter493.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addHsItem_args(");boolean first = true;sb.append("hsItems:");if (this.hsItems == null) {sb.append("null");} else {sb.append(this.hsItems);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addHsItem_result implements org.apache.thrift.TBase<addHsItem_result, addHsItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addHsItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addHsItem_result.class, metaDataMap);}public addHsItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public addHsItem_result(addHsItem_result other) {}public addHsItem_result deepCopy() {return new addHsItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addHsItem_result)return this.equals((addHsItem_result)that);return false;}public boolean equals(addHsItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addHsItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addHsItem_result typedOther = (addHsItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addHsItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getHsItem_args implements org.apache.thrift.TBase<getHsItem_args, getHsItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsItem_args");private static final org.apache.thrift.protocol.TField HS_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItemId", org.apache.thrift.protocol.TType.STRING, (short)1);private String hsItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {HS_ITEM_ID((short)1, "hsItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // HS_ITEM_IDreturn HS_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.HS_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("hsItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsItem_args.class, metaDataMap);}public getHsItem_args() {}public getHsItem_args(String hsItemId){this();this.hsItemId = hsItemId;}/*** Performs a deep copy on <i>other</i>.*/public getHsItem_args(getHsItem_args other) {if (other.isSetHsItemId()) {this.hsItemId = other.hsItemId;}}public getHsItem_args deepCopy() {return new getHsItem_args(this);}@Overridepublic void clear() {this.hsItemId = null;}public String getHsItemId() {return this.hsItemId;}public void setHsItemId(String hsItemId) {this.hsItemId = hsItemId;}public void unsetHsItemId() {this.hsItemId = null;}/** Returns true if field hsItemId is set (has been assigned a value) and false otherwise */public boolean isSetHsItemId() {return this.hsItemId != null;}public void setHsItemIdIsSet(boolean value) {if (!value) {this.hsItemId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case HS_ITEM_ID:if (value == null) {unsetHsItemId();} else {setHsItemId((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case HS_ITEM_ID:return getHsItemId();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case HS_ITEM_ID:return isSetHsItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getHsItem_args)return this.equals((getHsItem_args)that);return false;}public boolean equals(getHsItem_args that) {if (that == null)return false;boolean this_present_hsItemId = true && this.isSetHsItemId();boolean that_present_hsItemId = true && that.isSetHsItemId();if (this_present_hsItemId || that_present_hsItemId) {if (!(this_present_hsItemId && that_present_hsItemId))return false;if (!this.hsItemId.equals(that.hsItemId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getHsItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getHsItem_args typedOther = (getHsItem_args)other;lastComparison = Boolean.valueOf(isSetHsItemId()).compareTo(typedOther.isSetHsItemId());if (lastComparison != 0) {return lastComparison;}if (isSetHsItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItemId, typedOther.hsItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // HS_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.hsItemId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.hsItemId != null) {oprot.writeFieldBegin(HS_ITEM_ID_FIELD_DESC);oprot.writeString(this.hsItemId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getHsItem_args(");boolean first = true;sb.append("hsItemId:");if (this.hsItemId == null) {sb.append("null");} else {sb.append(this.hsItemId);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getHsItem_result implements org.apache.thrift.TBase<getHsItem_result, getHsItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private HsItem success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsItem_result.class, metaDataMap);}public getHsItem_result() {}public getHsItem_result(HsItem success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getHsItem_result(getHsItem_result other) {if (other.isSetSuccess()) {this.success = new HsItem(other.success);}}public getHsItem_result deepCopy() {return new getHsItem_result(this);}@Overridepublic void clear() {this.success = null;}public HsItem getSuccess() {return this.success;}public void setSuccess(HsItem success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((HsItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getHsItem_result)return this.equals((getHsItem_result)that);return false;}public boolean equals(getHsItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getHsItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getHsItem_result typedOther = (getHsItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new HsItem();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getHsItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateHsItem_args implements org.apache.thrift.TBase<updateHsItem_args, updateHsItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateHsItem_args");private static final org.apache.thrift.protocol.TField HS_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HsItem hsItem; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {HS_ITEM((short)1, "hsItem");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // HS_ITEMreturn HS_ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.HS_ITEM, new org.apache.thrift.meta_data.FieldMetaData("hsItem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsItem.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateHsItem_args.class, metaDataMap);}public updateHsItem_args() {}public updateHsItem_args(HsItem hsItem){this();this.hsItem = hsItem;}/*** Performs a deep copy on <i>other</i>.*/public updateHsItem_args(updateHsItem_args other) {if (other.isSetHsItem()) {this.hsItem = new HsItem(other.hsItem);}}public updateHsItem_args deepCopy() {return new updateHsItem_args(this);}@Overridepublic void clear() {this.hsItem = null;}public HsItem getHsItem() {return this.hsItem;}public void setHsItem(HsItem hsItem) {this.hsItem = hsItem;}public void unsetHsItem() {this.hsItem = null;}/** Returns true if field hsItem is set (has been assigned a value) and false otherwise */public boolean isSetHsItem() {return this.hsItem != null;}public void setHsItemIsSet(boolean value) {if (!value) {this.hsItem = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case HS_ITEM:if (value == null) {unsetHsItem();} else {setHsItem((HsItem)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case HS_ITEM:return getHsItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case HS_ITEM:return isSetHsItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateHsItem_args)return this.equals((updateHsItem_args)that);return false;}public boolean equals(updateHsItem_args that) {if (that == null)return false;boolean this_present_hsItem = true && this.isSetHsItem();boolean that_present_hsItem = true && that.isSetHsItem();if (this_present_hsItem || that_present_hsItem) {if (!(this_present_hsItem && that_present_hsItem))return false;if (!this.hsItem.equals(that.hsItem))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateHsItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateHsItem_args typedOther = (updateHsItem_args)other;lastComparison = Boolean.valueOf(isSetHsItem()).compareTo(typedOther.isSetHsItem());if (lastComparison != 0) {return lastComparison;}if (isSetHsItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItem, typedOther.hsItem);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // HS_ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hsItem = new HsItem();this.hsItem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.hsItem != null) {oprot.writeFieldBegin(HS_ITEM_FIELD_DESC);this.hsItem.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateHsItem_args(");boolean first = true;sb.append("hsItem:");if (this.hsItem == null) {sb.append("null");} else {sb.append(this.hsItem);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateHsItem_result implements org.apache.thrift.TBase<updateHsItem_result, updateHsItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateHsItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateHsItem_result.class, metaDataMap);}public updateHsItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateHsItem_result(updateHsItem_result other) {}public updateHsItem_result deepCopy() {return new updateHsItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateHsItem_result)return this.equals((updateHsItem_result)that);return false;}public boolean equals(updateHsItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateHsItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateHsItem_result typedOther = (updateHsItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateHsItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPricingForDtr_args implements org.apache.thrift.TBase<getPricingForDtr_args, getPricingForDtr_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPricingForDtr_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);private long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOGITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPricingForDtr_args.class, metaDataMap);}public getPricingForDtr_args() {}public getPricingForDtr_args(long catalogItemId){this();this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getPricingForDtr_args(getPricingForDtr_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalogItemId = other.catalogItemId;}public getPricingForDtr_args deepCopy() {return new getPricingForDtr_args(this);}@Overridepublic void clear() {setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPricingForDtr_args)return this.equals((getPricingForDtr_args)that);return false;}public boolean equals(getPricingForDtr_args that) {if (that == null)return false;boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPricingForDtr_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPricingForDtr_args typedOther = (getPricingForDtr_args)other;lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPricingForDtr_args(");boolean first = true;sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPricingForDtr_result implements org.apache.thrift.TBase<getPricingForDtr_result, getPricingForDtr_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPricingForDtr_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private DtrPricing success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DtrPricing.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPricingForDtr_result.class, metaDataMap);}public getPricingForDtr_result() {}public getPricingForDtr_result(DtrPricing success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPricingForDtr_result(getPricingForDtr_result other) {if (other.isSetSuccess()) {this.success = new DtrPricing(other.success);}}public getPricingForDtr_result deepCopy() {return new getPricingForDtr_result(this);}@Overridepublic void clear() {this.success = null;}public DtrPricing getSuccess() {return this.success;}public void setSuccess(DtrPricing success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((DtrPricing)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPricingForDtr_result)return this.equals((getPricingForDtr_result)that);return false;}public boolean equals(getPricingForDtr_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPricingForDtr_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPricingForDtr_result typedOther = (getPricingForDtr_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new DtrPricing();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPricingForDtr_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnFbd_args implements org.apache.thrift.TBase<getAllItemstoListOnFbd_args, getAllItemstoListOnFbd_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbd_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbd_args.class, metaDataMap);}public getAllItemstoListOnFbd_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnFbd_args(getAllItemstoListOnFbd_args other) {}public getAllItemstoListOnFbd_args deepCopy() {return new getAllItemstoListOnFbd_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnFbd_args)return this.equals((getAllItemstoListOnFbd_args)that);return false;}public boolean equals(getAllItemstoListOnFbd_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnFbd_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnFbd_args typedOther = (getAllItemstoListOnFbd_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnFbd_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemstoListOnFbd_result implements org.apache.thrift.TBase<getAllItemstoListOnFbd_result, getAllItemstoListOnFbd_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbd_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbd_result.class, metaDataMap);}public getAllItemstoListOnFbd_result() {}public getAllItemstoListOnFbd_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemstoListOnFbd_result(getAllItemstoListOnFbd_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllItemstoListOnFbd_result deepCopy() {return new getAllItemstoListOnFbd_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemstoListOnFbd_result)return this.equals((getAllItemstoListOnFbd_result)that);return false;}public boolean equals(getAllItemstoListOnFbd_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemstoListOnFbd_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemstoListOnFbd_result typedOther = (getAllItemstoListOnFbd_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list494 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list494.size);for (int _i495 = 0; _i495 < _list494.size; ++_i495){Amazonlisted _elem496; // required_elem496 = new Amazonlisted();_elem496.read(iprot);this.success.add(_elem496);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter497 : this.success){_iter497.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemstoListOnFbd_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbdListedItems_args implements org.apache.thrift.TBase<getAllFbdListedItems_args, getAllFbdListedItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbdListedItems_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbdListedItems_args.class, metaDataMap);}public getAllFbdListedItems_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllFbdListedItems_args(getAllFbdListedItems_args other) {}public getAllFbdListedItems_args deepCopy() {return new getAllFbdListedItems_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbdListedItems_args)return this.equals((getAllFbdListedItems_args)that);return false;}public boolean equals(getAllFbdListedItems_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbdListedItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbdListedItems_args typedOther = (getAllFbdListedItems_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbdListedItems_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFbdListedItems_result implements org.apache.thrift.TBase<getAllFbdListedItems_result, getAllFbdListedItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbdListedItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Amazonlisted> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbdListedItems_result.class, metaDataMap);}public getAllFbdListedItems_result() {}public getAllFbdListedItems_result(List<Amazonlisted> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFbdListedItems_result(getAllFbdListedItems_result other) {if (other.isSetSuccess()) {List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();for (Amazonlisted other_element : other.success) {__this__success.add(new Amazonlisted(other_element));}this.success = __this__success;}}public getAllFbdListedItems_result deepCopy() {return new getAllFbdListedItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Amazonlisted> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Amazonlisted elem) {if (this.success == null) {this.success = new ArrayList<Amazonlisted>();}this.success.add(elem);}public List<Amazonlisted> getSuccess() {return this.success;}public void setSuccess(List<Amazonlisted> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Amazonlisted>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFbdListedItems_result)return this.equals((getAllFbdListedItems_result)that);return false;}public boolean equals(getAllFbdListedItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFbdListedItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFbdListedItems_result typedOther = (getAllFbdListedItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list498 = iprot.readListBegin();this.success = new ArrayList<Amazonlisted>(_list498.size);for (int _i499 = 0; _i499 < _list498.size; ++_i499){Amazonlisted _elem500; // required_elem500 = new Amazonlisted();_elem500.read(iprot);this.success.add(_elem500);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Amazonlisted _iter501 : this.success){_iter501.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFbdListedItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBulkPricingForItems_args implements org.apache.thrift.TBase<getBulkPricingForItems_args, getBulkPricingForItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingForItems_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> itemIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingForItems_args.class, metaDataMap);}public getBulkPricingForItems_args() {}public getBulkPricingForItems_args(List<Long> itemIds){this();this.itemIds = itemIds;}/*** Performs a deep copy on <i>other</i>.*/public getBulkPricingForItems_args(getBulkPricingForItems_args other) {if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}}public getBulkPricingForItems_args deepCopy() {return new getBulkPricingForItems_args(this);}@Overridepublic void clear() {this.itemIds = null;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBulkPricingForItems_args)return this.equals((getBulkPricingForItems_args)that);return false;}public boolean equals(getBulkPricingForItems_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBulkPricingForItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBulkPricingForItems_args typedOther = (getBulkPricingForItems_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list502 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list502.size);for (int _i503 = 0; _i503 < _list502.size; ++_i503){long _elem504; // required_elem504 = iprot.readI64();this.itemIds.add(_elem504);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter505 : this.itemIds){oprot.writeI64(_iter505);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBulkPricingForItems_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBulkPricingForItems_result implements org.apache.thrift.TBase<getBulkPricingForItems_result, getBulkPricingForItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingForItems_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,List<BulkItemPricing>> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class)))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingForItems_result.class, metaDataMap);}public getBulkPricingForItems_result() {}public getBulkPricingForItems_result(Map<Long,List<BulkItemPricing>> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getBulkPricingForItems_result(getBulkPricingForItems_result other) {if (other.isSetSuccess()) {Map<Long,List<BulkItemPricing>> __this__success = new HashMap<Long,List<BulkItemPricing>>();for (Map.Entry<Long, List<BulkItemPricing>> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();List<BulkItemPricing> other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;List<BulkItemPricing> __this__success_copy_value = new ArrayList<BulkItemPricing>();for (BulkItemPricing other_element_value_element : other_element_value) {__this__success_copy_value.add(new BulkItemPricing(other_element_value_element));}__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getBulkPricingForItems_result deepCopy() {return new getBulkPricingForItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, List<BulkItemPricing> val) {if (this.success == null) {this.success = new HashMap<Long,List<BulkItemPricing>>();}this.success.put(key, val);}public Map<Long,List<BulkItemPricing>> getSuccess() {return this.success;}public void setSuccess(Map<Long,List<BulkItemPricing>> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,List<BulkItemPricing>>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBulkPricingForItems_result)return this.equals((getBulkPricingForItems_result)that);return false;}public boolean equals(getBulkPricingForItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBulkPricingForItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBulkPricingForItems_result typedOther = (getBulkPricingForItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map506 = iprot.readMapBegin();this.success = new HashMap<Long,List<BulkItemPricing>>(2*_map506.size);for (int _i507 = 0; _i507 < _map506.size; ++_i507){long _key508; // requiredList<BulkItemPricing> _val509; // required_key508 = iprot.readI64();{org.apache.thrift.protocol.TList _list510 = iprot.readListBegin();_val509 = new ArrayList<BulkItemPricing>(_list510.size);for (int _i511 = 0; _i511 < _list510.size; ++_i511){BulkItemPricing _elem512; // required_elem512 = new BulkItemPricing();_elem512.read(iprot);_val509.add(_elem512);}iprot.readListEnd();}this.success.put(_key508, _val509);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));for (Map.Entry<Long, List<BulkItemPricing>> _iter513 : this.success.entrySet()){oprot.writeI64(_iter513.getKey());{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter513.getValue().size()));for (BulkItemPricing _iter514 : _iter513.getValue()){_iter514.write(oprot);}oprot.writeListEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBulkPricingForItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBulkPricingForItem_args implements org.apache.thrift.TBase<addBulkPricingForItem_args, addBulkPricingForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBulkPricingForItem_args");private static final org.apache.thrift.protocol.TField BULK_ITEM_PRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkItemPricing", org.apache.thrift.protocol.TType.STRUCT, (short)1);private BulkItemPricing bulkItemPricing; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BULK_ITEM_PRICING((short)1, "bulkItemPricing");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BULK_ITEM_PRICINGreturn BULK_ITEM_PRICING;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BULK_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("bulkItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBulkPricingForItem_args.class, metaDataMap);}public addBulkPricingForItem_args() {}public addBulkPricingForItem_args(BulkItemPricing bulkItemPricing){this();this.bulkItemPricing = bulkItemPricing;}/*** Performs a deep copy on <i>other</i>.*/public addBulkPricingForItem_args(addBulkPricingForItem_args other) {if (other.isSetBulkItemPricing()) {this.bulkItemPricing = new BulkItemPricing(other.bulkItemPricing);}}public addBulkPricingForItem_args deepCopy() {return new addBulkPricingForItem_args(this);}@Overridepublic void clear() {this.bulkItemPricing = null;}public BulkItemPricing getBulkItemPricing() {return this.bulkItemPricing;}public void setBulkItemPricing(BulkItemPricing bulkItemPricing) {this.bulkItemPricing = bulkItemPricing;}public void unsetBulkItemPricing() {this.bulkItemPricing = null;}/** Returns true if field bulkItemPricing is set (has been assigned a value) and false otherwise */public boolean isSetBulkItemPricing() {return this.bulkItemPricing != null;}public void setBulkItemPricingIsSet(boolean value) {if (!value) {this.bulkItemPricing = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BULK_ITEM_PRICING:if (value == null) {unsetBulkItemPricing();} else {setBulkItemPricing((BulkItemPricing)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BULK_ITEM_PRICING:return getBulkItemPricing();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BULK_ITEM_PRICING:return isSetBulkItemPricing();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBulkPricingForItem_args)return this.equals((addBulkPricingForItem_args)that);return false;}public boolean equals(addBulkPricingForItem_args that) {if (that == null)return false;boolean this_present_bulkItemPricing = true && this.isSetBulkItemPricing();boolean that_present_bulkItemPricing = true && that.isSetBulkItemPricing();if (this_present_bulkItemPricing || that_present_bulkItemPricing) {if (!(this_present_bulkItemPricing && that_present_bulkItemPricing))return false;if (!this.bulkItemPricing.equals(that.bulkItemPricing))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBulkPricingForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBulkPricingForItem_args typedOther = (addBulkPricingForItem_args)other;lastComparison = Boolean.valueOf(isSetBulkItemPricing()).compareTo(typedOther.isSetBulkItemPricing());if (lastComparison != 0) {return lastComparison;}if (isSetBulkItemPricing()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkItemPricing, typedOther.bulkItemPricing);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BULK_ITEM_PRICINGif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.bulkItemPricing = new BulkItemPricing();this.bulkItemPricing.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bulkItemPricing != null) {oprot.writeFieldBegin(BULK_ITEM_PRICING_FIELD_DESC);this.bulkItemPricing.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBulkPricingForItem_args(");boolean first = true;sb.append("bulkItemPricing:");if (this.bulkItemPricing == null) {sb.append("null");} else {sb.append(this.bulkItemPricing);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBulkPricingForItem_result implements org.apache.thrift.TBase<addBulkPricingForItem_result, addBulkPricingForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBulkPricingForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private BulkItemPricing success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBulkPricingForItem_result.class, metaDataMap);}public addBulkPricingForItem_result() {}public addBulkPricingForItem_result(BulkItemPricing success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public addBulkPricingForItem_result(addBulkPricingForItem_result other) {if (other.isSetSuccess()) {this.success = new BulkItemPricing(other.success);}}public addBulkPricingForItem_result deepCopy() {return new addBulkPricingForItem_result(this);}@Overridepublic void clear() {this.success = null;}public BulkItemPricing getSuccess() {return this.success;}public void setSuccess(BulkItemPricing success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((BulkItemPricing)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBulkPricingForItem_result)return this.equals((addBulkPricingForItem_result)that);return false;}public boolean equals(addBulkPricingForItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBulkPricingForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBulkPricingForItem_result typedOther = (addBulkPricingForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new BulkItemPricing();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBulkPricingForItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBulkPricingForItemById_args implements org.apache.thrift.TBase<deleteBulkPricingForItemById_args, deleteBulkPricingForItemById_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItemById_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItemById_args.class, metaDataMap);}public deleteBulkPricingForItemById_args() {}public deleteBulkPricingForItemById_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteBulkPricingForItemById_args(deleteBulkPricingForItemById_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public deleteBulkPricingForItemById_args deepCopy() {return new deleteBulkPricingForItemById_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBulkPricingForItemById_args)return this.equals((deleteBulkPricingForItemById_args)that);return false;}public boolean equals(deleteBulkPricingForItemById_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBulkPricingForItemById_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBulkPricingForItemById_args typedOther = (deleteBulkPricingForItemById_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBulkPricingForItemById_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBulkPricingForItemById_result implements org.apache.thrift.TBase<deleteBulkPricingForItemById_result, deleteBulkPricingForItemById_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItemById_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItemById_result.class, metaDataMap);}public deleteBulkPricingForItemById_result() {}public deleteBulkPricingForItemById_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteBulkPricingForItemById_result(deleteBulkPricingForItemById_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public deleteBulkPricingForItemById_result deepCopy() {return new deleteBulkPricingForItemById_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBulkPricingForItemById_result)return this.equals((deleteBulkPricingForItemById_result)that);return false;}public boolean equals(deleteBulkPricingForItemById_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBulkPricingForItemById_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBulkPricingForItemById_result typedOther = (deleteBulkPricingForItemById_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBulkPricingForItemById_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBulkPricingForItem_args implements org.apache.thrift.TBase<deleteBulkPricingForItem_args, deleteBulkPricingForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItem_args.class, metaDataMap);}public deleteBulkPricingForItem_args() {}public deleteBulkPricingForItem_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteBulkPricingForItem_args(deleteBulkPricingForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public deleteBulkPricingForItem_args deepCopy() {return new deleteBulkPricingForItem_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBulkPricingForItem_args)return this.equals((deleteBulkPricingForItem_args)that);return false;}public boolean equals(deleteBulkPricingForItem_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBulkPricingForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBulkPricingForItem_args typedOther = (deleteBulkPricingForItem_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBulkPricingForItem_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteBulkPricingForItem_result implements org.apache.thrift.TBase<deleteBulkPricingForItem_result, deleteBulkPricingForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItem_result.class, metaDataMap);}public deleteBulkPricingForItem_result() {}public deleteBulkPricingForItem_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteBulkPricingForItem_result(deleteBulkPricingForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public deleteBulkPricingForItem_result deepCopy() {return new deleteBulkPricingForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteBulkPricingForItem_result)return this.equals((deleteBulkPricingForItem_result)that);return false;}public boolean equals(deleteBulkPricingForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteBulkPricingForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteBulkPricingForItem_result typedOther = (deleteBulkPricingForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteBulkPricingForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBulkPricingByItemId_args implements org.apache.thrift.TBase<getBulkPricingByItemId_args, getBulkPricingByItemId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingByItemId_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingByItemId_args.class, metaDataMap);}public getBulkPricingByItemId_args() {}public getBulkPricingByItemId_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBulkPricingByItemId_args(getBulkPricingByItemId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getBulkPricingByItemId_args deepCopy() {return new getBulkPricingByItemId_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBulkPricingByItemId_args)return this.equals((getBulkPricingByItemId_args)that);return false;}public boolean equals(getBulkPricingByItemId_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBulkPricingByItemId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBulkPricingByItemId_args typedOther = (getBulkPricingByItemId_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBulkPricingByItemId_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBulkPricingByItemId_result implements org.apache.thrift.TBase<getBulkPricingByItemId_result, getBulkPricingByItemId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingByItemId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<BulkItemPricing> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingByItemId_result.class, metaDataMap);}public getBulkPricingByItemId_result() {}public getBulkPricingByItemId_result(List<BulkItemPricing> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getBulkPricingByItemId_result(getBulkPricingByItemId_result other) {if (other.isSetSuccess()) {List<BulkItemPricing> __this__success = new ArrayList<BulkItemPricing>();for (BulkItemPricing other_element : other.success) {__this__success.add(new BulkItemPricing(other_element));}this.success = __this__success;}}public getBulkPricingByItemId_result deepCopy() {return new getBulkPricingByItemId_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<BulkItemPricing> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(BulkItemPricing elem) {if (this.success == null) {this.success = new ArrayList<BulkItemPricing>();}this.success.add(elem);}public List<BulkItemPricing> getSuccess() {return this.success;}public void setSuccess(List<BulkItemPricing> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<BulkItemPricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBulkPricingByItemId_result)return this.equals((getBulkPricingByItemId_result)that);return false;}public boolean equals(getBulkPricingByItemId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBulkPricingByItemId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBulkPricingByItemId_result typedOther = (getBulkPricingByItemId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list515 = iprot.readListBegin();this.success = new ArrayList<BulkItemPricing>(_list515.size);for (int _i516 = 0; _i516 < _list515.size; ++_i516){BulkItemPricing _elem517; // required_elem517 = new BulkItemPricing();_elem517.read(iprot);this.success.add(_elem517);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (BulkItemPricing _iter518 : this.success){_iter518.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBulkPricingByItemId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateBulkPricesOnProduction_args implements org.apache.thrift.TBase<updateBulkPricesOnProduction_args, updateBulkPricesOnProduction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBulkPricesOnProduction_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField BULK_ITEM_PRICING_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkItemPricingList", org.apache.thrift.protocol.TType.LIST, (short)2);private long item_id; // requiredprivate List<BulkItemPricing> bulkItemPricingList; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),BULK_ITEM_PRICING_LIST((short)2, "bulkItemPricingList");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // BULK_ITEM_PRICING_LISTreturn BULK_ITEM_PRICING_LIST;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BULK_ITEM_PRICING_LIST, new org.apache.thrift.meta_data.FieldMetaData("bulkItemPricingList", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBulkPricesOnProduction_args.class, metaDataMap);}public updateBulkPricesOnProduction_args() {}public updateBulkPricesOnProduction_args(long item_id,List<BulkItemPricing> bulkItemPricingList){this();this.item_id = item_id;setItem_idIsSet(true);this.bulkItemPricingList = bulkItemPricingList;}/*** Performs a deep copy on <i>other</i>.*/public updateBulkPricesOnProduction_args(updateBulkPricesOnProduction_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;if (other.isSetBulkItemPricingList()) {List<BulkItemPricing> __this__bulkItemPricingList = new ArrayList<BulkItemPricing>();for (BulkItemPricing other_element : other.bulkItemPricingList) {__this__bulkItemPricingList.add(new BulkItemPricing(other_element));}this.bulkItemPricingList = __this__bulkItemPricingList;}}public updateBulkPricesOnProduction_args deepCopy() {return new updateBulkPricesOnProduction_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;this.bulkItemPricingList = null;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public int getBulkItemPricingListSize() {return (this.bulkItemPricingList == null) ? 0 : this.bulkItemPricingList.size();}public java.util.Iterator<BulkItemPricing> getBulkItemPricingListIterator() {return (this.bulkItemPricingList == null) ? null : this.bulkItemPricingList.iterator();}public void addToBulkItemPricingList(BulkItemPricing elem) {if (this.bulkItemPricingList == null) {this.bulkItemPricingList = new ArrayList<BulkItemPricing>();}this.bulkItemPricingList.add(elem);}public List<BulkItemPricing> getBulkItemPricingList() {return this.bulkItemPricingList;}public void setBulkItemPricingList(List<BulkItemPricing> bulkItemPricingList) {this.bulkItemPricingList = bulkItemPricingList;}public void unsetBulkItemPricingList() {this.bulkItemPricingList = null;}/** Returns true if field bulkItemPricingList is set (has been assigned a value) and false otherwise */public boolean isSetBulkItemPricingList() {return this.bulkItemPricingList != null;}public void setBulkItemPricingListIsSet(boolean value) {if (!value) {this.bulkItemPricingList = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case BULK_ITEM_PRICING_LIST:if (value == null) {unsetBulkItemPricingList();} else {setBulkItemPricingList((List<BulkItemPricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case BULK_ITEM_PRICING_LIST:return getBulkItemPricingList();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case BULK_ITEM_PRICING_LIST:return isSetBulkItemPricingList();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateBulkPricesOnProduction_args)return this.equals((updateBulkPricesOnProduction_args)that);return false;}public boolean equals(updateBulkPricesOnProduction_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_bulkItemPricingList = true && this.isSetBulkItemPricingList();boolean that_present_bulkItemPricingList = true && that.isSetBulkItemPricingList();if (this_present_bulkItemPricingList || that_present_bulkItemPricingList) {if (!(this_present_bulkItemPricingList && that_present_bulkItemPricingList))return false;if (!this.bulkItemPricingList.equals(that.bulkItemPricingList))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateBulkPricesOnProduction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateBulkPricesOnProduction_args typedOther = (updateBulkPricesOnProduction_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBulkItemPricingList()).compareTo(typedOther.isSetBulkItemPricingList());if (lastComparison != 0) {return lastComparison;}if (isSetBulkItemPricingList()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkItemPricingList, typedOther.bulkItemPricingList);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BULK_ITEM_PRICING_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list519 = iprot.readListBegin();this.bulkItemPricingList = new ArrayList<BulkItemPricing>(_list519.size);for (int _i520 = 0; _i520 < _list519.size; ++_i520){BulkItemPricing _elem521; // required_elem521 = new BulkItemPricing();_elem521.read(iprot);this.bulkItemPricingList.add(_elem521);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();if (this.bulkItemPricingList != null) {oprot.writeFieldBegin(BULK_ITEM_PRICING_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bulkItemPricingList.size()));for (BulkItemPricing _iter522 : this.bulkItemPricingList){_iter522.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateBulkPricesOnProduction_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("bulkItemPricingList:");if (this.bulkItemPricingList == null) {sb.append("null");} else {sb.append(this.bulkItemPricingList);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateBulkPricesOnProduction_result implements org.apache.thrift.TBase<updateBulkPricesOnProduction_result, updateBulkPricesOnProduction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBulkPricesOnProduction_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBulkPricesOnProduction_result.class, metaDataMap);}public updateBulkPricesOnProduction_result() {}public updateBulkPricesOnProduction_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateBulkPricesOnProduction_result(updateBulkPricesOnProduction_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateBulkPricesOnProduction_result deepCopy() {return new updateBulkPricesOnProduction_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateBulkPricesOnProduction_result)return this.equals((updateBulkPricesOnProduction_result)that);return false;}public boolean equals(updateBulkPricesOnProduction_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateBulkPricesOnProduction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateBulkPricesOnProduction_result typedOther = (updateBulkPricesOnProduction_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateBulkPricesOnProduction_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCartByValue_args implements org.apache.thrift.TBase<getCartByValue_args, getCartByValue_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartByValue_args");private static final org.apache.thrift.protocol.TField CART_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("cartIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> cartIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CART_IDS((short)1, "cartIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CART_IDSreturn CART_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CART_IDS, new org.apache.thrift.meta_data.FieldMetaData("cartIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartByValue_args.class, metaDataMap);}public getCartByValue_args() {}public getCartByValue_args(List<Long> cartIds){this();this.cartIds = cartIds;}/*** Performs a deep copy on <i>other</i>.*/public getCartByValue_args(getCartByValue_args other) {if (other.isSetCartIds()) {List<Long> __this__cartIds = new ArrayList<Long>();for (Long other_element : other.cartIds) {__this__cartIds.add(other_element);}this.cartIds = __this__cartIds;}}public getCartByValue_args deepCopy() {return new getCartByValue_args(this);}@Overridepublic void clear() {this.cartIds = null;}public int getCartIdsSize() {return (this.cartIds == null) ? 0 : this.cartIds.size();}public java.util.Iterator<Long> getCartIdsIterator() {return (this.cartIds == null) ? null : this.cartIds.iterator();}public void addToCartIds(long elem) {if (this.cartIds == null) {this.cartIds = new ArrayList<Long>();}this.cartIds.add(elem);}public List<Long> getCartIds() {return this.cartIds;}public void setCartIds(List<Long> cartIds) {this.cartIds = cartIds;}public void unsetCartIds() {this.cartIds = null;}/** Returns true if field cartIds is set (has been assigned a value) and false otherwise */public boolean isSetCartIds() {return this.cartIds != null;}public void setCartIdsIsSet(boolean value) {if (!value) {this.cartIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CART_IDS:if (value == null) {unsetCartIds();} else {setCartIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CART_IDS:return getCartIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CART_IDS:return isSetCartIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCartByValue_args)return this.equals((getCartByValue_args)that);return false;}public boolean equals(getCartByValue_args that) {if (that == null)return false;boolean this_present_cartIds = true && this.isSetCartIds();boolean that_present_cartIds = true && that.isSetCartIds();if (this_present_cartIds || that_present_cartIds) {if (!(this_present_cartIds && that_present_cartIds))return false;if (!this.cartIds.equals(that.cartIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCartByValue_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCartByValue_args typedOther = (getCartByValue_args)other;lastComparison = Boolean.valueOf(isSetCartIds()).compareTo(typedOther.isSetCartIds());if (lastComparison != 0) {return lastComparison;}if (isSetCartIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartIds, typedOther.cartIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CART_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list523 = iprot.readListBegin();this.cartIds = new ArrayList<Long>(_list523.size);for (int _i524 = 0; _i524 < _list523.size; ++_i524){long _elem525; // required_elem525 = iprot.readI64();this.cartIds.add(_elem525);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.cartIds != null) {oprot.writeFieldBegin(CART_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.cartIds.size()));for (long _iter526 : this.cartIds){oprot.writeI64(_iter526);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCartByValue_args(");boolean first = true;sb.append("cartIds:");if (this.cartIds == null) {sb.append("null");} else {sb.append(this.cartIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCartByValue_result implements org.apache.thrift.TBase<getCartByValue_result, getCartByValue_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartByValue_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartByValue_result.class, metaDataMap);}public getCartByValue_result() {}public getCartByValue_result(List<Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getCartByValue_result(getCartByValue_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getCartByValue_result deepCopy() {return new getCartByValue_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCartByValue_result)return this.equals((getCartByValue_result)that);return false;}public boolean equals(getCartByValue_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCartByValue_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCartByValue_result typedOther = (getCartByValue_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list527 = iprot.readListBegin();this.success = new ArrayList<Long>(_list527.size);for (int _i528 = 0; _i528 < _list527.size; ++_i528){long _elem529; // required_elem529 = iprot.readI64();this.success.add(_elem529);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter530 : this.success){oprot.writeI64(_iter530);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCartByValue_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemPricing_args implements org.apache.thrift.TBase<updateItemPricing_args, updateItemPricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemPricing_args");private static final org.apache.thrift.protocol.TField ITEM_PRICING_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("itemPricingList", org.apache.thrift.protocol.TType.LIST, (short)1);private List<ItemPricing> itemPricingList; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_PRICING_LIST((short)1, "itemPricingList");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_PRICING_LISTreturn ITEM_PRICING_LIST;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_PRICING_LIST, new org.apache.thrift.meta_data.FieldMetaData("itemPricingList", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemPricing.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemPricing_args.class, metaDataMap);}public updateItemPricing_args() {}public updateItemPricing_args(List<ItemPricing> itemPricingList){this();this.itemPricingList = itemPricingList;}/*** Performs a deep copy on <i>other</i>.*/public updateItemPricing_args(updateItemPricing_args other) {if (other.isSetItemPricingList()) {List<ItemPricing> __this__itemPricingList = new ArrayList<ItemPricing>();for (ItemPricing other_element : other.itemPricingList) {__this__itemPricingList.add(new ItemPricing(other_element));}this.itemPricingList = __this__itemPricingList;}}public updateItemPricing_args deepCopy() {return new updateItemPricing_args(this);}@Overridepublic void clear() {this.itemPricingList = null;}public int getItemPricingListSize() {return (this.itemPricingList == null) ? 0 : this.itemPricingList.size();}public java.util.Iterator<ItemPricing> getItemPricingListIterator() {return (this.itemPricingList == null) ? null : this.itemPricingList.iterator();}public void addToItemPricingList(ItemPricing elem) {if (this.itemPricingList == null) {this.itemPricingList = new ArrayList<ItemPricing>();}this.itemPricingList.add(elem);}public List<ItemPricing> getItemPricingList() {return this.itemPricingList;}public void setItemPricingList(List<ItemPricing> itemPricingList) {this.itemPricingList = itemPricingList;}public void unsetItemPricingList() {this.itemPricingList = null;}/** Returns true if field itemPricingList is set (has been assigned a value) and false otherwise */public boolean isSetItemPricingList() {return this.itemPricingList != null;}public void setItemPricingListIsSet(boolean value) {if (!value) {this.itemPricingList = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_PRICING_LIST:if (value == null) {unsetItemPricingList();} else {setItemPricingList((List<ItemPricing>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_PRICING_LIST:return getItemPricingList();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_PRICING_LIST:return isSetItemPricingList();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemPricing_args)return this.equals((updateItemPricing_args)that);return false;}public boolean equals(updateItemPricing_args that) {if (that == null)return false;boolean this_present_itemPricingList = true && this.isSetItemPricingList();boolean that_present_itemPricingList = true && that.isSetItemPricingList();if (this_present_itemPricingList || that_present_itemPricingList) {if (!(this_present_itemPricingList && that_present_itemPricingList))return false;if (!this.itemPricingList.equals(that.itemPricingList))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemPricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemPricing_args typedOther = (updateItemPricing_args)other;lastComparison = Boolean.valueOf(isSetItemPricingList()).compareTo(typedOther.isSetItemPricingList());if (lastComparison != 0) {return lastComparison;}if (isSetItemPricingList()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemPricingList, typedOther.itemPricingList);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_PRICING_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list531 = iprot.readListBegin();this.itemPricingList = new ArrayList<ItemPricing>(_list531.size);for (int _i532 = 0; _i532 < _list531.size; ++_i532){ItemPricing _elem533; // required_elem533 = new ItemPricing();_elem533.read(iprot);this.itemPricingList.add(_elem533);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemPricingList != null) {oprot.writeFieldBegin(ITEM_PRICING_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemPricingList.size()));for (ItemPricing _iter534 : this.itemPricingList){_iter534.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemPricing_args(");boolean first = true;sb.append("itemPricingList:");if (this.itemPricingList == null) {sb.append("null");} else {sb.append(this.itemPricingList);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItemPricing_result implements org.apache.thrift.TBase<updateItemPricing_result, updateItemPricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemPricing_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemPricing_result.class, metaDataMap);}public updateItemPricing_result() {}public updateItemPricing_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateItemPricing_result(updateItemPricing_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public updateItemPricing_result deepCopy() {return new updateItemPricing_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItemPricing_result)return this.equals((updateItemPricing_result)that);return false;}public boolean equals(updateItemPricing_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItemPricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItemPricing_result typedOther = (updateItemPricing_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItemPricing_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class bulkUpdateCatalog_args implements org.apache.thrift.TBase<bulkUpdateCatalog_args, bulkUpdateCatalog_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("bulkUpdateCatalog_args");private static final org.apache.thrift.protocol.TField BULK_UPLOAD_CATALOG_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkUploadCatalog", org.apache.thrift.protocol.TType.LIST, (short)1);private List<BulkUploadCatalog> bulkUploadCatalog; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BULK_UPLOAD_CATALOG((short)1, "bulkUploadCatalog");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BULK_UPLOAD_CATALOGreturn BULK_UPLOAD_CATALOG;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BULK_UPLOAD_CATALOG, new org.apache.thrift.meta_data.FieldMetaData("bulkUploadCatalog", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkUploadCatalog.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(bulkUpdateCatalog_args.class, metaDataMap);}public bulkUpdateCatalog_args() {}public bulkUpdateCatalog_args(List<BulkUploadCatalog> bulkUploadCatalog){this();this.bulkUploadCatalog = bulkUploadCatalog;}/*** Performs a deep copy on <i>other</i>.*/public bulkUpdateCatalog_args(bulkUpdateCatalog_args other) {if (other.isSetBulkUploadCatalog()) {List<BulkUploadCatalog> __this__bulkUploadCatalog = new ArrayList<BulkUploadCatalog>();for (BulkUploadCatalog other_element : other.bulkUploadCatalog) {__this__bulkUploadCatalog.add(new BulkUploadCatalog(other_element));}this.bulkUploadCatalog = __this__bulkUploadCatalog;}}public bulkUpdateCatalog_args deepCopy() {return new bulkUpdateCatalog_args(this);}@Overridepublic void clear() {this.bulkUploadCatalog = null;}public int getBulkUploadCatalogSize() {return (this.bulkUploadCatalog == null) ? 0 : this.bulkUploadCatalog.size();}public java.util.Iterator<BulkUploadCatalog> getBulkUploadCatalogIterator() {return (this.bulkUploadCatalog == null) ? null : this.bulkUploadCatalog.iterator();}public void addToBulkUploadCatalog(BulkUploadCatalog elem) {if (this.bulkUploadCatalog == null) {this.bulkUploadCatalog = new ArrayList<BulkUploadCatalog>();}this.bulkUploadCatalog.add(elem);}public List<BulkUploadCatalog> getBulkUploadCatalog() {return this.bulkUploadCatalog;}public void setBulkUploadCatalog(List<BulkUploadCatalog> bulkUploadCatalog) {this.bulkUploadCatalog = bulkUploadCatalog;}public void unsetBulkUploadCatalog() {this.bulkUploadCatalog = null;}/** Returns true if field bulkUploadCatalog is set (has been assigned a value) and false otherwise */public boolean isSetBulkUploadCatalog() {return this.bulkUploadCatalog != null;}public void setBulkUploadCatalogIsSet(boolean value) {if (!value) {this.bulkUploadCatalog = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BULK_UPLOAD_CATALOG:if (value == null) {unsetBulkUploadCatalog();} else {setBulkUploadCatalog((List<BulkUploadCatalog>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BULK_UPLOAD_CATALOG:return getBulkUploadCatalog();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BULK_UPLOAD_CATALOG:return isSetBulkUploadCatalog();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof bulkUpdateCatalog_args)return this.equals((bulkUpdateCatalog_args)that);return false;}public boolean equals(bulkUpdateCatalog_args that) {if (that == null)return false;boolean this_present_bulkUploadCatalog = true && this.isSetBulkUploadCatalog();boolean that_present_bulkUploadCatalog = true && that.isSetBulkUploadCatalog();if (this_present_bulkUploadCatalog || that_present_bulkUploadCatalog) {if (!(this_present_bulkUploadCatalog && that_present_bulkUploadCatalog))return false;if (!this.bulkUploadCatalog.equals(that.bulkUploadCatalog))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(bulkUpdateCatalog_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;bulkUpdateCatalog_args typedOther = (bulkUpdateCatalog_args)other;lastComparison = Boolean.valueOf(isSetBulkUploadCatalog()).compareTo(typedOther.isSetBulkUploadCatalog());if (lastComparison != 0) {return lastComparison;}if (isSetBulkUploadCatalog()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkUploadCatalog, typedOther.bulkUploadCatalog);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BULK_UPLOAD_CATALOGif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list535 = iprot.readListBegin();this.bulkUploadCatalog = new ArrayList<BulkUploadCatalog>(_list535.size);for (int _i536 = 0; _i536 < _list535.size; ++_i536){BulkUploadCatalog _elem537; // required_elem537 = new BulkUploadCatalog();_elem537.read(iprot);this.bulkUploadCatalog.add(_elem537);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.bulkUploadCatalog != null) {oprot.writeFieldBegin(BULK_UPLOAD_CATALOG_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bulkUploadCatalog.size()));for (BulkUploadCatalog _iter538 : this.bulkUploadCatalog){_iter538.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("bulkUpdateCatalog_args(");boolean first = true;sb.append("bulkUploadCatalog:");if (this.bulkUploadCatalog == null) {sb.append("null");} else {sb.append(this.bulkUploadCatalog);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class bulkUpdateCatalog_result implements org.apache.thrift.TBase<bulkUpdateCatalog_result, bulkUpdateCatalog_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("bulkUpdateCatalog_result");private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(bulkUpdateCatalog_result.class, metaDataMap);}public bulkUpdateCatalog_result() {}public bulkUpdateCatalog_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public bulkUpdateCatalog_result(bulkUpdateCatalog_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public bulkUpdateCatalog_result deepCopy() {return new bulkUpdateCatalog_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof bulkUpdateCatalog_result)return this.equals((bulkUpdateCatalog_result)that);return false;}public boolean equals(bulkUpdateCatalog_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(bulkUpdateCatalog_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;bulkUpdateCatalog_result typedOther = (bulkUpdateCatalog_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("bulkUpdateCatalog_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getWarrantyInfoForItem_args implements org.apache.thrift.TBase<getWarrantyInfoForItem_args, getWarrantyInfoForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItem_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.I32, (short)2);private long catalogItemId; // requiredprivate ItemCondition itemCondition; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalogItemId"),/**** @see ItemCondition*/ITEM_CONDITION((short)2, "itemCondition");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;case 2: // ITEM_CONDITIONreturn ITEM_CONDITION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOGITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemCondition.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItem_args.class, metaDataMap);}public getWarrantyInfoForItem_args() {}public getWarrantyInfoForItem_args(long catalogItemId,ItemCondition itemCondition){this();this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);this.itemCondition = itemCondition;}/*** Performs a deep copy on <i>other</i>.*/public getWarrantyInfoForItem_args(getWarrantyInfoForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalogItemId = other.catalogItemId;if (other.isSetItemCondition()) {this.itemCondition = other.itemCondition;}}public getWarrantyInfoForItem_args deepCopy() {return new getWarrantyInfoForItem_args(this);}@Overridepublic void clear() {setCatalogItemIdIsSet(false);this.catalogItemId = 0;this.itemCondition = null;}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}/**** @see ItemCondition*/public ItemCondition getItemCondition() {return this.itemCondition;}/**** @see ItemCondition*/public void setItemCondition(ItemCondition itemCondition) {this.itemCondition = itemCondition;}public void unsetItemCondition() {this.itemCondition = null;}/** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */public boolean isSetItemCondition() {return this.itemCondition != null;}public void setItemConditionIsSet(boolean value) {if (!value) {this.itemCondition = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;case ITEM_CONDITION:if (value == null) {unsetItemCondition();} else {setItemCondition((ItemCondition)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());case ITEM_CONDITION:return getItemCondition();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalogItemId();case ITEM_CONDITION:return isSetItemCondition();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getWarrantyInfoForItem_args)return this.equals((getWarrantyInfoForItem_args)that);return false;}public boolean equals(getWarrantyInfoForItem_args that) {if (that == null)return false;boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}boolean this_present_itemCondition = true && this.isSetItemCondition();boolean that_present_itemCondition = true && that.isSetItemCondition();if (this_present_itemCondition || that_present_itemCondition) {if (!(this_present_itemCondition && that_present_itemCondition))return false;if (!this.itemCondition.equals(that.itemCondition))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getWarrantyInfoForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getWarrantyInfoForItem_args typedOther = (getWarrantyInfoForItem_args)other;lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());if (lastComparison != 0) {return lastComparison;}if (isSetItemCondition()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_CONDITIONif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemCondition = ItemCondition.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();if (this.itemCondition != null) {oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);oprot.writeI32(this.itemCondition.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getWarrantyInfoForItem_args(");boolean first = true;sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;if (!first) sb.append(", ");sb.append("itemCondition:");if (this.itemCondition == null) {sb.append("null");} else {sb.append(this.itemCondition);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getWarrantyInfoForItem_result implements org.apache.thrift.TBase<getWarrantyInfoForItem_result, getWarrantyInfoForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<String,Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItem_result.class, metaDataMap);}public getWarrantyInfoForItem_result() {}public getWarrantyInfoForItem_result(Map<String,Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getWarrantyInfoForItem_result(getWarrantyInfoForItem_result other) {if (other.isSetSuccess()) {Map<String,Long> __this__success = new HashMap<String,Long>();for (Map.Entry<String, Long> other_element : other.success.entrySet()) {String other_element_key = other_element.getKey();Long other_element_value = other_element.getValue();String __this__success_copy_key = other_element_key;Long __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getWarrantyInfoForItem_result deepCopy() {return new getWarrantyInfoForItem_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(String key, long val) {if (this.success == null) {this.success = new HashMap<String,Long>();}this.success.put(key, val);}public Map<String,Long> getSuccess() {return this.success;}public void setSuccess(Map<String,Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<String,Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getWarrantyInfoForItem_result)return this.equals((getWarrantyInfoForItem_result)that);return false;}public boolean equals(getWarrantyInfoForItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getWarrantyInfoForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getWarrantyInfoForItem_result typedOther = (getWarrantyInfoForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map539 = iprot.readMapBegin();this.success = new HashMap<String,Long>(2*_map539.size);for (int _i540 = 0; _i540 < _map539.size; ++_i540){String _key541; // requiredlong _val542; // required_key541 = iprot.readString();_val542 = iprot.readI64();this.success.put(_key541, _val542);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.success.size()));for (Map.Entry<String, Long> _iter543 : this.success.entrySet()){oprot.writeString(_iter543.getKey());oprot.writeI64(_iter543.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getWarrantyInfoForItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getWarrantyInfoForItemList_args implements org.apache.thrift.TBase<getWarrantyInfoForItemList_args, getWarrantyInfoForItemList_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItemList_args");private static final org.apache.thrift.protocol.TField CATALOG_ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.I32, (short)2);private List<Long> catalogItemIds; // requiredprivate ItemCondition itemCondition; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_IDS((short)1, "catalogItemIds"),/**** @see ItemCondition*/ITEM_CONDITION((short)2, "itemCondition");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDSreturn CATALOG_ITEM_IDS;case 2: // ITEM_CONDITIONreturn ITEM_CONDITION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("catalogItemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemCondition.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItemList_args.class, metaDataMap);}public getWarrantyInfoForItemList_args() {}public getWarrantyInfoForItemList_args(List<Long> catalogItemIds,ItemCondition itemCondition){this();this.catalogItemIds = catalogItemIds;this.itemCondition = itemCondition;}/*** Performs a deep copy on <i>other</i>.*/public getWarrantyInfoForItemList_args(getWarrantyInfoForItemList_args other) {if (other.isSetCatalogItemIds()) {List<Long> __this__catalogItemIds = new ArrayList<Long>();for (Long other_element : other.catalogItemIds) {__this__catalogItemIds.add(other_element);}this.catalogItemIds = __this__catalogItemIds;}if (other.isSetItemCondition()) {this.itemCondition = other.itemCondition;}}public getWarrantyInfoForItemList_args deepCopy() {return new getWarrantyInfoForItemList_args(this);}@Overridepublic void clear() {this.catalogItemIds = null;this.itemCondition = null;}public int getCatalogItemIdsSize() {return (this.catalogItemIds == null) ? 0 : this.catalogItemIds.size();}public java.util.Iterator<Long> getCatalogItemIdsIterator() {return (this.catalogItemIds == null) ? null : this.catalogItemIds.iterator();}public void addToCatalogItemIds(long elem) {if (this.catalogItemIds == null) {this.catalogItemIds = new ArrayList<Long>();}this.catalogItemIds.add(elem);}public List<Long> getCatalogItemIds() {return this.catalogItemIds;}public void setCatalogItemIds(List<Long> catalogItemIds) {this.catalogItemIds = catalogItemIds;}public void unsetCatalogItemIds() {this.catalogItemIds = null;}/** Returns true if field catalogItemIds is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemIds() {return this.catalogItemIds != null;}public void setCatalogItemIdsIsSet(boolean value) {if (!value) {this.catalogItemIds = null;}}/**** @see ItemCondition*/public ItemCondition getItemCondition() {return this.itemCondition;}/**** @see ItemCondition*/public void setItemCondition(ItemCondition itemCondition) {this.itemCondition = itemCondition;}public void unsetItemCondition() {this.itemCondition = null;}/** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */public boolean isSetItemCondition() {return this.itemCondition != null;}public void setItemConditionIsSet(boolean value) {if (!value) {this.itemCondition = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_IDS:if (value == null) {unsetCatalogItemIds();} else {setCatalogItemIds((List<Long>)value);}break;case ITEM_CONDITION:if (value == null) {unsetItemCondition();} else {setItemCondition((ItemCondition)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_IDS:return getCatalogItemIds();case ITEM_CONDITION:return getItemCondition();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_IDS:return isSetCatalogItemIds();case ITEM_CONDITION:return isSetItemCondition();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getWarrantyInfoForItemList_args)return this.equals((getWarrantyInfoForItemList_args)that);return false;}public boolean equals(getWarrantyInfoForItemList_args that) {if (that == null)return false;boolean this_present_catalogItemIds = true && this.isSetCatalogItemIds();boolean that_present_catalogItemIds = true && that.isSetCatalogItemIds();if (this_present_catalogItemIds || that_present_catalogItemIds) {if (!(this_present_catalogItemIds && that_present_catalogItemIds))return false;if (!this.catalogItemIds.equals(that.catalogItemIds))return false;}boolean this_present_itemCondition = true && this.isSetItemCondition();boolean that_present_itemCondition = true && that.isSetItemCondition();if (this_present_itemCondition || that_present_itemCondition) {if (!(this_present_itemCondition && that_present_itemCondition))return false;if (!this.itemCondition.equals(that.itemCondition))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getWarrantyInfoForItemList_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getWarrantyInfoForItemList_args typedOther = (getWarrantyInfoForItemList_args)other;lastComparison = Boolean.valueOf(isSetCatalogItemIds()).compareTo(typedOther.isSetCatalogItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemIds, typedOther.catalogItemIds);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());if (lastComparison != 0) {return lastComparison;}if (isSetItemCondition()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list544 = iprot.readListBegin();this.catalogItemIds = new ArrayList<Long>(_list544.size);for (int _i545 = 0; _i545 < _list544.size; ++_i545){long _elem546; // required_elem546 = iprot.readI64();this.catalogItemIds.add(_elem546);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_CONDITIONif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemCondition = ItemCondition.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.catalogItemIds != null) {oprot.writeFieldBegin(CATALOG_ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.catalogItemIds.size()));for (long _iter547 : this.catalogItemIds){oprot.writeI64(_iter547);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.itemCondition != null) {oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);oprot.writeI32(this.itemCondition.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getWarrantyInfoForItemList_args(");boolean first = true;sb.append("catalogItemIds:");if (this.catalogItemIds == null) {sb.append("null");} else {sb.append(this.catalogItemIds);}first = false;if (!first) sb.append(", ");sb.append("itemCondition:");if (this.itemCondition == null) {sb.append("null");} else {sb.append(this.itemCondition);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getWarrantyInfoForItemList_result implements org.apache.thrift.TBase<getWarrantyInfoForItemList_result, getWarrantyInfoForItemList_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItemList_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,Map<String,Long>> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItemList_result.class, metaDataMap);}public getWarrantyInfoForItemList_result() {}public getWarrantyInfoForItemList_result(Map<Long,Map<String,Long>> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getWarrantyInfoForItemList_result(getWarrantyInfoForItemList_result other) {if (other.isSetSuccess()) {Map<Long,Map<String,Long>> __this__success = new HashMap<Long,Map<String,Long>>();for (Map.Entry<Long, Map<String,Long>> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Map<String,Long> other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Map<String,Long> __this__success_copy_value = new HashMap<String,Long>();for (Map.Entry<String, Long> other_element_value_element : other_element_value.entrySet()) {String other_element_value_element_key = other_element_value_element.getKey();Long other_element_value_element_value = other_element_value_element.getValue();String __this__success_copy_value_copy_key = other_element_value_element_key;Long __this__success_copy_value_copy_value = other_element_value_element_value;__this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);}__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getWarrantyInfoForItemList_result deepCopy() {return new getWarrantyInfoForItemList_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, Map<String,Long> val) {if (this.success == null) {this.success = new HashMap<Long,Map<String,Long>>();}this.success.put(key, val);}public Map<Long,Map<String,Long>> getSuccess() {return this.success;}public void setSuccess(Map<Long,Map<String,Long>> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Map<String,Long>>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getWarrantyInfoForItemList_result)return this.equals((getWarrantyInfoForItemList_result)that);return false;}public boolean equals(getWarrantyInfoForItemList_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getWarrantyInfoForItemList_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getWarrantyInfoForItemList_result typedOther = (getWarrantyInfoForItemList_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin();this.success = new HashMap<Long,Map<String,Long>>(2*_map548.size);for (int _i549 = 0; _i549 < _map548.size; ++_i549){long _key550; // requiredMap<String,Long> _val551; // required_key550 = iprot.readI64();{org.apache.thrift.protocol.TMap _map552 = iprot.readMapBegin();_val551 = new HashMap<String,Long>(2*_map552.size);for (int _i553 = 0; _i553 < _map552.size; ++_i553){String _key554; // requiredlong _val555; // required_key554 = iprot.readString();_val555 = iprot.readI64();_val551.put(_key554, _val555);}iprot.readMapEnd();}this.success.put(_key550, _val551);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));for (Map.Entry<Long, Map<String,Long>> _iter556 : this.success.entrySet()){oprot.writeI64(_iter556.getKey());{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, _iter556.getValue().size()));for (Map.Entry<String, Long> _iter557 : _iter556.getValue().entrySet()){oprot.writeString(_iter557.getKey());oprot.writeI64(_iter557.getValue());}oprot.writeMapEnd();}}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getWarrantyInfoForItemList_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStateTaxRate_args implements org.apache.thrift.TBase<getStateTaxRate_args, getStateTaxRate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateTaxRate_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)2);private List<Long> itemIds; // requiredprivate long stateId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds"),STATE_ID((short)2, "stateId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;case 2: // STATE_IDreturn STATE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STATEID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateTaxRate_args.class, metaDataMap);}public getStateTaxRate_args() {}public getStateTaxRate_args(List<Long> itemIds,long stateId){this();this.itemIds = itemIds;this.stateId = stateId;setStateIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getStateTaxRate_args(getStateTaxRate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}this.stateId = other.stateId;}public getStateTaxRate_args deepCopy() {return new getStateTaxRate_args(this);}@Overridepublic void clear() {this.itemIds = null;setStateIdIsSet(false);this.stateId = 0;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public long getStateId() {return this.stateId;}public void setStateId(long stateId) {this.stateId = stateId;setStateIdIsSet(true);}public void unsetStateId() {__isset_bit_vector.clear(__STATEID_ISSET_ID);}/** Returns true if field stateId is set (has been assigned a value) and false otherwise */public boolean isSetStateId() {return __isset_bit_vector.get(__STATEID_ISSET_ID);}public void setStateIdIsSet(boolean value) {__isset_bit_vector.set(__STATEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;case STATE_ID:if (value == null) {unsetStateId();} else {setStateId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();case STATE_ID:return Long.valueOf(getStateId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();case STATE_ID:return isSetStateId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStateTaxRate_args)return this.equals((getStateTaxRate_args)that);return false;}public boolean equals(getStateTaxRate_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}boolean this_present_stateId = true;boolean that_present_stateId = true;if (this_present_stateId || that_present_stateId) {if (!(this_present_stateId && that_present_stateId))return false;if (this.stateId != that.stateId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStateTaxRate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStateTaxRate_args typedOther = (getStateTaxRate_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());if (lastComparison != 0) {return lastComparison;}if (isSetStateId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list558 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list558.size);for (int _i559 = 0; _i559 < _list558.size; ++_i559){long _elem560; // required_elem560 = iprot.readI64();this.itemIds.add(_elem560);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // STATE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.stateId = iprot.readI64();setStateIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter561 : this.itemIds){oprot.writeI64(_iter561);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(STATE_ID_FIELD_DESC);oprot.writeI64(this.stateId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStateTaxRate_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;if (!first) sb.append(", ");sb.append("stateId:");sb.append(this.stateId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStateTaxRate_result implements org.apache.thrift.TBase<getStateTaxRate_result, getStateTaxRate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateTaxRate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,GstRate> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GstRate.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateTaxRate_result.class, metaDataMap);}public getStateTaxRate_result() {}public getStateTaxRate_result(Map<Long,GstRate> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getStateTaxRate_result(getStateTaxRate_result other) {if (other.isSetSuccess()) {Map<Long,GstRate> __this__success = new HashMap<Long,GstRate>();for (Map.Entry<Long, GstRate> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();GstRate other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;GstRate __this__success_copy_value = new GstRate(other_element_value);__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getStateTaxRate_result deepCopy() {return new getStateTaxRate_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, GstRate val) {if (this.success == null) {this.success = new HashMap<Long,GstRate>();}this.success.put(key, val);}public Map<Long,GstRate> getSuccess() {return this.success;}public void setSuccess(Map<Long,GstRate> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,GstRate>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStateTaxRate_result)return this.equals((getStateTaxRate_result)that);return false;}public boolean equals(getStateTaxRate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStateTaxRate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStateTaxRate_result typedOther = (getStateTaxRate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map562 = iprot.readMapBegin();this.success = new HashMap<Long,GstRate>(2*_map562.size);for (int _i563 = 0; _i563 < _map562.size; ++_i563){long _key564; // requiredGstRate _val565; // required_key564 = iprot.readI64();_val565 = new GstRate();_val565.read(iprot);this.success.put(_key564, _val565);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Map.Entry<Long, GstRate> _iter566 : this.success.entrySet()){oprot.writeI64(_iter566.getKey());_iter566.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStateTaxRate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getIgstTaxRate_args implements org.apache.thrift.TBase<getIgstTaxRate_args, getIgstTaxRate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgstTaxRate_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> itemIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgstTaxRate_args.class, metaDataMap);}public getIgstTaxRate_args() {}public getIgstTaxRate_args(List<Long> itemIds){this();this.itemIds = itemIds;}/*** Performs a deep copy on <i>other</i>.*/public getIgstTaxRate_args(getIgstTaxRate_args other) {if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}}public getIgstTaxRate_args deepCopy() {return new getIgstTaxRate_args(this);}@Overridepublic void clear() {this.itemIds = null;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getIgstTaxRate_args)return this.equals((getIgstTaxRate_args)that);return false;}public boolean equals(getIgstTaxRate_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getIgstTaxRate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getIgstTaxRate_args typedOther = (getIgstTaxRate_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list567 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list567.size);for (int _i568 = 0; _i568 < _list567.size; ++_i568){long _elem569; // required_elem569 = iprot.readI64();this.itemIds.add(_elem569);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter570 : this.itemIds){oprot.writeI64(_iter570);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getIgstTaxRate_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getIgstTaxRate_result implements org.apache.thrift.TBase<getIgstTaxRate_result, getIgstTaxRate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgstTaxRate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,Double> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgstTaxRate_result.class, metaDataMap);}public getIgstTaxRate_result() {}public getIgstTaxRate_result(Map<Long,Double> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getIgstTaxRate_result(getIgstTaxRate_result other) {if (other.isSetSuccess()) {Map<Long,Double> __this__success = new HashMap<Long,Double>();for (Map.Entry<Long, Double> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Double other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Double __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getIgstTaxRate_result deepCopy() {return new getIgstTaxRate_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, double val) {if (this.success == null) {this.success = new HashMap<Long,Double>();}this.success.put(key, val);}public Map<Long,Double> getSuccess() {return this.success;}public void setSuccess(Map<Long,Double> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Double>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getIgstTaxRate_result)return this.equals((getIgstTaxRate_result)that);return false;}public boolean equals(getIgstTaxRate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getIgstTaxRate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getIgstTaxRate_result typedOther = (getIgstTaxRate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map571 = iprot.readMapBegin();this.success = new HashMap<Long,Double>(2*_map571.size);for (int _i572 = 0; _i572 < _map571.size; ++_i572){long _key573; // requireddouble _val574; // required_key573 = iprot.readI64();_val574 = iprot.readDouble();this.success.put(_key573, _val574);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));for (Map.Entry<Long, Double> _iter575 : this.success.entrySet()){oprot.writeI64(_iter575.getKey());oprot.writeDouble(_iter575.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getIgstTaxRate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class persistGstRate_args implements org.apache.thrift.TBase<persistGstRate_args, persistGstRate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("persistGstRate_args");private static final org.apache.thrift.protocol.TField STATE_GST_RATES_FIELD_DESC = new org.apache.thrift.protocol.TField("stateGstRates", org.apache.thrift.protocol.TType.LIST, (short)1);private List<StateGstRate> stateGstRates; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STATE_GST_RATES((short)1, "stateGstRates");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STATE_GST_RATESreturn STATE_GST_RATES;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STATE_GST_RATES, new org.apache.thrift.meta_data.FieldMetaData("stateGstRates", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StateGstRate.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(persistGstRate_args.class, metaDataMap);}public persistGstRate_args() {}public persistGstRate_args(List<StateGstRate> stateGstRates){this();this.stateGstRates = stateGstRates;}/*** Performs a deep copy on <i>other</i>.*/public persistGstRate_args(persistGstRate_args other) {if (other.isSetStateGstRates()) {List<StateGstRate> __this__stateGstRates = new ArrayList<StateGstRate>();for (StateGstRate other_element : other.stateGstRates) {__this__stateGstRates.add(new StateGstRate(other_element));}this.stateGstRates = __this__stateGstRates;}}public persistGstRate_args deepCopy() {return new persistGstRate_args(this);}@Overridepublic void clear() {this.stateGstRates = null;}public int getStateGstRatesSize() {return (this.stateGstRates == null) ? 0 : this.stateGstRates.size();}public java.util.Iterator<StateGstRate> getStateGstRatesIterator() {return (this.stateGstRates == null) ? null : this.stateGstRates.iterator();}public void addToStateGstRates(StateGstRate elem) {if (this.stateGstRates == null) {this.stateGstRates = new ArrayList<StateGstRate>();}this.stateGstRates.add(elem);}public List<StateGstRate> getStateGstRates() {return this.stateGstRates;}public void setStateGstRates(List<StateGstRate> stateGstRates) {this.stateGstRates = stateGstRates;}public void unsetStateGstRates() {this.stateGstRates = null;}/** Returns true if field stateGstRates is set (has been assigned a value) and false otherwise */public boolean isSetStateGstRates() {return this.stateGstRates != null;}public void setStateGstRatesIsSet(boolean value) {if (!value) {this.stateGstRates = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATE_GST_RATES:if (value == null) {unsetStateGstRates();} else {setStateGstRates((List<StateGstRate>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STATE_GST_RATES:return getStateGstRates();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STATE_GST_RATES:return isSetStateGstRates();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof persistGstRate_args)return this.equals((persistGstRate_args)that);return false;}public boolean equals(persistGstRate_args that) {if (that == null)return false;boolean this_present_stateGstRates = true && this.isSetStateGstRates();boolean that_present_stateGstRates = true && that.isSetStateGstRates();if (this_present_stateGstRates || that_present_stateGstRates) {if (!(this_present_stateGstRates && that_present_stateGstRates))return false;if (!this.stateGstRates.equals(that.stateGstRates))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(persistGstRate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;persistGstRate_args typedOther = (persistGstRate_args)other;lastComparison = Boolean.valueOf(isSetStateGstRates()).compareTo(typedOther.isSetStateGstRates());if (lastComparison != 0) {return lastComparison;}if (isSetStateGstRates()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateGstRates, typedOther.stateGstRates);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STATE_GST_RATESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list576 = iprot.readListBegin();this.stateGstRates = new ArrayList<StateGstRate>(_list576.size);for (int _i577 = 0; _i577 < _list576.size; ++_i577){StateGstRate _elem578; // required_elem578 = new StateGstRate();_elem578.read(iprot);this.stateGstRates.add(_elem578);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.stateGstRates != null) {oprot.writeFieldBegin(STATE_GST_RATES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.stateGstRates.size()));for (StateGstRate _iter579 : this.stateGstRates){_iter579.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("persistGstRate_args(");boolean first = true;sb.append("stateGstRates:");if (this.stateGstRates == null) {sb.append("null");} else {sb.append(this.stateGstRates);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class persistGstRate_result implements org.apache.thrift.TBase<persistGstRate_result, persistGstRate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("persistGstRate_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(persistGstRate_result.class, metaDataMap);}public persistGstRate_result() {}/*** Performs a deep copy on <i>other</i>.*/public persistGstRate_result(persistGstRate_result other) {}public persistGstRate_result deepCopy() {return new persistGstRate_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof persistGstRate_result)return this.equals((persistGstRate_result)that);return false;}public boolean equals(persistGstRate_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(persistGstRate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;persistGstRate_result typedOther = (persistGstRate_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("persistGstRate_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getHsnCodesByCategory_args implements org.apache.thrift.TBase<getHsnCodesByCategory_args, getHsnCodesByCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsnCodesByCategory_args");private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)1);private long categoryId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY_ID((short)1, "categoryId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORY_IDreturn CATEGORY_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATEGORYID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsnCodesByCategory_args.class, metaDataMap);}public getHsnCodesByCategory_args() {}public getHsnCodesByCategory_args(long categoryId){this();this.categoryId = categoryId;setCategoryIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getHsnCodesByCategory_args(getHsnCodesByCategory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.categoryId = other.categoryId;}public getHsnCodesByCategory_args deepCopy() {return new getHsnCodesByCategory_args(this);}@Overridepublic void clear() {setCategoryIdIsSet(false);this.categoryId = 0;}public long getCategoryId() {return this.categoryId;}public void setCategoryId(long categoryId) {this.categoryId = categoryId;setCategoryIdIsSet(true);}public void unsetCategoryId() {__isset_bit_vector.clear(__CATEGORYID_ISSET_ID);}/** Returns true if field categoryId is set (has been assigned a value) and false otherwise */public boolean isSetCategoryId() {return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);}public void setCategoryIdIsSet(boolean value) {__isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY_ID:if (value == null) {unsetCategoryId();} else {setCategoryId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY_ID:return Long.valueOf(getCategoryId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY_ID:return isSetCategoryId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getHsnCodesByCategory_args)return this.equals((getHsnCodesByCategory_args)that);return false;}public boolean equals(getHsnCodesByCategory_args that) {if (that == null)return false;boolean this_present_categoryId = true;boolean that_present_categoryId = true;if (this_present_categoryId || that_present_categoryId) {if (!(this_present_categoryId && that_present_categoryId))return false;if (this.categoryId != that.categoryId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getHsnCodesByCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getHsnCodesByCategory_args typedOther = (getHsnCodesByCategory_args)other;lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());if (lastComparison != 0) {return lastComparison;}if (isSetCategoryId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.categoryId = iprot.readI64();setCategoryIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);oprot.writeI64(this.categoryId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getHsnCodesByCategory_args(");boolean first = true;sb.append("categoryId:");sb.append(this.categoryId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getHsnCodesByCategory_result implements org.apache.thrift.TBase<getHsnCodesByCategory_result, getHsnCodesByCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsnCodesByCategory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<CategoryHsnCode> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CategoryHsnCode.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsnCodesByCategory_result.class, metaDataMap);}public getHsnCodesByCategory_result() {}public getHsnCodesByCategory_result(List<CategoryHsnCode> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getHsnCodesByCategory_result(getHsnCodesByCategory_result other) {if (other.isSetSuccess()) {List<CategoryHsnCode> __this__success = new ArrayList<CategoryHsnCode>();for (CategoryHsnCode other_element : other.success) {__this__success.add(new CategoryHsnCode(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getHsnCodesByCategory_result deepCopy() {return new getHsnCodesByCategory_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<CategoryHsnCode> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(CategoryHsnCode elem) {if (this.success == null) {this.success = new ArrayList<CategoryHsnCode>();}this.success.add(elem);}public List<CategoryHsnCode> getSuccess() {return this.success;}public void setSuccess(List<CategoryHsnCode> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<CategoryHsnCode>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getHsnCodesByCategory_result)return this.equals((getHsnCodesByCategory_result)that);return false;}public boolean equals(getHsnCodesByCategory_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getHsnCodesByCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getHsnCodesByCategory_result typedOther = (getHsnCodesByCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list580 = iprot.readListBegin();this.success = new ArrayList<CategoryHsnCode>(_list580.size);for (int _i581 = 0; _i581 < _list580.size; ++_i581){CategoryHsnCode _elem582; // required_elem582 = new CategoryHsnCode();_elem582.read(iprot);this.success.add(_elem582);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (CategoryHsnCode _iter583 : this.success){_iter583.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getHsnCodesByCategory_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFofoDeals_args implements org.apache.thrift.TBase<getAllFofoDeals_args, getAllFofoDeals_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFofoDeals_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)-1);private static final org.apache.thrift.protocol.TField TAG_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("tagIds", org.apache.thrift.protocol.TType.LIST, (short)-2);private List<Long> itemIds; // requiredprivate List<Long> tagIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)-1, "itemIds"),TAG_IDS((short)-2, "tagIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // ITEM_IDSreturn ITEM_IDS;case -2: // TAG_IDSreturn TAG_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.TAG_IDS, new org.apache.thrift.meta_data.FieldMetaData("tagIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFofoDeals_args.class, metaDataMap);}public getAllFofoDeals_args() {}public getAllFofoDeals_args(List<Long> itemIds,List<Long> tagIds){this();this.itemIds = itemIds;this.tagIds = tagIds;}/*** Performs a deep copy on <i>other</i>.*/public getAllFofoDeals_args(getAllFofoDeals_args other) {if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}if (other.isSetTagIds()) {List<Long> __this__tagIds = new ArrayList<Long>();for (Long other_element : other.tagIds) {__this__tagIds.add(other_element);}this.tagIds = __this__tagIds;}}public getAllFofoDeals_args deepCopy() {return new getAllFofoDeals_args(this);}@Overridepublic void clear() {this.itemIds = null;this.tagIds = null;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public int getTagIdsSize() {return (this.tagIds == null) ? 0 : this.tagIds.size();}public java.util.Iterator<Long> getTagIdsIterator() {return (this.tagIds == null) ? null : this.tagIds.iterator();}public void addToTagIds(long elem) {if (this.tagIds == null) {this.tagIds = new ArrayList<Long>();}this.tagIds.add(elem);}public List<Long> getTagIds() {return this.tagIds;}public void setTagIds(List<Long> tagIds) {this.tagIds = tagIds;}public void unsetTagIds() {this.tagIds = null;}/** Returns true if field tagIds is set (has been assigned a value) and false otherwise */public boolean isSetTagIds() {return this.tagIds != null;}public void setTagIdsIsSet(boolean value) {if (!value) {this.tagIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;case TAG_IDS:if (value == null) {unsetTagIds();} else {setTagIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();case TAG_IDS:return getTagIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();case TAG_IDS:return isSetTagIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFofoDeals_args)return this.equals((getAllFofoDeals_args)that);return false;}public boolean equals(getAllFofoDeals_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}boolean this_present_tagIds = true && this.isSetTagIds();boolean that_present_tagIds = true && that.isSetTagIds();if (this_present_tagIds || that_present_tagIds) {if (!(this_present_tagIds && that_present_tagIds))return false;if (!this.tagIds.equals(that.tagIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFofoDeals_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFofoDeals_args typedOther = (getAllFofoDeals_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTagIds()).compareTo(typedOther.isSetTagIds());if (lastComparison != 0) {return lastComparison;}if (isSetTagIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagIds, typedOther.tagIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list584 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list584.size);for (int _i585 = 0; _i585 < _list584.size; ++_i585){long _elem586; // required_elem586 = iprot.readI64();this.itemIds.add(_elem586);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -2: // TAG_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list587 = iprot.readListBegin();this.tagIds = new ArrayList<Long>(_list587.size);for (int _i588 = 0; _i588 < _list587.size; ++_i588){long _elem589; // required_elem589 = iprot.readI64();this.tagIds.add(_elem589);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.tagIds != null) {oprot.writeFieldBegin(TAG_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.tagIds.size()));for (long _iter590 : this.tagIds){oprot.writeI64(_iter590);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter591 : this.itemIds){oprot.writeI64(_iter591);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFofoDeals_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;if (!first) sb.append(", ");sb.append("tagIds:");if (this.tagIds == null) {sb.append("null");} else {sb.append(this.tagIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllFofoDeals_result implements org.apache.thrift.TBase<getAllFofoDeals_result, getAllFofoDeals_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFofoDeals_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,Double> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFofoDeals_result.class, metaDataMap);}public getAllFofoDeals_result() {}public getAllFofoDeals_result(Map<Long,Double> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllFofoDeals_result(getAllFofoDeals_result other) {if (other.isSetSuccess()) {Map<Long,Double> __this__success = new HashMap<Long,Double>();for (Map.Entry<Long, Double> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Double other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Double __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getAllFofoDeals_result deepCopy() {return new getAllFofoDeals_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, double val) {if (this.success == null) {this.success = new HashMap<Long,Double>();}this.success.put(key, val);}public Map<Long,Double> getSuccess() {return this.success;}public void setSuccess(Map<Long,Double> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Double>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllFofoDeals_result)return this.equals((getAllFofoDeals_result)that);return false;}public boolean equals(getAllFofoDeals_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllFofoDeals_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllFofoDeals_result typedOther = (getAllFofoDeals_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map592 = iprot.readMapBegin();this.success = new HashMap<Long,Double>(2*_map592.size);for (int _i593 = 0; _i593 < _map592.size; ++_i593){long _key594; // requireddouble _val595; // required_key594 = iprot.readI64();_val595 = iprot.readDouble();this.success.put(_key594, _val595);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));for (Map.Entry<Long, Double> _iter596 : this.success.entrySet()){oprot.writeI64(_iter596.getKey());oprot.writeDouble(_iter596.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllFofoDeals_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}}