Subversion Repositories SmartDukaan

Rev

Rev 6849 | Rev 6921 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5945 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class CatalogService {
24
 
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
27
    /**
28
     * Availability and inventory attributes
29
     * 
30
     * @param item
31
     */
32
    public long addItem(Item item) throws CatalogServiceException, org.apache.thrift.TException;
33
 
34
    public long updateItem(Item item) throws CatalogServiceException, org.apache.thrift.TException;
35
 
36
    /**
37
     * Checks if the item given to the corresponding itemId is active. If it's active,
38
     * whether it's risky and if it's risky, its inventory position.
39
     * 
40
     * @param itemId
41
     */
42
    public ItemShippingInfo isActive(long itemId) throws CatalogServiceException, org.apache.thrift.TException;
43
 
44
    public String getItemStatusDescription(long itemId) throws CatalogServiceException, org.apache.thrift.TException;
45
 
46
    public void startItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException;
47
 
48
    public void retireItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException;
49
 
50
    public void changeItemStatus(long item_id, long timestamp, status newstatus) throws CatalogServiceException, org.apache.thrift.TException;
51
 
52
    public Item getItem(long item_id) throws CatalogServiceException, org.apache.thrift.TException;
53
 
54
    public List<Item> getItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException;
55
 
56
    public List<Item> getValidItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException;
57
 
58
    public List<Item> getAllItems(boolean isActive) throws CatalogServiceException, org.apache.thrift.TException;
59
 
60
    public List<Item> getAllItemsByStatus(status itemStatus) throws CatalogServiceException, org.apache.thrift.TException;
61
 
62
    public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws CatalogServiceException, org.apache.thrift.TException;
63
 
64
    /**
65
     * Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
66
     * 
67
     * @param offset
68
     * @param limit
69
     */
70
    public List<Item> getAllItemsInRange(long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException;
71
 
72
    /**
73
     * 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.
74
     * 
75
     * @param itemStatus
76
     * @param offset
77
     * @param limit
78
     */
79
    public List<Item> getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException;
80
 
81
    /**
82
     * Gets a count of all items by status
83
     * 
84
     * @param useStatus
85
     * @param itemStatus
86
     */
87
    public int getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException;
88
 
89
    public List<Item> getBestSellers() throws CatalogServiceException, org.apache.thrift.TException;
90
 
91
    public List<Long> getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;
92
 
93
    public long getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException;
94
 
95
    public List<Item> getBestDeals() throws CatalogServiceException, org.apache.thrift.TException;
96
 
97
    public List<Long> getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;
98
 
99
    public long getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException;
100
 
101
    public List<Item> getComingSoon() throws CatalogServiceException, org.apache.thrift.TException;
102
 
103
    public List<Long> getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;
104
 
105
    public long getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException;
106
 
107
    /**
108
     * Returns a list of items sorted in the descending order by start date.
109
     * The list is limited to the 'latest_arrivals_count' configuraiton parameter.
110
     */
111
    public List<Item> getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException;
112
 
113
    /**
114
     * Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
115
     * To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
116
     * 
117
     * @param beginIndex
118
     * @param totalItems
119
     * @param brand
120
     * @param categories
121
     */
122
    public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws CatalogServiceException, org.apache.thrift.TException;
123
 
124
    /**
125
     * Get the total number of latest arrivals we are willing to show.
126
     * The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
127
     */
128
    public long getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException;
129
 
130
    public long generateNewEntityID() throws org.apache.thrift.TException;
131
 
132
    /**
133
     * All category related functions
134
     * 
135
     * @param category
136
     */
137
    public boolean addCategory(Category category) throws org.apache.thrift.TException;
138
 
139
    public Category getCategory(long id) throws org.apache.thrift.TException;
140
 
141
    public List<Category> getAllCategories() throws org.apache.thrift.TException;
142
 
143
    /**
144
     * Returns the list of similar items.
145
     * 
146
     * @param itemId
147
     */
148
    public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException;
149
 
150
    /**
151
     * Adds similar item.
152
     * 
153
     * @param itemId
154
     * @param catalogItemId
155
     */
156
    public Item addSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;
157
 
158
    /**
6511 kshitij.so 159
     * Tag Related
160
     * 
161
     * @param displayName
162
     * @param itemId
163
     */
164
    public boolean addTag(String displayName, long itemId) throws org.apache.thrift.TException;
165
 
166
    public boolean deleteEntityTag(String displayName, long itemId) throws org.apache.thrift.TException;
167
 
168
    public boolean deleteTag(String displayName) throws org.apache.thrift.TException;
169
 
170
    public List<String> getAllTags() throws org.apache.thrift.TException;
171
 
172
    public List<Long> getAllEntitiesByTagName(String displayName) throws org.apache.thrift.TException;
173
 
6842 amit.gupta 174
    public Map<Long,List<String>> getAllEntityTags() throws org.apache.thrift.TException;
175
 
6850 kshitij.so 176
    public boolean addBanner(String bannerName, String imageName, String link, long priority, boolean isActive, boolean hasMap) throws org.apache.thrift.TException;
177
 
178
    public List<String> getAllBanners() throws org.apache.thrift.TException;
179
 
180
    public boolean deleteBanner(String bannerName) throws org.apache.thrift.TException;
181
 
182
    public Banner getBannerDetails(String bannerName) throws org.apache.thrift.TException;
183
 
184
    public List<Banner> getActiveBanners() throws org.apache.thrift.TException;
185
 
6849 kshitij.so 186
    public boolean addBannerMap(String bannerName, String mapLink, String coordinates) throws org.apache.thrift.TException;
187
 
188
    public boolean deleteBannerMap(String bannerName) throws org.apache.thrift.TException;
189
 
190
    public List<BannerMap> getBannerMapDetails(String bannerName) throws org.apache.thrift.TException;
191
 
6511 kshitij.so 192
    /**
5945 mandeep.dh 193
     * Delete similar item.
194
     * 
195
     * @param itemId
196
     * @param catalogItemId
197
     */
198
    public boolean deleteSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;
199
 
200
    /**
201
     * Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
202
     * If yes, returns the itemId else returns 0
203
     * 
204
     * @param brand
205
     * @param modelNumber
206
     * @param modelName
207
     * @param color
208
     */
209
    public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException;
210
 
211
    /**
212
     * Check wether item is risky and change status if inventory is not available for risky items
213
     * 
214
     * @param itemId
215
     */
216
    public void validateRiskyStatus(long itemId) throws org.apache.thrift.TException;
217
 
218
    /**
219
     * Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
220
     * 
221
     * @param itemId
222
     * @param risky
223
     */
224
    public void changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException;
225
 
226
    /**
227
     * Returns list of items marked as risky.
228
     */
229
    public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException;
230
 
231
    /**
232
     * Returns list of items with any status except PHASED_OUT and filtered by category, brand.
233
     * 
234
     * @param category
235
     * @param brand
236
     */
237
    public List<Item> getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException;
238
 
239
    /**
240
     * Returns list of catalog ids of items with same similarity index as of the given itemId
241
     * 
242
     * @param beginIndex
243
     * @param totalItems
244
     * @param itemId
245
     */
246
    public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException;
247
 
248
    /**
249
     * Add user requests for out of stock items. Once user will ask for notify me an entry will
250
     * 
251
     * @param itemId
252
     * @param email
253
     */
254
    public boolean addProductNotification(long itemId, String email) throws org.apache.thrift.TException;
255
 
256
    /**
257
     * Send the product notifications to the users for items which has stock.
258
     */
259
    public boolean sendProductNotifications() throws org.apache.thrift.TException;
260
 
261
    /**
262
     * Returns list of brand names for a given category Id
263
     * 
264
     * @param categoryId
265
     */
266
    public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException;
267
 
268
    /**
269
     * Returns list of brand names
270
     */
271
    public List<String> getAllBrands() throws org.apache.thrift.TException;
272
 
273
    /**
274
     * Return list of all sources
275
     */
276
    public List<Source> getAllSources() throws org.apache.thrift.TException;
277
 
278
    /**
279
     * Returns the pricing information of an item. If no information is found, exception will be thrown.
280
     * 
281
     * @param itemId
282
     * @param sourceId
283
     */
284
    public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws CatalogServiceException, org.apache.thrift.TException;
285
 
286
    /**
287
     * Adds prices to be displayed corresponding to the item if user comes from a source.
288
     * If item is not found or source is not found, it will throw exception.
289
     * 
290
     * @param sourceItemPricing
291
     */
292
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws CatalogServiceException, org.apache.thrift.TException;
293
 
294
    /**
295
     * Returns the list of source pricing information of an item.
296
     * Raises an exception if item not found corresponding to itemId
297
     * 
298
     * @param itemId
299
     */
300
    public List<SourceItemPricing> getAllSourcePricing(long itemId) throws CatalogServiceException, org.apache.thrift.TException;
301
 
302
    /**
303
     * Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
304
     * 
305
     * @param item_id
306
     * @param sourceId
307
     */
308
    public Item getItemForSource(long item_id, long sourceId) throws CatalogServiceException, org.apache.thrift.TException;
309
 
310
    /**
311
     * Searches items matching the the given terms in the catalog and returns results within the specified range.
312
     * 
313
     * @param searchTerms
314
     * @param offset
315
     * @param limit
316
     */
317
    public List<Item> searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException;
318
 
319
    /**
320
     * Gets the count of search results for the given search terms so that the user can go through all the pages.
321
     * 
322
     * @param searchTerms
323
     */
324
    public int getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException;
325
 
326
    /**
327
     * Returns a list of product notifications added after a supplied datetime
328
     * 
329
     * @param startDateTime
330
     */
331
    public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException;
332
 
333
    /**
334
     * Returns a list of count of requests for product notification against each item
335
     * 
336
     * @param startDateTime
337
     */
338
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException;
339
 
340
    /**
341
     * This method adds a log to authorize table with Item Id, username who authorized the change, reason.
342
     * 
343
     * @param itemId
344
     * @param username
345
     * @param reason
346
     */
347
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException;
348
 
349
    public List<Long> getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException;
350
 
351
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException;
352
 
353
    public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException;
354
 
355
    public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException;
356
 
357
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
358
 
359
    public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;
360
 
6039 amit.gupta 361
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException;
362
 
363
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
364
 
6531 vikram.rag 365
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;
366
 
6821 amar.kumar 367
    public List<Item> getAllAliveItems() throws org.apache.thrift.TException;
368
 
6805 anupam.sin 369
    /**
370
     * This method returns the insurance amount needed to insure the given item for a given quantity.
371
     * 
372
     * @param itemId
373
     * @param insurerId
374
     * @param quantity
375
     */
376
    public long getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException;
377
 
378
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;
379
 
6838 vikram.rag 380
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
381
 
5945 mandeep.dh 382
  }
383
 
384
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
385
 
386
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
387
 
388
    public void updateItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItem_call> resultHandler) throws org.apache.thrift.TException;
389
 
390
    public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isActive_call> resultHandler) throws org.apache.thrift.TException;
391
 
392
    public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException;
393
 
394
    public void startItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startItemOn_call> resultHandler) throws org.apache.thrift.TException;
395
 
396
    public void retireItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireItemOn_call> resultHandler) throws org.apache.thrift.TException;
397
 
398
    public void changeItemStatus(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
399
 
400
    public void getItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItem_call> resultHandler) throws org.apache.thrift.TException;
401
 
402
    public void getItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException;
403
 
404
    public void getValidItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException;
405
 
406
    public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItems_call> resultHandler) throws org.apache.thrift.TException;
407
 
408
    public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException;
409
 
410
    public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException;
411
 
412
    public void getAllItemsInRange(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsInRange_call> resultHandler) throws org.apache.thrift.TException;
413
 
414
    public void getAllItemsByStatusInRange(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatusInRange_call> resultHandler) throws org.apache.thrift.TException;
415
 
416
    public void getItemCountByStatus(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemCountByStatus_call> resultHandler) throws org.apache.thrift.TException;
417
 
418
    public void getBestSellers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellers_call> resultHandler) throws org.apache.thrift.TException;
419
 
420
    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;
421
 
422
    public void getBestSellersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellersCount_call> resultHandler) throws org.apache.thrift.TException;
423
 
424
    public void getBestDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDeals_call> resultHandler) throws org.apache.thrift.TException;
425
 
426
    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;
427
 
428
    public void getBestDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDealsCount_call> resultHandler) throws org.apache.thrift.TException;
429
 
430
    public void getComingSoon(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoon_call> resultHandler) throws org.apache.thrift.TException;
431
 
432
    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;
433
 
434
    public void getComingSoonCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoonCount_call> resultHandler) throws org.apache.thrift.TException;
435
 
436
    public void getLatestArrivals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivals_call> resultHandler) throws org.apache.thrift.TException;
437
 
438
    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;
439
 
440
    public void getLatestArrivalsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivalsCount_call> resultHandler) throws org.apache.thrift.TException;
441
 
442
    public void generateNewEntityID(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.generateNewEntityID_call> resultHandler) throws org.apache.thrift.TException;
443
 
444
    public void addCategory(Category category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCategory_call> resultHandler) throws org.apache.thrift.TException;
445
 
446
    public void getCategory(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCategory_call> resultHandler) throws org.apache.thrift.TException;
447
 
448
    public void getAllCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCategories_call> resultHandler) throws org.apache.thrift.TException;
449
 
450
    public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException;
451
 
452
    public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
453
 
6511 kshitij.so 454
    public void addTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addTag_call> resultHandler) throws org.apache.thrift.TException;
455
 
456
    public void deleteEntityTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteEntityTag_call> resultHandler) throws org.apache.thrift.TException;
457
 
458
    public void deleteTag(String displayName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteTag_call> resultHandler) throws org.apache.thrift.TException;
459
 
460
    public void getAllTags(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllTags_call> resultHandler) throws org.apache.thrift.TException;
461
 
462
    public void getAllEntitiesByTagName(String displayName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllEntitiesByTagName_call> resultHandler) throws org.apache.thrift.TException;
463
 
6842 amit.gupta 464
    public void getAllEntityTags(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllEntityTags_call> resultHandler) throws org.apache.thrift.TException;
465
 
6850 kshitij.so 466
    public void addBanner(String bannerName, String imageName, String link, long priority, boolean isActive, boolean hasMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBanner_call> resultHandler) throws org.apache.thrift.TException;
467
 
468
    public void getAllBanners(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBanners_call> resultHandler) throws org.apache.thrift.TException;
469
 
470
    public void deleteBanner(String bannerName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBanner_call> resultHandler) throws org.apache.thrift.TException;
471
 
472
    public void getBannerDetails(String bannerName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBannerDetails_call> resultHandler) throws org.apache.thrift.TException;
473
 
474
    public void getActiveBanners(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveBanners_call> resultHandler) throws org.apache.thrift.TException;
475
 
6849 kshitij.so 476
    public void addBannerMap(String bannerName, String mapLink, String coordinates, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBannerMap_call> resultHandler) throws org.apache.thrift.TException;
477
 
478
    public void deleteBannerMap(String bannerName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBannerMap_call> resultHandler) throws org.apache.thrift.TException;
479
 
480
    public void getBannerMapDetails(String bannerName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBannerMapDetails_call> resultHandler) throws org.apache.thrift.TException;
481
 
5945 mandeep.dh 482
    public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
483
 
484
    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;
485
 
486
    public void validateRiskyStatus(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateRiskyStatus_call> resultHandler) throws org.apache.thrift.TException;
487
 
488
    public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;
489
 
490
    public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;
491
 
492
    public void getItemsForMasterSheet(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsForMasterSheet_call> resultHandler) throws org.apache.thrift.TException;
493
 
494
    public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
495
 
496
    public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addProductNotification_call> resultHandler) throws org.apache.thrift.TException;
497
 
498
    public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
499
 
500
    public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException;
501
 
502
    public void getAllBrands(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrands_call> resultHandler) throws org.apache.thrift.TException;
503
 
504
    public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSources_call> resultHandler) throws org.apache.thrift.TException;
505
 
506
    public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException;
507
 
508
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException;
509
 
510
    public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException;
511
 
512
    public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemForSource_call> resultHandler) throws org.apache.thrift.TException;
513
 
514
    public void searchItemsInRange(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchItemsInRange_call> resultHandler) throws org.apache.thrift.TException;
515
 
516
    public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
517
 
518
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
519
 
520
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
521
 
522
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
523
 
524
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
525
 
526
    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;
527
 
528
    public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
529
 
530
    public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;
531
 
532
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
533
 
534
    public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;
535
 
6039 amit.gupta 536
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;
537
 
538
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
539
 
6531 vikram.rag 540
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
541
 
6821 amar.kumar 542
    public void getAllAliveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAliveItems_call> resultHandler) throws org.apache.thrift.TException;
543
 
6805 anupam.sin 544
    public void getInsuranceAmount(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException;
545
 
546
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;
547
 
6838 vikram.rag 548
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
549
 
5945 mandeep.dh 550
  }
551
 
552
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
553
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
554
      public Factory() {}
555
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
556
        return new Client(prot);
557
      }
558
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
559
        return new Client(iprot, oprot);
560
      }
561
    }
562
 
563
    public Client(org.apache.thrift.protocol.TProtocol prot)
564
    {
565
      super(prot, prot);
566
    }
567
 
568
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
569
      super(iprot, oprot);
570
    }
571
 
572
    public long addItem(Item item) throws CatalogServiceException, org.apache.thrift.TException
573
    {
574
      send_addItem(item);
575
      return recv_addItem();
576
    }
577
 
578
    public void send_addItem(Item item) throws org.apache.thrift.TException
579
    {
580
      addItem_args args = new addItem_args();
581
      args.setItem(item);
582
      sendBase("addItem", args);
583
    }
584
 
585
    public long recv_addItem() throws CatalogServiceException, org.apache.thrift.TException
586
    {
587
      addItem_result result = new addItem_result();
588
      receiveBase(result, "addItem");
589
      if (result.isSetSuccess()) {
590
        return result.success;
591
      }
592
      if (result.cex != null) {
593
        throw result.cex;
594
      }
595
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
596
    }
597
 
598
    public long updateItem(Item item) throws CatalogServiceException, org.apache.thrift.TException
599
    {
600
      send_updateItem(item);
601
      return recv_updateItem();
602
    }
603
 
604
    public void send_updateItem(Item item) throws org.apache.thrift.TException
605
    {
606
      updateItem_args args = new updateItem_args();
607
      args.setItem(item);
608
      sendBase("updateItem", args);
609
    }
610
 
611
    public long recv_updateItem() throws CatalogServiceException, org.apache.thrift.TException
612
    {
613
      updateItem_result result = new updateItem_result();
614
      receiveBase(result, "updateItem");
615
      if (result.isSetSuccess()) {
616
        return result.success;
617
      }
618
      if (result.cex != null) {
619
        throw result.cex;
620
      }
621
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
622
    }
623
 
624
    public ItemShippingInfo isActive(long itemId) throws CatalogServiceException, org.apache.thrift.TException
625
    {
626
      send_isActive(itemId);
627
      return recv_isActive();
628
    }
629
 
630
    public void send_isActive(long itemId) throws org.apache.thrift.TException
631
    {
632
      isActive_args args = new isActive_args();
633
      args.setItemId(itemId);
634
      sendBase("isActive", args);
635
    }
636
 
637
    public ItemShippingInfo recv_isActive() throws CatalogServiceException, org.apache.thrift.TException
638
    {
639
      isActive_result result = new isActive_result();
640
      receiveBase(result, "isActive");
641
      if (result.isSetSuccess()) {
642
        return result.success;
643
      }
644
      if (result.isex != null) {
645
        throw result.isex;
646
      }
647
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
648
    }
649
 
650
    public String getItemStatusDescription(long itemId) throws CatalogServiceException, org.apache.thrift.TException
651
    {
652
      send_getItemStatusDescription(itemId);
653
      return recv_getItemStatusDescription();
654
    }
655
 
656
    public void send_getItemStatusDescription(long itemId) throws org.apache.thrift.TException
657
    {
658
      getItemStatusDescription_args args = new getItemStatusDescription_args();
659
      args.setItemId(itemId);
660
      sendBase("getItemStatusDescription", args);
661
    }
662
 
663
    public String recv_getItemStatusDescription() throws CatalogServiceException, org.apache.thrift.TException
664
    {
665
      getItemStatusDescription_result result = new getItemStatusDescription_result();
666
      receiveBase(result, "getItemStatusDescription");
667
      if (result.isSetSuccess()) {
668
        return result.success;
669
      }
670
      if (result.isex != null) {
671
        throw result.isex;
672
      }
673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
674
    }
675
 
676
    public void startItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException
677
    {
678
      send_startItemOn(item_id, timestamp);
679
      recv_startItemOn();
680
    }
681
 
682
    public void send_startItemOn(long item_id, long timestamp) throws org.apache.thrift.TException
683
    {
684
      startItemOn_args args = new startItemOn_args();
685
      args.setItem_id(item_id);
686
      args.setTimestamp(timestamp);
687
      sendBase("startItemOn", args);
688
    }
689
 
690
    public void recv_startItemOn() throws CatalogServiceException, org.apache.thrift.TException
691
    {
692
      startItemOn_result result = new startItemOn_result();
693
      receiveBase(result, "startItemOn");
694
      if (result.cex != null) {
695
        throw result.cex;
696
      }
697
      return;
698
    }
699
 
700
    public void retireItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException
701
    {
702
      send_retireItemOn(item_id, timestamp);
703
      recv_retireItemOn();
704
    }
705
 
706
    public void send_retireItemOn(long item_id, long timestamp) throws org.apache.thrift.TException
707
    {
708
      retireItemOn_args args = new retireItemOn_args();
709
      args.setItem_id(item_id);
710
      args.setTimestamp(timestamp);
711
      sendBase("retireItemOn", args);
712
    }
713
 
714
    public void recv_retireItemOn() throws CatalogServiceException, org.apache.thrift.TException
715
    {
716
      retireItemOn_result result = new retireItemOn_result();
717
      receiveBase(result, "retireItemOn");
718
      if (result.cex != null) {
719
        throw result.cex;
720
      }
721
      return;
722
    }
723
 
724
    public void changeItemStatus(long item_id, long timestamp, status newstatus) throws CatalogServiceException, org.apache.thrift.TException
725
    {
726
      send_changeItemStatus(item_id, timestamp, newstatus);
727
      recv_changeItemStatus();
728
    }
729
 
730
    public void send_changeItemStatus(long item_id, long timestamp, status newstatus) throws org.apache.thrift.TException
731
    {
732
      changeItemStatus_args args = new changeItemStatus_args();
733
      args.setItem_id(item_id);
734
      args.setTimestamp(timestamp);
735
      args.setNewstatus(newstatus);
736
      sendBase("changeItemStatus", args);
737
    }
738
 
739
    public void recv_changeItemStatus() throws CatalogServiceException, org.apache.thrift.TException
740
    {
741
      changeItemStatus_result result = new changeItemStatus_result();
742
      receiveBase(result, "changeItemStatus");
743
      if (result.cex != null) {
744
        throw result.cex;
745
      }
746
      return;
747
    }
748
 
749
    public Item getItem(long item_id) throws CatalogServiceException, org.apache.thrift.TException
750
    {
751
      send_getItem(item_id);
752
      return recv_getItem();
753
    }
754
 
755
    public void send_getItem(long item_id) throws org.apache.thrift.TException
756
    {
757
      getItem_args args = new getItem_args();
758
      args.setItem_id(item_id);
759
      sendBase("getItem", args);
760
    }
761
 
762
    public Item recv_getItem() throws CatalogServiceException, org.apache.thrift.TException
763
    {
764
      getItem_result result = new getItem_result();
765
      receiveBase(result, "getItem");
766
      if (result.isSetSuccess()) {
767
        return result.success;
768
      }
769
      if (result.cex != null) {
770
        throw result.cex;
771
      }
772
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
773
    }
774
 
775
    public List<Item> getItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException
776
    {
777
      send_getItemsByCatalogId(catalog_item_id);
778
      return recv_getItemsByCatalogId();
779
    }
780
 
781
    public void send_getItemsByCatalogId(long catalog_item_id) throws org.apache.thrift.TException
782
    {
783
      getItemsByCatalogId_args args = new getItemsByCatalogId_args();
784
      args.setCatalog_item_id(catalog_item_id);
785
      sendBase("getItemsByCatalogId", args);
786
    }
787
 
788
    public List<Item> recv_getItemsByCatalogId() throws CatalogServiceException, org.apache.thrift.TException
789
    {
790
      getItemsByCatalogId_result result = new getItemsByCatalogId_result();
791
      receiveBase(result, "getItemsByCatalogId");
792
      if (result.isSetSuccess()) {
793
        return result.success;
794
      }
795
      if (result.cex != null) {
796
        throw result.cex;
797
      }
798
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
799
    }
800
 
801
    public List<Item> getValidItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException
802
    {
803
      send_getValidItemsByCatalogId(catalog_item_id);
804
      return recv_getValidItemsByCatalogId();
805
    }
806
 
807
    public void send_getValidItemsByCatalogId(long catalog_item_id) throws org.apache.thrift.TException
808
    {
809
      getValidItemsByCatalogId_args args = new getValidItemsByCatalogId_args();
810
      args.setCatalog_item_id(catalog_item_id);
811
      sendBase("getValidItemsByCatalogId", args);
812
    }
813
 
814
    public List<Item> recv_getValidItemsByCatalogId() throws CatalogServiceException, org.apache.thrift.TException
815
    {
816
      getValidItemsByCatalogId_result result = new getValidItemsByCatalogId_result();
817
      receiveBase(result, "getValidItemsByCatalogId");
818
      if (result.isSetSuccess()) {
819
        return result.success;
820
      }
821
      if (result.cex != null) {
822
        throw result.cex;
823
      }
824
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
825
    }
826
 
827
    public List<Item> getAllItems(boolean isActive) throws CatalogServiceException, org.apache.thrift.TException
828
    {
829
      send_getAllItems(isActive);
830
      return recv_getAllItems();
831
    }
832
 
833
    public void send_getAllItems(boolean isActive) throws org.apache.thrift.TException
834
    {
835
      getAllItems_args args = new getAllItems_args();
836
      args.setIsActive(isActive);
837
      sendBase("getAllItems", args);
838
    }
839
 
840
    public List<Item> recv_getAllItems() throws CatalogServiceException, org.apache.thrift.TException
841
    {
842
      getAllItems_result result = new getAllItems_result();
843
      receiveBase(result, "getAllItems");
844
      if (result.isSetSuccess()) {
845
        return result.success;
846
      }
847
      if (result.cex != null) {
848
        throw result.cex;
849
      }
850
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
851
    }
852
 
853
    public List<Item> getAllItemsByStatus(status itemStatus) throws CatalogServiceException, org.apache.thrift.TException
854
    {
855
      send_getAllItemsByStatus(itemStatus);
856
      return recv_getAllItemsByStatus();
857
    }
858
 
859
    public void send_getAllItemsByStatus(status itemStatus) throws org.apache.thrift.TException
860
    {
861
      getAllItemsByStatus_args args = new getAllItemsByStatus_args();
862
      args.setItemStatus(itemStatus);
863
      sendBase("getAllItemsByStatus", args);
864
    }
865
 
866
    public List<Item> recv_getAllItemsByStatus() throws CatalogServiceException, org.apache.thrift.TException
867
    {
868
      getAllItemsByStatus_result result = new getAllItemsByStatus_result();
869
      receiveBase(result, "getAllItemsByStatus");
870
      if (result.isSetSuccess()) {
871
        return result.success;
872
      }
873
      if (result.cex != null) {
874
        throw result.cex;
875
      }
876
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
877
    }
878
 
879
    public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws CatalogServiceException, org.apache.thrift.TException
880
    {
881
      send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber);
882
      return recv_markItemAsContentComplete();
883
    }
884
 
885
    public void send_markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws org.apache.thrift.TException
886
    {
887
      markItemAsContentComplete_args args = new markItemAsContentComplete_args();
888
      args.setEntityId(entityId);
889
      args.setCategory(category);
890
      args.setBrand(brand);
891
      args.setModelName(modelName);
892
      args.setModelNumber(modelNumber);
893
      sendBase("markItemAsContentComplete", args);
894
    }
895
 
896
    public boolean recv_markItemAsContentComplete() throws CatalogServiceException, org.apache.thrift.TException
897
    {
898
      markItemAsContentComplete_result result = new markItemAsContentComplete_result();
899
      receiveBase(result, "markItemAsContentComplete");
900
      if (result.isSetSuccess()) {
901
        return result.success;
902
      }
903
      if (result.cex != null) {
904
        throw result.cex;
905
      }
906
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
907
    }
908
 
909
    public List<Item> getAllItemsInRange(long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException
910
    {
911
      send_getAllItemsInRange(offset, limit);
912
      return recv_getAllItemsInRange();
913
    }
914
 
915
    public void send_getAllItemsInRange(long offset, long limit) throws org.apache.thrift.TException
916
    {
917
      getAllItemsInRange_args args = new getAllItemsInRange_args();
918
      args.setOffset(offset);
919
      args.setLimit(limit);
920
      sendBase("getAllItemsInRange", args);
921
    }
922
 
923
    public List<Item> recv_getAllItemsInRange() throws CatalogServiceException, org.apache.thrift.TException
924
    {
925
      getAllItemsInRange_result result = new getAllItemsInRange_result();
926
      receiveBase(result, "getAllItemsInRange");
927
      if (result.isSetSuccess()) {
928
        return result.success;
929
      }
930
      if (result.cex != null) {
931
        throw result.cex;
932
      }
933
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
934
    }
935
 
936
    public List<Item> getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException
937
    {
938
      send_getAllItemsByStatusInRange(itemStatus, offset, limit);
939
      return recv_getAllItemsByStatusInRange();
940
    }
941
 
942
    public void send_getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws org.apache.thrift.TException
943
    {
944
      getAllItemsByStatusInRange_args args = new getAllItemsByStatusInRange_args();
945
      args.setItemStatus(itemStatus);
946
      args.setOffset(offset);
947
      args.setLimit(limit);
948
      sendBase("getAllItemsByStatusInRange", args);
949
    }
950
 
951
    public List<Item> recv_getAllItemsByStatusInRange() throws CatalogServiceException, org.apache.thrift.TException
952
    {
953
      getAllItemsByStatusInRange_result result = new getAllItemsByStatusInRange_result();
954
      receiveBase(result, "getAllItemsByStatusInRange");
955
      if (result.isSetSuccess()) {
956
        return result.success;
957
      }
958
      if (result.cex != null) {
959
        throw result.cex;
960
      }
961
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
962
    }
963
 
964
    public int getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException
965
    {
966
      send_getItemCountByStatus(useStatus, itemStatus);
967
      return recv_getItemCountByStatus();
968
    }
969
 
970
    public void send_getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException
971
    {
972
      getItemCountByStatus_args args = new getItemCountByStatus_args();
973
      args.setUseStatus(useStatus);
974
      args.setItemStatus(itemStatus);
975
      sendBase("getItemCountByStatus", args);
976
    }
977
 
978
    public int recv_getItemCountByStatus() throws org.apache.thrift.TException
979
    {
980
      getItemCountByStatus_result result = new getItemCountByStatus_result();
981
      receiveBase(result, "getItemCountByStatus");
982
      if (result.isSetSuccess()) {
983
        return result.success;
984
      }
985
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
986
    }
987
 
988
    public List<Item> getBestSellers() throws CatalogServiceException, org.apache.thrift.TException
989
    {
990
      send_getBestSellers();
991
      return recv_getBestSellers();
992
    }
993
 
994
    public void send_getBestSellers() throws org.apache.thrift.TException
995
    {
996
      getBestSellers_args args = new getBestSellers_args();
997
      sendBase("getBestSellers", args);
998
    }
999
 
1000
    public List<Item> recv_getBestSellers() throws CatalogServiceException, org.apache.thrift.TException
1001
    {
1002
      getBestSellers_result result = new getBestSellers_result();
1003
      receiveBase(result, "getBestSellers");
1004
      if (result.isSetSuccess()) {
1005
        return result.success;
1006
      }
1007
      if (result.isex != null) {
1008
        throw result.isex;
1009
      }
1010
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1011
    }
1012
 
1013
    public List<Long> getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException
1014
    {
1015
      send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category);
1016
      return recv_getBestSellersCatalogIds();
1017
    }
1018
 
1019
    public void send_getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException
1020
    {
1021
      getBestSellersCatalogIds_args args = new getBestSellersCatalogIds_args();
1022
      args.setBeginIndex(beginIndex);
1023
      args.setTotalItems(totalItems);
1024
      args.setBrand(brand);
1025
      args.setCategory(category);
1026
      sendBase("getBestSellersCatalogIds", args);
1027
    }
1028
 
1029
    public List<Long> recv_getBestSellersCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
1030
    {
1031
      getBestSellersCatalogIds_result result = new getBestSellersCatalogIds_result();
1032
      receiveBase(result, "getBestSellersCatalogIds");
1033
      if (result.isSetSuccess()) {
1034
        return result.success;
1035
      }
1036
      if (result.cex != null) {
1037
        throw result.cex;
1038
      }
1039
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1040
    }
1041
 
1042
    public long getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException
1043
    {
1044
      send_getBestSellersCount();
1045
      return recv_getBestSellersCount();
1046
    }
1047
 
1048
    public void send_getBestSellersCount() throws org.apache.thrift.TException
1049
    {
1050
      getBestSellersCount_args args = new getBestSellersCount_args();
1051
      sendBase("getBestSellersCount", args);
1052
    }
1053
 
1054
    public long recv_getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException
1055
    {
1056
      getBestSellersCount_result result = new getBestSellersCount_result();
1057
      receiveBase(result, "getBestSellersCount");
1058
      if (result.isSetSuccess()) {
1059
        return result.success;
1060
      }
1061
      if (result.cex != null) {
1062
        throw result.cex;
1063
      }
1064
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1065
    }
1066
 
1067
    public List<Item> getBestDeals() throws CatalogServiceException, org.apache.thrift.TException
1068
    {
1069
      send_getBestDeals();
1070
      return recv_getBestDeals();
1071
    }
1072
 
1073
    public void send_getBestDeals() throws org.apache.thrift.TException
1074
    {
1075
      getBestDeals_args args = new getBestDeals_args();
1076
      sendBase("getBestDeals", args);
1077
    }
1078
 
1079
    public List<Item> recv_getBestDeals() throws CatalogServiceException, org.apache.thrift.TException
1080
    {
1081
      getBestDeals_result result = new getBestDeals_result();
1082
      receiveBase(result, "getBestDeals");
1083
      if (result.isSetSuccess()) {
1084
        return result.success;
1085
      }
1086
      if (result.isex != null) {
1087
        throw result.isex;
1088
      }
1089
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1090
    }
1091
 
1092
    public List<Long> getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException
1093
    {
1094
      send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category);
1095
      return recv_getBestDealsCatalogIds();
1096
    }
1097
 
1098
    public void send_getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException
1099
    {
1100
      getBestDealsCatalogIds_args args = new getBestDealsCatalogIds_args();
1101
      args.setBeginIndex(beginIndex);
1102
      args.setTotalItems(totalItems);
1103
      args.setBrand(brand);
1104
      args.setCategory(category);
1105
      sendBase("getBestDealsCatalogIds", args);
1106
    }
1107
 
1108
    public List<Long> recv_getBestDealsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
1109
    {
1110
      getBestDealsCatalogIds_result result = new getBestDealsCatalogIds_result();
1111
      receiveBase(result, "getBestDealsCatalogIds");
1112
      if (result.isSetSuccess()) {
1113
        return result.success;
1114
      }
1115
      if (result.cex != null) {
1116
        throw result.cex;
1117
      }
1118
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1119
    }
1120
 
1121
    public long getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException
1122
    {
1123
      send_getBestDealsCount();
1124
      return recv_getBestDealsCount();
1125
    }
1126
 
1127
    public void send_getBestDealsCount() throws org.apache.thrift.TException
1128
    {
1129
      getBestDealsCount_args args = new getBestDealsCount_args();
1130
      sendBase("getBestDealsCount", args);
1131
    }
1132
 
1133
    public long recv_getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException
1134
    {
1135
      getBestDealsCount_result result = new getBestDealsCount_result();
1136
      receiveBase(result, "getBestDealsCount");
1137
      if (result.isSetSuccess()) {
1138
        return result.success;
1139
      }
1140
      if (result.cex != null) {
1141
        throw result.cex;
1142
      }
1143
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1144
    }
1145
 
1146
    public List<Item> getComingSoon() throws CatalogServiceException, org.apache.thrift.TException
1147
    {
1148
      send_getComingSoon();
1149
      return recv_getComingSoon();
1150
    }
1151
 
1152
    public void send_getComingSoon() throws org.apache.thrift.TException
1153
    {
1154
      getComingSoon_args args = new getComingSoon_args();
1155
      sendBase("getComingSoon", args);
1156
    }
1157
 
1158
    public List<Item> recv_getComingSoon() throws CatalogServiceException, org.apache.thrift.TException
1159
    {
1160
      getComingSoon_result result = new getComingSoon_result();
1161
      receiveBase(result, "getComingSoon");
1162
      if (result.isSetSuccess()) {
1163
        return result.success;
1164
      }
1165
      if (result.isex != null) {
1166
        throw result.isex;
1167
      }
1168
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1169
    }
1170
 
1171
    public List<Long> getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException
1172
    {
1173
      send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category);
1174
      return recv_getComingSoonCatalogIds();
1175
    }
1176
 
1177
    public void send_getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException
1178
    {
1179
      getComingSoonCatalogIds_args args = new getComingSoonCatalogIds_args();
1180
      args.setBeginIndex(beginIndex);
1181
      args.setTotalItems(totalItems);
1182
      args.setBrand(brand);
1183
      args.setCategory(category);
1184
      sendBase("getComingSoonCatalogIds", args);
1185
    }
1186
 
1187
    public List<Long> recv_getComingSoonCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
1188
    {
1189
      getComingSoonCatalogIds_result result = new getComingSoonCatalogIds_result();
1190
      receiveBase(result, "getComingSoonCatalogIds");
1191
      if (result.isSetSuccess()) {
1192
        return result.success;
1193
      }
1194
      if (result.cex != null) {
1195
        throw result.cex;
1196
      }
1197
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1198
    }
1199
 
1200
    public long getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException
1201
    {
1202
      send_getComingSoonCount();
1203
      return recv_getComingSoonCount();
1204
    }
1205
 
1206
    public void send_getComingSoonCount() throws org.apache.thrift.TException
1207
    {
1208
      getComingSoonCount_args args = new getComingSoonCount_args();
1209
      sendBase("getComingSoonCount", args);
1210
    }
1211
 
1212
    public long recv_getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException
1213
    {
1214
      getComingSoonCount_result result = new getComingSoonCount_result();
1215
      receiveBase(result, "getComingSoonCount");
1216
      if (result.isSetSuccess()) {
1217
        return result.success;
1218
      }
1219
      if (result.cex != null) {
1220
        throw result.cex;
1221
      }
1222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1223
    }
1224
 
1225
    public List<Item> getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException
1226
    {
1227
      send_getLatestArrivals();
1228
      return recv_getLatestArrivals();
1229
    }
1230
 
1231
    public void send_getLatestArrivals() throws org.apache.thrift.TException
1232
    {
1233
      getLatestArrivals_args args = new getLatestArrivals_args();
1234
      sendBase("getLatestArrivals", args);
1235
    }
1236
 
1237
    public List<Item> recv_getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException
1238
    {
1239
      getLatestArrivals_result result = new getLatestArrivals_result();
1240
      receiveBase(result, "getLatestArrivals");
1241
      if (result.isSetSuccess()) {
1242
        return result.success;
1243
      }
1244
      if (result.isex != null) {
1245
        throw result.isex;
1246
      }
1247
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1248
    }
1249
 
1250
    public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws CatalogServiceException, org.apache.thrift.TException
1251
    {
1252
      send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories);
1253
      return recv_getLatestArrivalsCatalogIds();
1254
    }
1255
 
1256
    public void send_getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws org.apache.thrift.TException
1257
    {
1258
      getLatestArrivalsCatalogIds_args args = new getLatestArrivalsCatalogIds_args();
1259
      args.setBeginIndex(beginIndex);
1260
      args.setTotalItems(totalItems);
1261
      args.setBrand(brand);
1262
      args.setCategories(categories);
1263
      sendBase("getLatestArrivalsCatalogIds", args);
1264
    }
1265
 
1266
    public List<Long> recv_getLatestArrivalsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
1267
    {
1268
      getLatestArrivalsCatalogIds_result result = new getLatestArrivalsCatalogIds_result();
1269
      receiveBase(result, "getLatestArrivalsCatalogIds");
1270
      if (result.isSetSuccess()) {
1271
        return result.success;
1272
      }
1273
      if (result.cex != null) {
1274
        throw result.cex;
1275
      }
1276
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1277
    }
1278
 
1279
    public long getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException
1280
    {
1281
      send_getLatestArrivalsCount();
1282
      return recv_getLatestArrivalsCount();
1283
    }
1284
 
1285
    public void send_getLatestArrivalsCount() throws org.apache.thrift.TException
1286
    {
1287
      getLatestArrivalsCount_args args = new getLatestArrivalsCount_args();
1288
      sendBase("getLatestArrivalsCount", args);
1289
    }
1290
 
1291
    public long recv_getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException
1292
    {
1293
      getLatestArrivalsCount_result result = new getLatestArrivalsCount_result();
1294
      receiveBase(result, "getLatestArrivalsCount");
1295
      if (result.isSetSuccess()) {
1296
        return result.success;
1297
      }
1298
      if (result.cex != null) {
1299
        throw result.cex;
1300
      }
1301
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1302
    }
1303
 
1304
    public long generateNewEntityID() throws org.apache.thrift.TException
1305
    {
1306
      send_generateNewEntityID();
1307
      return recv_generateNewEntityID();
1308
    }
1309
 
1310
    public void send_generateNewEntityID() throws org.apache.thrift.TException
1311
    {
1312
      generateNewEntityID_args args = new generateNewEntityID_args();
1313
      sendBase("generateNewEntityID", args);
1314
    }
1315
 
1316
    public long recv_generateNewEntityID() throws org.apache.thrift.TException
1317
    {
1318
      generateNewEntityID_result result = new generateNewEntityID_result();
1319
      receiveBase(result, "generateNewEntityID");
1320
      if (result.isSetSuccess()) {
1321
        return result.success;
1322
      }
1323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1324
    }
1325
 
1326
    public boolean addCategory(Category category) throws org.apache.thrift.TException
1327
    {
1328
      send_addCategory(category);
1329
      return recv_addCategory();
1330
    }
1331
 
1332
    public void send_addCategory(Category category) throws org.apache.thrift.TException
1333
    {
1334
      addCategory_args args = new addCategory_args();
1335
      args.setCategory(category);
1336
      sendBase("addCategory", args);
1337
    }
1338
 
1339
    public boolean recv_addCategory() throws org.apache.thrift.TException
1340
    {
1341
      addCategory_result result = new addCategory_result();
1342
      receiveBase(result, "addCategory");
1343
      if (result.isSetSuccess()) {
1344
        return result.success;
1345
      }
1346
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1347
    }
1348
 
1349
    public Category getCategory(long id) throws org.apache.thrift.TException
1350
    {
1351
      send_getCategory(id);
1352
      return recv_getCategory();
1353
    }
1354
 
1355
    public void send_getCategory(long id) throws org.apache.thrift.TException
1356
    {
1357
      getCategory_args args = new getCategory_args();
1358
      args.setId(id);
1359
      sendBase("getCategory", args);
1360
    }
1361
 
1362
    public Category recv_getCategory() throws org.apache.thrift.TException
1363
    {
1364
      getCategory_result result = new getCategory_result();
1365
      receiveBase(result, "getCategory");
1366
      if (result.isSetSuccess()) {
1367
        return result.success;
1368
      }
1369
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1370
    }
1371
 
1372
    public List<Category> getAllCategories() throws org.apache.thrift.TException
1373
    {
1374
      send_getAllCategories();
1375
      return recv_getAllCategories();
1376
    }
1377
 
1378
    public void send_getAllCategories() throws org.apache.thrift.TException
1379
    {
1380
      getAllCategories_args args = new getAllCategories_args();
1381
      sendBase("getAllCategories", args);
1382
    }
1383
 
1384
    public List<Category> recv_getAllCategories() throws org.apache.thrift.TException
1385
    {
1386
      getAllCategories_result result = new getAllCategories_result();
1387
      receiveBase(result, "getAllCategories");
1388
      if (result.isSetSuccess()) {
1389
        return result.success;
1390
      }
1391
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1392
    }
1393
 
1394
    public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException
1395
    {
1396
      send_getAllSimilarItems(itemId);
1397
      return recv_getAllSimilarItems();
1398
    }
1399
 
1400
    public void send_getAllSimilarItems(long itemId) throws org.apache.thrift.TException
1401
    {
1402
      getAllSimilarItems_args args = new getAllSimilarItems_args();
1403
      args.setItemId(itemId);
1404
      sendBase("getAllSimilarItems", args);
1405
    }
1406
 
1407
    public List<Item> recv_getAllSimilarItems() throws org.apache.thrift.TException
1408
    {
1409
      getAllSimilarItems_result result = new getAllSimilarItems_result();
1410
      receiveBase(result, "getAllSimilarItems");
1411
      if (result.isSetSuccess()) {
1412
        return result.success;
1413
      }
1414
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1415
    }
1416
 
1417
    public Item addSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException
1418
    {
1419
      send_addSimilarItem(itemId, catalogItemId);
1420
      return recv_addSimilarItem();
1421
    }
1422
 
1423
    public void send_addSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException
1424
    {
1425
      addSimilarItem_args args = new addSimilarItem_args();
1426
      args.setItemId(itemId);
1427
      args.setCatalogItemId(catalogItemId);
1428
      sendBase("addSimilarItem", args);
1429
    }
1430
 
1431
    public Item recv_addSimilarItem() throws CatalogServiceException, org.apache.thrift.TException
1432
    {
1433
      addSimilarItem_result result = new addSimilarItem_result();
1434
      receiveBase(result, "addSimilarItem");
1435
      if (result.isSetSuccess()) {
1436
        return result.success;
1437
      }
1438
      if (result.cex != null) {
1439
        throw result.cex;
1440
      }
1441
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1442
    }
1443
 
6511 kshitij.so 1444
    public boolean addTag(String displayName, long itemId) throws org.apache.thrift.TException
1445
    {
1446
      send_addTag(displayName, itemId);
1447
      return recv_addTag();
1448
    }
1449
 
1450
    public void send_addTag(String displayName, long itemId) throws org.apache.thrift.TException
1451
    {
1452
      addTag_args args = new addTag_args();
1453
      args.setDisplayName(displayName);
1454
      args.setItemId(itemId);
1455
      sendBase("addTag", args);
1456
    }
1457
 
1458
    public boolean recv_addTag() throws org.apache.thrift.TException
1459
    {
1460
      addTag_result result = new addTag_result();
1461
      receiveBase(result, "addTag");
1462
      if (result.isSetSuccess()) {
1463
        return result.success;
1464
      }
1465
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1466
    }
1467
 
1468
    public boolean deleteEntityTag(String displayName, long itemId) throws org.apache.thrift.TException
1469
    {
1470
      send_deleteEntityTag(displayName, itemId);
1471
      return recv_deleteEntityTag();
1472
    }
1473
 
1474
    public void send_deleteEntityTag(String displayName, long itemId) throws org.apache.thrift.TException
1475
    {
1476
      deleteEntityTag_args args = new deleteEntityTag_args();
1477
      args.setDisplayName(displayName);
1478
      args.setItemId(itemId);
1479
      sendBase("deleteEntityTag", args);
1480
    }
1481
 
1482
    public boolean recv_deleteEntityTag() throws org.apache.thrift.TException
1483
    {
1484
      deleteEntityTag_result result = new deleteEntityTag_result();
1485
      receiveBase(result, "deleteEntityTag");
1486
      if (result.isSetSuccess()) {
1487
        return result.success;
1488
      }
1489
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1490
    }
1491
 
1492
    public boolean deleteTag(String displayName) throws org.apache.thrift.TException
1493
    {
1494
      send_deleteTag(displayName);
1495
      return recv_deleteTag();
1496
    }
1497
 
1498
    public void send_deleteTag(String displayName) throws org.apache.thrift.TException
1499
    {
1500
      deleteTag_args args = new deleteTag_args();
1501
      args.setDisplayName(displayName);
1502
      sendBase("deleteTag", args);
1503
    }
1504
 
1505
    public boolean recv_deleteTag() throws org.apache.thrift.TException
1506
    {
1507
      deleteTag_result result = new deleteTag_result();
1508
      receiveBase(result, "deleteTag");
1509
      if (result.isSetSuccess()) {
1510
        return result.success;
1511
      }
1512
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1513
    }
1514
 
1515
    public List<String> getAllTags() throws org.apache.thrift.TException
1516
    {
1517
      send_getAllTags();
1518
      return recv_getAllTags();
1519
    }
1520
 
1521
    public void send_getAllTags() throws org.apache.thrift.TException
1522
    {
1523
      getAllTags_args args = new getAllTags_args();
1524
      sendBase("getAllTags", args);
1525
    }
1526
 
1527
    public List<String> recv_getAllTags() throws org.apache.thrift.TException
1528
    {
1529
      getAllTags_result result = new getAllTags_result();
1530
      receiveBase(result, "getAllTags");
1531
      if (result.isSetSuccess()) {
1532
        return result.success;
1533
      }
1534
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1535
    }
1536
 
1537
    public List<Long> getAllEntitiesByTagName(String displayName) throws org.apache.thrift.TException
1538
    {
1539
      send_getAllEntitiesByTagName(displayName);
1540
      return recv_getAllEntitiesByTagName();
1541
    }
1542
 
1543
    public void send_getAllEntitiesByTagName(String displayName) throws org.apache.thrift.TException
1544
    {
1545
      getAllEntitiesByTagName_args args = new getAllEntitiesByTagName_args();
1546
      args.setDisplayName(displayName);
1547
      sendBase("getAllEntitiesByTagName", args);
1548
    }
1549
 
1550
    public List<Long> recv_getAllEntitiesByTagName() throws org.apache.thrift.TException
1551
    {
1552
      getAllEntitiesByTagName_result result = new getAllEntitiesByTagName_result();
1553
      receiveBase(result, "getAllEntitiesByTagName");
1554
      if (result.isSetSuccess()) {
1555
        return result.success;
1556
      }
1557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1558
    }
1559
 
6842 amit.gupta 1560
    public Map<Long,List<String>> getAllEntityTags() throws org.apache.thrift.TException
1561
    {
1562
      send_getAllEntityTags();
1563
      return recv_getAllEntityTags();
1564
    }
1565
 
1566
    public void send_getAllEntityTags() throws org.apache.thrift.TException
1567
    {
1568
      getAllEntityTags_args args = new getAllEntityTags_args();
1569
      sendBase("getAllEntityTags", args);
1570
    }
1571
 
1572
    public Map<Long,List<String>> recv_getAllEntityTags() throws org.apache.thrift.TException
1573
    {
1574
      getAllEntityTags_result result = new getAllEntityTags_result();
1575
      receiveBase(result, "getAllEntityTags");
1576
      if (result.isSetSuccess()) {
1577
        return result.success;
1578
      }
1579
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1580
    }
1581
 
6850 kshitij.so 1582
    public boolean addBanner(String bannerName, String imageName, String link, long priority, boolean isActive, boolean hasMap) throws org.apache.thrift.TException
1583
    {
1584
      send_addBanner(bannerName, imageName, link, priority, isActive, hasMap);
1585
      return recv_addBanner();
1586
    }
1587
 
1588
    public void send_addBanner(String bannerName, String imageName, String link, long priority, boolean isActive, boolean hasMap) throws org.apache.thrift.TException
1589
    {
1590
      addBanner_args args = new addBanner_args();
1591
      args.setBannerName(bannerName);
1592
      args.setImageName(imageName);
1593
      args.setLink(link);
1594
      args.setPriority(priority);
1595
      args.setIsActive(isActive);
1596
      args.setHasMap(hasMap);
1597
      sendBase("addBanner", args);
1598
    }
1599
 
1600
    public boolean recv_addBanner() throws org.apache.thrift.TException
1601
    {
1602
      addBanner_result result = new addBanner_result();
1603
      receiveBase(result, "addBanner");
1604
      if (result.isSetSuccess()) {
1605
        return result.success;
1606
      }
1607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1608
    }
1609
 
1610
    public List<String> getAllBanners() throws org.apache.thrift.TException
1611
    {
1612
      send_getAllBanners();
1613
      return recv_getAllBanners();
1614
    }
1615
 
1616
    public void send_getAllBanners() throws org.apache.thrift.TException
1617
    {
1618
      getAllBanners_args args = new getAllBanners_args();
1619
      sendBase("getAllBanners", args);
1620
    }
1621
 
1622
    public List<String> recv_getAllBanners() throws org.apache.thrift.TException
1623
    {
1624
      getAllBanners_result result = new getAllBanners_result();
1625
      receiveBase(result, "getAllBanners");
1626
      if (result.isSetSuccess()) {
1627
        return result.success;
1628
      }
1629
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
1630
    }
1631
 
1632
    public boolean deleteBanner(String bannerName) throws org.apache.thrift.TException
1633
    {
1634
      send_deleteBanner(bannerName);
1635
      return recv_deleteBanner();
1636
    }
1637
 
1638
    public void send_deleteBanner(String bannerName) throws org.apache.thrift.TException
1639
    {
1640
      deleteBanner_args args = new deleteBanner_args();
1641
      args.setBannerName(bannerName);
1642
      sendBase("deleteBanner", args);
1643
    }
1644
 
1645
    public boolean recv_deleteBanner() throws org.apache.thrift.TException
1646
    {
1647
      deleteBanner_result result = new deleteBanner_result();
1648
      receiveBase(result, "deleteBanner");
1649
      if (result.isSetSuccess()) {
1650
        return result.success;
1651
      }
1652
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
1653
    }
1654
 
1655
    public Banner getBannerDetails(String bannerName) throws org.apache.thrift.TException
1656
    {
1657
      send_getBannerDetails(bannerName);
1658
      return recv_getBannerDetails();
1659
    }
1660
 
1661
    public void send_getBannerDetails(String bannerName) throws org.apache.thrift.TException
1662
    {
1663
      getBannerDetails_args args = new getBannerDetails_args();
1664
      args.setBannerName(bannerName);
1665
      sendBase("getBannerDetails", args);
1666
    }
1667
 
1668
    public Banner recv_getBannerDetails() throws org.apache.thrift.TException
1669
    {
1670
      getBannerDetails_result result = new getBannerDetails_result();
1671
      receiveBase(result, "getBannerDetails");
1672
      if (result.isSetSuccess()) {
1673
        return result.success;
1674
      }
1675
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
1676
    }
1677
 
1678
    public List<Banner> getActiveBanners() throws org.apache.thrift.TException
1679
    {
1680
      send_getActiveBanners();
1681
      return recv_getActiveBanners();
1682
    }
1683
 
1684
    public void send_getActiveBanners() throws org.apache.thrift.TException
1685
    {
1686
      getActiveBanners_args args = new getActiveBanners_args();
1687
      sendBase("getActiveBanners", args);
1688
    }
1689
 
1690
    public List<Banner> recv_getActiveBanners() throws org.apache.thrift.TException
1691
    {
1692
      getActiveBanners_result result = new getActiveBanners_result();
1693
      receiveBase(result, "getActiveBanners");
1694
      if (result.isSetSuccess()) {
1695
        return result.success;
1696
      }
1697
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
1698
    }
1699
 
6849 kshitij.so 1700
    public boolean addBannerMap(String bannerName, String mapLink, String coordinates) throws org.apache.thrift.TException
1701
    {
1702
      send_addBannerMap(bannerName, mapLink, coordinates);
1703
      return recv_addBannerMap();
1704
    }
1705
 
1706
    public void send_addBannerMap(String bannerName, String mapLink, String coordinates) throws org.apache.thrift.TException
1707
    {
1708
      addBannerMap_args args = new addBannerMap_args();
1709
      args.setBannerName(bannerName);
1710
      args.setMapLink(mapLink);
1711
      args.setCoordinates(coordinates);
1712
      sendBase("addBannerMap", args);
1713
    }
1714
 
1715
    public boolean recv_addBannerMap() throws org.apache.thrift.TException
1716
    {
1717
      addBannerMap_result result = new addBannerMap_result();
1718
      receiveBase(result, "addBannerMap");
1719
      if (result.isSetSuccess()) {
1720
        return result.success;
1721
      }
1722
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
1723
    }
1724
 
1725
    public boolean deleteBannerMap(String bannerName) throws org.apache.thrift.TException
1726
    {
1727
      send_deleteBannerMap(bannerName);
1728
      return recv_deleteBannerMap();
1729
    }
1730
 
1731
    public void send_deleteBannerMap(String bannerName) throws org.apache.thrift.TException
1732
    {
1733
      deleteBannerMap_args args = new deleteBannerMap_args();
1734
      args.setBannerName(bannerName);
1735
      sendBase("deleteBannerMap", args);
1736
    }
1737
 
1738
    public boolean recv_deleteBannerMap() throws org.apache.thrift.TException
1739
    {
1740
      deleteBannerMap_result result = new deleteBannerMap_result();
1741
      receiveBase(result, "deleteBannerMap");
1742
      if (result.isSetSuccess()) {
1743
        return result.success;
1744
      }
1745
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
1746
    }
1747
 
1748
    public List<BannerMap> getBannerMapDetails(String bannerName) throws org.apache.thrift.TException
1749
    {
1750
      send_getBannerMapDetails(bannerName);
1751
      return recv_getBannerMapDetails();
1752
    }
1753
 
1754
    public void send_getBannerMapDetails(String bannerName) throws org.apache.thrift.TException
1755
    {
1756
      getBannerMapDetails_args args = new getBannerMapDetails_args();
1757
      args.setBannerName(bannerName);
1758
      sendBase("getBannerMapDetails", args);
1759
    }
1760
 
1761
    public List<BannerMap> recv_getBannerMapDetails() throws org.apache.thrift.TException
1762
    {
1763
      getBannerMapDetails_result result = new getBannerMapDetails_result();
1764
      receiveBase(result, "getBannerMapDetails");
1765
      if (result.isSetSuccess()) {
1766
        return result.success;
1767
      }
1768
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
1769
    }
1770
 
5945 mandeep.dh 1771
    public boolean deleteSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException
1772
    {
1773
      send_deleteSimilarItem(itemId, catalogItemId);
1774
      return recv_deleteSimilarItem();
1775
    }
1776
 
1777
    public void send_deleteSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException
1778
    {
1779
      deleteSimilarItem_args args = new deleteSimilarItem_args();
1780
      args.setItemId(itemId);
1781
      args.setCatalogItemId(catalogItemId);
1782
      sendBase("deleteSimilarItem", args);
1783
    }
1784
 
1785
    public boolean recv_deleteSimilarItem() throws CatalogServiceException, org.apache.thrift.TException
1786
    {
1787
      deleteSimilarItem_result result = new deleteSimilarItem_result();
1788
      receiveBase(result, "deleteSimilarItem");
1789
      if (result.isSetSuccess()) {
1790
        return result.success;
1791
      }
1792
      if (result.cex != null) {
1793
        throw result.cex;
1794
      }
1795
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1796
    }
1797
 
1798
    public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException
1799
    {
1800
      send_checkSimilarItem(brand, modelNumber, modelName, color);
1801
      return recv_checkSimilarItem();
1802
    }
1803
 
1804
    public void send_checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException
1805
    {
1806
      checkSimilarItem_args args = new checkSimilarItem_args();
1807
      args.setBrand(brand);
1808
      args.setModelNumber(modelNumber);
1809
      args.setModelName(modelName);
1810
      args.setColor(color);
1811
      sendBase("checkSimilarItem", args);
1812
    }
1813
 
1814
    public long recv_checkSimilarItem() throws org.apache.thrift.TException
1815
    {
1816
      checkSimilarItem_result result = new checkSimilarItem_result();
1817
      receiveBase(result, "checkSimilarItem");
1818
      if (result.isSetSuccess()) {
1819
        return result.success;
1820
      }
1821
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1822
    }
1823
 
1824
    public void validateRiskyStatus(long itemId) throws org.apache.thrift.TException
1825
    {
1826
      send_validateRiskyStatus(itemId);
1827
      recv_validateRiskyStatus();
1828
    }
1829
 
1830
    public void send_validateRiskyStatus(long itemId) throws org.apache.thrift.TException
1831
    {
1832
      validateRiskyStatus_args args = new validateRiskyStatus_args();
1833
      args.setItemId(itemId);
1834
      sendBase("validateRiskyStatus", args);
1835
    }
1836
 
1837
    public void recv_validateRiskyStatus() throws org.apache.thrift.TException
1838
    {
1839
      validateRiskyStatus_result result = new validateRiskyStatus_result();
1840
      receiveBase(result, "validateRiskyStatus");
1841
      return;
1842
    }
1843
 
1844
    public void changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException
1845
    {
1846
      send_changeItemRiskyFlag(itemId, risky);
1847
      recv_changeItemRiskyFlag();
1848
    }
1849
 
1850
    public void send_changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException
1851
    {
1852
      changeItemRiskyFlag_args args = new changeItemRiskyFlag_args();
1853
      args.setItemId(itemId);
1854
      args.setRisky(risky);
1855
      sendBase("changeItemRiskyFlag", args);
1856
    }
1857
 
1858
    public void recv_changeItemRiskyFlag() throws org.apache.thrift.TException
1859
    {
1860
      changeItemRiskyFlag_result result = new changeItemRiskyFlag_result();
1861
      receiveBase(result, "changeItemRiskyFlag");
1862
      return;
1863
    }
1864
 
1865
    public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException
1866
    {
1867
      send_getItemsByRiskyFlag();
1868
      return recv_getItemsByRiskyFlag();
1869
    }
1870
 
1871
    public void send_getItemsByRiskyFlag() throws org.apache.thrift.TException
1872
    {
1873
      getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();
1874
      sendBase("getItemsByRiskyFlag", args);
1875
    }
1876
 
1877
    public List<Item> recv_getItemsByRiskyFlag() throws org.apache.thrift.TException
1878
    {
1879
      getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();
1880
      receiveBase(result, "getItemsByRiskyFlag");
1881
      if (result.isSetSuccess()) {
1882
        return result.success;
1883
      }
1884
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
1885
    }
1886
 
1887
    public List<Item> getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException
1888
    {
1889
      send_getItemsForMasterSheet(category, brand);
1890
      return recv_getItemsForMasterSheet();
1891
    }
1892
 
1893
    public void send_getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException
1894
    {
1895
      getItemsForMasterSheet_args args = new getItemsForMasterSheet_args();
1896
      args.setCategory(category);
1897
      args.setBrand(brand);
1898
      sendBase("getItemsForMasterSheet", args);
1899
    }
1900
 
1901
    public List<Item> recv_getItemsForMasterSheet() throws org.apache.thrift.TException
1902
    {
1903
      getItemsForMasterSheet_result result = new getItemsForMasterSheet_result();
1904
      receiveBase(result, "getItemsForMasterSheet");
1905
      if (result.isSetSuccess()) {
1906
        return result.success;
1907
      }
1908
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
1909
    }
1910
 
1911
    public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException
1912
    {
1913
      send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId);
1914
      return recv_getSimilarItemsCatalogIds();
1915
    }
1916
 
1917
    public void send_getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException
1918
    {
1919
      getSimilarItemsCatalogIds_args args = new getSimilarItemsCatalogIds_args();
1920
      args.setBeginIndex(beginIndex);
1921
      args.setTotalItems(totalItems);
1922
      args.setItemId(itemId);
1923
      sendBase("getSimilarItemsCatalogIds", args);
1924
    }
1925
 
1926
    public List<Long> recv_getSimilarItemsCatalogIds() throws org.apache.thrift.TException
1927
    {
1928
      getSimilarItemsCatalogIds_result result = new getSimilarItemsCatalogIds_result();
1929
      receiveBase(result, "getSimilarItemsCatalogIds");
1930
      if (result.isSetSuccess()) {
1931
        return result.success;
1932
      }
1933
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
1934
    }
1935
 
1936
    public boolean addProductNotification(long itemId, String email) throws org.apache.thrift.TException
1937
    {
1938
      send_addProductNotification(itemId, email);
1939
      return recv_addProductNotification();
1940
    }
1941
 
1942
    public void send_addProductNotification(long itemId, String email) throws org.apache.thrift.TException
1943
    {
1944
      addProductNotification_args args = new addProductNotification_args();
1945
      args.setItemId(itemId);
1946
      args.setEmail(email);
1947
      sendBase("addProductNotification", args);
1948
    }
1949
 
1950
    public boolean recv_addProductNotification() throws org.apache.thrift.TException
1951
    {
1952
      addProductNotification_result result = new addProductNotification_result();
1953
      receiveBase(result, "addProductNotification");
1954
      if (result.isSetSuccess()) {
1955
        return result.success;
1956
      }
1957
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
1958
    }
1959
 
1960
    public boolean sendProductNotifications() throws org.apache.thrift.TException
1961
    {
1962
      send_sendProductNotifications();
1963
      return recv_sendProductNotifications();
1964
    }
1965
 
1966
    public void send_sendProductNotifications() throws org.apache.thrift.TException
1967
    {
1968
      sendProductNotifications_args args = new sendProductNotifications_args();
1969
      sendBase("sendProductNotifications", args);
1970
    }
1971
 
1972
    public boolean recv_sendProductNotifications() throws org.apache.thrift.TException
1973
    {
1974
      sendProductNotifications_result result = new sendProductNotifications_result();
1975
      receiveBase(result, "sendProductNotifications");
1976
      if (result.isSetSuccess()) {
1977
        return result.success;
1978
      }
1979
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
1980
    }
1981
 
1982
    public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException
1983
    {
1984
      send_getAllBrandsByCategory(categoryId);
1985
      return recv_getAllBrandsByCategory();
1986
    }
1987
 
1988
    public void send_getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException
1989
    {
1990
      getAllBrandsByCategory_args args = new getAllBrandsByCategory_args();
1991
      args.setCategoryId(categoryId);
1992
      sendBase("getAllBrandsByCategory", args);
1993
    }
1994
 
1995
    public List<String> recv_getAllBrandsByCategory() throws org.apache.thrift.TException
1996
    {
1997
      getAllBrandsByCategory_result result = new getAllBrandsByCategory_result();
1998
      receiveBase(result, "getAllBrandsByCategory");
1999
      if (result.isSetSuccess()) {
2000
        return result.success;
2001
      }
2002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2003
    }
2004
 
2005
    public List<String> getAllBrands() throws org.apache.thrift.TException
2006
    {
2007
      send_getAllBrands();
2008
      return recv_getAllBrands();
2009
    }
2010
 
2011
    public void send_getAllBrands() throws org.apache.thrift.TException
2012
    {
2013
      getAllBrands_args args = new getAllBrands_args();
2014
      sendBase("getAllBrands", args);
2015
    }
2016
 
2017
    public List<String> recv_getAllBrands() throws org.apache.thrift.TException
2018
    {
2019
      getAllBrands_result result = new getAllBrands_result();
2020
      receiveBase(result, "getAllBrands");
2021
      if (result.isSetSuccess()) {
2022
        return result.success;
2023
      }
2024
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2025
    }
2026
 
2027
    public List<Source> getAllSources() throws org.apache.thrift.TException
2028
    {
2029
      send_getAllSources();
2030
      return recv_getAllSources();
2031
    }
2032
 
2033
    public void send_getAllSources() throws org.apache.thrift.TException
2034
    {
2035
      getAllSources_args args = new getAllSources_args();
2036
      sendBase("getAllSources", args);
2037
    }
2038
 
2039
    public List<Source> recv_getAllSources() throws org.apache.thrift.TException
2040
    {
2041
      getAllSources_result result = new getAllSources_result();
2042
      receiveBase(result, "getAllSources");
2043
      if (result.isSetSuccess()) {
2044
        return result.success;
2045
      }
2046
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2047
    }
2048
 
2049
    public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws CatalogServiceException, org.apache.thrift.TException
2050
    {
2051
      send_getItemPricingBySource(itemId, sourceId);
2052
      return recv_getItemPricingBySource();
2053
    }
2054
 
2055
    public void send_getItemPricingBySource(long itemId, long sourceId) throws org.apache.thrift.TException
2056
    {
2057
      getItemPricingBySource_args args = new getItemPricingBySource_args();
2058
      args.setItemId(itemId);
2059
      args.setSourceId(sourceId);
2060
      sendBase("getItemPricingBySource", args);
2061
    }
2062
 
2063
    public SourceItemPricing recv_getItemPricingBySource() throws CatalogServiceException, org.apache.thrift.TException
2064
    {
2065
      getItemPricingBySource_result result = new getItemPricingBySource_result();
2066
      receiveBase(result, "getItemPricingBySource");
2067
      if (result.isSetSuccess()) {
2068
        return result.success;
2069
      }
2070
      if (result.cex != null) {
2071
        throw result.cex;
2072
      }
2073
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2074
    }
2075
 
2076
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws CatalogServiceException, org.apache.thrift.TException
2077
    {
2078
      send_addSourceItemPricing(sourceItemPricing);
2079
      recv_addSourceItemPricing();
2080
    }
2081
 
2082
    public void send_addSourceItemPricing(SourceItemPricing sourceItemPricing) throws org.apache.thrift.TException
2083
    {
2084
      addSourceItemPricing_args args = new addSourceItemPricing_args();
2085
      args.setSourceItemPricing(sourceItemPricing);
2086
      sendBase("addSourceItemPricing", args);
2087
    }
2088
 
2089
    public void recv_addSourceItemPricing() throws CatalogServiceException, org.apache.thrift.TException
2090
    {
2091
      addSourceItemPricing_result result = new addSourceItemPricing_result();
2092
      receiveBase(result, "addSourceItemPricing");
2093
      if (result.cex != null) {
2094
        throw result.cex;
2095
      }
2096
      return;
2097
    }
2098
 
2099
    public List<SourceItemPricing> getAllSourcePricing(long itemId) throws CatalogServiceException, org.apache.thrift.TException
2100
    {
2101
      send_getAllSourcePricing(itemId);
2102
      return recv_getAllSourcePricing();
2103
    }
2104
 
2105
    public void send_getAllSourcePricing(long itemId) throws org.apache.thrift.TException
2106
    {
2107
      getAllSourcePricing_args args = new getAllSourcePricing_args();
2108
      args.setItemId(itemId);
2109
      sendBase("getAllSourcePricing", args);
2110
    }
2111
 
2112
    public List<SourceItemPricing> recv_getAllSourcePricing() throws CatalogServiceException, org.apache.thrift.TException
2113
    {
2114
      getAllSourcePricing_result result = new getAllSourcePricing_result();
2115
      receiveBase(result, "getAllSourcePricing");
2116
      if (result.isSetSuccess()) {
2117
        return result.success;
2118
      }
2119
      if (result.cex != null) {
2120
        throw result.cex;
2121
      }
2122
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2123
    }
2124
 
2125
    public Item getItemForSource(long item_id, long sourceId) throws CatalogServiceException, org.apache.thrift.TException
2126
    {
2127
      send_getItemForSource(item_id, sourceId);
2128
      return recv_getItemForSource();
2129
    }
2130
 
2131
    public void send_getItemForSource(long item_id, long sourceId) throws org.apache.thrift.TException
2132
    {
2133
      getItemForSource_args args = new getItemForSource_args();
2134
      args.setItem_id(item_id);
2135
      args.setSourceId(sourceId);
2136
      sendBase("getItemForSource", args);
2137
    }
2138
 
2139
    public Item recv_getItemForSource() throws CatalogServiceException, org.apache.thrift.TException
2140
    {
2141
      getItemForSource_result result = new getItemForSource_result();
2142
      receiveBase(result, "getItemForSource");
2143
      if (result.isSetSuccess()) {
2144
        return result.success;
2145
      }
2146
      if (result.cex != null) {
2147
        throw result.cex;
2148
      }
2149
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2150
    }
2151
 
2152
    public List<Item> searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException
2153
    {
2154
      send_searchItemsInRange(searchTerms, offset, limit);
2155
      return recv_searchItemsInRange();
2156
    }
2157
 
2158
    public void send_searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException
2159
    {
2160
      searchItemsInRange_args args = new searchItemsInRange_args();
2161
      args.setSearchTerms(searchTerms);
2162
      args.setOffset(offset);
2163
      args.setLimit(limit);
2164
      sendBase("searchItemsInRange", args);
2165
    }
2166
 
2167
    public List<Item> recv_searchItemsInRange() throws org.apache.thrift.TException
2168
    {
2169
      searchItemsInRange_result result = new searchItemsInRange_result();
2170
      receiveBase(result, "searchItemsInRange");
2171
      if (result.isSetSuccess()) {
2172
        return result.success;
2173
      }
2174
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2175
    }
2176
 
2177
    public int getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException
2178
    {
2179
      send_getSearchResultCount(searchTerms);
2180
      return recv_getSearchResultCount();
2181
    }
2182
 
2183
    public void send_getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException
2184
    {
2185
      getSearchResultCount_args args = new getSearchResultCount_args();
2186
      args.setSearchTerms(searchTerms);
2187
      sendBase("getSearchResultCount", args);
2188
    }
2189
 
2190
    public int recv_getSearchResultCount() throws org.apache.thrift.TException
2191
    {
2192
      getSearchResultCount_result result = new getSearchResultCount_result();
2193
      receiveBase(result, "getSearchResultCount");
2194
      if (result.isSetSuccess()) {
2195
        return result.success;
2196
      }
2197
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2198
    }
2199
 
2200
    public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException
2201
    {
2202
      send_getProductNotifications(startDateTime);
2203
      return recv_getProductNotifications();
2204
    }
2205
 
2206
    public void send_getProductNotifications(long startDateTime) throws org.apache.thrift.TException
2207
    {
2208
      getProductNotifications_args args = new getProductNotifications_args();
2209
      args.setStartDateTime(startDateTime);
2210
      sendBase("getProductNotifications", args);
2211
    }
2212
 
2213
    public List<ProductNotificationRequest> recv_getProductNotifications() throws org.apache.thrift.TException
2214
    {
2215
      getProductNotifications_result result = new getProductNotifications_result();
2216
      receiveBase(result, "getProductNotifications");
2217
      if (result.isSetSuccess()) {
2218
        return result.success;
2219
      }
2220
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2221
    }
2222
 
2223
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException
2224
    {
2225
      send_getProductNotificationRequestCount(startDateTime);
2226
      return recv_getProductNotificationRequestCount();
2227
    }
2228
 
2229
    public void send_getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException
2230
    {
2231
      getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
2232
      args.setStartDateTime(startDateTime);
2233
      sendBase("getProductNotificationRequestCount", args);
2234
    }
2235
 
2236
    public List<ProductNotificationRequestCount> recv_getProductNotificationRequestCount() throws org.apache.thrift.TException
2237
    {
2238
      getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();
2239
      receiveBase(result, "getProductNotificationRequestCount");
2240
      if (result.isSetSuccess()) {
2241
        return result.success;
2242
      }
2243
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2244
    }
2245
 
2246
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException
2247
    {
2248
      send_addAuthorizationLog(itemId, username, reason);
2249
      return recv_addAuthorizationLog();
2250
    }
2251
 
2252
    public void send_addAuthorizationLog(long itemId, String username, String reason) throws org.apache.thrift.TException
2253
    {
2254
      addAuthorizationLog_args args = new addAuthorizationLog_args();
2255
      args.setItemId(itemId);
2256
      args.setUsername(username);
2257
      args.setReason(reason);
2258
      sendBase("addAuthorizationLog", args);
2259
    }
2260
 
2261
    public boolean recv_addAuthorizationLog() throws CatalogServiceException, org.apache.thrift.TException
2262
    {
2263
      addAuthorizationLog_result result = new addAuthorizationLog_result();
2264
      receiveBase(result, "addAuthorizationLog");
2265
      if (result.isSetSuccess()) {
2266
        return result.success;
2267
      }
2268
      if (result.cex != null) {
2269
        throw result.cex;
2270
      }
2271
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2272
    }
2273
 
2274
    public List<Long> getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
2275
    {
2276
      send_getClearanceSaleCatalogIds();
2277
      return recv_getClearanceSaleCatalogIds();
2278
    }
2279
 
2280
    public void send_getClearanceSaleCatalogIds() throws org.apache.thrift.TException
2281
    {
2282
      getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();
2283
      sendBase("getClearanceSaleCatalogIds", args);
2284
    }
2285
 
2286
    public List<Long> recv_getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
2287
    {
2288
      getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();
2289
      receiveBase(result, "getClearanceSaleCatalogIds");
2290
      if (result.isSetSuccess()) {
2291
        return result.success;
2292
      }
2293
      if (result.cex != null) {
2294
        throw result.cex;
2295
      }
2296
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2297
    }
2298
 
2299
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException
2300
    {
2301
      send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);
2302
      return recv_addupdateVoucherForItem();
2303
    }
2304
 
2305
    public void send_addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws org.apache.thrift.TException
2306
    {
2307
      addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();
2308
      args.setCatalog_item_id(catalog_item_id);
2309
      args.setVoucherType(voucherType);
2310
      args.setVoucherAmount(voucherAmount);
2311
      sendBase("addupdateVoucherForItem", args);
2312
    }
2313
 
2314
    public boolean recv_addupdateVoucherForItem() throws CatalogServiceException, org.apache.thrift.TException
2315
    {
2316
      addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();
2317
      receiveBase(result, "addupdateVoucherForItem");
2318
      if (result.isSetSuccess()) {
2319
        return result.success;
2320
      }
2321
      if (result.cex != null) {
2322
        throw result.cex;
2323
      }
2324
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2325
    }
2326
 
2327
    public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException
2328
    {
2329
      send_deleteVoucherForItem(catalog_item_id, voucherType);
2330
      return recv_deleteVoucherForItem();
2331
    }
2332
 
2333
    public void send_deleteVoucherForItem(long catalog_item_id, long voucherType) throws org.apache.thrift.TException
2334
    {
2335
      deleteVoucherForItem_args args = new deleteVoucherForItem_args();
2336
      args.setCatalog_item_id(catalog_item_id);
2337
      args.setVoucherType(voucherType);
2338
      sendBase("deleteVoucherForItem", args);
2339
    }
2340
 
2341
    public boolean recv_deleteVoucherForItem() throws CatalogServiceException, org.apache.thrift.TException
2342
    {
2343
      deleteVoucherForItem_result result = new deleteVoucherForItem_result();
2344
      receiveBase(result, "deleteVoucherForItem");
2345
      if (result.isSetSuccess()) {
2346
        return result.success;
2347
      }
2348
      if (result.cex != null) {
2349
        throw result.cex;
2350
      }
2351
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2352
    }
2353
 
2354
    public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException
2355
    {
2356
      send_getVoucherAmount(itemId, voucherType);
2357
      return recv_getVoucherAmount();
2358
    }
2359
 
2360
    public void send_getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException
2361
    {
2362
      getVoucherAmount_args args = new getVoucherAmount_args();
2363
      args.setItemId(itemId);
2364
      args.setVoucherType(voucherType);
2365
      sendBase("getVoucherAmount", args);
2366
    }
2367
 
2368
    public long recv_getVoucherAmount() throws org.apache.thrift.TException
2369
    {
2370
      getVoucherAmount_result result = new getVoucherAmount_result();
2371
      receiveBase(result, "getVoucherAmount");
2372
      if (result.isSetSuccess()) {
2373
        return result.success;
2374
      }
2375
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2376
    }
2377
 
2378
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException
2379
    {
2380
      send_getAllItemVouchers(itemId);
2381
      return recv_getAllItemVouchers();
2382
    }
2383
 
2384
    public void send_getAllItemVouchers(long itemId) throws org.apache.thrift.TException
2385
    {
2386
      getAllItemVouchers_args args = new getAllItemVouchers_args();
2387
      args.setItemId(itemId);
2388
      sendBase("getAllItemVouchers", args);
2389
    }
2390
 
2391
    public List<VoucherItemMapping> recv_getAllItemVouchers() throws org.apache.thrift.TException
2392
    {
2393
      getAllItemVouchers_result result = new getAllItemVouchers_result();
2394
      receiveBase(result, "getAllItemVouchers");
2395
      if (result.isSetSuccess()) {
2396
        return result.success;
2397
      }
2398
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2399
    }
2400
 
2401
    public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException
2402
    {
2403
      send_isValidCatalogItemId(catalog_item_id);
2404
      return recv_isValidCatalogItemId();
2405
    }
2406
 
2407
    public void send_isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException
2408
    {
2409
      isValidCatalogItemId_args args = new isValidCatalogItemId_args();
2410
      args.setCatalog_item_id(catalog_item_id);
2411
      sendBase("isValidCatalogItemId", args);
2412
    }
2413
 
2414
    public boolean recv_isValidCatalogItemId() throws org.apache.thrift.TException
2415
    {
2416
      isValidCatalogItemId_result result = new isValidCatalogItemId_result();
2417
      receiveBase(result, "isValidCatalogItemId");
2418
      if (result.isSetSuccess()) {
2419
        return result.success;
2420
      }
2421
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2422
    }
2423
 
6039 amit.gupta 2424
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException
2425
    {
2426
      send_getVatPercentageForItem(itemId, price);
2427
      return recv_getVatPercentageForItem();
2428
    }
2429
 
2430
    public void send_getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException
2431
    {
2432
      getVatPercentageForItem_args args = new getVatPercentageForItem_args();
2433
      args.setItemId(itemId);
2434
      args.setPrice(price);
2435
      sendBase("getVatPercentageForItem", args);
2436
    }
2437
 
2438
    public double recv_getVatPercentageForItem() throws org.apache.thrift.TException
2439
    {
2440
      getVatPercentageForItem_result result = new getVatPercentageForItem_result();
2441
      receiveBase(result, "getVatPercentageForItem");
2442
      if (result.isSetSuccess()) {
2443
        return result.success;
2444
      }
2445
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2446
    }
2447
 
2448
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException
2449
    {
2450
      send_getVatAmountForItem(itemId, price);
2451
      return recv_getVatAmountForItem();
2452
    }
2453
 
2454
    public void send_getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException
2455
    {
2456
      getVatAmountForItem_args args = new getVatAmountForItem_args();
2457
      args.setItemId(itemId);
2458
      args.setPrice(price);
2459
      sendBase("getVatAmountForItem", args);
2460
    }
2461
 
2462
    public double recv_getVatAmountForItem() throws org.apache.thrift.TException
2463
    {
2464
      getVatAmountForItem_result result = new getVatAmountForItem_result();
2465
      receiveBase(result, "getVatAmountForItem");
2466
      if (result.isSetSuccess()) {
2467
        return result.success;
2468
      }
2469
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2470
    }
2471
 
6531 vikram.rag 2472
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException
2473
    {
2474
      send_getAllIgnoredInventoryUpdateItemsList(offset, limit);
2475
      return recv_getAllIgnoredInventoryUpdateItemsList();
2476
    }
2477
 
2478
    public void send_getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException
2479
    {
2480
      getAllIgnoredInventoryUpdateItemsList_args args = new getAllIgnoredInventoryUpdateItemsList_args();
2481
      args.setOffset(offset);
2482
      args.setLimit(limit);
2483
      sendBase("getAllIgnoredInventoryUpdateItemsList", args);
2484
    }
2485
 
2486
    public List<Item> recv_getAllIgnoredInventoryUpdateItemsList() throws org.apache.thrift.TException
2487
    {
2488
      getAllIgnoredInventoryUpdateItemsList_result result = new getAllIgnoredInventoryUpdateItemsList_result();
2489
      receiveBase(result, "getAllIgnoredInventoryUpdateItemsList");
2490
      if (result.isSetSuccess()) {
2491
        return result.success;
2492
      }
2493
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2494
    }
2495
 
6821 amar.kumar 2496
    public List<Item> getAllAliveItems() throws org.apache.thrift.TException
2497
    {
2498
      send_getAllAliveItems();
2499
      return recv_getAllAliveItems();
2500
    }
2501
 
2502
    public void send_getAllAliveItems() throws org.apache.thrift.TException
2503
    {
2504
      getAllAliveItems_args args = new getAllAliveItems_args();
2505
      sendBase("getAllAliveItems", args);
2506
    }
2507
 
2508
    public List<Item> recv_getAllAliveItems() throws org.apache.thrift.TException
2509
    {
2510
      getAllAliveItems_result result = new getAllAliveItems_result();
2511
      receiveBase(result, "getAllAliveItems");
2512
      if (result.isSetSuccess()) {
2513
        return result.success;
2514
      }
2515
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2516
    }
2517
 
6805 anupam.sin 2518
    public long getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException
2519
    {
2520
      send_getInsuranceAmount(itemId, insurerId, quantity);
2521
      return recv_getInsuranceAmount();
2522
    }
2523
 
2524
    public void send_getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException
2525
    {
2526
      getInsuranceAmount_args args = new getInsuranceAmount_args();
2527
      args.setItemId(itemId);
2528
      args.setInsurerId(insurerId);
2529
      args.setQuantity(quantity);
2530
      sendBase("getInsuranceAmount", args);
2531
    }
2532
 
2533
    public long recv_getInsuranceAmount() throws org.apache.thrift.TException
2534
    {
2535
      getInsuranceAmount_result result = new getInsuranceAmount_result();
2536
      receiveBase(result, "getInsuranceAmount");
2537
      if (result.isSetSuccess()) {
2538
        return result.success;
2539
      }
2540
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
2541
    }
2542
 
2543
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException
2544
    {
2545
      send_getInsurer(insurerId);
2546
      return recv_getInsurer();
2547
    }
2548
 
2549
    public void send_getInsurer(long insurerId) throws org.apache.thrift.TException
2550
    {
2551
      getInsurer_args args = new getInsurer_args();
2552
      args.setInsurerId(insurerId);
2553
      sendBase("getInsurer", args);
2554
    }
2555
 
2556
    public Insurer recv_getInsurer() throws org.apache.thrift.TException
2557
    {
2558
      getInsurer_result result = new getInsurer_result();
2559
      receiveBase(result, "getInsurer");
2560
      if (result.isSetSuccess()) {
2561
        return result.success;
2562
      }
2563
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
2564
    }
2565
 
6838 vikram.rag 2566
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException
2567
    {
2568
      send_getAllInsurers();
2569
      return recv_getAllInsurers();
2570
    }
2571
 
2572
    public void send_getAllInsurers() throws org.apache.thrift.TException
2573
    {
2574
      getAllInsurers_args args = new getAllInsurers_args();
2575
      sendBase("getAllInsurers", args);
2576
    }
2577
 
2578
    public List<Insurer> recv_getAllInsurers() throws org.apache.thrift.TException
2579
    {
2580
      getAllInsurers_result result = new getAllInsurers_result();
2581
      receiveBase(result, "getAllInsurers");
2582
      if (result.isSetSuccess()) {
2583
        return result.success;
2584
      }
2585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
2586
    }
2587
 
5945 mandeep.dh 2588
  }
2589
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2590
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2591
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2592
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2593
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2594
        this.clientManager = clientManager;
2595
        this.protocolFactory = protocolFactory;
2596
      }
2597
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2598
        return new AsyncClient(protocolFactory, clientManager, transport);
2599
      }
2600
    }
2601
 
2602
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2603
      super(protocolFactory, clientManager, transport);
2604
    }
2605
 
2606
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<addItem_call> resultHandler) throws org.apache.thrift.TException {
2607
      checkReady();
2608
      addItem_call method_call = new addItem_call(item, resultHandler, this, ___protocolFactory, ___transport);
2609
      this.___currentMethod = method_call;
2610
      ___manager.call(method_call);
2611
    }
2612
 
2613
    public static class addItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2614
      private Item item;
2615
      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 {
2616
        super(client, protocolFactory, transport, resultHandler, false);
2617
        this.item = item;
2618
      }
2619
 
2620
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2621
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2622
        addItem_args args = new addItem_args();
2623
        args.setItem(item);
2624
        args.write(prot);
2625
        prot.writeMessageEnd();
2626
      }
2627
 
2628
      public long getResult() throws CatalogServiceException, org.apache.thrift.TException {
2629
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2630
          throw new IllegalStateException("Method call not finished!");
2631
        }
2632
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2633
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2634
        return (new Client(prot)).recv_addItem();
2635
      }
2636
    }
2637
 
2638
    public void updateItem(Item item, org.apache.thrift.async.AsyncMethodCallback<updateItem_call> resultHandler) throws org.apache.thrift.TException {
2639
      checkReady();
2640
      updateItem_call method_call = new updateItem_call(item, resultHandler, this, ___protocolFactory, ___transport);
2641
      this.___currentMethod = method_call;
2642
      ___manager.call(method_call);
2643
    }
2644
 
2645
    public static class updateItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2646
      private Item item;
2647
      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 {
2648
        super(client, protocolFactory, transport, resultHandler, false);
2649
        this.item = item;
2650
      }
2651
 
2652
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2653
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2654
        updateItem_args args = new updateItem_args();
2655
        args.setItem(item);
2656
        args.write(prot);
2657
        prot.writeMessageEnd();
2658
      }
2659
 
2660
      public long getResult() throws CatalogServiceException, org.apache.thrift.TException {
2661
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2662
          throw new IllegalStateException("Method call not finished!");
2663
        }
2664
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2665
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2666
        return (new Client(prot)).recv_updateItem();
2667
      }
2668
    }
2669
 
2670
    public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_call> resultHandler) throws org.apache.thrift.TException {
2671
      checkReady();
2672
      isActive_call method_call = new isActive_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2673
      this.___currentMethod = method_call;
2674
      ___manager.call(method_call);
2675
    }
2676
 
2677
    public static class isActive_call extends org.apache.thrift.async.TAsyncMethodCall {
2678
      private long itemId;
2679
      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 {
2680
        super(client, protocolFactory, transport, resultHandler, false);
2681
        this.itemId = itemId;
2682
      }
2683
 
2684
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2685
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isActive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2686
        isActive_args args = new isActive_args();
2687
        args.setItemId(itemId);
2688
        args.write(prot);
2689
        prot.writeMessageEnd();
2690
      }
2691
 
2692
      public ItemShippingInfo getResult() throws CatalogServiceException, org.apache.thrift.TException {
2693
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2694
          throw new IllegalStateException("Method call not finished!");
2695
        }
2696
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2697
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2698
        return (new Client(prot)).recv_isActive();
2699
      }
2700
    }
2701
 
2702
    public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException {
2703
      checkReady();
2704
      getItemStatusDescription_call method_call = new getItemStatusDescription_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2705
      this.___currentMethod = method_call;
2706
      ___manager.call(method_call);
2707
    }
2708
 
2709
    public static class getItemStatusDescription_call extends org.apache.thrift.async.TAsyncMethodCall {
2710
      private long itemId;
2711
      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 {
2712
        super(client, protocolFactory, transport, resultHandler, false);
2713
        this.itemId = itemId;
2714
      }
2715
 
2716
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2717
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStatusDescription", org.apache.thrift.protocol.TMessageType.CALL, 0));
2718
        getItemStatusDescription_args args = new getItemStatusDescription_args();
2719
        args.setItemId(itemId);
2720
        args.write(prot);
2721
        prot.writeMessageEnd();
2722
      }
2723
 
2724
      public String getResult() throws CatalogServiceException, org.apache.thrift.TException {
2725
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2726
          throw new IllegalStateException("Method call not finished!");
2727
        }
2728
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2729
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2730
        return (new Client(prot)).recv_getItemStatusDescription();
2731
      }
2732
    }
2733
 
2734
    public void startItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<startItemOn_call> resultHandler) throws org.apache.thrift.TException {
2735
      checkReady();
2736
      startItemOn_call method_call = new startItemOn_call(item_id, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2737
      this.___currentMethod = method_call;
2738
      ___manager.call(method_call);
2739
    }
2740
 
2741
    public static class startItemOn_call extends org.apache.thrift.async.TAsyncMethodCall {
2742
      private long item_id;
2743
      private long timestamp;
2744
      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 {
2745
        super(client, protocolFactory, transport, resultHandler, false);
2746
        this.item_id = item_id;
2747
        this.timestamp = timestamp;
2748
      }
2749
 
2750
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2751
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startItemOn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2752
        startItemOn_args args = new startItemOn_args();
2753
        args.setItem_id(item_id);
2754
        args.setTimestamp(timestamp);
2755
        args.write(prot);
2756
        prot.writeMessageEnd();
2757
      }
2758
 
2759
      public void getResult() throws CatalogServiceException, org.apache.thrift.TException {
2760
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2761
          throw new IllegalStateException("Method call not finished!");
2762
        }
2763
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2764
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2765
        (new Client(prot)).recv_startItemOn();
2766
      }
2767
    }
2768
 
2769
    public void retireItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<retireItemOn_call> resultHandler) throws org.apache.thrift.TException {
2770
      checkReady();
2771
      retireItemOn_call method_call = new retireItemOn_call(item_id, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2772
      this.___currentMethod = method_call;
2773
      ___manager.call(method_call);
2774
    }
2775
 
2776
    public static class retireItemOn_call extends org.apache.thrift.async.TAsyncMethodCall {
2777
      private long item_id;
2778
      private long timestamp;
2779
      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 {
2780
        super(client, protocolFactory, transport, resultHandler, false);
2781
        this.item_id = item_id;
2782
        this.timestamp = timestamp;
2783
      }
2784
 
2785
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2786
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireItemOn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2787
        retireItemOn_args args = new retireItemOn_args();
2788
        args.setItem_id(item_id);
2789
        args.setTimestamp(timestamp);
2790
        args.write(prot);
2791
        prot.writeMessageEnd();
2792
      }
2793
 
2794
      public void getResult() throws CatalogServiceException, org.apache.thrift.TException {
2795
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2796
          throw new IllegalStateException("Method call not finished!");
2797
        }
2798
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2799
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2800
        (new Client(prot)).recv_retireItemOn();
2801
      }
2802
    }
2803
 
2804
    public void changeItemStatus(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
2805
      checkReady();
2806
      changeItemStatus_call method_call = new changeItemStatus_call(item_id, timestamp, newstatus, resultHandler, this, ___protocolFactory, ___transport);
2807
      this.___currentMethod = method_call;
2808
      ___manager.call(method_call);
2809
    }
2810
 
2811
    public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2812
      private long item_id;
2813
      private long timestamp;
2814
      private status newstatus;
2815
      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 {
2816
        super(client, protocolFactory, transport, resultHandler, false);
2817
        this.item_id = item_id;
2818
        this.timestamp = timestamp;
2819
        this.newstatus = newstatus;
2820
      }
2821
 
2822
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2823
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2824
        changeItemStatus_args args = new changeItemStatus_args();
2825
        args.setItem_id(item_id);
2826
        args.setTimestamp(timestamp);
2827
        args.setNewstatus(newstatus);
2828
        args.write(prot);
2829
        prot.writeMessageEnd();
2830
      }
2831
 
2832
      public void getResult() throws CatalogServiceException, org.apache.thrift.TException {
2833
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2834
          throw new IllegalStateException("Method call not finished!");
2835
        }
2836
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2837
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2838
        (new Client(prot)).recv_changeItemStatus();
2839
      }
2840
    }
2841
 
2842
    public void getItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItem_call> resultHandler) throws org.apache.thrift.TException {
2843
      checkReady();
2844
      getItem_call method_call = new getItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2845
      this.___currentMethod = method_call;
2846
      ___manager.call(method_call);
2847
    }
2848
 
2849
    public static class getItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2850
      private long item_id;
2851
      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 {
2852
        super(client, protocolFactory, transport, resultHandler, false);
2853
        this.item_id = item_id;
2854
      }
2855
 
2856
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2857
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2858
        getItem_args args = new getItem_args();
2859
        args.setItem_id(item_id);
2860
        args.write(prot);
2861
        prot.writeMessageEnd();
2862
      }
2863
 
2864
      public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {
2865
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2866
          throw new IllegalStateException("Method call not finished!");
2867
        }
2868
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2869
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2870
        return (new Client(prot)).recv_getItem();
2871
      }
2872
    }
2873
 
2874
    public void getItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException {
2875
      checkReady();
2876
      getItemsByCatalogId_call method_call = new getItemsByCatalogId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);
2877
      this.___currentMethod = method_call;
2878
      ___manager.call(method_call);
2879
    }
2880
 
2881
    public static class getItemsByCatalogId_call extends org.apache.thrift.async.TAsyncMethodCall {
2882
      private long catalog_item_id;
2883
      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 {
2884
        super(client, protocolFactory, transport, resultHandler, false);
2885
        this.catalog_item_id = catalog_item_id;
2886
      }
2887
 
2888
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2889
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByCatalogId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2890
        getItemsByCatalogId_args args = new getItemsByCatalogId_args();
2891
        args.setCatalog_item_id(catalog_item_id);
2892
        args.write(prot);
2893
        prot.writeMessageEnd();
2894
      }
2895
 
2896
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
2897
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2898
          throw new IllegalStateException("Method call not finished!");
2899
        }
2900
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2901
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2902
        return (new Client(prot)).recv_getItemsByCatalogId();
2903
      }
2904
    }
2905
 
2906
    public void getValidItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getValidItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException {
2907
      checkReady();
2908
      getValidItemsByCatalogId_call method_call = new getValidItemsByCatalogId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);
2909
      this.___currentMethod = method_call;
2910
      ___manager.call(method_call);
2911
    }
2912
 
2913
    public static class getValidItemsByCatalogId_call extends org.apache.thrift.async.TAsyncMethodCall {
2914
      private long catalog_item_id;
2915
      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 {
2916
        super(client, protocolFactory, transport, resultHandler, false);
2917
        this.catalog_item_id = catalog_item_id;
2918
      }
2919
 
2920
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2921
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidItemsByCatalogId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2922
        getValidItemsByCatalogId_args args = new getValidItemsByCatalogId_args();
2923
        args.setCatalog_item_id(catalog_item_id);
2924
        args.write(prot);
2925
        prot.writeMessageEnd();
2926
      }
2927
 
2928
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
2929
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2930
          throw new IllegalStateException("Method call not finished!");
2931
        }
2932
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2933
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2934
        return (new Client(prot)).recv_getValidItemsByCatalogId();
2935
      }
2936
    }
2937
 
2938
    public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllItems_call> resultHandler) throws org.apache.thrift.TException {
2939
      checkReady();
2940
      getAllItems_call method_call = new getAllItems_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
2941
      this.___currentMethod = method_call;
2942
      ___manager.call(method_call);
2943
    }
2944
 
2945
    public static class getAllItems_call extends org.apache.thrift.async.TAsyncMethodCall {
2946
      private boolean isActive;
2947
      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 {
2948
        super(client, protocolFactory, transport, resultHandler, false);
2949
        this.isActive = isActive;
2950
      }
2951
 
2952
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2953
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
2954
        getAllItems_args args = new getAllItems_args();
2955
        args.setIsActive(isActive);
2956
        args.write(prot);
2957
        prot.writeMessageEnd();
2958
      }
2959
 
2960
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
2961
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2962
          throw new IllegalStateException("Method call not finished!");
2963
        }
2964
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2965
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2966
        return (new Client(prot)).recv_getAllItems();
2967
      }
2968
    }
2969
 
2970
    public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException {
2971
      checkReady();
2972
      getAllItemsByStatus_call method_call = new getAllItemsByStatus_call(itemStatus, resultHandler, this, ___protocolFactory, ___transport);
2973
      this.___currentMethod = method_call;
2974
      ___manager.call(method_call);
2975
    }
2976
 
2977
    public static class getAllItemsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2978
      private status itemStatus;
2979
      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 {
2980
        super(client, protocolFactory, transport, resultHandler, false);
2981
        this.itemStatus = itemStatus;
2982
      }
2983
 
2984
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2985
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2986
        getAllItemsByStatus_args args = new getAllItemsByStatus_args();
2987
        args.setItemStatus(itemStatus);
2988
        args.write(prot);
2989
        prot.writeMessageEnd();
2990
      }
2991
 
2992
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
2993
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2994
          throw new IllegalStateException("Method call not finished!");
2995
        }
2996
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2997
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2998
        return (new Client(prot)).recv_getAllItemsByStatus();
2999
      }
3000
    }
3001
 
3002
    public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException {
3003
      checkReady();
3004
      markItemAsContentComplete_call method_call = new markItemAsContentComplete_call(entityId, category, brand, modelName, modelNumber, resultHandler, this, ___protocolFactory, ___transport);
3005
      this.___currentMethod = method_call;
3006
      ___manager.call(method_call);
3007
    }
3008
 
3009
    public static class markItemAsContentComplete_call extends org.apache.thrift.async.TAsyncMethodCall {
3010
      private long entityId;
3011
      private long category;
3012
      private String brand;
3013
      private String modelName;
3014
      private String modelNumber;
3015
      public markItemAsContentComplete_call(long entityId, long category, String brand, String modelName, String modelNumber, 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 {
3016
        super(client, protocolFactory, transport, resultHandler, false);
3017
        this.entityId = entityId;
3018
        this.category = category;
3019
        this.brand = brand;
3020
        this.modelName = modelName;
3021
        this.modelNumber = modelNumber;
3022
      }
3023
 
3024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemAsContentComplete", org.apache.thrift.protocol.TMessageType.CALL, 0));
3026
        markItemAsContentComplete_args args = new markItemAsContentComplete_args();
3027
        args.setEntityId(entityId);
3028
        args.setCategory(category);
3029
        args.setBrand(brand);
3030
        args.setModelName(modelName);
3031
        args.setModelNumber(modelNumber);
3032
        args.write(prot);
3033
        prot.writeMessageEnd();
3034
      }
3035
 
3036
      public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {
3037
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3038
          throw new IllegalStateException("Method call not finished!");
3039
        }
3040
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3042
        return (new Client(prot)).recv_markItemAsContentComplete();
3043
      }
3044
    }
3045
 
3046
    public void getAllItemsInRange(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsInRange_call> resultHandler) throws org.apache.thrift.TException {
3047
      checkReady();
3048
      getAllItemsInRange_call method_call = new getAllItemsInRange_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
3049
      this.___currentMethod = method_call;
3050
      ___manager.call(method_call);
3051
    }
3052
 
3053
    public static class getAllItemsInRange_call extends org.apache.thrift.async.TAsyncMethodCall {
3054
      private long offset;
3055
      private long limit;
3056
      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 {
3057
        super(client, protocolFactory, transport, resultHandler, false);
3058
        this.offset = offset;
3059
        this.limit = limit;
3060
      }
3061
 
3062
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3063
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
3064
        getAllItemsInRange_args args = new getAllItemsInRange_args();
3065
        args.setOffset(offset);
3066
        args.setLimit(limit);
3067
        args.write(prot);
3068
        prot.writeMessageEnd();
3069
      }
3070
 
3071
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3072
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3073
          throw new IllegalStateException("Method call not finished!");
3074
        }
3075
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3076
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3077
        return (new Client(prot)).recv_getAllItemsInRange();
3078
      }
3079
    }
3080
 
3081
    public void getAllItemsByStatusInRange(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatusInRange_call> resultHandler) throws org.apache.thrift.TException {
3082
      checkReady();
3083
      getAllItemsByStatusInRange_call method_call = new getAllItemsByStatusInRange_call(itemStatus, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
3084
      this.___currentMethod = method_call;
3085
      ___manager.call(method_call);
3086
    }
3087
 
3088
    public static class getAllItemsByStatusInRange_call extends org.apache.thrift.async.TAsyncMethodCall {
3089
      private status itemStatus;
3090
      private long offset;
3091
      private long limit;
3092
      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 {
3093
        super(client, protocolFactory, transport, resultHandler, false);
3094
        this.itemStatus = itemStatus;
3095
        this.offset = offset;
3096
        this.limit = limit;
3097
      }
3098
 
3099
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3100
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsByStatusInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
3101
        getAllItemsByStatusInRange_args args = new getAllItemsByStatusInRange_args();
3102
        args.setItemStatus(itemStatus);
3103
        args.setOffset(offset);
3104
        args.setLimit(limit);
3105
        args.write(prot);
3106
        prot.writeMessageEnd();
3107
      }
3108
 
3109
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3110
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3111
          throw new IllegalStateException("Method call not finished!");
3112
        }
3113
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3114
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3115
        return (new Client(prot)).recv_getAllItemsByStatusInRange();
3116
      }
3117
    }
3118
 
3119
    public void getItemCountByStatus(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getItemCountByStatus_call> resultHandler) throws org.apache.thrift.TException {
3120
      checkReady();
3121
      getItemCountByStatus_call method_call = new getItemCountByStatus_call(useStatus, itemStatus, resultHandler, this, ___protocolFactory, ___transport);
3122
      this.___currentMethod = method_call;
3123
      ___manager.call(method_call);
3124
    }
3125
 
3126
    public static class getItemCountByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3127
      private boolean useStatus;
3128
      private status itemStatus;
3129
      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 {
3130
        super(client, protocolFactory, transport, resultHandler, false);
3131
        this.useStatus = useStatus;
3132
        this.itemStatus = itemStatus;
3133
      }
3134
 
3135
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3136
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemCountByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3137
        getItemCountByStatus_args args = new getItemCountByStatus_args();
3138
        args.setUseStatus(useStatus);
3139
        args.setItemStatus(itemStatus);
3140
        args.write(prot);
3141
        prot.writeMessageEnd();
3142
      }
3143
 
3144
      public int getResult() throws org.apache.thrift.TException {
3145
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3146
          throw new IllegalStateException("Method call not finished!");
3147
        }
3148
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3149
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3150
        return (new Client(prot)).recv_getItemCountByStatus();
3151
      }
3152
    }
3153
 
3154
    public void getBestSellers(org.apache.thrift.async.AsyncMethodCallback<getBestSellers_call> resultHandler) throws org.apache.thrift.TException {
3155
      checkReady();
3156
      getBestSellers_call method_call = new getBestSellers_call(resultHandler, this, ___protocolFactory, ___transport);
3157
      this.___currentMethod = method_call;
3158
      ___manager.call(method_call);
3159
    }
3160
 
3161
    public static class getBestSellers_call extends org.apache.thrift.async.TAsyncMethodCall {
3162
      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 {
3163
        super(client, protocolFactory, transport, resultHandler, false);
3164
      }
3165
 
3166
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3167
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellers", org.apache.thrift.protocol.TMessageType.CALL, 0));
3168
        getBestSellers_args args = new getBestSellers_args();
3169
        args.write(prot);
3170
        prot.writeMessageEnd();
3171
      }
3172
 
3173
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3175
          throw new IllegalStateException("Method call not finished!");
3176
        }
3177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3179
        return (new Client(prot)).recv_getBestSellers();
3180
      }
3181
    }
3182
 
3183
    public void getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestSellersCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
3184
      checkReady();
3185
      getBestSellersCatalogIds_call method_call = new getBestSellersCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);
3186
      this.___currentMethod = method_call;
3187
      ___manager.call(method_call);
3188
    }
3189
 
3190
    public static class getBestSellersCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
3191
      private long beginIndex;
3192
      private long totalItems;
3193
      private String brand;
3194
      private long category;
3195
      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 {
3196
        super(client, protocolFactory, transport, resultHandler, false);
3197
        this.beginIndex = beginIndex;
3198
        this.totalItems = totalItems;
3199
        this.brand = brand;
3200
        this.category = category;
3201
      }
3202
 
3203
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3204
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellersCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
3205
        getBestSellersCatalogIds_args args = new getBestSellersCatalogIds_args();
3206
        args.setBeginIndex(beginIndex);
3207
        args.setTotalItems(totalItems);
3208
        args.setBrand(brand);
3209
        args.setCategory(category);
3210
        args.write(prot);
3211
        prot.writeMessageEnd();
3212
      }
3213
 
3214
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3215
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3216
          throw new IllegalStateException("Method call not finished!");
3217
        }
3218
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3219
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3220
        return (new Client(prot)).recv_getBestSellersCatalogIds();
3221
      }
3222
    }
3223
 
3224
    public void getBestSellersCount(org.apache.thrift.async.AsyncMethodCallback<getBestSellersCount_call> resultHandler) throws org.apache.thrift.TException {
3225
      checkReady();
3226
      getBestSellersCount_call method_call = new getBestSellersCount_call(resultHandler, this, ___protocolFactory, ___transport);
3227
      this.___currentMethod = method_call;
3228
      ___manager.call(method_call);
3229
    }
3230
 
3231
    public static class getBestSellersCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3232
      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 {
3233
        super(client, protocolFactory, transport, resultHandler, false);
3234
      }
3235
 
3236
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3237
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3238
        getBestSellersCount_args args = new getBestSellersCount_args();
3239
        args.write(prot);
3240
        prot.writeMessageEnd();
3241
      }
3242
 
3243
      public long getResult() throws CatalogServiceException, org.apache.thrift.TException {
3244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3245
          throw new IllegalStateException("Method call not finished!");
3246
        }
3247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3249
        return (new Client(prot)).recv_getBestSellersCount();
3250
      }
3251
    }
3252
 
3253
    public void getBestDeals(org.apache.thrift.async.AsyncMethodCallback<getBestDeals_call> resultHandler) throws org.apache.thrift.TException {
3254
      checkReady();
3255
      getBestDeals_call method_call = new getBestDeals_call(resultHandler, this, ___protocolFactory, ___transport);
3256
      this.___currentMethod = method_call;
3257
      ___manager.call(method_call);
3258
    }
3259
 
3260
    public static class getBestDeals_call extends org.apache.thrift.async.TAsyncMethodCall {
3261
      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 {
3262
        super(client, protocolFactory, transport, resultHandler, false);
3263
      }
3264
 
3265
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3266
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));
3267
        getBestDeals_args args = new getBestDeals_args();
3268
        args.write(prot);
3269
        prot.writeMessageEnd();
3270
      }
3271
 
3272
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3273
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3274
          throw new IllegalStateException("Method call not finished!");
3275
        }
3276
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3277
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3278
        return (new Client(prot)).recv_getBestDeals();
3279
      }
3280
    }
3281
 
3282
    public void getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
3283
      checkReady();
3284
      getBestDealsCatalogIds_call method_call = new getBestDealsCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);
3285
      this.___currentMethod = method_call;
3286
      ___manager.call(method_call);
3287
    }
3288
 
3289
    public static class getBestDealsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
3290
      private long beginIndex;
3291
      private long totalItems;
3292
      private String brand;
3293
      private long category;
3294
      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 {
3295
        super(client, protocolFactory, transport, resultHandler, false);
3296
        this.beginIndex = beginIndex;
3297
        this.totalItems = totalItems;
3298
        this.brand = brand;
3299
        this.category = category;
3300
      }
3301
 
3302
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3303
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDealsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
3304
        getBestDealsCatalogIds_args args = new getBestDealsCatalogIds_args();
3305
        args.setBeginIndex(beginIndex);
3306
        args.setTotalItems(totalItems);
3307
        args.setBrand(brand);
3308
        args.setCategory(category);
3309
        args.write(prot);
3310
        prot.writeMessageEnd();
3311
      }
3312
 
3313
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3314
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3315
          throw new IllegalStateException("Method call not finished!");
3316
        }
3317
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3318
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3319
        return (new Client(prot)).recv_getBestDealsCatalogIds();
3320
      }
3321
    }
3322
 
3323
    public void getBestDealsCount(org.apache.thrift.async.AsyncMethodCallback<getBestDealsCount_call> resultHandler) throws org.apache.thrift.TException {
3324
      checkReady();
3325
      getBestDealsCount_call method_call = new getBestDealsCount_call(resultHandler, this, ___protocolFactory, ___transport);
3326
      this.___currentMethod = method_call;
3327
      ___manager.call(method_call);
3328
    }
3329
 
3330
    public static class getBestDealsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3331
      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 {
3332
        super(client, protocolFactory, transport, resultHandler, false);
3333
      }
3334
 
3335
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3336
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDealsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3337
        getBestDealsCount_args args = new getBestDealsCount_args();
3338
        args.write(prot);
3339
        prot.writeMessageEnd();
3340
      }
3341
 
3342
      public long getResult() throws CatalogServiceException, org.apache.thrift.TException {
3343
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3344
          throw new IllegalStateException("Method call not finished!");
3345
        }
3346
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3347
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3348
        return (new Client(prot)).recv_getBestDealsCount();
3349
      }
3350
    }
3351
 
3352
    public void getComingSoon(org.apache.thrift.async.AsyncMethodCallback<getComingSoon_call> resultHandler) throws org.apache.thrift.TException {
3353
      checkReady();
3354
      getComingSoon_call method_call = new getComingSoon_call(resultHandler, this, ___protocolFactory, ___transport);
3355
      this.___currentMethod = method_call;
3356
      ___manager.call(method_call);
3357
    }
3358
 
3359
    public static class getComingSoon_call extends org.apache.thrift.async.TAsyncMethodCall {
3360
      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 {
3361
        super(client, protocolFactory, transport, resultHandler, false);
3362
      }
3363
 
3364
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3365
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoon", org.apache.thrift.protocol.TMessageType.CALL, 0));
3366
        getComingSoon_args args = new getComingSoon_args();
3367
        args.write(prot);
3368
        prot.writeMessageEnd();
3369
      }
3370
 
3371
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3372
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3373
          throw new IllegalStateException("Method call not finished!");
3374
        }
3375
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3376
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3377
        return (new Client(prot)).recv_getComingSoon();
3378
      }
3379
    }
3380
 
3381
    public void getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getComingSoonCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
3382
      checkReady();
3383
      getComingSoonCatalogIds_call method_call = new getComingSoonCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);
3384
      this.___currentMethod = method_call;
3385
      ___manager.call(method_call);
3386
    }
3387
 
3388
    public static class getComingSoonCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
3389
      private long beginIndex;
3390
      private long totalItems;
3391
      private String brand;
3392
      private long category;
3393
      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 {
3394
        super(client, protocolFactory, transport, resultHandler, false);
3395
        this.beginIndex = beginIndex;
3396
        this.totalItems = totalItems;
3397
        this.brand = brand;
3398
        this.category = category;
3399
      }
3400
 
3401
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3402
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoonCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
3403
        getComingSoonCatalogIds_args args = new getComingSoonCatalogIds_args();
3404
        args.setBeginIndex(beginIndex);
3405
        args.setTotalItems(totalItems);
3406
        args.setBrand(brand);
3407
        args.setCategory(category);
3408
        args.write(prot);
3409
        prot.writeMessageEnd();
3410
      }
3411
 
3412
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3413
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3414
          throw new IllegalStateException("Method call not finished!");
3415
        }
3416
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3417
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3418
        return (new Client(prot)).recv_getComingSoonCatalogIds();
3419
      }
3420
    }
3421
 
3422
    public void getComingSoonCount(org.apache.thrift.async.AsyncMethodCallback<getComingSoonCount_call> resultHandler) throws org.apache.thrift.TException {
3423
      checkReady();
3424
      getComingSoonCount_call method_call = new getComingSoonCount_call(resultHandler, this, ___protocolFactory, ___transport);
3425
      this.___currentMethod = method_call;
3426
      ___manager.call(method_call);
3427
    }
3428
 
3429
    public static class getComingSoonCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3430
      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 {
3431
        super(client, protocolFactory, transport, resultHandler, false);
3432
      }
3433
 
3434
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3435
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoonCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3436
        getComingSoonCount_args args = new getComingSoonCount_args();
3437
        args.write(prot);
3438
        prot.writeMessageEnd();
3439
      }
3440
 
3441
      public long getResult() throws CatalogServiceException, org.apache.thrift.TException {
3442
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3443
          throw new IllegalStateException("Method call not finished!");
3444
        }
3445
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3446
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3447
        return (new Client(prot)).recv_getComingSoonCount();
3448
      }
3449
    }
3450
 
3451
    public void getLatestArrivals(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivals_call> resultHandler) throws org.apache.thrift.TException {
3452
      checkReady();
3453
      getLatestArrivals_call method_call = new getLatestArrivals_call(resultHandler, this, ___protocolFactory, ___transport);
3454
      this.___currentMethod = method_call;
3455
      ___manager.call(method_call);
3456
    }
3457
 
3458
    public static class getLatestArrivals_call extends org.apache.thrift.async.TAsyncMethodCall {
3459
      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 {
3460
        super(client, protocolFactory, transport, resultHandler, false);
3461
      }
3462
 
3463
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3464
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivals", org.apache.thrift.protocol.TMessageType.CALL, 0));
3465
        getLatestArrivals_args args = new getLatestArrivals_args();
3466
        args.write(prot);
3467
        prot.writeMessageEnd();
3468
      }
3469
 
3470
      public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3471
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3472
          throw new IllegalStateException("Method call not finished!");
3473
        }
3474
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3475
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3476
        return (new Client(prot)).recv_getLatestArrivals();
3477
      }
3478
    }
3479
 
3480
    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 {
3481
      checkReady();
3482
      getLatestArrivalsCatalogIds_call method_call = new getLatestArrivalsCatalogIds_call(beginIndex, totalItems, brand, categories, resultHandler, this, ___protocolFactory, ___transport);
3483
      this.___currentMethod = method_call;
3484
      ___manager.call(method_call);
3485
    }
3486
 
3487
    public static class getLatestArrivalsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
3488
      private long beginIndex;
3489
      private long totalItems;
3490
      private String brand;
3491
      private List<Long> categories;
3492
      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 {
3493
        super(client, protocolFactory, transport, resultHandler, false);
3494
        this.beginIndex = beginIndex;
3495
        this.totalItems = totalItems;
3496
        this.brand = brand;
3497
        this.categories = categories;
3498
      }
3499
 
3500
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3501
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivalsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
3502
        getLatestArrivalsCatalogIds_args args = new getLatestArrivalsCatalogIds_args();
3503
        args.setBeginIndex(beginIndex);
3504
        args.setTotalItems(totalItems);
3505
        args.setBrand(brand);
3506
        args.setCategories(categories);
3507
        args.write(prot);
3508
        prot.writeMessageEnd();
3509
      }
3510
 
3511
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
3512
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3513
          throw new IllegalStateException("Method call not finished!");
3514
        }
3515
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3517
        return (new Client(prot)).recv_getLatestArrivalsCatalogIds();
3518
      }
3519
    }
3520
 
3521
    public void getLatestArrivalsCount(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCount_call> resultHandler) throws org.apache.thrift.TException {
3522
      checkReady();
3523
      getLatestArrivalsCount_call method_call = new getLatestArrivalsCount_call(resultHandler, this, ___protocolFactory, ___transport);
3524
      this.___currentMethod = method_call;
3525
      ___manager.call(method_call);
3526
    }
3527
 
3528
    public static class getLatestArrivalsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3529
      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 {
3530
        super(client, protocolFactory, transport, resultHandler, false);
3531
      }
3532
 
3533
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3534
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivalsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3535
        getLatestArrivalsCount_args args = new getLatestArrivalsCount_args();
3536
        args.write(prot);
3537
        prot.writeMessageEnd();
3538
      }
3539
 
3540
      public long getResult() throws CatalogServiceException, org.apache.thrift.TException {
3541
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3542
          throw new IllegalStateException("Method call not finished!");
3543
        }
3544
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3545
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3546
        return (new Client(prot)).recv_getLatestArrivalsCount();
3547
      }
3548
    }
3549
 
3550
    public void generateNewEntityID(org.apache.thrift.async.AsyncMethodCallback<generateNewEntityID_call> resultHandler) throws org.apache.thrift.TException {
3551
      checkReady();
3552
      generateNewEntityID_call method_call = new generateNewEntityID_call(resultHandler, this, ___protocolFactory, ___transport);
3553
      this.___currentMethod = method_call;
3554
      ___manager.call(method_call);
3555
    }
3556
 
3557
    public static class generateNewEntityID_call extends org.apache.thrift.async.TAsyncMethodCall {
3558
      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 {
3559
        super(client, protocolFactory, transport, resultHandler, false);
3560
      }
3561
 
3562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("generateNewEntityID", org.apache.thrift.protocol.TMessageType.CALL, 0));
3564
        generateNewEntityID_args args = new generateNewEntityID_args();
3565
        args.write(prot);
3566
        prot.writeMessageEnd();
3567
      }
3568
 
3569
      public long getResult() throws org.apache.thrift.TException {
3570
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3571
          throw new IllegalStateException("Method call not finished!");
3572
        }
3573
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3575
        return (new Client(prot)).recv_generateNewEntityID();
3576
      }
3577
    }
3578
 
3579
    public void addCategory(Category category, org.apache.thrift.async.AsyncMethodCallback<addCategory_call> resultHandler) throws org.apache.thrift.TException {
3580
      checkReady();
3581
      addCategory_call method_call = new addCategory_call(category, resultHandler, this, ___protocolFactory, ___transport);
3582
      this.___currentMethod = method_call;
3583
      ___manager.call(method_call);
3584
    }
3585
 
3586
    public static class addCategory_call extends org.apache.thrift.async.TAsyncMethodCall {
3587
      private Category category;
3588
      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 {
3589
        super(client, protocolFactory, transport, resultHandler, false);
3590
        this.category = category;
3591
      }
3592
 
3593
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3594
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3595
        addCategory_args args = new addCategory_args();
3596
        args.setCategory(category);
3597
        args.write(prot);
3598
        prot.writeMessageEnd();
3599
      }
3600
 
3601
      public boolean getResult() throws org.apache.thrift.TException {
3602
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3603
          throw new IllegalStateException("Method call not finished!");
3604
        }
3605
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3606
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3607
        return (new Client(prot)).recv_addCategory();
3608
      }
3609
    }
3610
 
3611
    public void getCategory(long id, org.apache.thrift.async.AsyncMethodCallback<getCategory_call> resultHandler) throws org.apache.thrift.TException {
3612
      checkReady();
3613
      getCategory_call method_call = new getCategory_call(id, resultHandler, this, ___protocolFactory, ___transport);
3614
      this.___currentMethod = method_call;
3615
      ___manager.call(method_call);
3616
    }
3617
 
3618
    public static class getCategory_call extends org.apache.thrift.async.TAsyncMethodCall {
3619
      private long id;
3620
      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 {
3621
        super(client, protocolFactory, transport, resultHandler, false);
3622
        this.id = id;
3623
      }
3624
 
3625
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3626
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3627
        getCategory_args args = new getCategory_args();
3628
        args.setId(id);
3629
        args.write(prot);
3630
        prot.writeMessageEnd();
3631
      }
3632
 
3633
      public Category getResult() throws org.apache.thrift.TException {
3634
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3635
          throw new IllegalStateException("Method call not finished!");
3636
        }
3637
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3638
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3639
        return (new Client(prot)).recv_getCategory();
3640
      }
3641
    }
3642
 
3643
    public void getAllCategories(org.apache.thrift.async.AsyncMethodCallback<getAllCategories_call> resultHandler) throws org.apache.thrift.TException {
3644
      checkReady();
3645
      getAllCategories_call method_call = new getAllCategories_call(resultHandler, this, ___protocolFactory, ___transport);
3646
      this.___currentMethod = method_call;
3647
      ___manager.call(method_call);
3648
    }
3649
 
3650
    public static class getAllCategories_call extends org.apache.thrift.async.TAsyncMethodCall {
3651
      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 {
3652
        super(client, protocolFactory, transport, resultHandler, false);
3653
      }
3654
 
3655
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3656
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllCategories", org.apache.thrift.protocol.TMessageType.CALL, 0));
3657
        getAllCategories_args args = new getAllCategories_args();
3658
        args.write(prot);
3659
        prot.writeMessageEnd();
3660
      }
3661
 
3662
      public List<Category> getResult() throws org.apache.thrift.TException {
3663
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3664
          throw new IllegalStateException("Method call not finished!");
3665
        }
3666
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3667
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3668
        return (new Client(prot)).recv_getAllCategories();
3669
      }
3670
    }
3671
 
3672
    public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException {
3673
      checkReady();
3674
      getAllSimilarItems_call method_call = new getAllSimilarItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3675
      this.___currentMethod = method_call;
3676
      ___manager.call(method_call);
3677
    }
3678
 
3679
    public static class getAllSimilarItems_call extends org.apache.thrift.async.TAsyncMethodCall {
3680
      private long itemId;
3681
      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 {
3682
        super(client, protocolFactory, transport, resultHandler, false);
3683
        this.itemId = itemId;
3684
      }
3685
 
3686
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3687
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSimilarItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
3688
        getAllSimilarItems_args args = new getAllSimilarItems_args();
3689
        args.setItemId(itemId);
3690
        args.write(prot);
3691
        prot.writeMessageEnd();
3692
      }
3693
 
3694
      public List<Item> getResult() throws org.apache.thrift.TException {
3695
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3696
          throw new IllegalStateException("Method call not finished!");
3697
        }
3698
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3699
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3700
        return (new Client(prot)).recv_getAllSimilarItems();
3701
      }
3702
    }
3703
 
3704
    public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_call> resultHandler) throws org.apache.thrift.TException {
3705
      checkReady();
3706
      addSimilarItem_call method_call = new addSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);
3707
      this.___currentMethod = method_call;
3708
      ___manager.call(method_call);
3709
    }
3710
 
3711
    public static class addSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3712
      private long itemId;
3713
      private long catalogItemId;
3714
      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 {
3715
        super(client, protocolFactory, transport, resultHandler, false);
3716
        this.itemId = itemId;
3717
        this.catalogItemId = catalogItemId;
3718
      }
3719
 
3720
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3721
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3722
        addSimilarItem_args args = new addSimilarItem_args();
3723
        args.setItemId(itemId);
3724
        args.setCatalogItemId(catalogItemId);
3725
        args.write(prot);
3726
        prot.writeMessageEnd();
3727
      }
3728
 
3729
      public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {
3730
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3731
          throw new IllegalStateException("Method call not finished!");
3732
        }
3733
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3734
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3735
        return (new Client(prot)).recv_addSimilarItem();
3736
      }
3737
    }
3738
 
6511 kshitij.so 3739
    public void addTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<addTag_call> resultHandler) throws org.apache.thrift.TException {
3740
      checkReady();
3741
      addTag_call method_call = new addTag_call(displayName, itemId, resultHandler, this, ___protocolFactory, ___transport);
3742
      this.___currentMethod = method_call;
3743
      ___manager.call(method_call);
3744
    }
3745
 
3746
    public static class addTag_call extends org.apache.thrift.async.TAsyncMethodCall {
3747
      private String displayName;
3748
      private long itemId;
3749
      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 {
3750
        super(client, protocolFactory, transport, resultHandler, false);
3751
        this.displayName = displayName;
3752
        this.itemId = itemId;
3753
      }
3754
 
3755
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3756
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addTag", org.apache.thrift.protocol.TMessageType.CALL, 0));
3757
        addTag_args args = new addTag_args();
3758
        args.setDisplayName(displayName);
3759
        args.setItemId(itemId);
3760
        args.write(prot);
3761
        prot.writeMessageEnd();
3762
      }
3763
 
3764
      public boolean getResult() throws org.apache.thrift.TException {
3765
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3766
          throw new IllegalStateException("Method call not finished!");
3767
        }
3768
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3769
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3770
        return (new Client(prot)).recv_addTag();
3771
      }
3772
    }
3773
 
3774
    public void deleteEntityTag(String displayName, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteEntityTag_call> resultHandler) throws org.apache.thrift.TException {
3775
      checkReady();
3776
      deleteEntityTag_call method_call = new deleteEntityTag_call(displayName, itemId, resultHandler, this, ___protocolFactory, ___transport);
3777
      this.___currentMethod = method_call;
3778
      ___manager.call(method_call);
3779
    }
3780
 
3781
    public static class deleteEntityTag_call extends org.apache.thrift.async.TAsyncMethodCall {
3782
      private String displayName;
3783
      private long itemId;
3784
      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 {
3785
        super(client, protocolFactory, transport, resultHandler, false);
3786
        this.displayName = displayName;
3787
        this.itemId = itemId;
3788
      }
3789
 
3790
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3791
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteEntityTag", org.apache.thrift.protocol.TMessageType.CALL, 0));
3792
        deleteEntityTag_args args = new deleteEntityTag_args();
3793
        args.setDisplayName(displayName);
3794
        args.setItemId(itemId);
3795
        args.write(prot);
3796
        prot.writeMessageEnd();
3797
      }
3798
 
3799
      public boolean getResult() throws org.apache.thrift.TException {
3800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3801
          throw new IllegalStateException("Method call not finished!");
3802
        }
3803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3805
        return (new Client(prot)).recv_deleteEntityTag();
3806
      }
3807
    }
3808
 
3809
    public void deleteTag(String displayName, org.apache.thrift.async.AsyncMethodCallback<deleteTag_call> resultHandler) throws org.apache.thrift.TException {
3810
      checkReady();
3811
      deleteTag_call method_call = new deleteTag_call(displayName, resultHandler, this, ___protocolFactory, ___transport);
3812
      this.___currentMethod = method_call;
3813
      ___manager.call(method_call);
3814
    }
3815
 
3816
    public static class deleteTag_call extends org.apache.thrift.async.TAsyncMethodCall {
3817
      private String displayName;
3818
      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 {
3819
        super(client, protocolFactory, transport, resultHandler, false);
3820
        this.displayName = displayName;
3821
      }
3822
 
3823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteTag", org.apache.thrift.protocol.TMessageType.CALL, 0));
3825
        deleteTag_args args = new deleteTag_args();
3826
        args.setDisplayName(displayName);
3827
        args.write(prot);
3828
        prot.writeMessageEnd();
3829
      }
3830
 
3831
      public boolean getResult() throws org.apache.thrift.TException {
3832
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3833
          throw new IllegalStateException("Method call not finished!");
3834
        }
3835
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3836
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3837
        return (new Client(prot)).recv_deleteTag();
3838
      }
3839
    }
3840
 
3841
    public void getAllTags(org.apache.thrift.async.AsyncMethodCallback<getAllTags_call> resultHandler) throws org.apache.thrift.TException {
3842
      checkReady();
3843
      getAllTags_call method_call = new getAllTags_call(resultHandler, this, ___protocolFactory, ___transport);
3844
      this.___currentMethod = method_call;
3845
      ___manager.call(method_call);
3846
    }
3847
 
3848
    public static class getAllTags_call extends org.apache.thrift.async.TAsyncMethodCall {
3849
      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 {
3850
        super(client, protocolFactory, transport, resultHandler, false);
3851
      }
3852
 
3853
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3854
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllTags", org.apache.thrift.protocol.TMessageType.CALL, 0));
3855
        getAllTags_args args = new getAllTags_args();
3856
        args.write(prot);
3857
        prot.writeMessageEnd();
3858
      }
3859
 
3860
      public List<String> getResult() throws org.apache.thrift.TException {
3861
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3862
          throw new IllegalStateException("Method call not finished!");
3863
        }
3864
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3865
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3866
        return (new Client(prot)).recv_getAllTags();
3867
      }
3868
    }
3869
 
3870
    public void getAllEntitiesByTagName(String displayName, org.apache.thrift.async.AsyncMethodCallback<getAllEntitiesByTagName_call> resultHandler) throws org.apache.thrift.TException {
3871
      checkReady();
3872
      getAllEntitiesByTagName_call method_call = new getAllEntitiesByTagName_call(displayName, resultHandler, this, ___protocolFactory, ___transport);
3873
      this.___currentMethod = method_call;
3874
      ___manager.call(method_call);
3875
    }
3876
 
3877
    public static class getAllEntitiesByTagName_call extends org.apache.thrift.async.TAsyncMethodCall {
3878
      private String displayName;
3879
      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 {
3880
        super(client, protocolFactory, transport, resultHandler, false);
3881
        this.displayName = displayName;
3882
      }
3883
 
3884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllEntitiesByTagName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3886
        getAllEntitiesByTagName_args args = new getAllEntitiesByTagName_args();
3887
        args.setDisplayName(displayName);
3888
        args.write(prot);
3889
        prot.writeMessageEnd();
3890
      }
3891
 
3892
      public List<Long> getResult() throws org.apache.thrift.TException {
3893
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3894
          throw new IllegalStateException("Method call not finished!");
3895
        }
3896
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3897
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3898
        return (new Client(prot)).recv_getAllEntitiesByTagName();
3899
      }
3900
    }
3901
 
6842 amit.gupta 3902
    public void getAllEntityTags(org.apache.thrift.async.AsyncMethodCallback<getAllEntityTags_call> resultHandler) throws org.apache.thrift.TException {
3903
      checkReady();
3904
      getAllEntityTags_call method_call = new getAllEntityTags_call(resultHandler, this, ___protocolFactory, ___transport);
3905
      this.___currentMethod = method_call;
3906
      ___manager.call(method_call);
3907
    }
3908
 
3909
    public static class getAllEntityTags_call extends org.apache.thrift.async.TAsyncMethodCall {
3910
      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 {
3911
        super(client, protocolFactory, transport, resultHandler, false);
3912
      }
3913
 
3914
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3915
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllEntityTags", org.apache.thrift.protocol.TMessageType.CALL, 0));
3916
        getAllEntityTags_args args = new getAllEntityTags_args();
3917
        args.write(prot);
3918
        prot.writeMessageEnd();
3919
      }
3920
 
3921
      public Map<Long,List<String>> getResult() throws org.apache.thrift.TException {
3922
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3923
          throw new IllegalStateException("Method call not finished!");
3924
        }
3925
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3926
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3927
        return (new Client(prot)).recv_getAllEntityTags();
3928
      }
3929
    }
3930
 
6850 kshitij.so 3931
    public void addBanner(String bannerName, String imageName, String link, long priority, boolean isActive, boolean hasMap, org.apache.thrift.async.AsyncMethodCallback<addBanner_call> resultHandler) throws org.apache.thrift.TException {
3932
      checkReady();
3933
      addBanner_call method_call = new addBanner_call(bannerName, imageName, link, priority, isActive, hasMap, resultHandler, this, ___protocolFactory, ___transport);
3934
      this.___currentMethod = method_call;
3935
      ___manager.call(method_call);
3936
    }
3937
 
3938
    public static class addBanner_call extends org.apache.thrift.async.TAsyncMethodCall {
3939
      private String bannerName;
3940
      private String imageName;
3941
      private String link;
3942
      private long priority;
3943
      private boolean isActive;
3944
      private boolean hasMap;
3945
      public addBanner_call(String bannerName, String imageName, String link, long priority, boolean isActive, boolean hasMap, 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 {
3946
        super(client, protocolFactory, transport, resultHandler, false);
3947
        this.bannerName = bannerName;
3948
        this.imageName = imageName;
3949
        this.link = link;
3950
        this.priority = priority;
3951
        this.isActive = isActive;
3952
        this.hasMap = hasMap;
3953
      }
3954
 
3955
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3956
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBanner", org.apache.thrift.protocol.TMessageType.CALL, 0));
3957
        addBanner_args args = new addBanner_args();
3958
        args.setBannerName(bannerName);
3959
        args.setImageName(imageName);
3960
        args.setLink(link);
3961
        args.setPriority(priority);
3962
        args.setIsActive(isActive);
3963
        args.setHasMap(hasMap);
3964
        args.write(prot);
3965
        prot.writeMessageEnd();
3966
      }
3967
 
3968
      public boolean getResult() throws org.apache.thrift.TException {
3969
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3970
          throw new IllegalStateException("Method call not finished!");
3971
        }
3972
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3973
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3974
        return (new Client(prot)).recv_addBanner();
3975
      }
3976
    }
3977
 
3978
    public void getAllBanners(org.apache.thrift.async.AsyncMethodCallback<getAllBanners_call> resultHandler) throws org.apache.thrift.TException {
3979
      checkReady();
3980
      getAllBanners_call method_call = new getAllBanners_call(resultHandler, this, ___protocolFactory, ___transport);
3981
      this.___currentMethod = method_call;
3982
      ___manager.call(method_call);
3983
    }
3984
 
3985
    public static class getAllBanners_call extends org.apache.thrift.async.TAsyncMethodCall {
3986
      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 {
3987
        super(client, protocolFactory, transport, resultHandler, false);
3988
      }
3989
 
3990
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3991
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBanners", org.apache.thrift.protocol.TMessageType.CALL, 0));
3992
        getAllBanners_args args = new getAllBanners_args();
3993
        args.write(prot);
3994
        prot.writeMessageEnd();
3995
      }
3996
 
3997
      public List<String> getResult() throws org.apache.thrift.TException {
3998
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3999
          throw new IllegalStateException("Method call not finished!");
4000
        }
4001
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4002
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4003
        return (new Client(prot)).recv_getAllBanners();
4004
      }
4005
    }
4006
 
4007
    public void deleteBanner(String bannerName, org.apache.thrift.async.AsyncMethodCallback<deleteBanner_call> resultHandler) throws org.apache.thrift.TException {
4008
      checkReady();
4009
      deleteBanner_call method_call = new deleteBanner_call(bannerName, resultHandler, this, ___protocolFactory, ___transport);
4010
      this.___currentMethod = method_call;
4011
      ___manager.call(method_call);
4012
    }
4013
 
4014
    public static class deleteBanner_call extends org.apache.thrift.async.TAsyncMethodCall {
4015
      private String bannerName;
4016
      public deleteBanner_call(String bannerName, 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 {
4017
        super(client, protocolFactory, transport, resultHandler, false);
4018
        this.bannerName = bannerName;
4019
      }
4020
 
4021
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4022
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBanner", org.apache.thrift.protocol.TMessageType.CALL, 0));
4023
        deleteBanner_args args = new deleteBanner_args();
4024
        args.setBannerName(bannerName);
4025
        args.write(prot);
4026
        prot.writeMessageEnd();
4027
      }
4028
 
4029
      public boolean getResult() throws org.apache.thrift.TException {
4030
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4031
          throw new IllegalStateException("Method call not finished!");
4032
        }
4033
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4034
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4035
        return (new Client(prot)).recv_deleteBanner();
4036
      }
4037
    }
4038
 
4039
    public void getBannerDetails(String bannerName, org.apache.thrift.async.AsyncMethodCallback<getBannerDetails_call> resultHandler) throws org.apache.thrift.TException {
4040
      checkReady();
4041
      getBannerDetails_call method_call = new getBannerDetails_call(bannerName, resultHandler, this, ___protocolFactory, ___transport);
4042
      this.___currentMethod = method_call;
4043
      ___manager.call(method_call);
4044
    }
4045
 
4046
    public static class getBannerDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
4047
      private String bannerName;
4048
      public getBannerDetails_call(String bannerName, 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 {
4049
        super(client, protocolFactory, transport, resultHandler, false);
4050
        this.bannerName = bannerName;
4051
      }
4052
 
4053
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4054
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBannerDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
4055
        getBannerDetails_args args = new getBannerDetails_args();
4056
        args.setBannerName(bannerName);
4057
        args.write(prot);
4058
        prot.writeMessageEnd();
4059
      }
4060
 
4061
      public Banner getResult() throws org.apache.thrift.TException {
4062
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4063
          throw new IllegalStateException("Method call not finished!");
4064
        }
4065
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4066
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4067
        return (new Client(prot)).recv_getBannerDetails();
4068
      }
4069
    }
4070
 
4071
    public void getActiveBanners(org.apache.thrift.async.AsyncMethodCallback<getActiveBanners_call> resultHandler) throws org.apache.thrift.TException {
4072
      checkReady();
4073
      getActiveBanners_call method_call = new getActiveBanners_call(resultHandler, this, ___protocolFactory, ___transport);
4074
      this.___currentMethod = method_call;
4075
      ___manager.call(method_call);
4076
    }
4077
 
4078
    public static class getActiveBanners_call extends org.apache.thrift.async.TAsyncMethodCall {
4079
      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 {
4080
        super(client, protocolFactory, transport, resultHandler, false);
4081
      }
4082
 
4083
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4084
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActiveBanners", org.apache.thrift.protocol.TMessageType.CALL, 0));
4085
        getActiveBanners_args args = new getActiveBanners_args();
4086
        args.write(prot);
4087
        prot.writeMessageEnd();
4088
      }
4089
 
4090
      public List<Banner> getResult() throws org.apache.thrift.TException {
4091
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4092
          throw new IllegalStateException("Method call not finished!");
4093
        }
4094
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4095
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4096
        return (new Client(prot)).recv_getActiveBanners();
4097
      }
4098
    }
4099
 
6849 kshitij.so 4100
    public void addBannerMap(String bannerName, String mapLink, String coordinates, org.apache.thrift.async.AsyncMethodCallback<addBannerMap_call> resultHandler) throws org.apache.thrift.TException {
4101
      checkReady();
4102
      addBannerMap_call method_call = new addBannerMap_call(bannerName, mapLink, coordinates, resultHandler, this, ___protocolFactory, ___transport);
4103
      this.___currentMethod = method_call;
4104
      ___manager.call(method_call);
4105
    }
4106
 
4107
    public static class addBannerMap_call extends org.apache.thrift.async.TAsyncMethodCall {
4108
      private String bannerName;
4109
      private String mapLink;
4110
      private String coordinates;
4111
      public addBannerMap_call(String bannerName, String mapLink, String coordinates, 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 {
4112
        super(client, protocolFactory, transport, resultHandler, false);
4113
        this.bannerName = bannerName;
4114
        this.mapLink = mapLink;
4115
        this.coordinates = coordinates;
4116
      }
4117
 
4118
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4119
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBannerMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
4120
        addBannerMap_args args = new addBannerMap_args();
4121
        args.setBannerName(bannerName);
4122
        args.setMapLink(mapLink);
4123
        args.setCoordinates(coordinates);
4124
        args.write(prot);
4125
        prot.writeMessageEnd();
4126
      }
4127
 
4128
      public boolean getResult() throws org.apache.thrift.TException {
4129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4130
          throw new IllegalStateException("Method call not finished!");
4131
        }
4132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4134
        return (new Client(prot)).recv_addBannerMap();
4135
      }
4136
    }
4137
 
4138
    public void deleteBannerMap(String bannerName, org.apache.thrift.async.AsyncMethodCallback<deleteBannerMap_call> resultHandler) throws org.apache.thrift.TException {
4139
      checkReady();
4140
      deleteBannerMap_call method_call = new deleteBannerMap_call(bannerName, resultHandler, this, ___protocolFactory, ___transport);
4141
      this.___currentMethod = method_call;
4142
      ___manager.call(method_call);
4143
    }
4144
 
4145
    public static class deleteBannerMap_call extends org.apache.thrift.async.TAsyncMethodCall {
4146
      private String bannerName;
4147
      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 {
4148
        super(client, protocolFactory, transport, resultHandler, false);
4149
        this.bannerName = bannerName;
4150
      }
4151
 
4152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBannerMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
4154
        deleteBannerMap_args args = new deleteBannerMap_args();
4155
        args.setBannerName(bannerName);
4156
        args.write(prot);
4157
        prot.writeMessageEnd();
4158
      }
4159
 
4160
      public boolean getResult() throws org.apache.thrift.TException {
4161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4162
          throw new IllegalStateException("Method call not finished!");
4163
        }
4164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4166
        return (new Client(prot)).recv_deleteBannerMap();
4167
      }
4168
    }
4169
 
4170
    public void getBannerMapDetails(String bannerName, org.apache.thrift.async.AsyncMethodCallback<getBannerMapDetails_call> resultHandler) throws org.apache.thrift.TException {
4171
      checkReady();
4172
      getBannerMapDetails_call method_call = new getBannerMapDetails_call(bannerName, resultHandler, this, ___protocolFactory, ___transport);
4173
      this.___currentMethod = method_call;
4174
      ___manager.call(method_call);
4175
    }
4176
 
4177
    public static class getBannerMapDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
4178
      private String bannerName;
4179
      public getBannerMapDetails_call(String bannerName, 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 {
4180
        super(client, protocolFactory, transport, resultHandler, false);
4181
        this.bannerName = bannerName;
4182
      }
4183
 
4184
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4185
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBannerMapDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
4186
        getBannerMapDetails_args args = new getBannerMapDetails_args();
4187
        args.setBannerName(bannerName);
4188
        args.write(prot);
4189
        prot.writeMessageEnd();
4190
      }
4191
 
4192
      public List<BannerMap> getResult() throws org.apache.thrift.TException {
4193
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4194
          throw new IllegalStateException("Method call not finished!");
4195
        }
4196
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4198
        return (new Client(prot)).recv_getBannerMapDetails();
4199
      }
4200
    }
4201
 
5945 mandeep.dh 4202
    public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException {
4203
      checkReady();
4204
      deleteSimilarItem_call method_call = new deleteSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);
4205
      this.___currentMethod = method_call;
4206
      ___manager.call(method_call);
4207
    }
4208
 
4209
    public static class deleteSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4210
      private long itemId;
4211
      private long catalogItemId;
4212
      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 {
4213
        super(client, protocolFactory, transport, resultHandler, false);
4214
        this.itemId = itemId;
4215
        this.catalogItemId = catalogItemId;
4216
      }
4217
 
4218
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4219
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4220
        deleteSimilarItem_args args = new deleteSimilarItem_args();
4221
        args.setItemId(itemId);
4222
        args.setCatalogItemId(catalogItemId);
4223
        args.write(prot);
4224
        prot.writeMessageEnd();
4225
      }
4226
 
4227
      public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {
4228
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4229
          throw new IllegalStateException("Method call not finished!");
4230
        }
4231
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4232
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4233
        return (new Client(prot)).recv_deleteSimilarItem();
4234
      }
4235
    }
4236
 
4237
    public void checkSimilarItem(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<checkSimilarItem_call> resultHandler) throws org.apache.thrift.TException {
4238
      checkReady();
4239
      checkSimilarItem_call method_call = new checkSimilarItem_call(brand, modelNumber, modelName, color, resultHandler, this, ___protocolFactory, ___transport);
4240
      this.___currentMethod = method_call;
4241
      ___manager.call(method_call);
4242
    }
4243
 
4244
    public static class checkSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4245
      private String brand;
4246
      private String modelNumber;
4247
      private String modelName;
4248
      private String color;
4249
      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 {
4250
        super(client, protocolFactory, transport, resultHandler, false);
4251
        this.brand = brand;
4252
        this.modelNumber = modelNumber;
4253
        this.modelName = modelName;
4254
        this.color = color;
4255
      }
4256
 
4257
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4258
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4259
        checkSimilarItem_args args = new checkSimilarItem_args();
4260
        args.setBrand(brand);
4261
        args.setModelNumber(modelNumber);
4262
        args.setModelName(modelName);
4263
        args.setColor(color);
4264
        args.write(prot);
4265
        prot.writeMessageEnd();
4266
      }
4267
 
4268
      public long getResult() throws org.apache.thrift.TException {
4269
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4270
          throw new IllegalStateException("Method call not finished!");
4271
        }
4272
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4273
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4274
        return (new Client(prot)).recv_checkSimilarItem();
4275
      }
4276
    }
4277
 
4278
    public void validateRiskyStatus(long itemId, org.apache.thrift.async.AsyncMethodCallback<validateRiskyStatus_call> resultHandler) throws org.apache.thrift.TException {
4279
      checkReady();
4280
      validateRiskyStatus_call method_call = new validateRiskyStatus_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
4281
      this.___currentMethod = method_call;
4282
      ___manager.call(method_call);
4283
    }
4284
 
4285
    public static class validateRiskyStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
4286
      private long itemId;
4287
      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 {
4288
        super(client, protocolFactory, transport, resultHandler, false);
4289
        this.itemId = itemId;
4290
      }
4291
 
4292
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4293
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateRiskyStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
4294
        validateRiskyStatus_args args = new validateRiskyStatus_args();
4295
        args.setItemId(itemId);
4296
        args.write(prot);
4297
        prot.writeMessageEnd();
4298
      }
4299
 
4300
      public void getResult() throws org.apache.thrift.TException {
4301
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4302
          throw new IllegalStateException("Method call not finished!");
4303
        }
4304
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4305
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4306
        (new Client(prot)).recv_validateRiskyStatus();
4307
      }
4308
    }
4309
 
4310
    public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException {
4311
      checkReady();
4312
      changeItemRiskyFlag_call method_call = new changeItemRiskyFlag_call(itemId, risky, resultHandler, this, ___protocolFactory, ___transport);
4313
      this.___currentMethod = method_call;
4314
      ___manager.call(method_call);
4315
    }
4316
 
4317
    public static class changeItemRiskyFlag_call extends org.apache.thrift.async.TAsyncMethodCall {
4318
      private long itemId;
4319
      private boolean risky;
4320
      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 {
4321
        super(client, protocolFactory, transport, resultHandler, false);
4322
        this.itemId = itemId;
4323
        this.risky = risky;
4324
      }
4325
 
4326
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4327
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemRiskyFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));
4328
        changeItemRiskyFlag_args args = new changeItemRiskyFlag_args();
4329
        args.setItemId(itemId);
4330
        args.setRisky(risky);
4331
        args.write(prot);
4332
        prot.writeMessageEnd();
4333
      }
4334
 
4335
      public void getResult() throws org.apache.thrift.TException {
4336
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4337
          throw new IllegalStateException("Method call not finished!");
4338
        }
4339
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4340
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4341
        (new Client(prot)).recv_changeItemRiskyFlag();
4342
      }
4343
    }
4344
 
4345
    public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException {
4346
      checkReady();
4347
      getItemsByRiskyFlag_call method_call = new getItemsByRiskyFlag_call(resultHandler, this, ___protocolFactory, ___transport);
4348
      this.___currentMethod = method_call;
4349
      ___manager.call(method_call);
4350
    }
4351
 
4352
    public static class getItemsByRiskyFlag_call extends org.apache.thrift.async.TAsyncMethodCall {
4353
      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 {
4354
        super(client, protocolFactory, transport, resultHandler, false);
4355
      }
4356
 
4357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByRiskyFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));
4359
        getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();
4360
        args.write(prot);
4361
        prot.writeMessageEnd();
4362
      }
4363
 
4364
      public List<Item> getResult() throws org.apache.thrift.TException {
4365
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4366
          throw new IllegalStateException("Method call not finished!");
4367
        }
4368
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4369
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4370
        return (new Client(prot)).recv_getItemsByRiskyFlag();
4371
      }
4372
    }
4373
 
4374
    public void getItemsForMasterSheet(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<getItemsForMasterSheet_call> resultHandler) throws org.apache.thrift.TException {
4375
      checkReady();
4376
      getItemsForMasterSheet_call method_call = new getItemsForMasterSheet_call(category, brand, resultHandler, this, ___protocolFactory, ___transport);
4377
      this.___currentMethod = method_call;
4378
      ___manager.call(method_call);
4379
    }
4380
 
4381
    public static class getItemsForMasterSheet_call extends org.apache.thrift.async.TAsyncMethodCall {
4382
      private String category;
4383
      private String brand;
4384
      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 {
4385
        super(client, protocolFactory, transport, resultHandler, false);
4386
        this.category = category;
4387
        this.brand = brand;
4388
      }
4389
 
4390
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4391
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsForMasterSheet", org.apache.thrift.protocol.TMessageType.CALL, 0));
4392
        getItemsForMasterSheet_args args = new getItemsForMasterSheet_args();
4393
        args.setCategory(category);
4394
        args.setBrand(brand);
4395
        args.write(prot);
4396
        prot.writeMessageEnd();
4397
      }
4398
 
4399
      public List<Item> getResult() throws org.apache.thrift.TException {
4400
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4401
          throw new IllegalStateException("Method call not finished!");
4402
        }
4403
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4404
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4405
        return (new Client(prot)).recv_getItemsForMasterSheet();
4406
      }
4407
    }
4408
 
4409
    public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
4410
      checkReady();
4411
      getSimilarItemsCatalogIds_call method_call = new getSimilarItemsCatalogIds_call(beginIndex, totalItems, itemId, resultHandler, this, ___protocolFactory, ___transport);
4412
      this.___currentMethod = method_call;
4413
      ___manager.call(method_call);
4414
    }
4415
 
4416
    public static class getSimilarItemsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
4417
      private long beginIndex;
4418
      private long totalItems;
4419
      private long itemId;
4420
      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 {
4421
        super(client, protocolFactory, transport, resultHandler, false);
4422
        this.beginIndex = beginIndex;
4423
        this.totalItems = totalItems;
4424
        this.itemId = itemId;
4425
      }
4426
 
4427
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4428
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSimilarItemsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
4429
        getSimilarItemsCatalogIds_args args = new getSimilarItemsCatalogIds_args();
4430
        args.setBeginIndex(beginIndex);
4431
        args.setTotalItems(totalItems);
4432
        args.setItemId(itemId);
4433
        args.write(prot);
4434
        prot.writeMessageEnd();
4435
      }
4436
 
4437
      public List<Long> getResult() throws org.apache.thrift.TException {
4438
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4439
          throw new IllegalStateException("Method call not finished!");
4440
        }
4441
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4442
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4443
        return (new Client(prot)).recv_getSimilarItemsCatalogIds();
4444
      }
4445
    }
4446
 
4447
    public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<addProductNotification_call> resultHandler) throws org.apache.thrift.TException {
4448
      checkReady();
4449
      addProductNotification_call method_call = new addProductNotification_call(itemId, email, resultHandler, this, ___protocolFactory, ___transport);
4450
      this.___currentMethod = method_call;
4451
      ___manager.call(method_call);
4452
    }
4453
 
4454
    public static class addProductNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
4455
      private long itemId;
4456
      private String email;
4457
      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 {
4458
        super(client, protocolFactory, transport, resultHandler, false);
4459
        this.itemId = itemId;
4460
        this.email = email;
4461
      }
4462
 
4463
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4464
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addProductNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
4465
        addProductNotification_args args = new addProductNotification_args();
4466
        args.setItemId(itemId);
4467
        args.setEmail(email);
4468
        args.write(prot);
4469
        prot.writeMessageEnd();
4470
      }
4471
 
4472
      public boolean getResult() throws org.apache.thrift.TException {
4473
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4474
          throw new IllegalStateException("Method call not finished!");
4475
        }
4476
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4477
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4478
        return (new Client(prot)).recv_addProductNotification();
4479
      }
4480
    }
4481
 
4482
    public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException {
4483
      checkReady();
4484
      sendProductNotifications_call method_call = new sendProductNotifications_call(resultHandler, this, ___protocolFactory, ___transport);
4485
      this.___currentMethod = method_call;
4486
      ___manager.call(method_call);
4487
    }
4488
 
4489
    public static class sendProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {
4490
      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 {
4491
        super(client, protocolFactory, transport, resultHandler, false);
4492
      }
4493
 
4494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));
4496
        sendProductNotifications_args args = new sendProductNotifications_args();
4497
        args.write(prot);
4498
        prot.writeMessageEnd();
4499
      }
4500
 
4501
      public boolean getResult() throws org.apache.thrift.TException {
4502
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4503
          throw new IllegalStateException("Method call not finished!");
4504
        }
4505
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4506
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4507
        return (new Client(prot)).recv_sendProductNotifications();
4508
      }
4509
    }
4510
 
4511
    public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException {
4512
      checkReady();
4513
      getAllBrandsByCategory_call method_call = new getAllBrandsByCategory_call(categoryId, resultHandler, this, ___protocolFactory, ___transport);
4514
      this.___currentMethod = method_call;
4515
      ___manager.call(method_call);
4516
    }
4517
 
4518
    public static class getAllBrandsByCategory_call extends org.apache.thrift.async.TAsyncMethodCall {
4519
      private long categoryId;
4520
      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 {
4521
        super(client, protocolFactory, transport, resultHandler, false);
4522
        this.categoryId = categoryId;
4523
      }
4524
 
4525
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4526
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBrandsByCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4527
        getAllBrandsByCategory_args args = new getAllBrandsByCategory_args();
4528
        args.setCategoryId(categoryId);
4529
        args.write(prot);
4530
        prot.writeMessageEnd();
4531
      }
4532
 
4533
      public List<String> getResult() throws org.apache.thrift.TException {
4534
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4535
          throw new IllegalStateException("Method call not finished!");
4536
        }
4537
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4539
        return (new Client(prot)).recv_getAllBrandsByCategory();
4540
      }
4541
    }
4542
 
4543
    public void getAllBrands(org.apache.thrift.async.AsyncMethodCallback<getAllBrands_call> resultHandler) throws org.apache.thrift.TException {
4544
      checkReady();
4545
      getAllBrands_call method_call = new getAllBrands_call(resultHandler, this, ___protocolFactory, ___transport);
4546
      this.___currentMethod = method_call;
4547
      ___manager.call(method_call);
4548
    }
4549
 
4550
    public static class getAllBrands_call extends org.apache.thrift.async.TAsyncMethodCall {
4551
      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 {
4552
        super(client, protocolFactory, transport, resultHandler, false);
4553
      }
4554
 
4555
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4556
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBrands", org.apache.thrift.protocol.TMessageType.CALL, 0));
4557
        getAllBrands_args args = new getAllBrands_args();
4558
        args.write(prot);
4559
        prot.writeMessageEnd();
4560
      }
4561
 
4562
      public List<String> getResult() throws org.apache.thrift.TException {
4563
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4564
          throw new IllegalStateException("Method call not finished!");
4565
        }
4566
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4567
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4568
        return (new Client(prot)).recv_getAllBrands();
4569
      }
4570
    }
4571
 
4572
    public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<getAllSources_call> resultHandler) throws org.apache.thrift.TException {
4573
      checkReady();
4574
      getAllSources_call method_call = new getAllSources_call(resultHandler, this, ___protocolFactory, ___transport);
4575
      this.___currentMethod = method_call;
4576
      ___manager.call(method_call);
4577
    }
4578
 
4579
    public static class getAllSources_call extends org.apache.thrift.async.TAsyncMethodCall {
4580
      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 {
4581
        super(client, protocolFactory, transport, resultHandler, false);
4582
      }
4583
 
4584
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4585
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSources", org.apache.thrift.protocol.TMessageType.CALL, 0));
4586
        getAllSources_args args = new getAllSources_args();
4587
        args.write(prot);
4588
        prot.writeMessageEnd();
4589
      }
4590
 
4591
      public List<Source> getResult() throws org.apache.thrift.TException {
4592
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4593
          throw new IllegalStateException("Method call not finished!");
4594
        }
4595
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4596
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4597
        return (new Client(prot)).recv_getAllSources();
4598
      }
4599
    }
4600
 
4601
    public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException {
4602
      checkReady();
4603
      getItemPricingBySource_call method_call = new getItemPricingBySource_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
4604
      this.___currentMethod = method_call;
4605
      ___manager.call(method_call);
4606
    }
4607
 
4608
    public static class getItemPricingBySource_call extends org.apache.thrift.async.TAsyncMethodCall {
4609
      private long itemId;
4610
      private long sourceId;
4611
      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 {
4612
        super(client, protocolFactory, transport, resultHandler, false);
4613
        this.itemId = itemId;
4614
        this.sourceId = sourceId;
4615
      }
4616
 
4617
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4618
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricingBySource", org.apache.thrift.protocol.TMessageType.CALL, 0));
4619
        getItemPricingBySource_args args = new getItemPricingBySource_args();
4620
        args.setItemId(itemId);
4621
        args.setSourceId(sourceId);
4622
        args.write(prot);
4623
        prot.writeMessageEnd();
4624
      }
4625
 
4626
      public SourceItemPricing getResult() throws CatalogServiceException, org.apache.thrift.TException {
4627
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4628
          throw new IllegalStateException("Method call not finished!");
4629
        }
4630
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4631
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4632
        return (new Client(prot)).recv_getItemPricingBySource();
4633
      }
4634
    }
4635
 
4636
    public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException {
4637
      checkReady();
4638
      addSourceItemPricing_call method_call = new addSourceItemPricing_call(sourceItemPricing, resultHandler, this, ___protocolFactory, ___transport);
4639
      this.___currentMethod = method_call;
4640
      ___manager.call(method_call);
4641
    }
4642
 
4643
    public static class addSourceItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
4644
      private SourceItemPricing sourceItemPricing;
4645
      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 {
4646
        super(client, protocolFactory, transport, resultHandler, false);
4647
        this.sourceItemPricing = sourceItemPricing;
4648
      }
4649
 
4650
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4651
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSourceItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
4652
        addSourceItemPricing_args args = new addSourceItemPricing_args();
4653
        args.setSourceItemPricing(sourceItemPricing);
4654
        args.write(prot);
4655
        prot.writeMessageEnd();
4656
      }
4657
 
4658
      public void getResult() throws CatalogServiceException, org.apache.thrift.TException {
4659
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4660
          throw new IllegalStateException("Method call not finished!");
4661
        }
4662
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4663
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4664
        (new Client(prot)).recv_addSourceItemPricing();
4665
      }
4666
    }
4667
 
4668
    public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException {
4669
      checkReady();
4670
      getAllSourcePricing_call method_call = new getAllSourcePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
4671
      this.___currentMethod = method_call;
4672
      ___manager.call(method_call);
4673
    }
4674
 
4675
    public static class getAllSourcePricing_call extends org.apache.thrift.async.TAsyncMethodCall {
4676
      private long itemId;
4677
      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 {
4678
        super(client, protocolFactory, transport, resultHandler, false);
4679
        this.itemId = itemId;
4680
      }
4681
 
4682
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4683
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSourcePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
4684
        getAllSourcePricing_args args = new getAllSourcePricing_args();
4685
        args.setItemId(itemId);
4686
        args.write(prot);
4687
        prot.writeMessageEnd();
4688
      }
4689
 
4690
      public List<SourceItemPricing> getResult() throws CatalogServiceException, org.apache.thrift.TException {
4691
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4692
          throw new IllegalStateException("Method call not finished!");
4693
        }
4694
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4695
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4696
        return (new Client(prot)).recv_getAllSourcePricing();
4697
      }
4698
    }
4699
 
4700
    public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_call> resultHandler) throws org.apache.thrift.TException {
4701
      checkReady();
4702
      getItemForSource_call method_call = new getItemForSource_call(item_id, sourceId, resultHandler, this, ___protocolFactory, ___transport);
4703
      this.___currentMethod = method_call;
4704
      ___manager.call(method_call);
4705
    }
4706
 
4707
    public static class getItemForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
4708
      private long item_id;
4709
      private long sourceId;
4710
      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 {
4711
        super(client, protocolFactory, transport, resultHandler, false);
4712
        this.item_id = item_id;
4713
        this.sourceId = sourceId;
4714
      }
4715
 
4716
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4717
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
4718
        getItemForSource_args args = new getItemForSource_args();
4719
        args.setItem_id(item_id);
4720
        args.setSourceId(sourceId);
4721
        args.write(prot);
4722
        prot.writeMessageEnd();
4723
      }
4724
 
4725
      public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {
4726
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4727
          throw new IllegalStateException("Method call not finished!");
4728
        }
4729
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4730
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4731
        return (new Client(prot)).recv_getItemForSource();
4732
      }
4733
    }
4734
 
4735
    public void searchItemsInRange(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchItemsInRange_call> resultHandler) throws org.apache.thrift.TException {
4736
      checkReady();
4737
      searchItemsInRange_call method_call = new searchItemsInRange_call(searchTerms, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
4738
      this.___currentMethod = method_call;
4739
      ___manager.call(method_call);
4740
    }
4741
 
4742
    public static class searchItemsInRange_call extends org.apache.thrift.async.TAsyncMethodCall {
4743
      private List<String> searchTerms;
4744
      private long offset;
4745
      private long limit;
4746
      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 {
4747
        super(client, protocolFactory, transport, resultHandler, false);
4748
        this.searchTerms = searchTerms;
4749
        this.offset = offset;
4750
        this.limit = limit;
4751
      }
4752
 
4753
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4754
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchItemsInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
4755
        searchItemsInRange_args args = new searchItemsInRange_args();
4756
        args.setSearchTerms(searchTerms);
4757
        args.setOffset(offset);
4758
        args.setLimit(limit);
4759
        args.write(prot);
4760
        prot.writeMessageEnd();
4761
      }
4762
 
4763
      public List<Item> getResult() throws org.apache.thrift.TException {
4764
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4765
          throw new IllegalStateException("Method call not finished!");
4766
        }
4767
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4768
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4769
        return (new Client(prot)).recv_searchItemsInRange();
4770
      }
4771
    }
4772
 
4773
    public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {
4774
      checkReady();
4775
      getSearchResultCount_call method_call = new getSearchResultCount_call(searchTerms, resultHandler, this, ___protocolFactory, ___transport);
4776
      this.___currentMethod = method_call;
4777
      ___manager.call(method_call);
4778
    }
4779
 
4780
    public static class getSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4781
      private List<String> searchTerms;
4782
      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 {
4783
        super(client, protocolFactory, transport, resultHandler, false);
4784
        this.searchTerms = searchTerms;
4785
      }
4786
 
4787
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4788
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4789
        getSearchResultCount_args args = new getSearchResultCount_args();
4790
        args.setSearchTerms(searchTerms);
4791
        args.write(prot);
4792
        prot.writeMessageEnd();
4793
      }
4794
 
4795
      public int getResult() throws org.apache.thrift.TException {
4796
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4797
          throw new IllegalStateException("Method call not finished!");
4798
        }
4799
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4800
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4801
        return (new Client(prot)).recv_getSearchResultCount();
4802
      }
4803
    }
4804
 
4805
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_call> resultHandler) throws org.apache.thrift.TException {
4806
      checkReady();
4807
      getProductNotifications_call method_call = new getProductNotifications_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);
4808
      this.___currentMethod = method_call;
4809
      ___manager.call(method_call);
4810
    }
4811
 
4812
    public static class getProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {
4813
      private long startDateTime;
4814
      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 {
4815
        super(client, protocolFactory, transport, resultHandler, false);
4816
        this.startDateTime = startDateTime;
4817
      }
4818
 
4819
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4820
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));
4821
        getProductNotifications_args args = new getProductNotifications_args();
4822
        args.setStartDateTime(startDateTime);
4823
        args.write(prot);
4824
        prot.writeMessageEnd();
4825
      }
4826
 
4827
      public List<ProductNotificationRequest> getResult() throws org.apache.thrift.TException {
4828
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4829
          throw new IllegalStateException("Method call not finished!");
4830
        }
4831
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4832
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4833
        return (new Client(prot)).recv_getProductNotifications();
4834
      }
4835
    }
4836
 
4837
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException {
4838
      checkReady();
4839
      getProductNotificationRequestCount_call method_call = new getProductNotificationRequestCount_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);
4840
      this.___currentMethod = method_call;
4841
      ___manager.call(method_call);
4842
    }
4843
 
4844
    public static class getProductNotificationRequestCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4845
      private long startDateTime;
4846
      public getProductNotificationRequestCount_call(long startDateTime, 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 {
4847
        super(client, protocolFactory, transport, resultHandler, false);
4848
        this.startDateTime = startDateTime;
4849
      }
4850
 
4851
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4852
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotificationRequestCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4853
        getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
4854
        args.setStartDateTime(startDateTime);
4855
        args.write(prot);
4856
        prot.writeMessageEnd();
4857
      }
4858
 
4859
      public List<ProductNotificationRequestCount> getResult() throws org.apache.thrift.TException {
4860
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4861
          throw new IllegalStateException("Method call not finished!");
4862
        }
4863
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4864
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4865
        return (new Client(prot)).recv_getProductNotificationRequestCount();
4866
      }
4867
    }
4868
 
4869
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException {
4870
      checkReady();
4871
      addAuthorizationLog_call method_call = new addAuthorizationLog_call(itemId, username, reason, resultHandler, this, ___protocolFactory, ___transport);
4872
      this.___currentMethod = method_call;
4873
      ___manager.call(method_call);
4874
    }
4875
 
4876
    public static class addAuthorizationLog_call extends org.apache.thrift.async.TAsyncMethodCall {
4877
      private long itemId;
4878
      private String username;
4879
      private String reason;
4880
      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 {
4881
        super(client, protocolFactory, transport, resultHandler, false);
4882
        this.itemId = itemId;
4883
        this.username = username;
4884
        this.reason = reason;
4885
      }
4886
 
4887
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4888
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAuthorizationLog", org.apache.thrift.protocol.TMessageType.CALL, 0));
4889
        addAuthorizationLog_args args = new addAuthorizationLog_args();
4890
        args.setItemId(itemId);
4891
        args.setUsername(username);
4892
        args.setReason(reason);
4893
        args.write(prot);
4894
        prot.writeMessageEnd();
4895
      }
4896
 
4897
      public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {
4898
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4899
          throw new IllegalStateException("Method call not finished!");
4900
        }
4901
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4902
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4903
        return (new Client(prot)).recv_addAuthorizationLog();
4904
      }
4905
    }
4906
 
4907
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
4908
      checkReady();
4909
      getClearanceSaleCatalogIds_call method_call = new getClearanceSaleCatalogIds_call(resultHandler, this, ___protocolFactory, ___transport);
4910
      this.___currentMethod = method_call;
4911
      ___manager.call(method_call);
4912
    }
4913
 
4914
    public static class getClearanceSaleCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
4915
      public getClearanceSaleCatalogIds_call(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_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 {
4916
        super(client, protocolFactory, transport, resultHandler, false);
4917
      }
4918
 
4919
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4920
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClearanceSaleCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
4921
        getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();
4922
        args.write(prot);
4923
        prot.writeMessageEnd();
4924
      }
4925
 
4926
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
4927
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4928
          throw new IllegalStateException("Method call not finished!");
4929
        }
4930
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4931
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4932
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
4933
      }
4934
    }
4935
 
4936
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
4937
      checkReady();
4938
      addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);
4939
      this.___currentMethod = method_call;
4940
      ___manager.call(method_call);
4941
    }
4942
 
4943
    public static class addupdateVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4944
      private long catalog_item_id;
4945
      private long voucherType;
4946
      private long voucherAmount;
4947
      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 {
4948
        super(client, protocolFactory, transport, resultHandler, false);
4949
        this.catalog_item_id = catalog_item_id;
4950
        this.voucherType = voucherType;
4951
        this.voucherAmount = voucherAmount;
4952
      }
4953
 
4954
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4955
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addupdateVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4956
        addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();
4957
        args.setCatalog_item_id(catalog_item_id);
4958
        args.setVoucherType(voucherType);
4959
        args.setVoucherAmount(voucherAmount);
4960
        args.write(prot);
4961
        prot.writeMessageEnd();
4962
      }
4963
 
4964
      public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {
4965
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4966
          throw new IllegalStateException("Method call not finished!");
4967
        }
4968
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4969
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4970
        return (new Client(prot)).recv_addupdateVoucherForItem();
4971
      }
4972
    }
4973
 
4974
    public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
4975
      checkReady();
4976
      deleteVoucherForItem_call method_call = new deleteVoucherForItem_call(catalog_item_id, voucherType, resultHandler, this, ___protocolFactory, ___transport);
4977
      this.___currentMethod = method_call;
4978
      ___manager.call(method_call);
4979
    }
4980
 
4981
    public static class deleteVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4982
      private long catalog_item_id;
4983
      private long voucherType;
4984
      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 {
4985
        super(client, protocolFactory, transport, resultHandler, false);
4986
        this.catalog_item_id = catalog_item_id;
4987
        this.voucherType = voucherType;
4988
      }
4989
 
4990
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4991
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4992
        deleteVoucherForItem_args args = new deleteVoucherForItem_args();
4993
        args.setCatalog_item_id(catalog_item_id);
4994
        args.setVoucherType(voucherType);
4995
        args.write(prot);
4996
        prot.writeMessageEnd();
4997
      }
4998
 
4999
      public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {
5000
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5001
          throw new IllegalStateException("Method call not finished!");
5002
        }
5003
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5004
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5005
        return (new Client(prot)).recv_deleteVoucherForItem();
5006
      }
5007
    }
5008
 
5009
    public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException {
5010
      checkReady();
5011
      getVoucherAmount_call method_call = new getVoucherAmount_call(itemId, voucherType, resultHandler, this, ___protocolFactory, ___transport);
5012
      this.___currentMethod = method_call;
5013
      ___manager.call(method_call);
5014
    }
5015
 
5016
    public static class getVoucherAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
5017
      private long itemId;
5018
      private long voucherType;
5019
      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 {
5020
        super(client, protocolFactory, transport, resultHandler, false);
5021
        this.itemId = itemId;
5022
        this.voucherType = voucherType;
5023
      }
5024
 
5025
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5026
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVoucherAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
5027
        getVoucherAmount_args args = new getVoucherAmount_args();
5028
        args.setItemId(itemId);
5029
        args.setVoucherType(voucherType);
5030
        args.write(prot);
5031
        prot.writeMessageEnd();
5032
      }
5033
 
5034
      public long getResult() throws org.apache.thrift.TException {
5035
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5036
          throw new IllegalStateException("Method call not finished!");
5037
        }
5038
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5039
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5040
        return (new Client(prot)).recv_getVoucherAmount();
5041
      }
5042
    }
5043
 
5044
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException {
5045
      checkReady();
5046
      getAllItemVouchers_call method_call = new getAllItemVouchers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
5047
      this.___currentMethod = method_call;
5048
      ___manager.call(method_call);
5049
    }
5050
 
5051
    public static class getAllItemVouchers_call extends org.apache.thrift.async.TAsyncMethodCall {
5052
      private long itemId;
5053
      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 {
5054
        super(client, protocolFactory, transport, resultHandler, false);
5055
        this.itemId = itemId;
5056
      }
5057
 
5058
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5059
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemVouchers", org.apache.thrift.protocol.TMessageType.CALL, 0));
5060
        getAllItemVouchers_args args = new getAllItemVouchers_args();
5061
        args.setItemId(itemId);
5062
        args.write(prot);
5063
        prot.writeMessageEnd();
5064
      }
5065
 
5066
      public List<VoucherItemMapping> getResult() throws org.apache.thrift.TException {
5067
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5068
          throw new IllegalStateException("Method call not finished!");
5069
        }
5070
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5071
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5072
        return (new Client(prot)).recv_getAllItemVouchers();
5073
      }
5074
    }
5075
 
5076
    public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException {
5077
      checkReady();
5078
      isValidCatalogItemId_call method_call = new isValidCatalogItemId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);
5079
      this.___currentMethod = method_call;
5080
      ___manager.call(method_call);
5081
    }
5082
 
5083
    public static class isValidCatalogItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
5084
      private long catalog_item_id;
5085
      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 {
5086
        super(client, protocolFactory, transport, resultHandler, false);
5087
        this.catalog_item_id = catalog_item_id;
5088
      }
5089
 
5090
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5091
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isValidCatalogItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
5092
        isValidCatalogItemId_args args = new isValidCatalogItemId_args();
5093
        args.setCatalog_item_id(catalog_item_id);
5094
        args.write(prot);
5095
        prot.writeMessageEnd();
5096
      }
5097
 
5098
      public boolean getResult() throws org.apache.thrift.TException {
5099
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5100
          throw new IllegalStateException("Method call not finished!");
5101
        }
5102
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5103
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5104
        return (new Client(prot)).recv_isValidCatalogItemId();
5105
      }
5106
    }
5107
 
6039 amit.gupta 5108
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException {
5109
      checkReady();
5110
      getVatPercentageForItem_call method_call = new getVatPercentageForItem_call(itemId, price, resultHandler, this, ___protocolFactory, ___transport);
5111
      this.___currentMethod = method_call;
5112
      ___manager.call(method_call);
5113
    }
5114
 
5115
    public static class getVatPercentageForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5116
      private long itemId;
5117
      private double price;
5118
      public getVatPercentageForItem_call(long itemId, 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 {
5119
        super(client, protocolFactory, transport, resultHandler, false);
5120
        this.itemId = itemId;
5121
        this.price = price;
5122
      }
5123
 
5124
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5125
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatPercentageForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
5126
        getVatPercentageForItem_args args = new getVatPercentageForItem_args();
5127
        args.setItemId(itemId);
5128
        args.setPrice(price);
5129
        args.write(prot);
5130
        prot.writeMessageEnd();
5131
      }
5132
 
5133
      public double getResult() throws org.apache.thrift.TException {
5134
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5135
          throw new IllegalStateException("Method call not finished!");
5136
        }
5137
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5138
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5139
        return (new Client(prot)).recv_getVatPercentageForItem();
5140
      }
5141
    }
5142
 
5143
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException {
5144
      checkReady();
5145
      getVatAmountForItem_call method_call = new getVatAmountForItem_call(itemId, price, resultHandler, this, ___protocolFactory, ___transport);
5146
      this.___currentMethod = method_call;
5147
      ___manager.call(method_call);
5148
    }
5149
 
5150
    public static class getVatAmountForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5151
      private long itemId;
5152
      private double price;
5153
      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 {
5154
        super(client, protocolFactory, transport, resultHandler, false);
5155
        this.itemId = itemId;
5156
        this.price = price;
5157
      }
5158
 
5159
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5160
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatAmountForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
5161
        getVatAmountForItem_args args = new getVatAmountForItem_args();
5162
        args.setItemId(itemId);
5163
        args.setPrice(price);
5164
        args.write(prot);
5165
        prot.writeMessageEnd();
5166
      }
5167
 
5168
      public double getResult() throws org.apache.thrift.TException {
5169
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5170
          throw new IllegalStateException("Method call not finished!");
5171
        }
5172
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5173
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5174
        return (new Client(prot)).recv_getVatAmountForItem();
5175
      }
5176
    }
5177
 
6531 vikram.rag 5178
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException {
5179
      checkReady();
5180
      getAllIgnoredInventoryUpdateItemsList_call method_call = new getAllIgnoredInventoryUpdateItemsList_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
5181
      this.___currentMethod = method_call;
5182
      ___manager.call(method_call);
5183
    }
5184
 
5185
    public static class getAllIgnoredInventoryUpdateItemsList_call extends org.apache.thrift.async.TAsyncMethodCall {
5186
      private int offset;
5187
      private int limit;
5188
      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 {
5189
        super(client, protocolFactory, transport, resultHandler, false);
5190
        this.offset = offset;
5191
        this.limit = limit;
5192
      }
5193
 
5194
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5195
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryUpdateItemsList", org.apache.thrift.protocol.TMessageType.CALL, 0));
5196
        getAllIgnoredInventoryUpdateItemsList_args args = new getAllIgnoredInventoryUpdateItemsList_args();
5197
        args.setOffset(offset);
5198
        args.setLimit(limit);
5199
        args.write(prot);
5200
        prot.writeMessageEnd();
5201
      }
5202
 
5203
      public List<Item> getResult() throws org.apache.thrift.TException {
5204
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5205
          throw new IllegalStateException("Method call not finished!");
5206
        }
5207
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5208
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5209
        return (new Client(prot)).recv_getAllIgnoredInventoryUpdateItemsList();
5210
      }
5211
    }
5212
 
6821 amar.kumar 5213
    public void getAllAliveItems(org.apache.thrift.async.AsyncMethodCallback<getAllAliveItems_call> resultHandler) throws org.apache.thrift.TException {
5214
      checkReady();
5215
      getAllAliveItems_call method_call = new getAllAliveItems_call(resultHandler, this, ___protocolFactory, ___transport);
5216
      this.___currentMethod = method_call;
5217
      ___manager.call(method_call);
5218
    }
5219
 
5220
    public static class getAllAliveItems_call extends org.apache.thrift.async.TAsyncMethodCall {
5221
      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 {
5222
        super(client, protocolFactory, transport, resultHandler, false);
5223
      }
5224
 
5225
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5226
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAliveItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
5227
        getAllAliveItems_args args = new getAllAliveItems_args();
5228
        args.write(prot);
5229
        prot.writeMessageEnd();
5230
      }
5231
 
5232
      public List<Item> getResult() throws org.apache.thrift.TException {
5233
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5234
          throw new IllegalStateException("Method call not finished!");
5235
        }
5236
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5237
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5238
        return (new Client(prot)).recv_getAllAliveItems();
5239
      }
5240
    }
5241
 
6805 anupam.sin 5242
    public void getInsuranceAmount(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException {
5243
      checkReady();
5244
      getInsuranceAmount_call method_call = new getInsuranceAmount_call(itemId, insurerId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5245
      this.___currentMethod = method_call;
5246
      ___manager.call(method_call);
5247
    }
5248
 
5249
    public static class getInsuranceAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
5250
      private long itemId;
5251
      private long insurerId;
5252
      private long quantity;
5253
      public getInsuranceAmount_call(long itemId, 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 {
5254
        super(client, protocolFactory, transport, resultHandler, false);
5255
        this.itemId = itemId;
5256
        this.insurerId = insurerId;
5257
        this.quantity = quantity;
5258
      }
5259
 
5260
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5261
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsuranceAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
5262
        getInsuranceAmount_args args = new getInsuranceAmount_args();
5263
        args.setItemId(itemId);
5264
        args.setInsurerId(insurerId);
5265
        args.setQuantity(quantity);
5266
        args.write(prot);
5267
        prot.writeMessageEnd();
5268
      }
5269
 
5270
      public long getResult() throws org.apache.thrift.TException {
5271
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5272
          throw new IllegalStateException("Method call not finished!");
5273
        }
5274
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5275
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5276
        return (new Client(prot)).recv_getInsuranceAmount();
5277
      }
5278
    }
5279
 
5280
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<getInsurer_call> resultHandler) throws org.apache.thrift.TException {
5281
      checkReady();
5282
      getInsurer_call method_call = new getInsurer_call(insurerId, resultHandler, this, ___protocolFactory, ___transport);
5283
      this.___currentMethod = method_call;
5284
      ___manager.call(method_call);
5285
    }
5286
 
5287
    public static class getInsurer_call extends org.apache.thrift.async.TAsyncMethodCall {
5288
      private long insurerId;
5289
      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 {
5290
        super(client, protocolFactory, transport, resultHandler, false);
5291
        this.insurerId = insurerId;
5292
      }
5293
 
5294
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5295
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsurer", org.apache.thrift.protocol.TMessageType.CALL, 0));
5296
        getInsurer_args args = new getInsurer_args();
5297
        args.setInsurerId(insurerId);
5298
        args.write(prot);
5299
        prot.writeMessageEnd();
5300
      }
5301
 
5302
      public Insurer getResult() throws org.apache.thrift.TException {
5303
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5304
          throw new IllegalStateException("Method call not finished!");
5305
        }
5306
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5307
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5308
        return (new Client(prot)).recv_getInsurer();
5309
      }
5310
    }
5311
 
6838 vikram.rag 5312
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<getAllInsurers_call> resultHandler) throws org.apache.thrift.TException {
5313
      checkReady();
5314
      getAllInsurers_call method_call = new getAllInsurers_call(resultHandler, this, ___protocolFactory, ___transport);
5315
      this.___currentMethod = method_call;
5316
      ___manager.call(method_call);
5317
    }
5318
 
5319
    public static class getAllInsurers_call extends org.apache.thrift.async.TAsyncMethodCall {
5320
      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 {
5321
        super(client, protocolFactory, transport, resultHandler, false);
5322
      }
5323
 
5324
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5325
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllInsurers", org.apache.thrift.protocol.TMessageType.CALL, 0));
5326
        getAllInsurers_args args = new getAllInsurers_args();
5327
        args.write(prot);
5328
        prot.writeMessageEnd();
5329
      }
5330
 
5331
      public List<Insurer> getResult() throws org.apache.thrift.TException {
5332
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5333
          throw new IllegalStateException("Method call not finished!");
5334
        }
5335
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5336
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5337
        return (new Client(prot)).recv_getAllInsurers();
5338
      }
5339
    }
5340
 
5945 mandeep.dh 5341
  }
5342
 
5343
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5344
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5345
    public Processor(I iface) {
5346
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
5347
    }
5348
 
5349
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
5350
      super(iface, getProcessMap(processMap));
5351
    }
5352
 
5353
    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) {
5354
      processMap.put("addItem", new addItem());
5355
      processMap.put("updateItem", new updateItem());
5356
      processMap.put("isActive", new isActive());
5357
      processMap.put("getItemStatusDescription", new getItemStatusDescription());
5358
      processMap.put("startItemOn", new startItemOn());
5359
      processMap.put("retireItemOn", new retireItemOn());
5360
      processMap.put("changeItemStatus", new changeItemStatus());
5361
      processMap.put("getItem", new getItem());
5362
      processMap.put("getItemsByCatalogId", new getItemsByCatalogId());
5363
      processMap.put("getValidItemsByCatalogId", new getValidItemsByCatalogId());
5364
      processMap.put("getAllItems", new getAllItems());
5365
      processMap.put("getAllItemsByStatus", new getAllItemsByStatus());
5366
      processMap.put("markItemAsContentComplete", new markItemAsContentComplete());
5367
      processMap.put("getAllItemsInRange", new getAllItemsInRange());
5368
      processMap.put("getAllItemsByStatusInRange", new getAllItemsByStatusInRange());
5369
      processMap.put("getItemCountByStatus", new getItemCountByStatus());
5370
      processMap.put("getBestSellers", new getBestSellers());
5371
      processMap.put("getBestSellersCatalogIds", new getBestSellersCatalogIds());
5372
      processMap.put("getBestSellersCount", new getBestSellersCount());
5373
      processMap.put("getBestDeals", new getBestDeals());
5374
      processMap.put("getBestDealsCatalogIds", new getBestDealsCatalogIds());
5375
      processMap.put("getBestDealsCount", new getBestDealsCount());
5376
      processMap.put("getComingSoon", new getComingSoon());
5377
      processMap.put("getComingSoonCatalogIds", new getComingSoonCatalogIds());
5378
      processMap.put("getComingSoonCount", new getComingSoonCount());
5379
      processMap.put("getLatestArrivals", new getLatestArrivals());
5380
      processMap.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());
5381
      processMap.put("getLatestArrivalsCount", new getLatestArrivalsCount());
5382
      processMap.put("generateNewEntityID", new generateNewEntityID());
5383
      processMap.put("addCategory", new addCategory());
5384
      processMap.put("getCategory", new getCategory());
5385
      processMap.put("getAllCategories", new getAllCategories());
5386
      processMap.put("getAllSimilarItems", new getAllSimilarItems());
5387
      processMap.put("addSimilarItem", new addSimilarItem());
6511 kshitij.so 5388
      processMap.put("addTag", new addTag());
5389
      processMap.put("deleteEntityTag", new deleteEntityTag());
5390
      processMap.put("deleteTag", new deleteTag());
5391
      processMap.put("getAllTags", new getAllTags());
5392
      processMap.put("getAllEntitiesByTagName", new getAllEntitiesByTagName());
6842 amit.gupta 5393
      processMap.put("getAllEntityTags", new getAllEntityTags());
6850 kshitij.so 5394
      processMap.put("addBanner", new addBanner());
5395
      processMap.put("getAllBanners", new getAllBanners());
5396
      processMap.put("deleteBanner", new deleteBanner());
5397
      processMap.put("getBannerDetails", new getBannerDetails());
5398
      processMap.put("getActiveBanners", new getActiveBanners());
6849 kshitij.so 5399
      processMap.put("addBannerMap", new addBannerMap());
5400
      processMap.put("deleteBannerMap", new deleteBannerMap());
5401
      processMap.put("getBannerMapDetails", new getBannerMapDetails());
5945 mandeep.dh 5402
      processMap.put("deleteSimilarItem", new deleteSimilarItem());
5403
      processMap.put("checkSimilarItem", new checkSimilarItem());
5404
      processMap.put("validateRiskyStatus", new validateRiskyStatus());
5405
      processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());
5406
      processMap.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());
5407
      processMap.put("getItemsForMasterSheet", new getItemsForMasterSheet());
5408
      processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
5409
      processMap.put("addProductNotification", new addProductNotification());
5410
      processMap.put("sendProductNotifications", new sendProductNotifications());
5411
      processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());
5412
      processMap.put("getAllBrands", new getAllBrands());
5413
      processMap.put("getAllSources", new getAllSources());
5414
      processMap.put("getItemPricingBySource", new getItemPricingBySource());
5415
      processMap.put("addSourceItemPricing", new addSourceItemPricing());
5416
      processMap.put("getAllSourcePricing", new getAllSourcePricing());
5417
      processMap.put("getItemForSource", new getItemForSource());
5418
      processMap.put("searchItemsInRange", new searchItemsInRange());
5419
      processMap.put("getSearchResultCount", new getSearchResultCount());
5420
      processMap.put("getProductNotifications", new getProductNotifications());
5421
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5422
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
5423
      processMap.put("getClearanceSaleCatalogIds", new getClearanceSaleCatalogIds());
5424
      processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());
5425
      processMap.put("deleteVoucherForItem", new deleteVoucherForItem());
5426
      processMap.put("getVoucherAmount", new getVoucherAmount());
5427
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
5428
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
6039 amit.gupta 5429
      processMap.put("getVatPercentageForItem", new getVatPercentageForItem());
5430
      processMap.put("getVatAmountForItem", new getVatAmountForItem());
6531 vikram.rag 5431
      processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());
6821 amar.kumar 5432
      processMap.put("getAllAliveItems", new getAllAliveItems());
6805 anupam.sin 5433
      processMap.put("getInsuranceAmount", new getInsuranceAmount());
5434
      processMap.put("getInsurer", new getInsurer());
6838 vikram.rag 5435
      processMap.put("getAllInsurers", new getAllInsurers());
5945 mandeep.dh 5436
      return processMap;
5437
    }
5438
 
5439
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5440
      public addItem() {
5441
        super("addItem");
5442
      }
5443
 
5444
      protected addItem_args getEmptyArgsInstance() {
5445
        return new addItem_args();
5446
      }
5447
 
5448
      protected addItem_result getResult(I iface, addItem_args args) throws org.apache.thrift.TException {
5449
        addItem_result result = new addItem_result();
5450
        try {
5451
          result.success = iface.addItem(args.item);
5452
          result.setSuccessIsSet(true);
5453
        } catch (CatalogServiceException cex) {
5454
          result.cex = cex;
5455
        }
5456
        return result;
5457
      }
5458
    }
5459
 
5460
    private static class updateItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItem_args> {
5461
      public updateItem() {
5462
        super("updateItem");
5463
      }
5464
 
5465
      protected updateItem_args getEmptyArgsInstance() {
5466
        return new updateItem_args();
5467
      }
5468
 
5469
      protected updateItem_result getResult(I iface, updateItem_args args) throws org.apache.thrift.TException {
5470
        updateItem_result result = new updateItem_result();
5471
        try {
5472
          result.success = iface.updateItem(args.item);
5473
          result.setSuccessIsSet(true);
5474
        } catch (CatalogServiceException cex) {
5475
          result.cex = cex;
5476
        }
5477
        return result;
5478
      }
5479
    }
5480
 
5481
    private static class isActive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isActive_args> {
5482
      public isActive() {
5483
        super("isActive");
5484
      }
5485
 
5486
      protected isActive_args getEmptyArgsInstance() {
5487
        return new isActive_args();
5488
      }
5489
 
5490
      protected isActive_result getResult(I iface, isActive_args args) throws org.apache.thrift.TException {
5491
        isActive_result result = new isActive_result();
5492
        try {
5493
          result.success = iface.isActive(args.itemId);
5494
        } catch (CatalogServiceException isex) {
5495
          result.isex = isex;
5496
        }
5497
        return result;
5498
      }
5499
    }
5500
 
5501
    private static class getItemStatusDescription<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStatusDescription_args> {
5502
      public getItemStatusDescription() {
5503
        super("getItemStatusDescription");
5504
      }
5505
 
5506
      protected getItemStatusDescription_args getEmptyArgsInstance() {
5507
        return new getItemStatusDescription_args();
5508
      }
5509
 
5510
      protected getItemStatusDescription_result getResult(I iface, getItemStatusDescription_args args) throws org.apache.thrift.TException {
5511
        getItemStatusDescription_result result = new getItemStatusDescription_result();
5512
        try {
5513
          result.success = iface.getItemStatusDescription(args.itemId);
5514
        } catch (CatalogServiceException isex) {
5515
          result.isex = isex;
5516
        }
5517
        return result;
5518
      }
5519
    }
5520
 
5521
    private static class startItemOn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startItemOn_args> {
5522
      public startItemOn() {
5523
        super("startItemOn");
5524
      }
5525
 
5526
      protected startItemOn_args getEmptyArgsInstance() {
5527
        return new startItemOn_args();
5528
      }
5529
 
5530
      protected startItemOn_result getResult(I iface, startItemOn_args args) throws org.apache.thrift.TException {
5531
        startItemOn_result result = new startItemOn_result();
5532
        try {
5533
          iface.startItemOn(args.item_id, args.timestamp);
5534
        } catch (CatalogServiceException cex) {
5535
          result.cex = cex;
5536
        }
5537
        return result;
5538
      }
5539
    }
5540
 
5541
    private static class retireItemOn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireItemOn_args> {
5542
      public retireItemOn() {
5543
        super("retireItemOn");
5544
      }
5545
 
5546
      protected retireItemOn_args getEmptyArgsInstance() {
5547
        return new retireItemOn_args();
5548
      }
5549
 
5550
      protected retireItemOn_result getResult(I iface, retireItemOn_args args) throws org.apache.thrift.TException {
5551
        retireItemOn_result result = new retireItemOn_result();
5552
        try {
5553
          iface.retireItemOn(args.item_id, args.timestamp);
5554
        } catch (CatalogServiceException cex) {
5555
          result.cex = cex;
5556
        }
5557
        return result;
5558
      }
5559
    }
5560
 
5561
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
5562
      public changeItemStatus() {
5563
        super("changeItemStatus");
5564
      }
5565
 
5566
      protected changeItemStatus_args getEmptyArgsInstance() {
5567
        return new changeItemStatus_args();
5568
      }
5569
 
5570
      protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {
5571
        changeItemStatus_result result = new changeItemStatus_result();
5572
        try {
5573
          iface.changeItemStatus(args.item_id, args.timestamp, args.newstatus);
5574
        } catch (CatalogServiceException cex) {
5575
          result.cex = cex;
5576
        }
5577
        return result;
5578
      }
5579
    }
5580
 
5581
    private static class getItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItem_args> {
5582
      public getItem() {
5583
        super("getItem");
5584
      }
5585
 
5586
      protected getItem_args getEmptyArgsInstance() {
5587
        return new getItem_args();
5588
      }
5589
 
5590
      protected getItem_result getResult(I iface, getItem_args args) throws org.apache.thrift.TException {
5591
        getItem_result result = new getItem_result();
5592
        try {
5593
          result.success = iface.getItem(args.item_id);
5594
        } catch (CatalogServiceException cex) {
5595
          result.cex = cex;
5596
        }
5597
        return result;
5598
      }
5599
    }
5600
 
5601
    private static class getItemsByCatalogId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByCatalogId_args> {
5602
      public getItemsByCatalogId() {
5603
        super("getItemsByCatalogId");
5604
      }
5605
 
5606
      protected getItemsByCatalogId_args getEmptyArgsInstance() {
5607
        return new getItemsByCatalogId_args();
5608
      }
5609
 
5610
      protected getItemsByCatalogId_result getResult(I iface, getItemsByCatalogId_args args) throws org.apache.thrift.TException {
5611
        getItemsByCatalogId_result result = new getItemsByCatalogId_result();
5612
        try {
5613
          result.success = iface.getItemsByCatalogId(args.catalog_item_id);
5614
        } catch (CatalogServiceException cex) {
5615
          result.cex = cex;
5616
        }
5617
        return result;
5618
      }
5619
    }
5620
 
5621
    private static class getValidItemsByCatalogId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidItemsByCatalogId_args> {
5622
      public getValidItemsByCatalogId() {
5623
        super("getValidItemsByCatalogId");
5624
      }
5625
 
5626
      protected getValidItemsByCatalogId_args getEmptyArgsInstance() {
5627
        return new getValidItemsByCatalogId_args();
5628
      }
5629
 
5630
      protected getValidItemsByCatalogId_result getResult(I iface, getValidItemsByCatalogId_args args) throws org.apache.thrift.TException {
5631
        getValidItemsByCatalogId_result result = new getValidItemsByCatalogId_result();
5632
        try {
5633
          result.success = iface.getValidItemsByCatalogId(args.catalog_item_id);
5634
        } catch (CatalogServiceException cex) {
5635
          result.cex = cex;
5636
        }
5637
        return result;
5638
      }
5639
    }
5640
 
5641
    private static class getAllItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItems_args> {
5642
      public getAllItems() {
5643
        super("getAllItems");
5644
      }
5645
 
5646
      protected getAllItems_args getEmptyArgsInstance() {
5647
        return new getAllItems_args();
5648
      }
5649
 
5650
      protected getAllItems_result getResult(I iface, getAllItems_args args) throws org.apache.thrift.TException {
5651
        getAllItems_result result = new getAllItems_result();
5652
        try {
5653
          result.success = iface.getAllItems(args.isActive);
5654
        } catch (CatalogServiceException cex) {
5655
          result.cex = cex;
5656
        }
5657
        return result;
5658
      }
5659
    }
5660
 
5661
    private static class getAllItemsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsByStatus_args> {
5662
      public getAllItemsByStatus() {
5663
        super("getAllItemsByStatus");
5664
      }
5665
 
5666
      protected getAllItemsByStatus_args getEmptyArgsInstance() {
5667
        return new getAllItemsByStatus_args();
5668
      }
5669
 
5670
      protected getAllItemsByStatus_result getResult(I iface, getAllItemsByStatus_args args) throws org.apache.thrift.TException {
5671
        getAllItemsByStatus_result result = new getAllItemsByStatus_result();
5672
        try {
5673
          result.success = iface.getAllItemsByStatus(args.itemStatus);
5674
        } catch (CatalogServiceException cex) {
5675
          result.cex = cex;
5676
        }
5677
        return result;
5678
      }
5679
    }
5680
 
5681
    private static class markItemAsContentComplete<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemAsContentComplete_args> {
5682
      public markItemAsContentComplete() {
5683
        super("markItemAsContentComplete");
5684
      }
5685
 
5686
      protected markItemAsContentComplete_args getEmptyArgsInstance() {
5687
        return new markItemAsContentComplete_args();
5688
      }
5689
 
5690
      protected markItemAsContentComplete_result getResult(I iface, markItemAsContentComplete_args args) throws org.apache.thrift.TException {
5691
        markItemAsContentComplete_result result = new markItemAsContentComplete_result();
5692
        try {
5693
          result.success = iface.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber);
5694
          result.setSuccessIsSet(true);
5695
        } catch (CatalogServiceException cex) {
5696
          result.cex = cex;
5697
        }
5698
        return result;
5699
      }
5700
    }
5701
 
5702
    private static class getAllItemsInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsInRange_args> {
5703
      public getAllItemsInRange() {
5704
        super("getAllItemsInRange");
5705
      }
5706
 
5707
      protected getAllItemsInRange_args getEmptyArgsInstance() {
5708
        return new getAllItemsInRange_args();
5709
      }
5710
 
5711
      protected getAllItemsInRange_result getResult(I iface, getAllItemsInRange_args args) throws org.apache.thrift.TException {
5712
        getAllItemsInRange_result result = new getAllItemsInRange_result();
5713
        try {
5714
          result.success = iface.getAllItemsInRange(args.offset, args.limit);
5715
        } catch (CatalogServiceException cex) {
5716
          result.cex = cex;
5717
        }
5718
        return result;
5719
      }
5720
    }
5721
 
5722
    private static class getAllItemsByStatusInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsByStatusInRange_args> {
5723
      public getAllItemsByStatusInRange() {
5724
        super("getAllItemsByStatusInRange");
5725
      }
5726
 
5727
      protected getAllItemsByStatusInRange_args getEmptyArgsInstance() {
5728
        return new getAllItemsByStatusInRange_args();
5729
      }
5730
 
5731
      protected getAllItemsByStatusInRange_result getResult(I iface, getAllItemsByStatusInRange_args args) throws org.apache.thrift.TException {
5732
        getAllItemsByStatusInRange_result result = new getAllItemsByStatusInRange_result();
5733
        try {
5734
          result.success = iface.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit);
5735
        } catch (CatalogServiceException cex) {
5736
          result.cex = cex;
5737
        }
5738
        return result;
5739
      }
5740
    }
5741
 
5742
    private static class getItemCountByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemCountByStatus_args> {
5743
      public getItemCountByStatus() {
5744
        super("getItemCountByStatus");
5745
      }
5746
 
5747
      protected getItemCountByStatus_args getEmptyArgsInstance() {
5748
        return new getItemCountByStatus_args();
5749
      }
5750
 
5751
      protected getItemCountByStatus_result getResult(I iface, getItemCountByStatus_args args) throws org.apache.thrift.TException {
5752
        getItemCountByStatus_result result = new getItemCountByStatus_result();
5753
        result.success = iface.getItemCountByStatus(args.useStatus, args.itemStatus);
5754
        result.setSuccessIsSet(true);
5755
        return result;
5756
      }
5757
    }
5758
 
5759
    private static class getBestSellers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellers_args> {
5760
      public getBestSellers() {
5761
        super("getBestSellers");
5762
      }
5763
 
5764
      protected getBestSellers_args getEmptyArgsInstance() {
5765
        return new getBestSellers_args();
5766
      }
5767
 
5768
      protected getBestSellers_result getResult(I iface, getBestSellers_args args) throws org.apache.thrift.TException {
5769
        getBestSellers_result result = new getBestSellers_result();
5770
        try {
5771
          result.success = iface.getBestSellers();
5772
        } catch (CatalogServiceException isex) {
5773
          result.isex = isex;
5774
        }
5775
        return result;
5776
      }
5777
    }
5778
 
5779
    private static class getBestSellersCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellersCatalogIds_args> {
5780
      public getBestSellersCatalogIds() {
5781
        super("getBestSellersCatalogIds");
5782
      }
5783
 
5784
      protected getBestSellersCatalogIds_args getEmptyArgsInstance() {
5785
        return new getBestSellersCatalogIds_args();
5786
      }
5787
 
5788
      protected getBestSellersCatalogIds_result getResult(I iface, getBestSellersCatalogIds_args args) throws org.apache.thrift.TException {
5789
        getBestSellersCatalogIds_result result = new getBestSellersCatalogIds_result();
5790
        try {
5791
          result.success = iface.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);
5792
        } catch (CatalogServiceException cex) {
5793
          result.cex = cex;
5794
        }
5795
        return result;
5796
      }
5797
    }
5798
 
5799
    private static class getBestSellersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellersCount_args> {
5800
      public getBestSellersCount() {
5801
        super("getBestSellersCount");
5802
      }
5803
 
5804
      protected getBestSellersCount_args getEmptyArgsInstance() {
5805
        return new getBestSellersCount_args();
5806
      }
5807
 
5808
      protected getBestSellersCount_result getResult(I iface, getBestSellersCount_args args) throws org.apache.thrift.TException {
5809
        getBestSellersCount_result result = new getBestSellersCount_result();
5810
        try {
5811
          result.success = iface.getBestSellersCount();
5812
          result.setSuccessIsSet(true);
5813
        } catch (CatalogServiceException cex) {
5814
          result.cex = cex;
5815
        }
5816
        return result;
5817
      }
5818
    }
5819
 
5820
    private static class getBestDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDeals_args> {
5821
      public getBestDeals() {
5822
        super("getBestDeals");
5823
      }
5824
 
5825
      protected getBestDeals_args getEmptyArgsInstance() {
5826
        return new getBestDeals_args();
5827
      }
5828
 
5829
      protected getBestDeals_result getResult(I iface, getBestDeals_args args) throws org.apache.thrift.TException {
5830
        getBestDeals_result result = new getBestDeals_result();
5831
        try {
5832
          result.success = iface.getBestDeals();
5833
        } catch (CatalogServiceException isex) {
5834
          result.isex = isex;
5835
        }
5836
        return result;
5837
      }
5838
    }
5839
 
5840
    private static class getBestDealsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDealsCatalogIds_args> {
5841
      public getBestDealsCatalogIds() {
5842
        super("getBestDealsCatalogIds");
5843
      }
5844
 
5845
      protected getBestDealsCatalogIds_args getEmptyArgsInstance() {
5846
        return new getBestDealsCatalogIds_args();
5847
      }
5848
 
5849
      protected getBestDealsCatalogIds_result getResult(I iface, getBestDealsCatalogIds_args args) throws org.apache.thrift.TException {
5850
        getBestDealsCatalogIds_result result = new getBestDealsCatalogIds_result();
5851
        try {
5852
          result.success = iface.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);
5853
        } catch (CatalogServiceException cex) {
5854
          result.cex = cex;
5855
        }
5856
        return result;
5857
      }
5858
    }
5859
 
5860
    private static class getBestDealsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDealsCount_args> {
5861
      public getBestDealsCount() {
5862
        super("getBestDealsCount");
5863
      }
5864
 
5865
      protected getBestDealsCount_args getEmptyArgsInstance() {
5866
        return new getBestDealsCount_args();
5867
      }
5868
 
5869
      protected getBestDealsCount_result getResult(I iface, getBestDealsCount_args args) throws org.apache.thrift.TException {
5870
        getBestDealsCount_result result = new getBestDealsCount_result();
5871
        try {
5872
          result.success = iface.getBestDealsCount();
5873
          result.setSuccessIsSet(true);
5874
        } catch (CatalogServiceException cex) {
5875
          result.cex = cex;
5876
        }
5877
        return result;
5878
      }
5879
    }
5880
 
5881
    private static class getComingSoon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoon_args> {
5882
      public getComingSoon() {
5883
        super("getComingSoon");
5884
      }
5885
 
5886
      protected getComingSoon_args getEmptyArgsInstance() {
5887
        return new getComingSoon_args();
5888
      }
5889
 
5890
      protected getComingSoon_result getResult(I iface, getComingSoon_args args) throws org.apache.thrift.TException {
5891
        getComingSoon_result result = new getComingSoon_result();
5892
        try {
5893
          result.success = iface.getComingSoon();
5894
        } catch (CatalogServiceException isex) {
5895
          result.isex = isex;
5896
        }
5897
        return result;
5898
      }
5899
    }
5900
 
5901
    private static class getComingSoonCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoonCatalogIds_args> {
5902
      public getComingSoonCatalogIds() {
5903
        super("getComingSoonCatalogIds");
5904
      }
5905
 
5906
      protected getComingSoonCatalogIds_args getEmptyArgsInstance() {
5907
        return new getComingSoonCatalogIds_args();
5908
      }
5909
 
5910
      protected getComingSoonCatalogIds_result getResult(I iface, getComingSoonCatalogIds_args args) throws org.apache.thrift.TException {
5911
        getComingSoonCatalogIds_result result = new getComingSoonCatalogIds_result();
5912
        try {
5913
          result.success = iface.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);
5914
        } catch (CatalogServiceException cex) {
5915
          result.cex = cex;
5916
        }
5917
        return result;
5918
      }
5919
    }
5920
 
5921
    private static class getComingSoonCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoonCount_args> {
5922
      public getComingSoonCount() {
5923
        super("getComingSoonCount");
5924
      }
5925
 
5926
      protected getComingSoonCount_args getEmptyArgsInstance() {
5927
        return new getComingSoonCount_args();
5928
      }
5929
 
5930
      protected getComingSoonCount_result getResult(I iface, getComingSoonCount_args args) throws org.apache.thrift.TException {
5931
        getComingSoonCount_result result = new getComingSoonCount_result();
5932
        try {
5933
          result.success = iface.getComingSoonCount();
5934
          result.setSuccessIsSet(true);
5935
        } catch (CatalogServiceException cex) {
5936
          result.cex = cex;
5937
        }
5938
        return result;
5939
      }
5940
    }
5941
 
5942
    private static class getLatestArrivals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivals_args> {
5943
      public getLatestArrivals() {
5944
        super("getLatestArrivals");
5945
      }
5946
 
5947
      protected getLatestArrivals_args getEmptyArgsInstance() {
5948
        return new getLatestArrivals_args();
5949
      }
5950
 
5951
      protected getLatestArrivals_result getResult(I iface, getLatestArrivals_args args) throws org.apache.thrift.TException {
5952
        getLatestArrivals_result result = new getLatestArrivals_result();
5953
        try {
5954
          result.success = iface.getLatestArrivals();
5955
        } catch (CatalogServiceException isex) {
5956
          result.isex = isex;
5957
        }
5958
        return result;
5959
      }
5960
    }
5961
 
5962
    private static class getLatestArrivalsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivalsCatalogIds_args> {
5963
      public getLatestArrivalsCatalogIds() {
5964
        super("getLatestArrivalsCatalogIds");
5965
      }
5966
 
5967
      protected getLatestArrivalsCatalogIds_args getEmptyArgsInstance() {
5968
        return new getLatestArrivalsCatalogIds_args();
5969
      }
5970
 
5971
      protected getLatestArrivalsCatalogIds_result getResult(I iface, getLatestArrivalsCatalogIds_args args) throws org.apache.thrift.TException {
5972
        getLatestArrivalsCatalogIds_result result = new getLatestArrivalsCatalogIds_result();
5973
        try {
5974
          result.success = iface.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories);
5975
        } catch (CatalogServiceException cex) {
5976
          result.cex = cex;
5977
        }
5978
        return result;
5979
      }
5980
    }
5981
 
5982
    private static class getLatestArrivalsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivalsCount_args> {
5983
      public getLatestArrivalsCount() {
5984
        super("getLatestArrivalsCount");
5985
      }
5986
 
5987
      protected getLatestArrivalsCount_args getEmptyArgsInstance() {
5988
        return new getLatestArrivalsCount_args();
5989
      }
5990
 
5991
      protected getLatestArrivalsCount_result getResult(I iface, getLatestArrivalsCount_args args) throws org.apache.thrift.TException {
5992
        getLatestArrivalsCount_result result = new getLatestArrivalsCount_result();
5993
        try {
5994
          result.success = iface.getLatestArrivalsCount();
5995
          result.setSuccessIsSet(true);
5996
        } catch (CatalogServiceException cex) {
5997
          result.cex = cex;
5998
        }
5999
        return result;
6000
      }
6001
    }
6002
 
6003
    private static class generateNewEntityID<I extends Iface> extends org.apache.thrift.ProcessFunction<I, generateNewEntityID_args> {
6004
      public generateNewEntityID() {
6005
        super("generateNewEntityID");
6006
      }
6007
 
6008
      protected generateNewEntityID_args getEmptyArgsInstance() {
6009
        return new generateNewEntityID_args();
6010
      }
6011
 
6012
      protected generateNewEntityID_result getResult(I iface, generateNewEntityID_args args) throws org.apache.thrift.TException {
6013
        generateNewEntityID_result result = new generateNewEntityID_result();
6014
        result.success = iface.generateNewEntityID();
6015
        result.setSuccessIsSet(true);
6016
        return result;
6017
      }
6018
    }
6019
 
6020
    private static class addCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCategory_args> {
6021
      public addCategory() {
6022
        super("addCategory");
6023
      }
6024
 
6025
      protected addCategory_args getEmptyArgsInstance() {
6026
        return new addCategory_args();
6027
      }
6028
 
6029
      protected addCategory_result getResult(I iface, addCategory_args args) throws org.apache.thrift.TException {
6030
        addCategory_result result = new addCategory_result();
6031
        result.success = iface.addCategory(args.category);
6032
        result.setSuccessIsSet(true);
6033
        return result;
6034
      }
6035
    }
6036
 
6037
    private static class getCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCategory_args> {
6038
      public getCategory() {
6039
        super("getCategory");
6040
      }
6041
 
6042
      protected getCategory_args getEmptyArgsInstance() {
6043
        return new getCategory_args();
6044
      }
6045
 
6046
      protected getCategory_result getResult(I iface, getCategory_args args) throws org.apache.thrift.TException {
6047
        getCategory_result result = new getCategory_result();
6048
        result.success = iface.getCategory(args.id);
6049
        return result;
6050
      }
6051
    }
6052
 
6053
    private static class getAllCategories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllCategories_args> {
6054
      public getAllCategories() {
6055
        super("getAllCategories");
6056
      }
6057
 
6058
      protected getAllCategories_args getEmptyArgsInstance() {
6059
        return new getAllCategories_args();
6060
      }
6061
 
6062
      protected getAllCategories_result getResult(I iface, getAllCategories_args args) throws org.apache.thrift.TException {
6063
        getAllCategories_result result = new getAllCategories_result();
6064
        result.success = iface.getAllCategories();
6065
        return result;
6066
      }
6067
    }
6068
 
6069
    private static class getAllSimilarItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSimilarItems_args> {
6070
      public getAllSimilarItems() {
6071
        super("getAllSimilarItems");
6072
      }
6073
 
6074
      protected getAllSimilarItems_args getEmptyArgsInstance() {
6075
        return new getAllSimilarItems_args();
6076
      }
6077
 
6078
      protected getAllSimilarItems_result getResult(I iface, getAllSimilarItems_args args) throws org.apache.thrift.TException {
6079
        getAllSimilarItems_result result = new getAllSimilarItems_result();
6080
        result.success = iface.getAllSimilarItems(args.itemId);
6081
        return result;
6082
      }
6083
    }
6084
 
6085
    private static class addSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSimilarItem_args> {
6086
      public addSimilarItem() {
6087
        super("addSimilarItem");
6088
      }
6089
 
6090
      protected addSimilarItem_args getEmptyArgsInstance() {
6091
        return new addSimilarItem_args();
6092
      }
6093
 
6094
      protected addSimilarItem_result getResult(I iface, addSimilarItem_args args) throws org.apache.thrift.TException {
6095
        addSimilarItem_result result = new addSimilarItem_result();
6096
        try {
6097
          result.success = iface.addSimilarItem(args.itemId, args.catalogItemId);
6098
        } catch (CatalogServiceException cex) {
6099
          result.cex = cex;
6100
        }
6101
        return result;
6102
      }
6103
    }
6104
 
6511 kshitij.so 6105
    private static class addTag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addTag_args> {
6106
      public addTag() {
6107
        super("addTag");
6108
      }
6109
 
6110
      protected addTag_args getEmptyArgsInstance() {
6111
        return new addTag_args();
6112
      }
6113
 
6114
      protected addTag_result getResult(I iface, addTag_args args) throws org.apache.thrift.TException {
6115
        addTag_result result = new addTag_result();
6116
        result.success = iface.addTag(args.displayName, args.itemId);
6117
        result.setSuccessIsSet(true);
6118
        return result;
6119
      }
6120
    }
6121
 
6122
    private static class deleteEntityTag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteEntityTag_args> {
6123
      public deleteEntityTag() {
6124
        super("deleteEntityTag");
6125
      }
6126
 
6127
      protected deleteEntityTag_args getEmptyArgsInstance() {
6128
        return new deleteEntityTag_args();
6129
      }
6130
 
6131
      protected deleteEntityTag_result getResult(I iface, deleteEntityTag_args args) throws org.apache.thrift.TException {
6132
        deleteEntityTag_result result = new deleteEntityTag_result();
6133
        result.success = iface.deleteEntityTag(args.displayName, args.itemId);
6134
        result.setSuccessIsSet(true);
6135
        return result;
6136
      }
6137
    }
6138
 
6139
    private static class deleteTag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteTag_args> {
6140
      public deleteTag() {
6141
        super("deleteTag");
6142
      }
6143
 
6144
      protected deleteTag_args getEmptyArgsInstance() {
6145
        return new deleteTag_args();
6146
      }
6147
 
6148
      protected deleteTag_result getResult(I iface, deleteTag_args args) throws org.apache.thrift.TException {
6149
        deleteTag_result result = new deleteTag_result();
6150
        result.success = iface.deleteTag(args.displayName);
6151
        result.setSuccessIsSet(true);
6152
        return result;
6153
      }
6154
    }
6155
 
6156
    private static class getAllTags<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllTags_args> {
6157
      public getAllTags() {
6158
        super("getAllTags");
6159
      }
6160
 
6161
      protected getAllTags_args getEmptyArgsInstance() {
6162
        return new getAllTags_args();
6163
      }
6164
 
6165
      protected getAllTags_result getResult(I iface, getAllTags_args args) throws org.apache.thrift.TException {
6166
        getAllTags_result result = new getAllTags_result();
6167
        result.success = iface.getAllTags();
6168
        return result;
6169
      }
6170
    }
6171
 
6172
    private static class getAllEntitiesByTagName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllEntitiesByTagName_args> {
6173
      public getAllEntitiesByTagName() {
6174
        super("getAllEntitiesByTagName");
6175
      }
6176
 
6177
      protected getAllEntitiesByTagName_args getEmptyArgsInstance() {
6178
        return new getAllEntitiesByTagName_args();
6179
      }
6180
 
6181
      protected getAllEntitiesByTagName_result getResult(I iface, getAllEntitiesByTagName_args args) throws org.apache.thrift.TException {
6182
        getAllEntitiesByTagName_result result = new getAllEntitiesByTagName_result();
6183
        result.success = iface.getAllEntitiesByTagName(args.displayName);
6184
        return result;
6185
      }
6186
    }
6187
 
6842 amit.gupta 6188
    private static class getAllEntityTags<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllEntityTags_args> {
6189
      public getAllEntityTags() {
6190
        super("getAllEntityTags");
6191
      }
6192
 
6193
      protected getAllEntityTags_args getEmptyArgsInstance() {
6194
        return new getAllEntityTags_args();
6195
      }
6196
 
6197
      protected getAllEntityTags_result getResult(I iface, getAllEntityTags_args args) throws org.apache.thrift.TException {
6198
        getAllEntityTags_result result = new getAllEntityTags_result();
6199
        result.success = iface.getAllEntityTags();
6200
        return result;
6201
      }
6202
    }
6203
 
6850 kshitij.so 6204
    private static class addBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBanner_args> {
6205
      public addBanner() {
6206
        super("addBanner");
6207
      }
6208
 
6209
      protected addBanner_args getEmptyArgsInstance() {
6210
        return new addBanner_args();
6211
      }
6212
 
6213
      protected addBanner_result getResult(I iface, addBanner_args args) throws org.apache.thrift.TException {
6214
        addBanner_result result = new addBanner_result();
6215
        result.success = iface.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap);
6216
        result.setSuccessIsSet(true);
6217
        return result;
6218
      }
6219
    }
6220
 
6221
    private static class getAllBanners<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBanners_args> {
6222
      public getAllBanners() {
6223
        super("getAllBanners");
6224
      }
6225
 
6226
      protected getAllBanners_args getEmptyArgsInstance() {
6227
        return new getAllBanners_args();
6228
      }
6229
 
6230
      protected getAllBanners_result getResult(I iface, getAllBanners_args args) throws org.apache.thrift.TException {
6231
        getAllBanners_result result = new getAllBanners_result();
6232
        result.success = iface.getAllBanners();
6233
        return result;
6234
      }
6235
    }
6236
 
6237
    private static class deleteBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBanner_args> {
6238
      public deleteBanner() {
6239
        super("deleteBanner");
6240
      }
6241
 
6242
      protected deleteBanner_args getEmptyArgsInstance() {
6243
        return new deleteBanner_args();
6244
      }
6245
 
6246
      protected deleteBanner_result getResult(I iface, deleteBanner_args args) throws org.apache.thrift.TException {
6247
        deleteBanner_result result = new deleteBanner_result();
6248
        result.success = iface.deleteBanner(args.bannerName);
6249
        result.setSuccessIsSet(true);
6250
        return result;
6251
      }
6252
    }
6253
 
6254
    private static class getBannerDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBannerDetails_args> {
6255
      public getBannerDetails() {
6256
        super("getBannerDetails");
6257
      }
6258
 
6259
      protected getBannerDetails_args getEmptyArgsInstance() {
6260
        return new getBannerDetails_args();
6261
      }
6262
 
6263
      protected getBannerDetails_result getResult(I iface, getBannerDetails_args args) throws org.apache.thrift.TException {
6264
        getBannerDetails_result result = new getBannerDetails_result();
6265
        result.success = iface.getBannerDetails(args.bannerName);
6266
        return result;
6267
      }
6268
    }
6269
 
6270
    private static class getActiveBanners<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActiveBanners_args> {
6271
      public getActiveBanners() {
6272
        super("getActiveBanners");
6273
      }
6274
 
6275
      protected getActiveBanners_args getEmptyArgsInstance() {
6276
        return new getActiveBanners_args();
6277
      }
6278
 
6279
      protected getActiveBanners_result getResult(I iface, getActiveBanners_args args) throws org.apache.thrift.TException {
6280
        getActiveBanners_result result = new getActiveBanners_result();
6281
        result.success = iface.getActiveBanners();
6282
        return result;
6283
      }
6284
    }
6285
 
6849 kshitij.so 6286
    private static class addBannerMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBannerMap_args> {
6287
      public addBannerMap() {
6288
        super("addBannerMap");
6289
      }
6290
 
6291
      protected addBannerMap_args getEmptyArgsInstance() {
6292
        return new addBannerMap_args();
6293
      }
6294
 
6295
      protected addBannerMap_result getResult(I iface, addBannerMap_args args) throws org.apache.thrift.TException {
6296
        addBannerMap_result result = new addBannerMap_result();
6297
        result.success = iface.addBannerMap(args.bannerName, args.mapLink, args.coordinates);
6298
        result.setSuccessIsSet(true);
6299
        return result;
6300
      }
6301
    }
6302
 
6303
    private static class deleteBannerMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBannerMap_args> {
6304
      public deleteBannerMap() {
6305
        super("deleteBannerMap");
6306
      }
6307
 
6308
      protected deleteBannerMap_args getEmptyArgsInstance() {
6309
        return new deleteBannerMap_args();
6310
      }
6311
 
6312
      protected deleteBannerMap_result getResult(I iface, deleteBannerMap_args args) throws org.apache.thrift.TException {
6313
        deleteBannerMap_result result = new deleteBannerMap_result();
6314
        result.success = iface.deleteBannerMap(args.bannerName);
6315
        result.setSuccessIsSet(true);
6316
        return result;
6317
      }
6318
    }
6319
 
6320
    private static class getBannerMapDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBannerMapDetails_args> {
6321
      public getBannerMapDetails() {
6322
        super("getBannerMapDetails");
6323
      }
6324
 
6325
      protected getBannerMapDetails_args getEmptyArgsInstance() {
6326
        return new getBannerMapDetails_args();
6327
      }
6328
 
6329
      protected getBannerMapDetails_result getResult(I iface, getBannerMapDetails_args args) throws org.apache.thrift.TException {
6330
        getBannerMapDetails_result result = new getBannerMapDetails_result();
6331
        result.success = iface.getBannerMapDetails(args.bannerName);
6332
        return result;
6333
      }
6334
    }
6335
 
5945 mandeep.dh 6336
    private static class deleteSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteSimilarItem_args> {
6337
      public deleteSimilarItem() {
6338
        super("deleteSimilarItem");
6339
      }
6340
 
6341
      protected deleteSimilarItem_args getEmptyArgsInstance() {
6342
        return new deleteSimilarItem_args();
6343
      }
6344
 
6345
      protected deleteSimilarItem_result getResult(I iface, deleteSimilarItem_args args) throws org.apache.thrift.TException {
6346
        deleteSimilarItem_result result = new deleteSimilarItem_result();
6347
        try {
6348
          result.success = iface.deleteSimilarItem(args.itemId, args.catalogItemId);
6349
          result.setSuccessIsSet(true);
6350
        } catch (CatalogServiceException cex) {
6351
          result.cex = cex;
6352
        }
6353
        return result;
6354
      }
6355
    }
6356
 
6357
    private static class checkSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkSimilarItem_args> {
6358
      public checkSimilarItem() {
6359
        super("checkSimilarItem");
6360
      }
6361
 
6362
      protected checkSimilarItem_args getEmptyArgsInstance() {
6363
        return new checkSimilarItem_args();
6364
      }
6365
 
6366
      protected checkSimilarItem_result getResult(I iface, checkSimilarItem_args args) throws org.apache.thrift.TException {
6367
        checkSimilarItem_result result = new checkSimilarItem_result();
6368
        result.success = iface.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color);
6369
        result.setSuccessIsSet(true);
6370
        return result;
6371
      }
6372
    }
6373
 
6374
    private static class validateRiskyStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateRiskyStatus_args> {
6375
      public validateRiskyStatus() {
6376
        super("validateRiskyStatus");
6377
      }
6378
 
6379
      protected validateRiskyStatus_args getEmptyArgsInstance() {
6380
        return new validateRiskyStatus_args();
6381
      }
6382
 
6383
      protected validateRiskyStatus_result getResult(I iface, validateRiskyStatus_args args) throws org.apache.thrift.TException {
6384
        validateRiskyStatus_result result = new validateRiskyStatus_result();
6385
        iface.validateRiskyStatus(args.itemId);
6386
        return result;
6387
      }
6388
    }
6389
 
6390
    private static class changeItemRiskyFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemRiskyFlag_args> {
6391
      public changeItemRiskyFlag() {
6392
        super("changeItemRiskyFlag");
6393
      }
6394
 
6395
      protected changeItemRiskyFlag_args getEmptyArgsInstance() {
6396
        return new changeItemRiskyFlag_args();
6397
      }
6398
 
6399
      protected changeItemRiskyFlag_result getResult(I iface, changeItemRiskyFlag_args args) throws org.apache.thrift.TException {
6400
        changeItemRiskyFlag_result result = new changeItemRiskyFlag_result();
6401
        iface.changeItemRiskyFlag(args.itemId, args.risky);
6402
        return result;
6403
      }
6404
    }
6405
 
6406
    private static class getItemsByRiskyFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByRiskyFlag_args> {
6407
      public getItemsByRiskyFlag() {
6408
        super("getItemsByRiskyFlag");
6409
      }
6410
 
6411
      protected getItemsByRiskyFlag_args getEmptyArgsInstance() {
6412
        return new getItemsByRiskyFlag_args();
6413
      }
6414
 
6415
      protected getItemsByRiskyFlag_result getResult(I iface, getItemsByRiskyFlag_args args) throws org.apache.thrift.TException {
6416
        getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();
6417
        result.success = iface.getItemsByRiskyFlag();
6418
        return result;
6419
      }
6420
    }
6421
 
6422
    private static class getItemsForMasterSheet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsForMasterSheet_args> {
6423
      public getItemsForMasterSheet() {
6424
        super("getItemsForMasterSheet");
6425
      }
6426
 
6427
      protected getItemsForMasterSheet_args getEmptyArgsInstance() {
6428
        return new getItemsForMasterSheet_args();
6429
      }
6430
 
6431
      protected getItemsForMasterSheet_result getResult(I iface, getItemsForMasterSheet_args args) throws org.apache.thrift.TException {
6432
        getItemsForMasterSheet_result result = new getItemsForMasterSheet_result();
6433
        result.success = iface.getItemsForMasterSheet(args.category, args.brand);
6434
        return result;
6435
      }
6436
    }
6437
 
6438
    private static class getSimilarItemsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSimilarItemsCatalogIds_args> {
6439
      public getSimilarItemsCatalogIds() {
6440
        super("getSimilarItemsCatalogIds");
6441
      }
6442
 
6443
      protected getSimilarItemsCatalogIds_args getEmptyArgsInstance() {
6444
        return new getSimilarItemsCatalogIds_args();
6445
      }
6446
 
6447
      protected getSimilarItemsCatalogIds_result getResult(I iface, getSimilarItemsCatalogIds_args args) throws org.apache.thrift.TException {
6448
        getSimilarItemsCatalogIds_result result = new getSimilarItemsCatalogIds_result();
6449
        result.success = iface.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId);
6450
        return result;
6451
      }
6452
    }
6453
 
6454
    private static class addProductNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addProductNotification_args> {
6455
      public addProductNotification() {
6456
        super("addProductNotification");
6457
      }
6458
 
6459
      protected addProductNotification_args getEmptyArgsInstance() {
6460
        return new addProductNotification_args();
6461
      }
6462
 
6463
      protected addProductNotification_result getResult(I iface, addProductNotification_args args) throws org.apache.thrift.TException {
6464
        addProductNotification_result result = new addProductNotification_result();
6465
        result.success = iface.addProductNotification(args.itemId, args.email);
6466
        result.setSuccessIsSet(true);
6467
        return result;
6468
      }
6469
    }
6470
 
6471
    private static class sendProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendProductNotifications_args> {
6472
      public sendProductNotifications() {
6473
        super("sendProductNotifications");
6474
      }
6475
 
6476
      protected sendProductNotifications_args getEmptyArgsInstance() {
6477
        return new sendProductNotifications_args();
6478
      }
6479
 
6480
      protected sendProductNotifications_result getResult(I iface, sendProductNotifications_args args) throws org.apache.thrift.TException {
6481
        sendProductNotifications_result result = new sendProductNotifications_result();
6482
        result.success = iface.sendProductNotifications();
6483
        result.setSuccessIsSet(true);
6484
        return result;
6485
      }
6486
    }
6487
 
6488
    private static class getAllBrandsByCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBrandsByCategory_args> {
6489
      public getAllBrandsByCategory() {
6490
        super("getAllBrandsByCategory");
6491
      }
6492
 
6493
      protected getAllBrandsByCategory_args getEmptyArgsInstance() {
6494
        return new getAllBrandsByCategory_args();
6495
      }
6496
 
6497
      protected getAllBrandsByCategory_result getResult(I iface, getAllBrandsByCategory_args args) throws org.apache.thrift.TException {
6498
        getAllBrandsByCategory_result result = new getAllBrandsByCategory_result();
6499
        result.success = iface.getAllBrandsByCategory(args.categoryId);
6500
        return result;
6501
      }
6502
    }
6503
 
6504
    private static class getAllBrands<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBrands_args> {
6505
      public getAllBrands() {
6506
        super("getAllBrands");
6507
      }
6508
 
6509
      protected getAllBrands_args getEmptyArgsInstance() {
6510
        return new getAllBrands_args();
6511
      }
6512
 
6513
      protected getAllBrands_result getResult(I iface, getAllBrands_args args) throws org.apache.thrift.TException {
6514
        getAllBrands_result result = new getAllBrands_result();
6515
        result.success = iface.getAllBrands();
6516
        return result;
6517
      }
6518
    }
6519
 
6520
    private static class getAllSources<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSources_args> {
6521
      public getAllSources() {
6522
        super("getAllSources");
6523
      }
6524
 
6525
      protected getAllSources_args getEmptyArgsInstance() {
6526
        return new getAllSources_args();
6527
      }
6528
 
6529
      protected getAllSources_result getResult(I iface, getAllSources_args args) throws org.apache.thrift.TException {
6530
        getAllSources_result result = new getAllSources_result();
6531
        result.success = iface.getAllSources();
6532
        return result;
6533
      }
6534
    }
6535
 
6536
    private static class getItemPricingBySource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricingBySource_args> {
6537
      public getItemPricingBySource() {
6538
        super("getItemPricingBySource");
6539
      }
6540
 
6541
      protected getItemPricingBySource_args getEmptyArgsInstance() {
6542
        return new getItemPricingBySource_args();
6543
      }
6544
 
6545
      protected getItemPricingBySource_result getResult(I iface, getItemPricingBySource_args args) throws org.apache.thrift.TException {
6546
        getItemPricingBySource_result result = new getItemPricingBySource_result();
6547
        try {
6548
          result.success = iface.getItemPricingBySource(args.itemId, args.sourceId);
6549
        } catch (CatalogServiceException cex) {
6550
          result.cex = cex;
6551
        }
6552
        return result;
6553
      }
6554
    }
6555
 
6556
    private static class addSourceItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSourceItemPricing_args> {
6557
      public addSourceItemPricing() {
6558
        super("addSourceItemPricing");
6559
      }
6560
 
6561
      protected addSourceItemPricing_args getEmptyArgsInstance() {
6562
        return new addSourceItemPricing_args();
6563
      }
6564
 
6565
      protected addSourceItemPricing_result getResult(I iface, addSourceItemPricing_args args) throws org.apache.thrift.TException {
6566
        addSourceItemPricing_result result = new addSourceItemPricing_result();
6567
        try {
6568
          iface.addSourceItemPricing(args.sourceItemPricing);
6569
        } catch (CatalogServiceException cex) {
6570
          result.cex = cex;
6571
        }
6572
        return result;
6573
      }
6574
    }
6575
 
6576
    private static class getAllSourcePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSourcePricing_args> {
6577
      public getAllSourcePricing() {
6578
        super("getAllSourcePricing");
6579
      }
6580
 
6581
      protected getAllSourcePricing_args getEmptyArgsInstance() {
6582
        return new getAllSourcePricing_args();
6583
      }
6584
 
6585
      protected getAllSourcePricing_result getResult(I iface, getAllSourcePricing_args args) throws org.apache.thrift.TException {
6586
        getAllSourcePricing_result result = new getAllSourcePricing_result();
6587
        try {
6588
          result.success = iface.getAllSourcePricing(args.itemId);
6589
        } catch (CatalogServiceException cex) {
6590
          result.cex = cex;
6591
        }
6592
        return result;
6593
      }
6594
    }
6595
 
6596
    private static class getItemForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemForSource_args> {
6597
      public getItemForSource() {
6598
        super("getItemForSource");
6599
      }
6600
 
6601
      protected getItemForSource_args getEmptyArgsInstance() {
6602
        return new getItemForSource_args();
6603
      }
6604
 
6605
      protected getItemForSource_result getResult(I iface, getItemForSource_args args) throws org.apache.thrift.TException {
6606
        getItemForSource_result result = new getItemForSource_result();
6607
        try {
6608
          result.success = iface.getItemForSource(args.item_id, args.sourceId);
6609
        } catch (CatalogServiceException cex) {
6610
          result.cex = cex;
6611
        }
6612
        return result;
6613
      }
6614
    }
6615
 
6616
    private static class searchItemsInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchItemsInRange_args> {
6617
      public searchItemsInRange() {
6618
        super("searchItemsInRange");
6619
      }
6620
 
6621
      protected searchItemsInRange_args getEmptyArgsInstance() {
6622
        return new searchItemsInRange_args();
6623
      }
6624
 
6625
      protected searchItemsInRange_result getResult(I iface, searchItemsInRange_args args) throws org.apache.thrift.TException {
6626
        searchItemsInRange_result result = new searchItemsInRange_result();
6627
        result.success = iface.searchItemsInRange(args.searchTerms, args.offset, args.limit);
6628
        return result;
6629
      }
6630
    }
6631
 
6632
    private static class getSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSearchResultCount_args> {
6633
      public getSearchResultCount() {
6634
        super("getSearchResultCount");
6635
      }
6636
 
6637
      protected getSearchResultCount_args getEmptyArgsInstance() {
6638
        return new getSearchResultCount_args();
6639
      }
6640
 
6641
      protected getSearchResultCount_result getResult(I iface, getSearchResultCount_args args) throws org.apache.thrift.TException {
6642
        getSearchResultCount_result result = new getSearchResultCount_result();
6643
        result.success = iface.getSearchResultCount(args.searchTerms);
6644
        result.setSuccessIsSet(true);
6645
        return result;
6646
      }
6647
    }
6648
 
6649
    private static class getProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotifications_args> {
6650
      public getProductNotifications() {
6651
        super("getProductNotifications");
6652
      }
6653
 
6654
      protected getProductNotifications_args getEmptyArgsInstance() {
6655
        return new getProductNotifications_args();
6656
      }
6657
 
6658
      protected getProductNotifications_result getResult(I iface, getProductNotifications_args args) throws org.apache.thrift.TException {
6659
        getProductNotifications_result result = new getProductNotifications_result();
6660
        result.success = iface.getProductNotifications(args.startDateTime);
6661
        return result;
6662
      }
6663
    }
6664
 
6665
    private static class getProductNotificationRequestCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotificationRequestCount_args> {
6666
      public getProductNotificationRequestCount() {
6667
        super("getProductNotificationRequestCount");
6668
      }
6669
 
6670
      protected getProductNotificationRequestCount_args getEmptyArgsInstance() {
6671
        return new getProductNotificationRequestCount_args();
6672
      }
6673
 
6674
      protected getProductNotificationRequestCount_result getResult(I iface, getProductNotificationRequestCount_args args) throws org.apache.thrift.TException {
6675
        getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();
6676
        result.success = iface.getProductNotificationRequestCount(args.startDateTime);
6677
        return result;
6678
      }
6679
    }
6680
 
6681
    private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {
6682
      public addAuthorizationLog() {
6683
        super("addAuthorizationLog");
6684
      }
6685
 
6686
      protected addAuthorizationLog_args getEmptyArgsInstance() {
6687
        return new addAuthorizationLog_args();
6688
      }
6689
 
6690
      protected addAuthorizationLog_result getResult(I iface, addAuthorizationLog_args args) throws org.apache.thrift.TException {
6691
        addAuthorizationLog_result result = new addAuthorizationLog_result();
6692
        try {
6693
          result.success = iface.addAuthorizationLog(args.itemId, args.username, args.reason);
6694
          result.setSuccessIsSet(true);
6695
        } catch (CatalogServiceException cex) {
6696
          result.cex = cex;
6697
        }
6698
        return result;
6699
      }
6700
    }
6701
 
6702
    private static class getClearanceSaleCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClearanceSaleCatalogIds_args> {
6703
      public getClearanceSaleCatalogIds() {
6704
        super("getClearanceSaleCatalogIds");
6705
      }
6706
 
6707
      protected getClearanceSaleCatalogIds_args getEmptyArgsInstance() {
6708
        return new getClearanceSaleCatalogIds_args();
6709
      }
6710
 
6711
      protected getClearanceSaleCatalogIds_result getResult(I iface, getClearanceSaleCatalogIds_args args) throws org.apache.thrift.TException {
6712
        getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();
6713
        try {
6714
          result.success = iface.getClearanceSaleCatalogIds();
6715
        } catch (CatalogServiceException cex) {
6716
          result.cex = cex;
6717
        }
6718
        return result;
6719
      }
6720
    }
6721
 
6722
    private static class addupdateVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addupdateVoucherForItem_args> {
6723
      public addupdateVoucherForItem() {
6724
        super("addupdateVoucherForItem");
6725
      }
6726
 
6727
      protected addupdateVoucherForItem_args getEmptyArgsInstance() {
6728
        return new addupdateVoucherForItem_args();
6729
      }
6730
 
6731
      protected addupdateVoucherForItem_result getResult(I iface, addupdateVoucherForItem_args args) throws org.apache.thrift.TException {
6732
        addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();
6733
        try {
6734
          result.success = iface.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount);
6735
          result.setSuccessIsSet(true);
6736
        } catch (CatalogServiceException cex) {
6737
          result.cex = cex;
6738
        }
6739
        return result;
6740
      }
6741
    }
6742
 
6743
    private static class deleteVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteVoucherForItem_args> {
6744
      public deleteVoucherForItem() {
6745
        super("deleteVoucherForItem");
6746
      }
6747
 
6748
      protected deleteVoucherForItem_args getEmptyArgsInstance() {
6749
        return new deleteVoucherForItem_args();
6750
      }
6751
 
6752
      protected deleteVoucherForItem_result getResult(I iface, deleteVoucherForItem_args args) throws org.apache.thrift.TException {
6753
        deleteVoucherForItem_result result = new deleteVoucherForItem_result();
6754
        try {
6755
          result.success = iface.deleteVoucherForItem(args.catalog_item_id, args.voucherType);
6756
          result.setSuccessIsSet(true);
6757
        } catch (CatalogServiceException cex) {
6758
          result.cex = cex;
6759
        }
6760
        return result;
6761
      }
6762
    }
6763
 
6764
    private static class getVoucherAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVoucherAmount_args> {
6765
      public getVoucherAmount() {
6766
        super("getVoucherAmount");
6767
      }
6768
 
6769
      protected getVoucherAmount_args getEmptyArgsInstance() {
6770
        return new getVoucherAmount_args();
6771
      }
6772
 
6773
      protected getVoucherAmount_result getResult(I iface, getVoucherAmount_args args) throws org.apache.thrift.TException {
6774
        getVoucherAmount_result result = new getVoucherAmount_result();
6775
        result.success = iface.getVoucherAmount(args.itemId, args.voucherType);
6776
        result.setSuccessIsSet(true);
6777
        return result;
6778
      }
6779
    }
6780
 
6781
    private static class getAllItemVouchers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemVouchers_args> {
6782
      public getAllItemVouchers() {
6783
        super("getAllItemVouchers");
6784
      }
6785
 
6786
      protected getAllItemVouchers_args getEmptyArgsInstance() {
6787
        return new getAllItemVouchers_args();
6788
      }
6789
 
6790
      protected getAllItemVouchers_result getResult(I iface, getAllItemVouchers_args args) throws org.apache.thrift.TException {
6791
        getAllItemVouchers_result result = new getAllItemVouchers_result();
6792
        result.success = iface.getAllItemVouchers(args.itemId);
6793
        return result;
6794
      }
6795
    }
6796
 
6797
    private static class isValidCatalogItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isValidCatalogItemId_args> {
6798
      public isValidCatalogItemId() {
6799
        super("isValidCatalogItemId");
6800
      }
6801
 
6802
      protected isValidCatalogItemId_args getEmptyArgsInstance() {
6803
        return new isValidCatalogItemId_args();
6804
      }
6805
 
6806
      protected isValidCatalogItemId_result getResult(I iface, isValidCatalogItemId_args args) throws org.apache.thrift.TException {
6807
        isValidCatalogItemId_result result = new isValidCatalogItemId_result();
6808
        result.success = iface.isValidCatalogItemId(args.catalog_item_id);
6809
        result.setSuccessIsSet(true);
6810
        return result;
6811
      }
6812
    }
6813
 
6039 amit.gupta 6814
    private static class getVatPercentageForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatPercentageForItem_args> {
6815
      public getVatPercentageForItem() {
6816
        super("getVatPercentageForItem");
6817
      }
6818
 
6819
      protected getVatPercentageForItem_args getEmptyArgsInstance() {
6820
        return new getVatPercentageForItem_args();
6821
      }
6822
 
6823
      protected getVatPercentageForItem_result getResult(I iface, getVatPercentageForItem_args args) throws org.apache.thrift.TException {
6824
        getVatPercentageForItem_result result = new getVatPercentageForItem_result();
6825
        result.success = iface.getVatPercentageForItem(args.itemId, args.price);
6826
        result.setSuccessIsSet(true);
6827
        return result;
6828
      }
6829
    }
6830
 
6831
    private static class getVatAmountForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatAmountForItem_args> {
6832
      public getVatAmountForItem() {
6833
        super("getVatAmountForItem");
6834
      }
6835
 
6836
      protected getVatAmountForItem_args getEmptyArgsInstance() {
6837
        return new getVatAmountForItem_args();
6838
      }
6839
 
6840
      protected getVatAmountForItem_result getResult(I iface, getVatAmountForItem_args args) throws org.apache.thrift.TException {
6841
        getVatAmountForItem_result result = new getVatAmountForItem_result();
6842
        result.success = iface.getVatAmountForItem(args.itemId, args.price);
6843
        result.setSuccessIsSet(true);
6844
        return result;
6845
      }
6846
    }
6847
 
6531 vikram.rag 6848
    private static class getAllIgnoredInventoryUpdateItemsList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryUpdateItemsList_args> {
6849
      public getAllIgnoredInventoryUpdateItemsList() {
6850
        super("getAllIgnoredInventoryUpdateItemsList");
6851
      }
6852
 
6853
      protected getAllIgnoredInventoryUpdateItemsList_args getEmptyArgsInstance() {
6854
        return new getAllIgnoredInventoryUpdateItemsList_args();
6855
      }
6856
 
6857
      protected getAllIgnoredInventoryUpdateItemsList_result getResult(I iface, getAllIgnoredInventoryUpdateItemsList_args args) throws org.apache.thrift.TException {
6858
        getAllIgnoredInventoryUpdateItemsList_result result = new getAllIgnoredInventoryUpdateItemsList_result();
6859
        result.success = iface.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit);
6860
        return result;
6861
      }
6862
    }
6863
 
6821 amar.kumar 6864
    private static class getAllAliveItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAliveItems_args> {
6865
      public getAllAliveItems() {
6866
        super("getAllAliveItems");
6867
      }
6868
 
6869
      protected getAllAliveItems_args getEmptyArgsInstance() {
6870
        return new getAllAliveItems_args();
6871
      }
6872
 
6873
      protected getAllAliveItems_result getResult(I iface, getAllAliveItems_args args) throws org.apache.thrift.TException {
6874
        getAllAliveItems_result result = new getAllAliveItems_result();
6875
        result.success = iface.getAllAliveItems();
6876
        return result;
6877
      }
6878
    }
6879
 
6805 anupam.sin 6880
    private static class getInsuranceAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInsuranceAmount_args> {
6881
      public getInsuranceAmount() {
6882
        super("getInsuranceAmount");
6883
      }
6884
 
6885
      protected getInsuranceAmount_args getEmptyArgsInstance() {
6886
        return new getInsuranceAmount_args();
6887
      }
6888
 
6889
      protected getInsuranceAmount_result getResult(I iface, getInsuranceAmount_args args) throws org.apache.thrift.TException {
6890
        getInsuranceAmount_result result = new getInsuranceAmount_result();
6891
        result.success = iface.getInsuranceAmount(args.itemId, args.insurerId, args.quantity);
6892
        result.setSuccessIsSet(true);
6893
        return result;
6894
      }
6895
    }
6896
 
6897
    private static class getInsurer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInsurer_args> {
6898
      public getInsurer() {
6899
        super("getInsurer");
6900
      }
6901
 
6902
      protected getInsurer_args getEmptyArgsInstance() {
6903
        return new getInsurer_args();
6904
      }
6905
 
6906
      protected getInsurer_result getResult(I iface, getInsurer_args args) throws org.apache.thrift.TException {
6907
        getInsurer_result result = new getInsurer_result();
6908
        result.success = iface.getInsurer(args.insurerId);
6909
        return result;
6910
      }
6911
    }
6912
 
6838 vikram.rag 6913
    private static class getAllInsurers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllInsurers_args> {
6914
      public getAllInsurers() {
6915
        super("getAllInsurers");
6916
      }
6917
 
6918
      protected getAllInsurers_args getEmptyArgsInstance() {
6919
        return new getAllInsurers_args();
6920
      }
6921
 
6922
      protected getAllInsurers_result getResult(I iface, getAllInsurers_args args) throws org.apache.thrift.TException {
6923
        getAllInsurers_result result = new getAllInsurers_result();
6924
        result.success = iface.getAllInsurers();
6925
        return result;
6926
      }
6927
    }
6928
 
5945 mandeep.dh 6929
  }
6930
 
6931
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
6932
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
6933
 
6934
    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);
6935
 
6936
    private Item item; // required
6937
 
6938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6939
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6940
      ITEM((short)1, "item");
6941
 
6942
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6943
 
6944
      static {
6945
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6946
          byName.put(field.getFieldName(), field);
6947
        }
6948
      }
6949
 
6950
      /**
6951
       * Find the _Fields constant that matches fieldId, or null if its not found.
6952
       */
6953
      public static _Fields findByThriftId(int fieldId) {
6954
        switch(fieldId) {
6955
          case 1: // ITEM
6956
            return ITEM;
6957
          default:
6958
            return null;
6959
        }
6960
      }
6961
 
6962
      /**
6963
       * Find the _Fields constant that matches fieldId, throwing an exception
6964
       * if it is not found.
6965
       */
6966
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6967
        _Fields fields = findByThriftId(fieldId);
6968
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6969
        return fields;
6970
      }
6971
 
6972
      /**
6973
       * Find the _Fields constant that matches name, or null if its not found.
6974
       */
6975
      public static _Fields findByName(String name) {
6976
        return byName.get(name);
6977
      }
6978
 
6979
      private final short _thriftId;
6980
      private final String _fieldName;
6981
 
6982
      _Fields(short thriftId, String fieldName) {
6983
        _thriftId = thriftId;
6984
        _fieldName = fieldName;
6985
      }
6986
 
6987
      public short getThriftFieldId() {
6988
        return _thriftId;
6989
      }
6990
 
6991
      public String getFieldName() {
6992
        return _fieldName;
6993
      }
6994
    }
6995
 
6996
    // isset id assignments
6997
 
6998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6999
    static {
7000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7001
      tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7002
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
7003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItem_args.class, metaDataMap);
7005
    }
7006
 
7007
    public addItem_args() {
7008
    }
7009
 
7010
    public addItem_args(
7011
      Item item)
7012
    {
7013
      this();
7014
      this.item = item;
7015
    }
7016
 
7017
    /**
7018
     * Performs a deep copy on <i>other</i>.
7019
     */
7020
    public addItem_args(addItem_args other) {
7021
      if (other.isSetItem()) {
7022
        this.item = new Item(other.item);
7023
      }
7024
    }
7025
 
7026
    public addItem_args deepCopy() {
7027
      return new addItem_args(this);
7028
    }
7029
 
7030
    @Override
7031
    public void clear() {
7032
      this.item = null;
7033
    }
7034
 
7035
    public Item getItem() {
7036
      return this.item;
7037
    }
7038
 
7039
    public void setItem(Item item) {
7040
      this.item = item;
7041
    }
7042
 
7043
    public void unsetItem() {
7044
      this.item = null;
7045
    }
7046
 
7047
    /** Returns true if field item is set (has been assigned a value) and false otherwise */
7048
    public boolean isSetItem() {
7049
      return this.item != null;
7050
    }
7051
 
7052
    public void setItemIsSet(boolean value) {
7053
      if (!value) {
7054
        this.item = null;
7055
      }
7056
    }
7057
 
7058
    public void setFieldValue(_Fields field, Object value) {
7059
      switch (field) {
7060
      case ITEM:
7061
        if (value == null) {
7062
          unsetItem();
7063
        } else {
7064
          setItem((Item)value);
7065
        }
7066
        break;
7067
 
7068
      }
7069
    }
7070
 
7071
    public Object getFieldValue(_Fields field) {
7072
      switch (field) {
7073
      case ITEM:
7074
        return getItem();
7075
 
7076
      }
7077
      throw new IllegalStateException();
7078
    }
7079
 
7080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7081
    public boolean isSet(_Fields field) {
7082
      if (field == null) {
7083
        throw new IllegalArgumentException();
7084
      }
7085
 
7086
      switch (field) {
7087
      case ITEM:
7088
        return isSetItem();
7089
      }
7090
      throw new IllegalStateException();
7091
    }
7092
 
7093
    @Override
7094
    public boolean equals(Object that) {
7095
      if (that == null)
7096
        return false;
7097
      if (that instanceof addItem_args)
7098
        return this.equals((addItem_args)that);
7099
      return false;
7100
    }
7101
 
7102
    public boolean equals(addItem_args that) {
7103
      if (that == null)
7104
        return false;
7105
 
7106
      boolean this_present_item = true && this.isSetItem();
7107
      boolean that_present_item = true && that.isSetItem();
7108
      if (this_present_item || that_present_item) {
7109
        if (!(this_present_item && that_present_item))
7110
          return false;
7111
        if (!this.item.equals(that.item))
7112
          return false;
7113
      }
7114
 
7115
      return true;
7116
    }
7117
 
7118
    @Override
7119
    public int hashCode() {
7120
      return 0;
7121
    }
7122
 
7123
    public int compareTo(addItem_args other) {
7124
      if (!getClass().equals(other.getClass())) {
7125
        return getClass().getName().compareTo(other.getClass().getName());
7126
      }
7127
 
7128
      int lastComparison = 0;
7129
      addItem_args typedOther = (addItem_args)other;
7130
 
7131
      lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
7132
      if (lastComparison != 0) {
7133
        return lastComparison;
7134
      }
7135
      if (isSetItem()) {
7136
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
7137
        if (lastComparison != 0) {
7138
          return lastComparison;
7139
        }
7140
      }
7141
      return 0;
7142
    }
7143
 
7144
    public _Fields fieldForId(int fieldId) {
7145
      return _Fields.findByThriftId(fieldId);
7146
    }
7147
 
7148
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7149
      org.apache.thrift.protocol.TField field;
7150
      iprot.readStructBegin();
7151
      while (true)
7152
      {
7153
        field = iprot.readFieldBegin();
7154
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7155
          break;
7156
        }
7157
        switch (field.id) {
7158
          case 1: // ITEM
7159
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7160
              this.item = new Item();
7161
              this.item.read(iprot);
7162
            } else { 
7163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7164
            }
7165
            break;
7166
          default:
7167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7168
        }
7169
        iprot.readFieldEnd();
7170
      }
7171
      iprot.readStructEnd();
7172
      validate();
7173
    }
7174
 
7175
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7176
      validate();
7177
 
7178
      oprot.writeStructBegin(STRUCT_DESC);
7179
      if (this.item != null) {
7180
        oprot.writeFieldBegin(ITEM_FIELD_DESC);
7181
        this.item.write(oprot);
7182
        oprot.writeFieldEnd();
7183
      }
7184
      oprot.writeFieldStop();
7185
      oprot.writeStructEnd();
7186
    }
7187
 
7188
    @Override
7189
    public String toString() {
7190
      StringBuilder sb = new StringBuilder("addItem_args(");
7191
      boolean first = true;
7192
 
7193
      sb.append("item:");
7194
      if (this.item == null) {
7195
        sb.append("null");
7196
      } else {
7197
        sb.append(this.item);
7198
      }
7199
      first = false;
7200
      sb.append(")");
7201
      return sb.toString();
7202
    }
7203
 
7204
    public void validate() throws org.apache.thrift.TException {
7205
      // check for required fields
7206
    }
7207
 
7208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7209
      try {
7210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7211
      } catch (org.apache.thrift.TException te) {
7212
        throw new java.io.IOException(te);
7213
      }
7214
    }
7215
 
7216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7217
      try {
7218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7219
      } catch (org.apache.thrift.TException te) {
7220
        throw new java.io.IOException(te);
7221
      }
7222
    }
7223
 
7224
  }
7225
 
7226
  public static class addItem_result implements org.apache.thrift.TBase<addItem_result, addItem_result._Fields>, java.io.Serializable, Cloneable   {
7227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_result");
7228
 
7229
    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);
7230
    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);
7231
 
7232
    private long success; // required
7233
    private CatalogServiceException cex; // required
7234
 
7235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7237
      SUCCESS((short)0, "success"),
7238
      CEX((short)1, "cex");
7239
 
7240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7241
 
7242
      static {
7243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7244
          byName.put(field.getFieldName(), field);
7245
        }
7246
      }
7247
 
7248
      /**
7249
       * Find the _Fields constant that matches fieldId, or null if its not found.
7250
       */
7251
      public static _Fields findByThriftId(int fieldId) {
7252
        switch(fieldId) {
7253
          case 0: // SUCCESS
7254
            return SUCCESS;
7255
          case 1: // CEX
7256
            return CEX;
7257
          default:
7258
            return null;
7259
        }
7260
      }
7261
 
7262
      /**
7263
       * Find the _Fields constant that matches fieldId, throwing an exception
7264
       * if it is not found.
7265
       */
7266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7267
        _Fields fields = findByThriftId(fieldId);
7268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7269
        return fields;
7270
      }
7271
 
7272
      /**
7273
       * Find the _Fields constant that matches name, or null if its not found.
7274
       */
7275
      public static _Fields findByName(String name) {
7276
        return byName.get(name);
7277
      }
7278
 
7279
      private final short _thriftId;
7280
      private final String _fieldName;
7281
 
7282
      _Fields(short thriftId, String fieldName) {
7283
        _thriftId = thriftId;
7284
        _fieldName = fieldName;
7285
      }
7286
 
7287
      public short getThriftFieldId() {
7288
        return _thriftId;
7289
      }
7290
 
7291
      public String getFieldName() {
7292
        return _fieldName;
7293
      }
7294
    }
7295
 
7296
    // isset id assignments
7297
    private static final int __SUCCESS_ISSET_ID = 0;
7298
    private BitSet __isset_bit_vector = new BitSet(1);
7299
 
7300
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7301
    static {
7302
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7303
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7305
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7307
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7308
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItem_result.class, metaDataMap);
7309
    }
7310
 
7311
    public addItem_result() {
7312
    }
7313
 
7314
    public addItem_result(
7315
      long success,
7316
      CatalogServiceException cex)
7317
    {
7318
      this();
7319
      this.success = success;
7320
      setSuccessIsSet(true);
7321
      this.cex = cex;
7322
    }
7323
 
7324
    /**
7325
     * Performs a deep copy on <i>other</i>.
7326
     */
7327
    public addItem_result(addItem_result other) {
7328
      __isset_bit_vector.clear();
7329
      __isset_bit_vector.or(other.__isset_bit_vector);
7330
      this.success = other.success;
7331
      if (other.isSetCex()) {
7332
        this.cex = new CatalogServiceException(other.cex);
7333
      }
7334
    }
7335
 
7336
    public addItem_result deepCopy() {
7337
      return new addItem_result(this);
7338
    }
7339
 
7340
    @Override
7341
    public void clear() {
7342
      setSuccessIsSet(false);
7343
      this.success = 0;
7344
      this.cex = null;
7345
    }
7346
 
7347
    public long getSuccess() {
7348
      return this.success;
7349
    }
7350
 
7351
    public void setSuccess(long success) {
7352
      this.success = success;
7353
      setSuccessIsSet(true);
7354
    }
7355
 
7356
    public void unsetSuccess() {
7357
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7358
    }
7359
 
7360
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7361
    public boolean isSetSuccess() {
7362
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7363
    }
7364
 
7365
    public void setSuccessIsSet(boolean value) {
7366
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7367
    }
7368
 
7369
    public CatalogServiceException getCex() {
7370
      return this.cex;
7371
    }
7372
 
7373
    public void setCex(CatalogServiceException cex) {
7374
      this.cex = cex;
7375
    }
7376
 
7377
    public void unsetCex() {
7378
      this.cex = null;
7379
    }
7380
 
7381
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7382
    public boolean isSetCex() {
7383
      return this.cex != null;
7384
    }
7385
 
7386
    public void setCexIsSet(boolean value) {
7387
      if (!value) {
7388
        this.cex = null;
7389
      }
7390
    }
7391
 
7392
    public void setFieldValue(_Fields field, Object value) {
7393
      switch (field) {
7394
      case SUCCESS:
7395
        if (value == null) {
7396
          unsetSuccess();
7397
        } else {
7398
          setSuccess((Long)value);
7399
        }
7400
        break;
7401
 
7402
      case CEX:
7403
        if (value == null) {
7404
          unsetCex();
7405
        } else {
7406
          setCex((CatalogServiceException)value);
7407
        }
7408
        break;
7409
 
7410
      }
7411
    }
7412
 
7413
    public Object getFieldValue(_Fields field) {
7414
      switch (field) {
7415
      case SUCCESS:
7416
        return Long.valueOf(getSuccess());
7417
 
7418
      case CEX:
7419
        return getCex();
7420
 
7421
      }
7422
      throw new IllegalStateException();
7423
    }
7424
 
7425
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7426
    public boolean isSet(_Fields field) {
7427
      if (field == null) {
7428
        throw new IllegalArgumentException();
7429
      }
7430
 
7431
      switch (field) {
7432
      case SUCCESS:
7433
        return isSetSuccess();
7434
      case CEX:
7435
        return isSetCex();
7436
      }
7437
      throw new IllegalStateException();
7438
    }
7439
 
7440
    @Override
7441
    public boolean equals(Object that) {
7442
      if (that == null)
7443
        return false;
7444
      if (that instanceof addItem_result)
7445
        return this.equals((addItem_result)that);
7446
      return false;
7447
    }
7448
 
7449
    public boolean equals(addItem_result that) {
7450
      if (that == null)
7451
        return false;
7452
 
7453
      boolean this_present_success = true;
7454
      boolean that_present_success = true;
7455
      if (this_present_success || that_present_success) {
7456
        if (!(this_present_success && that_present_success))
7457
          return false;
7458
        if (this.success != that.success)
7459
          return false;
7460
      }
7461
 
7462
      boolean this_present_cex = true && this.isSetCex();
7463
      boolean that_present_cex = true && that.isSetCex();
7464
      if (this_present_cex || that_present_cex) {
7465
        if (!(this_present_cex && that_present_cex))
7466
          return false;
7467
        if (!this.cex.equals(that.cex))
7468
          return false;
7469
      }
7470
 
7471
      return true;
7472
    }
7473
 
7474
    @Override
7475
    public int hashCode() {
7476
      return 0;
7477
    }
7478
 
7479
    public int compareTo(addItem_result other) {
7480
      if (!getClass().equals(other.getClass())) {
7481
        return getClass().getName().compareTo(other.getClass().getName());
7482
      }
7483
 
7484
      int lastComparison = 0;
7485
      addItem_result typedOther = (addItem_result)other;
7486
 
7487
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7488
      if (lastComparison != 0) {
7489
        return lastComparison;
7490
      }
7491
      if (isSetSuccess()) {
7492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7493
        if (lastComparison != 0) {
7494
          return lastComparison;
7495
        }
7496
      }
7497
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7498
      if (lastComparison != 0) {
7499
        return lastComparison;
7500
      }
7501
      if (isSetCex()) {
7502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7503
        if (lastComparison != 0) {
7504
          return lastComparison;
7505
        }
7506
      }
7507
      return 0;
7508
    }
7509
 
7510
    public _Fields fieldForId(int fieldId) {
7511
      return _Fields.findByThriftId(fieldId);
7512
    }
7513
 
7514
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7515
      org.apache.thrift.protocol.TField field;
7516
      iprot.readStructBegin();
7517
      while (true)
7518
      {
7519
        field = iprot.readFieldBegin();
7520
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7521
          break;
7522
        }
7523
        switch (field.id) {
7524
          case 0: // SUCCESS
7525
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7526
              this.success = iprot.readI64();
7527
              setSuccessIsSet(true);
7528
            } else { 
7529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7530
            }
7531
            break;
7532
          case 1: // CEX
7533
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7534
              this.cex = new CatalogServiceException();
7535
              this.cex.read(iprot);
7536
            } else { 
7537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7538
            }
7539
            break;
7540
          default:
7541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7542
        }
7543
        iprot.readFieldEnd();
7544
      }
7545
      iprot.readStructEnd();
7546
      validate();
7547
    }
7548
 
7549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7550
      oprot.writeStructBegin(STRUCT_DESC);
7551
 
7552
      if (this.isSetSuccess()) {
7553
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7554
        oprot.writeI64(this.success);
7555
        oprot.writeFieldEnd();
7556
      } else if (this.isSetCex()) {
7557
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7558
        this.cex.write(oprot);
7559
        oprot.writeFieldEnd();
7560
      }
7561
      oprot.writeFieldStop();
7562
      oprot.writeStructEnd();
7563
    }
7564
 
7565
    @Override
7566
    public String toString() {
7567
      StringBuilder sb = new StringBuilder("addItem_result(");
7568
      boolean first = true;
7569
 
7570
      sb.append("success:");
7571
      sb.append(this.success);
7572
      first = false;
7573
      if (!first) sb.append(", ");
7574
      sb.append("cex:");
7575
      if (this.cex == null) {
7576
        sb.append("null");
7577
      } else {
7578
        sb.append(this.cex);
7579
      }
7580
      first = false;
7581
      sb.append(")");
7582
      return sb.toString();
7583
    }
7584
 
7585
    public void validate() throws org.apache.thrift.TException {
7586
      // check for required fields
7587
    }
7588
 
7589
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7590
      try {
7591
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7592
      } catch (org.apache.thrift.TException te) {
7593
        throw new java.io.IOException(te);
7594
      }
7595
    }
7596
 
7597
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7598
      try {
7599
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7600
      } catch (org.apache.thrift.TException te) {
7601
        throw new java.io.IOException(te);
7602
      }
7603
    }
7604
 
7605
  }
7606
 
7607
  public static class updateItem_args implements org.apache.thrift.TBase<updateItem_args, updateItem_args._Fields>, java.io.Serializable, Cloneable   {
7608
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItem_args");
7609
 
7610
    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);
7611
 
7612
    private Item item; // required
7613
 
7614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7616
      ITEM((short)1, "item");
7617
 
7618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7619
 
7620
      static {
7621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7622
          byName.put(field.getFieldName(), field);
7623
        }
7624
      }
7625
 
7626
      /**
7627
       * Find the _Fields constant that matches fieldId, or null if its not found.
7628
       */
7629
      public static _Fields findByThriftId(int fieldId) {
7630
        switch(fieldId) {
7631
          case 1: // ITEM
7632
            return ITEM;
7633
          default:
7634
            return null;
7635
        }
7636
      }
7637
 
7638
      /**
7639
       * Find the _Fields constant that matches fieldId, throwing an exception
7640
       * if it is not found.
7641
       */
7642
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7643
        _Fields fields = findByThriftId(fieldId);
7644
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7645
        return fields;
7646
      }
7647
 
7648
      /**
7649
       * Find the _Fields constant that matches name, or null if its not found.
7650
       */
7651
      public static _Fields findByName(String name) {
7652
        return byName.get(name);
7653
      }
7654
 
7655
      private final short _thriftId;
7656
      private final String _fieldName;
7657
 
7658
      _Fields(short thriftId, String fieldName) {
7659
        _thriftId = thriftId;
7660
        _fieldName = fieldName;
7661
      }
7662
 
7663
      public short getThriftFieldId() {
7664
        return _thriftId;
7665
      }
7666
 
7667
      public String getFieldName() {
7668
        return _fieldName;
7669
      }
7670
    }
7671
 
7672
    // isset id assignments
7673
 
7674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7675
    static {
7676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7677
      tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7678
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
7679
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7680
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItem_args.class, metaDataMap);
7681
    }
7682
 
7683
    public updateItem_args() {
7684
    }
7685
 
7686
    public updateItem_args(
7687
      Item item)
7688
    {
7689
      this();
7690
      this.item = item;
7691
    }
7692
 
7693
    /**
7694
     * Performs a deep copy on <i>other</i>.
7695
     */
7696
    public updateItem_args(updateItem_args other) {
7697
      if (other.isSetItem()) {
7698
        this.item = new Item(other.item);
7699
      }
7700
    }
7701
 
7702
    public updateItem_args deepCopy() {
7703
      return new updateItem_args(this);
7704
    }
7705
 
7706
    @Override
7707
    public void clear() {
7708
      this.item = null;
7709
    }
7710
 
7711
    public Item getItem() {
7712
      return this.item;
7713
    }
7714
 
7715
    public void setItem(Item item) {
7716
      this.item = item;
7717
    }
7718
 
7719
    public void unsetItem() {
7720
      this.item = null;
7721
    }
7722
 
7723
    /** Returns true if field item is set (has been assigned a value) and false otherwise */
7724
    public boolean isSetItem() {
7725
      return this.item != null;
7726
    }
7727
 
7728
    public void setItemIsSet(boolean value) {
7729
      if (!value) {
7730
        this.item = null;
7731
      }
7732
    }
7733
 
7734
    public void setFieldValue(_Fields field, Object value) {
7735
      switch (field) {
7736
      case ITEM:
7737
        if (value == null) {
7738
          unsetItem();
7739
        } else {
7740
          setItem((Item)value);
7741
        }
7742
        break;
7743
 
7744
      }
7745
    }
7746
 
7747
    public Object getFieldValue(_Fields field) {
7748
      switch (field) {
7749
      case ITEM:
7750
        return getItem();
7751
 
7752
      }
7753
      throw new IllegalStateException();
7754
    }
7755
 
7756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7757
    public boolean isSet(_Fields field) {
7758
      if (field == null) {
7759
        throw new IllegalArgumentException();
7760
      }
7761
 
7762
      switch (field) {
7763
      case ITEM:
7764
        return isSetItem();
7765
      }
7766
      throw new IllegalStateException();
7767
    }
7768
 
7769
    @Override
7770
    public boolean equals(Object that) {
7771
      if (that == null)
7772
        return false;
7773
      if (that instanceof updateItem_args)
7774
        return this.equals((updateItem_args)that);
7775
      return false;
7776
    }
7777
 
7778
    public boolean equals(updateItem_args that) {
7779
      if (that == null)
7780
        return false;
7781
 
7782
      boolean this_present_item = true && this.isSetItem();
7783
      boolean that_present_item = true && that.isSetItem();
7784
      if (this_present_item || that_present_item) {
7785
        if (!(this_present_item && that_present_item))
7786
          return false;
7787
        if (!this.item.equals(that.item))
7788
          return false;
7789
      }
7790
 
7791
      return true;
7792
    }
7793
 
7794
    @Override
7795
    public int hashCode() {
7796
      return 0;
7797
    }
7798
 
7799
    public int compareTo(updateItem_args other) {
7800
      if (!getClass().equals(other.getClass())) {
7801
        return getClass().getName().compareTo(other.getClass().getName());
7802
      }
7803
 
7804
      int lastComparison = 0;
7805
      updateItem_args typedOther = (updateItem_args)other;
7806
 
7807
      lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
7808
      if (lastComparison != 0) {
7809
        return lastComparison;
7810
      }
7811
      if (isSetItem()) {
7812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
7813
        if (lastComparison != 0) {
7814
          return lastComparison;
7815
        }
7816
      }
7817
      return 0;
7818
    }
7819
 
7820
    public _Fields fieldForId(int fieldId) {
7821
      return _Fields.findByThriftId(fieldId);
7822
    }
7823
 
7824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7825
      org.apache.thrift.protocol.TField field;
7826
      iprot.readStructBegin();
7827
      while (true)
7828
      {
7829
        field = iprot.readFieldBegin();
7830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7831
          break;
7832
        }
7833
        switch (field.id) {
7834
          case 1: // ITEM
7835
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7836
              this.item = new Item();
7837
              this.item.read(iprot);
7838
            } else { 
7839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7840
            }
7841
            break;
7842
          default:
7843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7844
        }
7845
        iprot.readFieldEnd();
7846
      }
7847
      iprot.readStructEnd();
7848
      validate();
7849
    }
7850
 
7851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7852
      validate();
7853
 
7854
      oprot.writeStructBegin(STRUCT_DESC);
7855
      if (this.item != null) {
7856
        oprot.writeFieldBegin(ITEM_FIELD_DESC);
7857
        this.item.write(oprot);
7858
        oprot.writeFieldEnd();
7859
      }
7860
      oprot.writeFieldStop();
7861
      oprot.writeStructEnd();
7862
    }
7863
 
7864
    @Override
7865
    public String toString() {
7866
      StringBuilder sb = new StringBuilder("updateItem_args(");
7867
      boolean first = true;
7868
 
7869
      sb.append("item:");
7870
      if (this.item == null) {
7871
        sb.append("null");
7872
      } else {
7873
        sb.append(this.item);
7874
      }
7875
      first = false;
7876
      sb.append(")");
7877
      return sb.toString();
7878
    }
7879
 
7880
    public void validate() throws org.apache.thrift.TException {
7881
      // check for required fields
7882
    }
7883
 
7884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7885
      try {
7886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7887
      } catch (org.apache.thrift.TException te) {
7888
        throw new java.io.IOException(te);
7889
      }
7890
    }
7891
 
7892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7893
      try {
7894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7895
      } catch (org.apache.thrift.TException te) {
7896
        throw new java.io.IOException(te);
7897
      }
7898
    }
7899
 
7900
  }
7901
 
7902
  public static class updateItem_result implements org.apache.thrift.TBase<updateItem_result, updateItem_result._Fields>, java.io.Serializable, Cloneable   {
7903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItem_result");
7904
 
7905
    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);
7906
    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);
7907
 
7908
    private long success; // required
7909
    private CatalogServiceException cex; // required
7910
 
7911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7913
      SUCCESS((short)0, "success"),
7914
      CEX((short)1, "cex");
7915
 
7916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7917
 
7918
      static {
7919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7920
          byName.put(field.getFieldName(), field);
7921
        }
7922
      }
7923
 
7924
      /**
7925
       * Find the _Fields constant that matches fieldId, or null if its not found.
7926
       */
7927
      public static _Fields findByThriftId(int fieldId) {
7928
        switch(fieldId) {
7929
          case 0: // SUCCESS
7930
            return SUCCESS;
7931
          case 1: // CEX
7932
            return CEX;
7933
          default:
7934
            return null;
7935
        }
7936
      }
7937
 
7938
      /**
7939
       * Find the _Fields constant that matches fieldId, throwing an exception
7940
       * if it is not found.
7941
       */
7942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7943
        _Fields fields = findByThriftId(fieldId);
7944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7945
        return fields;
7946
      }
7947
 
7948
      /**
7949
       * Find the _Fields constant that matches name, or null if its not found.
7950
       */
7951
      public static _Fields findByName(String name) {
7952
        return byName.get(name);
7953
      }
7954
 
7955
      private final short _thriftId;
7956
      private final String _fieldName;
7957
 
7958
      _Fields(short thriftId, String fieldName) {
7959
        _thriftId = thriftId;
7960
        _fieldName = fieldName;
7961
      }
7962
 
7963
      public short getThriftFieldId() {
7964
        return _thriftId;
7965
      }
7966
 
7967
      public String getFieldName() {
7968
        return _fieldName;
7969
      }
7970
    }
7971
 
7972
    // isset id assignments
7973
    private static final int __SUCCESS_ISSET_ID = 0;
7974
    private BitSet __isset_bit_vector = new BitSet(1);
7975
 
7976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7977
    static {
7978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7979
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7981
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItem_result.class, metaDataMap);
7985
    }
7986
 
7987
    public updateItem_result() {
7988
    }
7989
 
7990
    public updateItem_result(
7991
      long success,
7992
      CatalogServiceException cex)
7993
    {
7994
      this();
7995
      this.success = success;
7996
      setSuccessIsSet(true);
7997
      this.cex = cex;
7998
    }
7999
 
8000
    /**
8001
     * Performs a deep copy on <i>other</i>.
8002
     */
8003
    public updateItem_result(updateItem_result other) {
8004
      __isset_bit_vector.clear();
8005
      __isset_bit_vector.or(other.__isset_bit_vector);
8006
      this.success = other.success;
8007
      if (other.isSetCex()) {
8008
        this.cex = new CatalogServiceException(other.cex);
8009
      }
8010
    }
8011
 
8012
    public updateItem_result deepCopy() {
8013
      return new updateItem_result(this);
8014
    }
8015
 
8016
    @Override
8017
    public void clear() {
8018
      setSuccessIsSet(false);
8019
      this.success = 0;
8020
      this.cex = null;
8021
    }
8022
 
8023
    public long getSuccess() {
8024
      return this.success;
8025
    }
8026
 
8027
    public void setSuccess(long success) {
8028
      this.success = success;
8029
      setSuccessIsSet(true);
8030
    }
8031
 
8032
    public void unsetSuccess() {
8033
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8034
    }
8035
 
8036
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8037
    public boolean isSetSuccess() {
8038
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8039
    }
8040
 
8041
    public void setSuccessIsSet(boolean value) {
8042
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8043
    }
8044
 
8045
    public CatalogServiceException getCex() {
8046
      return this.cex;
8047
    }
8048
 
8049
    public void setCex(CatalogServiceException cex) {
8050
      this.cex = cex;
8051
    }
8052
 
8053
    public void unsetCex() {
8054
      this.cex = null;
8055
    }
8056
 
8057
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8058
    public boolean isSetCex() {
8059
      return this.cex != null;
8060
    }
8061
 
8062
    public void setCexIsSet(boolean value) {
8063
      if (!value) {
8064
        this.cex = null;
8065
      }
8066
    }
8067
 
8068
    public void setFieldValue(_Fields field, Object value) {
8069
      switch (field) {
8070
      case SUCCESS:
8071
        if (value == null) {
8072
          unsetSuccess();
8073
        } else {
8074
          setSuccess((Long)value);
8075
        }
8076
        break;
8077
 
8078
      case CEX:
8079
        if (value == null) {
8080
          unsetCex();
8081
        } else {
8082
          setCex((CatalogServiceException)value);
8083
        }
8084
        break;
8085
 
8086
      }
8087
    }
8088
 
8089
    public Object getFieldValue(_Fields field) {
8090
      switch (field) {
8091
      case SUCCESS:
8092
        return Long.valueOf(getSuccess());
8093
 
8094
      case CEX:
8095
        return getCex();
8096
 
8097
      }
8098
      throw new IllegalStateException();
8099
    }
8100
 
8101
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8102
    public boolean isSet(_Fields field) {
8103
      if (field == null) {
8104
        throw new IllegalArgumentException();
8105
      }
8106
 
8107
      switch (field) {
8108
      case SUCCESS:
8109
        return isSetSuccess();
8110
      case CEX:
8111
        return isSetCex();
8112
      }
8113
      throw new IllegalStateException();
8114
    }
8115
 
8116
    @Override
8117
    public boolean equals(Object that) {
8118
      if (that == null)
8119
        return false;
8120
      if (that instanceof updateItem_result)
8121
        return this.equals((updateItem_result)that);
8122
      return false;
8123
    }
8124
 
8125
    public boolean equals(updateItem_result that) {
8126
      if (that == null)
8127
        return false;
8128
 
8129
      boolean this_present_success = true;
8130
      boolean that_present_success = true;
8131
      if (this_present_success || that_present_success) {
8132
        if (!(this_present_success && that_present_success))
8133
          return false;
8134
        if (this.success != that.success)
8135
          return false;
8136
      }
8137
 
8138
      boolean this_present_cex = true && this.isSetCex();
8139
      boolean that_present_cex = true && that.isSetCex();
8140
      if (this_present_cex || that_present_cex) {
8141
        if (!(this_present_cex && that_present_cex))
8142
          return false;
8143
        if (!this.cex.equals(that.cex))
8144
          return false;
8145
      }
8146
 
8147
      return true;
8148
    }
8149
 
8150
    @Override
8151
    public int hashCode() {
8152
      return 0;
8153
    }
8154
 
8155
    public int compareTo(updateItem_result other) {
8156
      if (!getClass().equals(other.getClass())) {
8157
        return getClass().getName().compareTo(other.getClass().getName());
8158
      }
8159
 
8160
      int lastComparison = 0;
8161
      updateItem_result typedOther = (updateItem_result)other;
8162
 
8163
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8164
      if (lastComparison != 0) {
8165
        return lastComparison;
8166
      }
8167
      if (isSetSuccess()) {
8168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8169
        if (lastComparison != 0) {
8170
          return lastComparison;
8171
        }
8172
      }
8173
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8174
      if (lastComparison != 0) {
8175
        return lastComparison;
8176
      }
8177
      if (isSetCex()) {
8178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8179
        if (lastComparison != 0) {
8180
          return lastComparison;
8181
        }
8182
      }
8183
      return 0;
8184
    }
8185
 
8186
    public _Fields fieldForId(int fieldId) {
8187
      return _Fields.findByThriftId(fieldId);
8188
    }
8189
 
8190
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8191
      org.apache.thrift.protocol.TField field;
8192
      iprot.readStructBegin();
8193
      while (true)
8194
      {
8195
        field = iprot.readFieldBegin();
8196
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8197
          break;
8198
        }
8199
        switch (field.id) {
8200
          case 0: // SUCCESS
8201
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8202
              this.success = iprot.readI64();
8203
              setSuccessIsSet(true);
8204
            } else { 
8205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8206
            }
8207
            break;
8208
          case 1: // CEX
8209
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8210
              this.cex = new CatalogServiceException();
8211
              this.cex.read(iprot);
8212
            } else { 
8213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8214
            }
8215
            break;
8216
          default:
8217
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8218
        }
8219
        iprot.readFieldEnd();
8220
      }
8221
      iprot.readStructEnd();
8222
      validate();
8223
    }
8224
 
8225
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8226
      oprot.writeStructBegin(STRUCT_DESC);
8227
 
8228
      if (this.isSetSuccess()) {
8229
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8230
        oprot.writeI64(this.success);
8231
        oprot.writeFieldEnd();
8232
      } else if (this.isSetCex()) {
8233
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8234
        this.cex.write(oprot);
8235
        oprot.writeFieldEnd();
8236
      }
8237
      oprot.writeFieldStop();
8238
      oprot.writeStructEnd();
8239
    }
8240
 
8241
    @Override
8242
    public String toString() {
8243
      StringBuilder sb = new StringBuilder("updateItem_result(");
8244
      boolean first = true;
8245
 
8246
      sb.append("success:");
8247
      sb.append(this.success);
8248
      first = false;
8249
      if (!first) sb.append(", ");
8250
      sb.append("cex:");
8251
      if (this.cex == null) {
8252
        sb.append("null");
8253
      } else {
8254
        sb.append(this.cex);
8255
      }
8256
      first = false;
8257
      sb.append(")");
8258
      return sb.toString();
8259
    }
8260
 
8261
    public void validate() throws org.apache.thrift.TException {
8262
      // check for required fields
8263
    }
8264
 
8265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8266
      try {
8267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8268
      } catch (org.apache.thrift.TException te) {
8269
        throw new java.io.IOException(te);
8270
      }
8271
    }
8272
 
8273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8274
      try {
8275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8276
      } catch (org.apache.thrift.TException te) {
8277
        throw new java.io.IOException(te);
8278
      }
8279
    }
8280
 
8281
  }
8282
 
8283
  public static class isActive_args implements org.apache.thrift.TBase<isActive_args, isActive_args._Fields>, java.io.Serializable, Cloneable   {
8284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_args");
8285
 
8286
    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);
8287
 
8288
    private long itemId; // required
8289
 
8290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8292
      ITEM_ID((short)1, "itemId");
8293
 
8294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8295
 
8296
      static {
8297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8298
          byName.put(field.getFieldName(), field);
8299
        }
8300
      }
8301
 
8302
      /**
8303
       * Find the _Fields constant that matches fieldId, or null if its not found.
8304
       */
8305
      public static _Fields findByThriftId(int fieldId) {
8306
        switch(fieldId) {
8307
          case 1: // ITEM_ID
8308
            return ITEM_ID;
8309
          default:
8310
            return null;
8311
        }
8312
      }
8313
 
8314
      /**
8315
       * Find the _Fields constant that matches fieldId, throwing an exception
8316
       * if it is not found.
8317
       */
8318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8319
        _Fields fields = findByThriftId(fieldId);
8320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8321
        return fields;
8322
      }
8323
 
8324
      /**
8325
       * Find the _Fields constant that matches name, or null if its not found.
8326
       */
8327
      public static _Fields findByName(String name) {
8328
        return byName.get(name);
8329
      }
8330
 
8331
      private final short _thriftId;
8332
      private final String _fieldName;
8333
 
8334
      _Fields(short thriftId, String fieldName) {
8335
        _thriftId = thriftId;
8336
        _fieldName = fieldName;
8337
      }
8338
 
8339
      public short getThriftFieldId() {
8340
        return _thriftId;
8341
      }
8342
 
8343
      public String getFieldName() {
8344
        return _fieldName;
8345
      }
8346
    }
8347
 
8348
    // isset id assignments
8349
    private static final int __ITEMID_ISSET_ID = 0;
8350
    private BitSet __isset_bit_vector = new BitSet(1);
8351
 
8352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8353
    static {
8354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8355
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isActive_args.class, metaDataMap);
8359
    }
8360
 
8361
    public isActive_args() {
8362
    }
8363
 
8364
    public isActive_args(
8365
      long itemId)
8366
    {
8367
      this();
8368
      this.itemId = itemId;
8369
      setItemIdIsSet(true);
8370
    }
8371
 
8372
    /**
8373
     * Performs a deep copy on <i>other</i>.
8374
     */
8375
    public isActive_args(isActive_args other) {
8376
      __isset_bit_vector.clear();
8377
      __isset_bit_vector.or(other.__isset_bit_vector);
8378
      this.itemId = other.itemId;
8379
    }
8380
 
8381
    public isActive_args deepCopy() {
8382
      return new isActive_args(this);
8383
    }
8384
 
8385
    @Override
8386
    public void clear() {
8387
      setItemIdIsSet(false);
8388
      this.itemId = 0;
8389
    }
8390
 
8391
    public long getItemId() {
8392
      return this.itemId;
8393
    }
8394
 
8395
    public void setItemId(long itemId) {
8396
      this.itemId = itemId;
8397
      setItemIdIsSet(true);
8398
    }
8399
 
8400
    public void unsetItemId() {
8401
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
8402
    }
8403
 
8404
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
8405
    public boolean isSetItemId() {
8406
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
8407
    }
8408
 
8409
    public void setItemIdIsSet(boolean value) {
8410
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
8411
    }
8412
 
8413
    public void setFieldValue(_Fields field, Object value) {
8414
      switch (field) {
8415
      case ITEM_ID:
8416
        if (value == null) {
8417
          unsetItemId();
8418
        } else {
8419
          setItemId((Long)value);
8420
        }
8421
        break;
8422
 
8423
      }
8424
    }
8425
 
8426
    public Object getFieldValue(_Fields field) {
8427
      switch (field) {
8428
      case ITEM_ID:
8429
        return Long.valueOf(getItemId());
8430
 
8431
      }
8432
      throw new IllegalStateException();
8433
    }
8434
 
8435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8436
    public boolean isSet(_Fields field) {
8437
      if (field == null) {
8438
        throw new IllegalArgumentException();
8439
      }
8440
 
8441
      switch (field) {
8442
      case ITEM_ID:
8443
        return isSetItemId();
8444
      }
8445
      throw new IllegalStateException();
8446
    }
8447
 
8448
    @Override
8449
    public boolean equals(Object that) {
8450
      if (that == null)
8451
        return false;
8452
      if (that instanceof isActive_args)
8453
        return this.equals((isActive_args)that);
8454
      return false;
8455
    }
8456
 
8457
    public boolean equals(isActive_args that) {
8458
      if (that == null)
8459
        return false;
8460
 
8461
      boolean this_present_itemId = true;
8462
      boolean that_present_itemId = true;
8463
      if (this_present_itemId || that_present_itemId) {
8464
        if (!(this_present_itemId && that_present_itemId))
8465
          return false;
8466
        if (this.itemId != that.itemId)
8467
          return false;
8468
      }
8469
 
8470
      return true;
8471
    }
8472
 
8473
    @Override
8474
    public int hashCode() {
8475
      return 0;
8476
    }
8477
 
8478
    public int compareTo(isActive_args other) {
8479
      if (!getClass().equals(other.getClass())) {
8480
        return getClass().getName().compareTo(other.getClass().getName());
8481
      }
8482
 
8483
      int lastComparison = 0;
8484
      isActive_args typedOther = (isActive_args)other;
8485
 
8486
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
8487
      if (lastComparison != 0) {
8488
        return lastComparison;
8489
      }
8490
      if (isSetItemId()) {
8491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
8492
        if (lastComparison != 0) {
8493
          return lastComparison;
8494
        }
8495
      }
8496
      return 0;
8497
    }
8498
 
8499
    public _Fields fieldForId(int fieldId) {
8500
      return _Fields.findByThriftId(fieldId);
8501
    }
8502
 
8503
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8504
      org.apache.thrift.protocol.TField field;
8505
      iprot.readStructBegin();
8506
      while (true)
8507
      {
8508
        field = iprot.readFieldBegin();
8509
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8510
          break;
8511
        }
8512
        switch (field.id) {
8513
          case 1: // ITEM_ID
8514
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8515
              this.itemId = iprot.readI64();
8516
              setItemIdIsSet(true);
8517
            } else { 
8518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8519
            }
8520
            break;
8521
          default:
8522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8523
        }
8524
        iprot.readFieldEnd();
8525
      }
8526
      iprot.readStructEnd();
8527
      validate();
8528
    }
8529
 
8530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8531
      validate();
8532
 
8533
      oprot.writeStructBegin(STRUCT_DESC);
8534
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8535
      oprot.writeI64(this.itemId);
8536
      oprot.writeFieldEnd();
8537
      oprot.writeFieldStop();
8538
      oprot.writeStructEnd();
8539
    }
8540
 
8541
    @Override
8542
    public String toString() {
8543
      StringBuilder sb = new StringBuilder("isActive_args(");
8544
      boolean first = true;
8545
 
8546
      sb.append("itemId:");
8547
      sb.append(this.itemId);
8548
      first = false;
8549
      sb.append(")");
8550
      return sb.toString();
8551
    }
8552
 
8553
    public void validate() throws org.apache.thrift.TException {
8554
      // check for required fields
8555
    }
8556
 
8557
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8558
      try {
8559
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8560
      } catch (org.apache.thrift.TException te) {
8561
        throw new java.io.IOException(te);
8562
      }
8563
    }
8564
 
8565
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8566
      try {
8567
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8568
      } catch (org.apache.thrift.TException te) {
8569
        throw new java.io.IOException(te);
8570
      }
8571
    }
8572
 
8573
  }
8574
 
8575
  public static class isActive_result implements org.apache.thrift.TBase<isActive_result, isActive_result._Fields>, java.io.Serializable, Cloneable   {
8576
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_result");
8577
 
8578
    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);
8579
    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);
8580
 
8581
    private ItemShippingInfo success; // required
8582
    private CatalogServiceException isex; // required
8583
 
8584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8586
      SUCCESS((short)0, "success"),
8587
      ISEX((short)1, "isex");
8588
 
8589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8590
 
8591
      static {
8592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8593
          byName.put(field.getFieldName(), field);
8594
        }
8595
      }
8596
 
8597
      /**
8598
       * Find the _Fields constant that matches fieldId, or null if its not found.
8599
       */
8600
      public static _Fields findByThriftId(int fieldId) {
8601
        switch(fieldId) {
8602
          case 0: // SUCCESS
8603
            return SUCCESS;
8604
          case 1: // ISEX
8605
            return ISEX;
8606
          default:
8607
            return null;
8608
        }
8609
      }
8610
 
8611
      /**
8612
       * Find the _Fields constant that matches fieldId, throwing an exception
8613
       * if it is not found.
8614
       */
8615
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8616
        _Fields fields = findByThriftId(fieldId);
8617
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8618
        return fields;
8619
      }
8620
 
8621
      /**
8622
       * Find the _Fields constant that matches name, or null if its not found.
8623
       */
8624
      public static _Fields findByName(String name) {
8625
        return byName.get(name);
8626
      }
8627
 
8628
      private final short _thriftId;
8629
      private final String _fieldName;
8630
 
8631
      _Fields(short thriftId, String fieldName) {
8632
        _thriftId = thriftId;
8633
        _fieldName = fieldName;
8634
      }
8635
 
8636
      public short getThriftFieldId() {
8637
        return _thriftId;
8638
      }
8639
 
8640
      public String getFieldName() {
8641
        return _fieldName;
8642
      }
8643
    }
8644
 
8645
    // isset id assignments
8646
 
8647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8648
    static {
8649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8650
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8651
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemShippingInfo.class)));
8652
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8653
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isActive_result.class, metaDataMap);
8656
    }
8657
 
8658
    public isActive_result() {
8659
    }
8660
 
8661
    public isActive_result(
8662
      ItemShippingInfo success,
8663
      CatalogServiceException isex)
8664
    {
8665
      this();
8666
      this.success = success;
8667
      this.isex = isex;
8668
    }
8669
 
8670
    /**
8671
     * Performs a deep copy on <i>other</i>.
8672
     */
8673
    public isActive_result(isActive_result other) {
8674
      if (other.isSetSuccess()) {
8675
        this.success = new ItemShippingInfo(other.success);
8676
      }
8677
      if (other.isSetIsex()) {
8678
        this.isex = new CatalogServiceException(other.isex);
8679
      }
8680
    }
8681
 
8682
    public isActive_result deepCopy() {
8683
      return new isActive_result(this);
8684
    }
8685
 
8686
    @Override
8687
    public void clear() {
8688
      this.success = null;
8689
      this.isex = null;
8690
    }
8691
 
8692
    public ItemShippingInfo getSuccess() {
8693
      return this.success;
8694
    }
8695
 
8696
    public void setSuccess(ItemShippingInfo success) {
8697
      this.success = success;
8698
    }
8699
 
8700
    public void unsetSuccess() {
8701
      this.success = null;
8702
    }
8703
 
8704
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8705
    public boolean isSetSuccess() {
8706
      return this.success != null;
8707
    }
8708
 
8709
    public void setSuccessIsSet(boolean value) {
8710
      if (!value) {
8711
        this.success = null;
8712
      }
8713
    }
8714
 
8715
    public CatalogServiceException getIsex() {
8716
      return this.isex;
8717
    }
8718
 
8719
    public void setIsex(CatalogServiceException isex) {
8720
      this.isex = isex;
8721
    }
8722
 
8723
    public void unsetIsex() {
8724
      this.isex = null;
8725
    }
8726
 
8727
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
8728
    public boolean isSetIsex() {
8729
      return this.isex != null;
8730
    }
8731
 
8732
    public void setIsexIsSet(boolean value) {
8733
      if (!value) {
8734
        this.isex = null;
8735
      }
8736
    }
8737
 
8738
    public void setFieldValue(_Fields field, Object value) {
8739
      switch (field) {
8740
      case SUCCESS:
8741
        if (value == null) {
8742
          unsetSuccess();
8743
        } else {
8744
          setSuccess((ItemShippingInfo)value);
8745
        }
8746
        break;
8747
 
8748
      case ISEX:
8749
        if (value == null) {
8750
          unsetIsex();
8751
        } else {
8752
          setIsex((CatalogServiceException)value);
8753
        }
8754
        break;
8755
 
8756
      }
8757
    }
8758
 
8759
    public Object getFieldValue(_Fields field) {
8760
      switch (field) {
8761
      case SUCCESS:
8762
        return getSuccess();
8763
 
8764
      case ISEX:
8765
        return getIsex();
8766
 
8767
      }
8768
      throw new IllegalStateException();
8769
    }
8770
 
8771
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8772
    public boolean isSet(_Fields field) {
8773
      if (field == null) {
8774
        throw new IllegalArgumentException();
8775
      }
8776
 
8777
      switch (field) {
8778
      case SUCCESS:
8779
        return isSetSuccess();
8780
      case ISEX:
8781
        return isSetIsex();
8782
      }
8783
      throw new IllegalStateException();
8784
    }
8785
 
8786
    @Override
8787
    public boolean equals(Object that) {
8788
      if (that == null)
8789
        return false;
8790
      if (that instanceof isActive_result)
8791
        return this.equals((isActive_result)that);
8792
      return false;
8793
    }
8794
 
8795
    public boolean equals(isActive_result that) {
8796
      if (that == null)
8797
        return false;
8798
 
8799
      boolean this_present_success = true && this.isSetSuccess();
8800
      boolean that_present_success = true && that.isSetSuccess();
8801
      if (this_present_success || that_present_success) {
8802
        if (!(this_present_success && that_present_success))
8803
          return false;
8804
        if (!this.success.equals(that.success))
8805
          return false;
8806
      }
8807
 
8808
      boolean this_present_isex = true && this.isSetIsex();
8809
      boolean that_present_isex = true && that.isSetIsex();
8810
      if (this_present_isex || that_present_isex) {
8811
        if (!(this_present_isex && that_present_isex))
8812
          return false;
8813
        if (!this.isex.equals(that.isex))
8814
          return false;
8815
      }
8816
 
8817
      return true;
8818
    }
8819
 
8820
    @Override
8821
    public int hashCode() {
8822
      return 0;
8823
    }
8824
 
8825
    public int compareTo(isActive_result other) {
8826
      if (!getClass().equals(other.getClass())) {
8827
        return getClass().getName().compareTo(other.getClass().getName());
8828
      }
8829
 
8830
      int lastComparison = 0;
8831
      isActive_result typedOther = (isActive_result)other;
8832
 
8833
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8834
      if (lastComparison != 0) {
8835
        return lastComparison;
8836
      }
8837
      if (isSetSuccess()) {
8838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8839
        if (lastComparison != 0) {
8840
          return lastComparison;
8841
        }
8842
      }
8843
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
8844
      if (lastComparison != 0) {
8845
        return lastComparison;
8846
      }
8847
      if (isSetIsex()) {
8848
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
8849
        if (lastComparison != 0) {
8850
          return lastComparison;
8851
        }
8852
      }
8853
      return 0;
8854
    }
8855
 
8856
    public _Fields fieldForId(int fieldId) {
8857
      return _Fields.findByThriftId(fieldId);
8858
    }
8859
 
8860
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8861
      org.apache.thrift.protocol.TField field;
8862
      iprot.readStructBegin();
8863
      while (true)
8864
      {
8865
        field = iprot.readFieldBegin();
8866
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8867
          break;
8868
        }
8869
        switch (field.id) {
8870
          case 0: // SUCCESS
8871
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8872
              this.success = new ItemShippingInfo();
8873
              this.success.read(iprot);
8874
            } else { 
8875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8876
            }
8877
            break;
8878
          case 1: // ISEX
8879
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8880
              this.isex = new CatalogServiceException();
8881
              this.isex.read(iprot);
8882
            } else { 
8883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8884
            }
8885
            break;
8886
          default:
8887
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8888
        }
8889
        iprot.readFieldEnd();
8890
      }
8891
      iprot.readStructEnd();
8892
      validate();
8893
    }
8894
 
8895
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8896
      oprot.writeStructBegin(STRUCT_DESC);
8897
 
8898
      if (this.isSetSuccess()) {
8899
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8900
        this.success.write(oprot);
8901
        oprot.writeFieldEnd();
8902
      } else if (this.isSetIsex()) {
8903
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
8904
        this.isex.write(oprot);
8905
        oprot.writeFieldEnd();
8906
      }
8907
      oprot.writeFieldStop();
8908
      oprot.writeStructEnd();
8909
    }
8910
 
8911
    @Override
8912
    public String toString() {
8913
      StringBuilder sb = new StringBuilder("isActive_result(");
8914
      boolean first = true;
8915
 
8916
      sb.append("success:");
8917
      if (this.success == null) {
8918
        sb.append("null");
8919
      } else {
8920
        sb.append(this.success);
8921
      }
8922
      first = false;
8923
      if (!first) sb.append(", ");
8924
      sb.append("isex:");
8925
      if (this.isex == null) {
8926
        sb.append("null");
8927
      } else {
8928
        sb.append(this.isex);
8929
      }
8930
      first = false;
8931
      sb.append(")");
8932
      return sb.toString();
8933
    }
8934
 
8935
    public void validate() throws org.apache.thrift.TException {
8936
      // check for required fields
8937
    }
8938
 
8939
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8940
      try {
8941
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8942
      } catch (org.apache.thrift.TException te) {
8943
        throw new java.io.IOException(te);
8944
      }
8945
    }
8946
 
8947
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8948
      try {
8949
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8950
      } catch (org.apache.thrift.TException te) {
8951
        throw new java.io.IOException(te);
8952
      }
8953
    }
8954
 
8955
  }
8956
 
8957
  public static class getItemStatusDescription_args implements org.apache.thrift.TBase<getItemStatusDescription_args, getItemStatusDescription_args._Fields>, java.io.Serializable, Cloneable   {
8958
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStatusDescription_args");
8959
 
8960
    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);
8961
 
8962
    private long itemId; // required
8963
 
8964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8966
      ITEM_ID((short)1, "itemId");
8967
 
8968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8969
 
8970
      static {
8971
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8972
          byName.put(field.getFieldName(), field);
8973
        }
8974
      }
8975
 
8976
      /**
8977
       * Find the _Fields constant that matches fieldId, or null if its not found.
8978
       */
8979
      public static _Fields findByThriftId(int fieldId) {
8980
        switch(fieldId) {
8981
          case 1: // ITEM_ID
8982
            return ITEM_ID;
8983
          default:
8984
            return null;
8985
        }
8986
      }
8987
 
8988
      /**
8989
       * Find the _Fields constant that matches fieldId, throwing an exception
8990
       * if it is not found.
8991
       */
8992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8993
        _Fields fields = findByThriftId(fieldId);
8994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8995
        return fields;
8996
      }
8997
 
8998
      /**
8999
       * Find the _Fields constant that matches name, or null if its not found.
9000
       */
9001
      public static _Fields findByName(String name) {
9002
        return byName.get(name);
9003
      }
9004
 
9005
      private final short _thriftId;
9006
      private final String _fieldName;
9007
 
9008
      _Fields(short thriftId, String fieldName) {
9009
        _thriftId = thriftId;
9010
        _fieldName = fieldName;
9011
      }
9012
 
9013
      public short getThriftFieldId() {
9014
        return _thriftId;
9015
      }
9016
 
9017
      public String getFieldName() {
9018
        return _fieldName;
9019
      }
9020
    }
9021
 
9022
    // isset id assignments
9023
    private static final int __ITEMID_ISSET_ID = 0;
9024
    private BitSet __isset_bit_vector = new BitSet(1);
9025
 
9026
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9027
    static {
9028
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9029
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9031
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9032
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStatusDescription_args.class, metaDataMap);
9033
    }
9034
 
9035
    public getItemStatusDescription_args() {
9036
    }
9037
 
9038
    public getItemStatusDescription_args(
9039
      long itemId)
9040
    {
9041
      this();
9042
      this.itemId = itemId;
9043
      setItemIdIsSet(true);
9044
    }
9045
 
9046
    /**
9047
     * Performs a deep copy on <i>other</i>.
9048
     */
9049
    public getItemStatusDescription_args(getItemStatusDescription_args other) {
9050
      __isset_bit_vector.clear();
9051
      __isset_bit_vector.or(other.__isset_bit_vector);
9052
      this.itemId = other.itemId;
9053
    }
9054
 
9055
    public getItemStatusDescription_args deepCopy() {
9056
      return new getItemStatusDescription_args(this);
9057
    }
9058
 
9059
    @Override
9060
    public void clear() {
9061
      setItemIdIsSet(false);
9062
      this.itemId = 0;
9063
    }
9064
 
9065
    public long getItemId() {
9066
      return this.itemId;
9067
    }
9068
 
9069
    public void setItemId(long itemId) {
9070
      this.itemId = itemId;
9071
      setItemIdIsSet(true);
9072
    }
9073
 
9074
    public void unsetItemId() {
9075
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9076
    }
9077
 
9078
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9079
    public boolean isSetItemId() {
9080
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9081
    }
9082
 
9083
    public void setItemIdIsSet(boolean value) {
9084
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9085
    }
9086
 
9087
    public void setFieldValue(_Fields field, Object value) {
9088
      switch (field) {
9089
      case ITEM_ID:
9090
        if (value == null) {
9091
          unsetItemId();
9092
        } else {
9093
          setItemId((Long)value);
9094
        }
9095
        break;
9096
 
9097
      }
9098
    }
9099
 
9100
    public Object getFieldValue(_Fields field) {
9101
      switch (field) {
9102
      case ITEM_ID:
9103
        return Long.valueOf(getItemId());
9104
 
9105
      }
9106
      throw new IllegalStateException();
9107
    }
9108
 
9109
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9110
    public boolean isSet(_Fields field) {
9111
      if (field == null) {
9112
        throw new IllegalArgumentException();
9113
      }
9114
 
9115
      switch (field) {
9116
      case ITEM_ID:
9117
        return isSetItemId();
9118
      }
9119
      throw new IllegalStateException();
9120
    }
9121
 
9122
    @Override
9123
    public boolean equals(Object that) {
9124
      if (that == null)
9125
        return false;
9126
      if (that instanceof getItemStatusDescription_args)
9127
        return this.equals((getItemStatusDescription_args)that);
9128
      return false;
9129
    }
9130
 
9131
    public boolean equals(getItemStatusDescription_args that) {
9132
      if (that == null)
9133
        return false;
9134
 
9135
      boolean this_present_itemId = true;
9136
      boolean that_present_itemId = true;
9137
      if (this_present_itemId || that_present_itemId) {
9138
        if (!(this_present_itemId && that_present_itemId))
9139
          return false;
9140
        if (this.itemId != that.itemId)
9141
          return false;
9142
      }
9143
 
9144
      return true;
9145
    }
9146
 
9147
    @Override
9148
    public int hashCode() {
9149
      return 0;
9150
    }
9151
 
9152
    public int compareTo(getItemStatusDescription_args other) {
9153
      if (!getClass().equals(other.getClass())) {
9154
        return getClass().getName().compareTo(other.getClass().getName());
9155
      }
9156
 
9157
      int lastComparison = 0;
9158
      getItemStatusDescription_args typedOther = (getItemStatusDescription_args)other;
9159
 
9160
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9161
      if (lastComparison != 0) {
9162
        return lastComparison;
9163
      }
9164
      if (isSetItemId()) {
9165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9166
        if (lastComparison != 0) {
9167
          return lastComparison;
9168
        }
9169
      }
9170
      return 0;
9171
    }
9172
 
9173
    public _Fields fieldForId(int fieldId) {
9174
      return _Fields.findByThriftId(fieldId);
9175
    }
9176
 
9177
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9178
      org.apache.thrift.protocol.TField field;
9179
      iprot.readStructBegin();
9180
      while (true)
9181
      {
9182
        field = iprot.readFieldBegin();
9183
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9184
          break;
9185
        }
9186
        switch (field.id) {
9187
          case 1: // ITEM_ID
9188
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9189
              this.itemId = iprot.readI64();
9190
              setItemIdIsSet(true);
9191
            } else { 
9192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9193
            }
9194
            break;
9195
          default:
9196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9197
        }
9198
        iprot.readFieldEnd();
9199
      }
9200
      iprot.readStructEnd();
9201
      validate();
9202
    }
9203
 
9204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9205
      validate();
9206
 
9207
      oprot.writeStructBegin(STRUCT_DESC);
9208
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9209
      oprot.writeI64(this.itemId);
9210
      oprot.writeFieldEnd();
9211
      oprot.writeFieldStop();
9212
      oprot.writeStructEnd();
9213
    }
9214
 
9215
    @Override
9216
    public String toString() {
9217
      StringBuilder sb = new StringBuilder("getItemStatusDescription_args(");
9218
      boolean first = true;
9219
 
9220
      sb.append("itemId:");
9221
      sb.append(this.itemId);
9222
      first = false;
9223
      sb.append(")");
9224
      return sb.toString();
9225
    }
9226
 
9227
    public void validate() throws org.apache.thrift.TException {
9228
      // check for required fields
9229
    }
9230
 
9231
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9232
      try {
9233
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9234
      } catch (org.apache.thrift.TException te) {
9235
        throw new java.io.IOException(te);
9236
      }
9237
    }
9238
 
9239
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9240
      try {
9241
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9242
        __isset_bit_vector = new BitSet(1);
9243
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9244
      } catch (org.apache.thrift.TException te) {
9245
        throw new java.io.IOException(te);
9246
      }
9247
    }
9248
 
9249
  }
9250
 
9251
  public static class getItemStatusDescription_result implements org.apache.thrift.TBase<getItemStatusDescription_result, getItemStatusDescription_result._Fields>, java.io.Serializable, Cloneable   {
9252
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStatusDescription_result");
9253
 
9254
    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);
9255
    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);
9256
 
9257
    private String success; // required
9258
    private CatalogServiceException isex; // required
9259
 
9260
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9261
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9262
      SUCCESS((short)0, "success"),
9263
      ISEX((short)1, "isex");
9264
 
9265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9266
 
9267
      static {
9268
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9269
          byName.put(field.getFieldName(), field);
9270
        }
9271
      }
9272
 
9273
      /**
9274
       * Find the _Fields constant that matches fieldId, or null if its not found.
9275
       */
9276
      public static _Fields findByThriftId(int fieldId) {
9277
        switch(fieldId) {
9278
          case 0: // SUCCESS
9279
            return SUCCESS;
9280
          case 1: // ISEX
9281
            return ISEX;
9282
          default:
9283
            return null;
9284
        }
9285
      }
9286
 
9287
      /**
9288
       * Find the _Fields constant that matches fieldId, throwing an exception
9289
       * if it is not found.
9290
       */
9291
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9292
        _Fields fields = findByThriftId(fieldId);
9293
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9294
        return fields;
9295
      }
9296
 
9297
      /**
9298
       * Find the _Fields constant that matches name, or null if its not found.
9299
       */
9300
      public static _Fields findByName(String name) {
9301
        return byName.get(name);
9302
      }
9303
 
9304
      private final short _thriftId;
9305
      private final String _fieldName;
9306
 
9307
      _Fields(short thriftId, String fieldName) {
9308
        _thriftId = thriftId;
9309
        _fieldName = fieldName;
9310
      }
9311
 
9312
      public short getThriftFieldId() {
9313
        return _thriftId;
9314
      }
9315
 
9316
      public String getFieldName() {
9317
        return _fieldName;
9318
      }
9319
    }
9320
 
9321
    // isset id assignments
9322
 
9323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9324
    static {
9325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9326
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9328
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9329
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9330
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9331
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStatusDescription_result.class, metaDataMap);
9332
    }
9333
 
9334
    public getItemStatusDescription_result() {
9335
    }
9336
 
9337
    public getItemStatusDescription_result(
9338
      String success,
9339
      CatalogServiceException isex)
9340
    {
9341
      this();
9342
      this.success = success;
9343
      this.isex = isex;
9344
    }
9345
 
9346
    /**
9347
     * Performs a deep copy on <i>other</i>.
9348
     */
9349
    public getItemStatusDescription_result(getItemStatusDescription_result other) {
9350
      if (other.isSetSuccess()) {
9351
        this.success = other.success;
9352
      }
9353
      if (other.isSetIsex()) {
9354
        this.isex = new CatalogServiceException(other.isex);
9355
      }
9356
    }
9357
 
9358
    public getItemStatusDescription_result deepCopy() {
9359
      return new getItemStatusDescription_result(this);
9360
    }
9361
 
9362
    @Override
9363
    public void clear() {
9364
      this.success = null;
9365
      this.isex = null;
9366
    }
9367
 
9368
    public String getSuccess() {
9369
      return this.success;
9370
    }
9371
 
9372
    public void setSuccess(String success) {
9373
      this.success = success;
9374
    }
9375
 
9376
    public void unsetSuccess() {
9377
      this.success = null;
9378
    }
9379
 
9380
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9381
    public boolean isSetSuccess() {
9382
      return this.success != null;
9383
    }
9384
 
9385
    public void setSuccessIsSet(boolean value) {
9386
      if (!value) {
9387
        this.success = null;
9388
      }
9389
    }
9390
 
9391
    public CatalogServiceException getIsex() {
9392
      return this.isex;
9393
    }
9394
 
9395
    public void setIsex(CatalogServiceException isex) {
9396
      this.isex = isex;
9397
    }
9398
 
9399
    public void unsetIsex() {
9400
      this.isex = null;
9401
    }
9402
 
9403
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
9404
    public boolean isSetIsex() {
9405
      return this.isex != null;
9406
    }
9407
 
9408
    public void setIsexIsSet(boolean value) {
9409
      if (!value) {
9410
        this.isex = null;
9411
      }
9412
    }
9413
 
9414
    public void setFieldValue(_Fields field, Object value) {
9415
      switch (field) {
9416
      case SUCCESS:
9417
        if (value == null) {
9418
          unsetSuccess();
9419
        } else {
9420
          setSuccess((String)value);
9421
        }
9422
        break;
9423
 
9424
      case ISEX:
9425
        if (value == null) {
9426
          unsetIsex();
9427
        } else {
9428
          setIsex((CatalogServiceException)value);
9429
        }
9430
        break;
9431
 
9432
      }
9433
    }
9434
 
9435
    public Object getFieldValue(_Fields field) {
9436
      switch (field) {
9437
      case SUCCESS:
9438
        return getSuccess();
9439
 
9440
      case ISEX:
9441
        return getIsex();
9442
 
9443
      }
9444
      throw new IllegalStateException();
9445
    }
9446
 
9447
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9448
    public boolean isSet(_Fields field) {
9449
      if (field == null) {
9450
        throw new IllegalArgumentException();
9451
      }
9452
 
9453
      switch (field) {
9454
      case SUCCESS:
9455
        return isSetSuccess();
9456
      case ISEX:
9457
        return isSetIsex();
9458
      }
9459
      throw new IllegalStateException();
9460
    }
9461
 
9462
    @Override
9463
    public boolean equals(Object that) {
9464
      if (that == null)
9465
        return false;
9466
      if (that instanceof getItemStatusDescription_result)
9467
        return this.equals((getItemStatusDescription_result)that);
9468
      return false;
9469
    }
9470
 
9471
    public boolean equals(getItemStatusDescription_result that) {
9472
      if (that == null)
9473
        return false;
9474
 
9475
      boolean this_present_success = true && this.isSetSuccess();
9476
      boolean that_present_success = true && that.isSetSuccess();
9477
      if (this_present_success || that_present_success) {
9478
        if (!(this_present_success && that_present_success))
9479
          return false;
9480
        if (!this.success.equals(that.success))
9481
          return false;
9482
      }
9483
 
9484
      boolean this_present_isex = true && this.isSetIsex();
9485
      boolean that_present_isex = true && that.isSetIsex();
9486
      if (this_present_isex || that_present_isex) {
9487
        if (!(this_present_isex && that_present_isex))
9488
          return false;
9489
        if (!this.isex.equals(that.isex))
9490
          return false;
9491
      }
9492
 
9493
      return true;
9494
    }
9495
 
9496
    @Override
9497
    public int hashCode() {
9498
      return 0;
9499
    }
9500
 
9501
    public int compareTo(getItemStatusDescription_result other) {
9502
      if (!getClass().equals(other.getClass())) {
9503
        return getClass().getName().compareTo(other.getClass().getName());
9504
      }
9505
 
9506
      int lastComparison = 0;
9507
      getItemStatusDescription_result typedOther = (getItemStatusDescription_result)other;
9508
 
9509
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9510
      if (lastComparison != 0) {
9511
        return lastComparison;
9512
      }
9513
      if (isSetSuccess()) {
9514
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9515
        if (lastComparison != 0) {
9516
          return lastComparison;
9517
        }
9518
      }
9519
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
9520
      if (lastComparison != 0) {
9521
        return lastComparison;
9522
      }
9523
      if (isSetIsex()) {
9524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
9525
        if (lastComparison != 0) {
9526
          return lastComparison;
9527
        }
9528
      }
9529
      return 0;
9530
    }
9531
 
9532
    public _Fields fieldForId(int fieldId) {
9533
      return _Fields.findByThriftId(fieldId);
9534
    }
9535
 
9536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9537
      org.apache.thrift.protocol.TField field;
9538
      iprot.readStructBegin();
9539
      while (true)
9540
      {
9541
        field = iprot.readFieldBegin();
9542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9543
          break;
9544
        }
9545
        switch (field.id) {
9546
          case 0: // SUCCESS
9547
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9548
              this.success = iprot.readString();
9549
            } else { 
9550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9551
            }
9552
            break;
9553
          case 1: // ISEX
9554
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9555
              this.isex = new CatalogServiceException();
9556
              this.isex.read(iprot);
9557
            } else { 
9558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9559
            }
9560
            break;
9561
          default:
9562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9563
        }
9564
        iprot.readFieldEnd();
9565
      }
9566
      iprot.readStructEnd();
9567
      validate();
9568
    }
9569
 
9570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9571
      oprot.writeStructBegin(STRUCT_DESC);
9572
 
9573
      if (this.isSetSuccess()) {
9574
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9575
        oprot.writeString(this.success);
9576
        oprot.writeFieldEnd();
9577
      } else if (this.isSetIsex()) {
9578
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
9579
        this.isex.write(oprot);
9580
        oprot.writeFieldEnd();
9581
      }
9582
      oprot.writeFieldStop();
9583
      oprot.writeStructEnd();
9584
    }
9585
 
9586
    @Override
9587
    public String toString() {
9588
      StringBuilder sb = new StringBuilder("getItemStatusDescription_result(");
9589
      boolean first = true;
9590
 
9591
      sb.append("success:");
9592
      if (this.success == null) {
9593
        sb.append("null");
9594
      } else {
9595
        sb.append(this.success);
9596
      }
9597
      first = false;
9598
      if (!first) sb.append(", ");
9599
      sb.append("isex:");
9600
      if (this.isex == null) {
9601
        sb.append("null");
9602
      } else {
9603
        sb.append(this.isex);
9604
      }
9605
      first = false;
9606
      sb.append(")");
9607
      return sb.toString();
9608
    }
9609
 
9610
    public void validate() throws org.apache.thrift.TException {
9611
      // check for required fields
9612
    }
9613
 
9614
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9615
      try {
9616
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9617
      } catch (org.apache.thrift.TException te) {
9618
        throw new java.io.IOException(te);
9619
      }
9620
    }
9621
 
9622
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9623
      try {
9624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9625
      } catch (org.apache.thrift.TException te) {
9626
        throw new java.io.IOException(te);
9627
      }
9628
    }
9629
 
9630
  }
9631
 
9632
  public static class startItemOn_args implements org.apache.thrift.TBase<startItemOn_args, startItemOn_args._Fields>, java.io.Serializable, Cloneable   {
9633
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startItemOn_args");
9634
 
9635
    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);
9636
    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);
9637
 
9638
    private long item_id; // required
9639
    private long timestamp; // required
9640
 
9641
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9642
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9643
      ITEM_ID((short)1, "item_id"),
9644
      TIMESTAMP((short)2, "timestamp");
9645
 
9646
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9647
 
9648
      static {
9649
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9650
          byName.put(field.getFieldName(), field);
9651
        }
9652
      }
9653
 
9654
      /**
9655
       * Find the _Fields constant that matches fieldId, or null if its not found.
9656
       */
9657
      public static _Fields findByThriftId(int fieldId) {
9658
        switch(fieldId) {
9659
          case 1: // ITEM_ID
9660
            return ITEM_ID;
9661
          case 2: // TIMESTAMP
9662
            return TIMESTAMP;
9663
          default:
9664
            return null;
9665
        }
9666
      }
9667
 
9668
      /**
9669
       * Find the _Fields constant that matches fieldId, throwing an exception
9670
       * if it is not found.
9671
       */
9672
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9673
        _Fields fields = findByThriftId(fieldId);
9674
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9675
        return fields;
9676
      }
9677
 
9678
      /**
9679
       * Find the _Fields constant that matches name, or null if its not found.
9680
       */
9681
      public static _Fields findByName(String name) {
9682
        return byName.get(name);
9683
      }
9684
 
9685
      private final short _thriftId;
9686
      private final String _fieldName;
9687
 
9688
      _Fields(short thriftId, String fieldName) {
9689
        _thriftId = thriftId;
9690
        _fieldName = fieldName;
9691
      }
9692
 
9693
      public short getThriftFieldId() {
9694
        return _thriftId;
9695
      }
9696
 
9697
      public String getFieldName() {
9698
        return _fieldName;
9699
      }
9700
    }
9701
 
9702
    // isset id assignments
9703
    private static final int __ITEM_ID_ISSET_ID = 0;
9704
    private static final int __TIMESTAMP_ISSET_ID = 1;
9705
    private BitSet __isset_bit_vector = new BitSet(2);
9706
 
9707
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9708
    static {
9709
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9710
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9711
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9712
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startItemOn_args.class, metaDataMap);
9716
    }
9717
 
9718
    public startItemOn_args() {
9719
    }
9720
 
9721
    public startItemOn_args(
9722
      long item_id,
9723
      long timestamp)
9724
    {
9725
      this();
9726
      this.item_id = item_id;
9727
      setItem_idIsSet(true);
9728
      this.timestamp = timestamp;
9729
      setTimestampIsSet(true);
9730
    }
9731
 
9732
    /**
9733
     * Performs a deep copy on <i>other</i>.
9734
     */
9735
    public startItemOn_args(startItemOn_args other) {
9736
      __isset_bit_vector.clear();
9737
      __isset_bit_vector.or(other.__isset_bit_vector);
9738
      this.item_id = other.item_id;
9739
      this.timestamp = other.timestamp;
9740
    }
9741
 
9742
    public startItemOn_args deepCopy() {
9743
      return new startItemOn_args(this);
9744
    }
9745
 
9746
    @Override
9747
    public void clear() {
9748
      setItem_idIsSet(false);
9749
      this.item_id = 0;
9750
      setTimestampIsSet(false);
9751
      this.timestamp = 0;
9752
    }
9753
 
9754
    public long getItem_id() {
9755
      return this.item_id;
9756
    }
9757
 
9758
    public void setItem_id(long item_id) {
9759
      this.item_id = item_id;
9760
      setItem_idIsSet(true);
9761
    }
9762
 
9763
    public void unsetItem_id() {
9764
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9765
    }
9766
 
9767
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9768
    public boolean isSetItem_id() {
9769
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9770
    }
9771
 
9772
    public void setItem_idIsSet(boolean value) {
9773
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9774
    }
9775
 
9776
    public long getTimestamp() {
9777
      return this.timestamp;
9778
    }
9779
 
9780
    public void setTimestamp(long timestamp) {
9781
      this.timestamp = timestamp;
9782
      setTimestampIsSet(true);
9783
    }
9784
 
9785
    public void unsetTimestamp() {
9786
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
9787
    }
9788
 
9789
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
9790
    public boolean isSetTimestamp() {
9791
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
9792
    }
9793
 
9794
    public void setTimestampIsSet(boolean value) {
9795
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
9796
    }
9797
 
9798
    public void setFieldValue(_Fields field, Object value) {
9799
      switch (field) {
9800
      case ITEM_ID:
9801
        if (value == null) {
9802
          unsetItem_id();
9803
        } else {
9804
          setItem_id((Long)value);
9805
        }
9806
        break;
9807
 
9808
      case TIMESTAMP:
9809
        if (value == null) {
9810
          unsetTimestamp();
9811
        } else {
9812
          setTimestamp((Long)value);
9813
        }
9814
        break;
9815
 
9816
      }
9817
    }
9818
 
9819
    public Object getFieldValue(_Fields field) {
9820
      switch (field) {
9821
      case ITEM_ID:
9822
        return Long.valueOf(getItem_id());
9823
 
9824
      case TIMESTAMP:
9825
        return Long.valueOf(getTimestamp());
9826
 
9827
      }
9828
      throw new IllegalStateException();
9829
    }
9830
 
9831
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9832
    public boolean isSet(_Fields field) {
9833
      if (field == null) {
9834
        throw new IllegalArgumentException();
9835
      }
9836
 
9837
      switch (field) {
9838
      case ITEM_ID:
9839
        return isSetItem_id();
9840
      case TIMESTAMP:
9841
        return isSetTimestamp();
9842
      }
9843
      throw new IllegalStateException();
9844
    }
9845
 
9846
    @Override
9847
    public boolean equals(Object that) {
9848
      if (that == null)
9849
        return false;
9850
      if (that instanceof startItemOn_args)
9851
        return this.equals((startItemOn_args)that);
9852
      return false;
9853
    }
9854
 
9855
    public boolean equals(startItemOn_args that) {
9856
      if (that == null)
9857
        return false;
9858
 
9859
      boolean this_present_item_id = true;
9860
      boolean that_present_item_id = true;
9861
      if (this_present_item_id || that_present_item_id) {
9862
        if (!(this_present_item_id && that_present_item_id))
9863
          return false;
9864
        if (this.item_id != that.item_id)
9865
          return false;
9866
      }
9867
 
9868
      boolean this_present_timestamp = true;
9869
      boolean that_present_timestamp = true;
9870
      if (this_present_timestamp || that_present_timestamp) {
9871
        if (!(this_present_timestamp && that_present_timestamp))
9872
          return false;
9873
        if (this.timestamp != that.timestamp)
9874
          return false;
9875
      }
9876
 
9877
      return true;
9878
    }
9879
 
9880
    @Override
9881
    public int hashCode() {
9882
      return 0;
9883
    }
9884
 
9885
    public int compareTo(startItemOn_args other) {
9886
      if (!getClass().equals(other.getClass())) {
9887
        return getClass().getName().compareTo(other.getClass().getName());
9888
      }
9889
 
9890
      int lastComparison = 0;
9891
      startItemOn_args typedOther = (startItemOn_args)other;
9892
 
9893
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9894
      if (lastComparison != 0) {
9895
        return lastComparison;
9896
      }
9897
      if (isSetItem_id()) {
9898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9899
        if (lastComparison != 0) {
9900
          return lastComparison;
9901
        }
9902
      }
9903
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
9904
      if (lastComparison != 0) {
9905
        return lastComparison;
9906
      }
9907
      if (isSetTimestamp()) {
9908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
9909
        if (lastComparison != 0) {
9910
          return lastComparison;
9911
        }
9912
      }
9913
      return 0;
9914
    }
9915
 
9916
    public _Fields fieldForId(int fieldId) {
9917
      return _Fields.findByThriftId(fieldId);
9918
    }
9919
 
9920
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9921
      org.apache.thrift.protocol.TField field;
9922
      iprot.readStructBegin();
9923
      while (true)
9924
      {
9925
        field = iprot.readFieldBegin();
9926
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9927
          break;
9928
        }
9929
        switch (field.id) {
9930
          case 1: // ITEM_ID
9931
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9932
              this.item_id = iprot.readI64();
9933
              setItem_idIsSet(true);
9934
            } else { 
9935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9936
            }
9937
            break;
9938
          case 2: // TIMESTAMP
9939
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9940
              this.timestamp = iprot.readI64();
9941
              setTimestampIsSet(true);
9942
            } else { 
9943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9944
            }
9945
            break;
9946
          default:
9947
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9948
        }
9949
        iprot.readFieldEnd();
9950
      }
9951
      iprot.readStructEnd();
9952
      validate();
9953
    }
9954
 
9955
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9956
      validate();
9957
 
9958
      oprot.writeStructBegin(STRUCT_DESC);
9959
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9960
      oprot.writeI64(this.item_id);
9961
      oprot.writeFieldEnd();
9962
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
9963
      oprot.writeI64(this.timestamp);
9964
      oprot.writeFieldEnd();
9965
      oprot.writeFieldStop();
9966
      oprot.writeStructEnd();
9967
    }
9968
 
9969
    @Override
9970
    public String toString() {
9971
      StringBuilder sb = new StringBuilder("startItemOn_args(");
9972
      boolean first = true;
9973
 
9974
      sb.append("item_id:");
9975
      sb.append(this.item_id);
9976
      first = false;
9977
      if (!first) sb.append(", ");
9978
      sb.append("timestamp:");
9979
      sb.append(this.timestamp);
9980
      first = false;
9981
      sb.append(")");
9982
      return sb.toString();
9983
    }
9984
 
9985
    public void validate() throws org.apache.thrift.TException {
9986
      // check for required fields
9987
    }
9988
 
9989
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9990
      try {
9991
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9992
      } catch (org.apache.thrift.TException te) {
9993
        throw new java.io.IOException(te);
9994
      }
9995
    }
9996
 
9997
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9998
      try {
9999
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10000
        __isset_bit_vector = new BitSet(1);
10001
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10002
      } catch (org.apache.thrift.TException te) {
10003
        throw new java.io.IOException(te);
10004
      }
10005
    }
10006
 
10007
  }
10008
 
10009
  public static class startItemOn_result implements org.apache.thrift.TBase<startItemOn_result, startItemOn_result._Fields>, java.io.Serializable, Cloneable   {
10010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startItemOn_result");
10011
 
10012
    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);
10013
 
10014
    private CatalogServiceException cex; // required
10015
 
10016
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10017
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10018
      CEX((short)1, "cex");
10019
 
10020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10021
 
10022
      static {
10023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10024
          byName.put(field.getFieldName(), field);
10025
        }
10026
      }
10027
 
10028
      /**
10029
       * Find the _Fields constant that matches fieldId, or null if its not found.
10030
       */
10031
      public static _Fields findByThriftId(int fieldId) {
10032
        switch(fieldId) {
10033
          case 1: // CEX
10034
            return CEX;
10035
          default:
10036
            return null;
10037
        }
10038
      }
10039
 
10040
      /**
10041
       * Find the _Fields constant that matches fieldId, throwing an exception
10042
       * if it is not found.
10043
       */
10044
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10045
        _Fields fields = findByThriftId(fieldId);
10046
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10047
        return fields;
10048
      }
10049
 
10050
      /**
10051
       * Find the _Fields constant that matches name, or null if its not found.
10052
       */
10053
      public static _Fields findByName(String name) {
10054
        return byName.get(name);
10055
      }
10056
 
10057
      private final short _thriftId;
10058
      private final String _fieldName;
10059
 
10060
      _Fields(short thriftId, String fieldName) {
10061
        _thriftId = thriftId;
10062
        _fieldName = fieldName;
10063
      }
10064
 
10065
      public short getThriftFieldId() {
10066
        return _thriftId;
10067
      }
10068
 
10069
      public String getFieldName() {
10070
        return _fieldName;
10071
      }
10072
    }
10073
 
10074
    // isset id assignments
10075
 
10076
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10077
    static {
10078
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10079
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startItemOn_result.class, metaDataMap);
10083
    }
10084
 
10085
    public startItemOn_result() {
10086
    }
10087
 
10088
    public startItemOn_result(
10089
      CatalogServiceException cex)
10090
    {
10091
      this();
10092
      this.cex = cex;
10093
    }
10094
 
10095
    /**
10096
     * Performs a deep copy on <i>other</i>.
10097
     */
10098
    public startItemOn_result(startItemOn_result other) {
10099
      if (other.isSetCex()) {
10100
        this.cex = new CatalogServiceException(other.cex);
10101
      }
10102
    }
10103
 
10104
    public startItemOn_result deepCopy() {
10105
      return new startItemOn_result(this);
10106
    }
10107
 
10108
    @Override
10109
    public void clear() {
10110
      this.cex = null;
10111
    }
10112
 
10113
    public CatalogServiceException getCex() {
10114
      return this.cex;
10115
    }
10116
 
10117
    public void setCex(CatalogServiceException cex) {
10118
      this.cex = cex;
10119
    }
10120
 
10121
    public void unsetCex() {
10122
      this.cex = null;
10123
    }
10124
 
10125
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10126
    public boolean isSetCex() {
10127
      return this.cex != null;
10128
    }
10129
 
10130
    public void setCexIsSet(boolean value) {
10131
      if (!value) {
10132
        this.cex = null;
10133
      }
10134
    }
10135
 
10136
    public void setFieldValue(_Fields field, Object value) {
10137
      switch (field) {
10138
      case CEX:
10139
        if (value == null) {
10140
          unsetCex();
10141
        } else {
10142
          setCex((CatalogServiceException)value);
10143
        }
10144
        break;
10145
 
10146
      }
10147
    }
10148
 
10149
    public Object getFieldValue(_Fields field) {
10150
      switch (field) {
10151
      case CEX:
10152
        return getCex();
10153
 
10154
      }
10155
      throw new IllegalStateException();
10156
    }
10157
 
10158
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10159
    public boolean isSet(_Fields field) {
10160
      if (field == null) {
10161
        throw new IllegalArgumentException();
10162
      }
10163
 
10164
      switch (field) {
10165
      case CEX:
10166
        return isSetCex();
10167
      }
10168
      throw new IllegalStateException();
10169
    }
10170
 
10171
    @Override
10172
    public boolean equals(Object that) {
10173
      if (that == null)
10174
        return false;
10175
      if (that instanceof startItemOn_result)
10176
        return this.equals((startItemOn_result)that);
10177
      return false;
10178
    }
10179
 
10180
    public boolean equals(startItemOn_result that) {
10181
      if (that == null)
10182
        return false;
10183
 
10184
      boolean this_present_cex = true && this.isSetCex();
10185
      boolean that_present_cex = true && that.isSetCex();
10186
      if (this_present_cex || that_present_cex) {
10187
        if (!(this_present_cex && that_present_cex))
10188
          return false;
10189
        if (!this.cex.equals(that.cex))
10190
          return false;
10191
      }
10192
 
10193
      return true;
10194
    }
10195
 
10196
    @Override
10197
    public int hashCode() {
10198
      return 0;
10199
    }
10200
 
10201
    public int compareTo(startItemOn_result other) {
10202
      if (!getClass().equals(other.getClass())) {
10203
        return getClass().getName().compareTo(other.getClass().getName());
10204
      }
10205
 
10206
      int lastComparison = 0;
10207
      startItemOn_result typedOther = (startItemOn_result)other;
10208
 
10209
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10210
      if (lastComparison != 0) {
10211
        return lastComparison;
10212
      }
10213
      if (isSetCex()) {
10214
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10215
        if (lastComparison != 0) {
10216
          return lastComparison;
10217
        }
10218
      }
10219
      return 0;
10220
    }
10221
 
10222
    public _Fields fieldForId(int fieldId) {
10223
      return _Fields.findByThriftId(fieldId);
10224
    }
10225
 
10226
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10227
      org.apache.thrift.protocol.TField field;
10228
      iprot.readStructBegin();
10229
      while (true)
10230
      {
10231
        field = iprot.readFieldBegin();
10232
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10233
          break;
10234
        }
10235
        switch (field.id) {
10236
          case 1: // CEX
10237
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10238
              this.cex = new CatalogServiceException();
10239
              this.cex.read(iprot);
10240
            } else { 
10241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10242
            }
10243
            break;
10244
          default:
10245
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10246
        }
10247
        iprot.readFieldEnd();
10248
      }
10249
      iprot.readStructEnd();
10250
      validate();
10251
    }
10252
 
10253
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10254
      oprot.writeStructBegin(STRUCT_DESC);
10255
 
10256
      if (this.isSetCex()) {
10257
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10258
        this.cex.write(oprot);
10259
        oprot.writeFieldEnd();
10260
      }
10261
      oprot.writeFieldStop();
10262
      oprot.writeStructEnd();
10263
    }
10264
 
10265
    @Override
10266
    public String toString() {
10267
      StringBuilder sb = new StringBuilder("startItemOn_result(");
10268
      boolean first = true;
10269
 
10270
      sb.append("cex:");
10271
      if (this.cex == null) {
10272
        sb.append("null");
10273
      } else {
10274
        sb.append(this.cex);
10275
      }
10276
      first = false;
10277
      sb.append(")");
10278
      return sb.toString();
10279
    }
10280
 
10281
    public void validate() throws org.apache.thrift.TException {
10282
      // check for required fields
10283
    }
10284
 
10285
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10286
      try {
10287
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10288
      } catch (org.apache.thrift.TException te) {
10289
        throw new java.io.IOException(te);
10290
      }
10291
    }
10292
 
10293
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10294
      try {
10295
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10296
      } catch (org.apache.thrift.TException te) {
10297
        throw new java.io.IOException(te);
10298
      }
10299
    }
10300
 
10301
  }
10302
 
10303
  public static class retireItemOn_args implements org.apache.thrift.TBase<retireItemOn_args, retireItemOn_args._Fields>, java.io.Serializable, Cloneable   {
10304
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireItemOn_args");
10305
 
10306
    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);
10307
    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);
10308
 
10309
    private long item_id; // required
10310
    private long timestamp; // required
10311
 
10312
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10313
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10314
      ITEM_ID((short)1, "item_id"),
10315
      TIMESTAMP((short)2, "timestamp");
10316
 
10317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10318
 
10319
      static {
10320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10321
          byName.put(field.getFieldName(), field);
10322
        }
10323
      }
10324
 
10325
      /**
10326
       * Find the _Fields constant that matches fieldId, or null if its not found.
10327
       */
10328
      public static _Fields findByThriftId(int fieldId) {
10329
        switch(fieldId) {
10330
          case 1: // ITEM_ID
10331
            return ITEM_ID;
10332
          case 2: // TIMESTAMP
10333
            return TIMESTAMP;
10334
          default:
10335
            return null;
10336
        }
10337
      }
10338
 
10339
      /**
10340
       * Find the _Fields constant that matches fieldId, throwing an exception
10341
       * if it is not found.
10342
       */
10343
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10344
        _Fields fields = findByThriftId(fieldId);
10345
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10346
        return fields;
10347
      }
10348
 
10349
      /**
10350
       * Find the _Fields constant that matches name, or null if its not found.
10351
       */
10352
      public static _Fields findByName(String name) {
10353
        return byName.get(name);
10354
      }
10355
 
10356
      private final short _thriftId;
10357
      private final String _fieldName;
10358
 
10359
      _Fields(short thriftId, String fieldName) {
10360
        _thriftId = thriftId;
10361
        _fieldName = fieldName;
10362
      }
10363
 
10364
      public short getThriftFieldId() {
10365
        return _thriftId;
10366
      }
10367
 
10368
      public String getFieldName() {
10369
        return _fieldName;
10370
      }
10371
    }
10372
 
10373
    // isset id assignments
10374
    private static final int __ITEM_ID_ISSET_ID = 0;
10375
    private static final int __TIMESTAMP_ISSET_ID = 1;
10376
    private BitSet __isset_bit_vector = new BitSet(2);
10377
 
10378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10379
    static {
10380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10381
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10383
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10384
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireItemOn_args.class, metaDataMap);
10387
    }
10388
 
10389
    public retireItemOn_args() {
10390
    }
10391
 
10392
    public retireItemOn_args(
10393
      long item_id,
10394
      long timestamp)
10395
    {
10396
      this();
10397
      this.item_id = item_id;
10398
      setItem_idIsSet(true);
10399
      this.timestamp = timestamp;
10400
      setTimestampIsSet(true);
10401
    }
10402
 
10403
    /**
10404
     * Performs a deep copy on <i>other</i>.
10405
     */
10406
    public retireItemOn_args(retireItemOn_args other) {
10407
      __isset_bit_vector.clear();
10408
      __isset_bit_vector.or(other.__isset_bit_vector);
10409
      this.item_id = other.item_id;
10410
      this.timestamp = other.timestamp;
10411
    }
10412
 
10413
    public retireItemOn_args deepCopy() {
10414
      return new retireItemOn_args(this);
10415
    }
10416
 
10417
    @Override
10418
    public void clear() {
10419
      setItem_idIsSet(false);
10420
      this.item_id = 0;
10421
      setTimestampIsSet(false);
10422
      this.timestamp = 0;
10423
    }
10424
 
10425
    public long getItem_id() {
10426
      return this.item_id;
10427
    }
10428
 
10429
    public void setItem_id(long item_id) {
10430
      this.item_id = item_id;
10431
      setItem_idIsSet(true);
10432
    }
10433
 
10434
    public void unsetItem_id() {
10435
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
10436
    }
10437
 
10438
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
10439
    public boolean isSetItem_id() {
10440
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
10441
    }
10442
 
10443
    public void setItem_idIsSet(boolean value) {
10444
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
10445
    }
10446
 
10447
    public long getTimestamp() {
10448
      return this.timestamp;
10449
    }
10450
 
10451
    public void setTimestamp(long timestamp) {
10452
      this.timestamp = timestamp;
10453
      setTimestampIsSet(true);
10454
    }
10455
 
10456
    public void unsetTimestamp() {
10457
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
10458
    }
10459
 
10460
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
10461
    public boolean isSetTimestamp() {
10462
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
10463
    }
10464
 
10465
    public void setTimestampIsSet(boolean value) {
10466
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
10467
    }
10468
 
10469
    public void setFieldValue(_Fields field, Object value) {
10470
      switch (field) {
10471
      case ITEM_ID:
10472
        if (value == null) {
10473
          unsetItem_id();
10474
        } else {
10475
          setItem_id((Long)value);
10476
        }
10477
        break;
10478
 
10479
      case TIMESTAMP:
10480
        if (value == null) {
10481
          unsetTimestamp();
10482
        } else {
10483
          setTimestamp((Long)value);
10484
        }
10485
        break;
10486
 
10487
      }
10488
    }
10489
 
10490
    public Object getFieldValue(_Fields field) {
10491
      switch (field) {
10492
      case ITEM_ID:
10493
        return Long.valueOf(getItem_id());
10494
 
10495
      case TIMESTAMP:
10496
        return Long.valueOf(getTimestamp());
10497
 
10498
      }
10499
      throw new IllegalStateException();
10500
    }
10501
 
10502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10503
    public boolean isSet(_Fields field) {
10504
      if (field == null) {
10505
        throw new IllegalArgumentException();
10506
      }
10507
 
10508
      switch (field) {
10509
      case ITEM_ID:
10510
        return isSetItem_id();
10511
      case TIMESTAMP:
10512
        return isSetTimestamp();
10513
      }
10514
      throw new IllegalStateException();
10515
    }
10516
 
10517
    @Override
10518
    public boolean equals(Object that) {
10519
      if (that == null)
10520
        return false;
10521
      if (that instanceof retireItemOn_args)
10522
        return this.equals((retireItemOn_args)that);
10523
      return false;
10524
    }
10525
 
10526
    public boolean equals(retireItemOn_args that) {
10527
      if (that == null)
10528
        return false;
10529
 
10530
      boolean this_present_item_id = true;
10531
      boolean that_present_item_id = true;
10532
      if (this_present_item_id || that_present_item_id) {
10533
        if (!(this_present_item_id && that_present_item_id))
10534
          return false;
10535
        if (this.item_id != that.item_id)
10536
          return false;
10537
      }
10538
 
10539
      boolean this_present_timestamp = true;
10540
      boolean that_present_timestamp = true;
10541
      if (this_present_timestamp || that_present_timestamp) {
10542
        if (!(this_present_timestamp && that_present_timestamp))
10543
          return false;
10544
        if (this.timestamp != that.timestamp)
10545
          return false;
10546
      }
10547
 
10548
      return true;
10549
    }
10550
 
10551
    @Override
10552
    public int hashCode() {
10553
      return 0;
10554
    }
10555
 
10556
    public int compareTo(retireItemOn_args other) {
10557
      if (!getClass().equals(other.getClass())) {
10558
        return getClass().getName().compareTo(other.getClass().getName());
10559
      }
10560
 
10561
      int lastComparison = 0;
10562
      retireItemOn_args typedOther = (retireItemOn_args)other;
10563
 
10564
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
10565
      if (lastComparison != 0) {
10566
        return lastComparison;
10567
      }
10568
      if (isSetItem_id()) {
10569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
10570
        if (lastComparison != 0) {
10571
          return lastComparison;
10572
        }
10573
      }
10574
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
10575
      if (lastComparison != 0) {
10576
        return lastComparison;
10577
      }
10578
      if (isSetTimestamp()) {
10579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
10580
        if (lastComparison != 0) {
10581
          return lastComparison;
10582
        }
10583
      }
10584
      return 0;
10585
    }
10586
 
10587
    public _Fields fieldForId(int fieldId) {
10588
      return _Fields.findByThriftId(fieldId);
10589
    }
10590
 
10591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10592
      org.apache.thrift.protocol.TField field;
10593
      iprot.readStructBegin();
10594
      while (true)
10595
      {
10596
        field = iprot.readFieldBegin();
10597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10598
          break;
10599
        }
10600
        switch (field.id) {
10601
          case 1: // ITEM_ID
10602
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10603
              this.item_id = iprot.readI64();
10604
              setItem_idIsSet(true);
10605
            } else { 
10606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10607
            }
10608
            break;
10609
          case 2: // TIMESTAMP
10610
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10611
              this.timestamp = iprot.readI64();
10612
              setTimestampIsSet(true);
10613
            } else { 
10614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10615
            }
10616
            break;
10617
          default:
10618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10619
        }
10620
        iprot.readFieldEnd();
10621
      }
10622
      iprot.readStructEnd();
10623
      validate();
10624
    }
10625
 
10626
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10627
      validate();
10628
 
10629
      oprot.writeStructBegin(STRUCT_DESC);
10630
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
10631
      oprot.writeI64(this.item_id);
10632
      oprot.writeFieldEnd();
10633
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
10634
      oprot.writeI64(this.timestamp);
10635
      oprot.writeFieldEnd();
10636
      oprot.writeFieldStop();
10637
      oprot.writeStructEnd();
10638
    }
10639
 
10640
    @Override
10641
    public String toString() {
10642
      StringBuilder sb = new StringBuilder("retireItemOn_args(");
10643
      boolean first = true;
10644
 
10645
      sb.append("item_id:");
10646
      sb.append(this.item_id);
10647
      first = false;
10648
      if (!first) sb.append(", ");
10649
      sb.append("timestamp:");
10650
      sb.append(this.timestamp);
10651
      first = false;
10652
      sb.append(")");
10653
      return sb.toString();
10654
    }
10655
 
10656
    public void validate() throws org.apache.thrift.TException {
10657
      // check for required fields
10658
    }
10659
 
10660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10661
      try {
10662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10663
      } catch (org.apache.thrift.TException te) {
10664
        throw new java.io.IOException(te);
10665
      }
10666
    }
10667
 
10668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10669
      try {
10670
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10671
        __isset_bit_vector = new BitSet(1);
10672
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10673
      } catch (org.apache.thrift.TException te) {
10674
        throw new java.io.IOException(te);
10675
      }
10676
    }
10677
 
10678
  }
10679
 
10680
  public static class retireItemOn_result implements org.apache.thrift.TBase<retireItemOn_result, retireItemOn_result._Fields>, java.io.Serializable, Cloneable   {
10681
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireItemOn_result");
10682
 
10683
    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);
10684
 
10685
    private CatalogServiceException cex; // required
10686
 
10687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10689
      CEX((short)1, "cex");
10690
 
10691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10692
 
10693
      static {
10694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10695
          byName.put(field.getFieldName(), field);
10696
        }
10697
      }
10698
 
10699
      /**
10700
       * Find the _Fields constant that matches fieldId, or null if its not found.
10701
       */
10702
      public static _Fields findByThriftId(int fieldId) {
10703
        switch(fieldId) {
10704
          case 1: // CEX
10705
            return CEX;
10706
          default:
10707
            return null;
10708
        }
10709
      }
10710
 
10711
      /**
10712
       * Find the _Fields constant that matches fieldId, throwing an exception
10713
       * if it is not found.
10714
       */
10715
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10716
        _Fields fields = findByThriftId(fieldId);
10717
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10718
        return fields;
10719
      }
10720
 
10721
      /**
10722
       * Find the _Fields constant that matches name, or null if its not found.
10723
       */
10724
      public static _Fields findByName(String name) {
10725
        return byName.get(name);
10726
      }
10727
 
10728
      private final short _thriftId;
10729
      private final String _fieldName;
10730
 
10731
      _Fields(short thriftId, String fieldName) {
10732
        _thriftId = thriftId;
10733
        _fieldName = fieldName;
10734
      }
10735
 
10736
      public short getThriftFieldId() {
10737
        return _thriftId;
10738
      }
10739
 
10740
      public String getFieldName() {
10741
        return _fieldName;
10742
      }
10743
    }
10744
 
10745
    // isset id assignments
10746
 
10747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10748
    static {
10749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10750
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireItemOn_result.class, metaDataMap);
10754
    }
10755
 
10756
    public retireItemOn_result() {
10757
    }
10758
 
10759
    public retireItemOn_result(
10760
      CatalogServiceException cex)
10761
    {
10762
      this();
10763
      this.cex = cex;
10764
    }
10765
 
10766
    /**
10767
     * Performs a deep copy on <i>other</i>.
10768
     */
10769
    public retireItemOn_result(retireItemOn_result other) {
10770
      if (other.isSetCex()) {
10771
        this.cex = new CatalogServiceException(other.cex);
10772
      }
10773
    }
10774
 
10775
    public retireItemOn_result deepCopy() {
10776
      return new retireItemOn_result(this);
10777
    }
10778
 
10779
    @Override
10780
    public void clear() {
10781
      this.cex = null;
10782
    }
10783
 
10784
    public CatalogServiceException getCex() {
10785
      return this.cex;
10786
    }
10787
 
10788
    public void setCex(CatalogServiceException cex) {
10789
      this.cex = cex;
10790
    }
10791
 
10792
    public void unsetCex() {
10793
      this.cex = null;
10794
    }
10795
 
10796
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10797
    public boolean isSetCex() {
10798
      return this.cex != null;
10799
    }
10800
 
10801
    public void setCexIsSet(boolean value) {
10802
      if (!value) {
10803
        this.cex = null;
10804
      }
10805
    }
10806
 
10807
    public void setFieldValue(_Fields field, Object value) {
10808
      switch (field) {
10809
      case CEX:
10810
        if (value == null) {
10811
          unsetCex();
10812
        } else {
10813
          setCex((CatalogServiceException)value);
10814
        }
10815
        break;
10816
 
10817
      }
10818
    }
10819
 
10820
    public Object getFieldValue(_Fields field) {
10821
      switch (field) {
10822
      case CEX:
10823
        return getCex();
10824
 
10825
      }
10826
      throw new IllegalStateException();
10827
    }
10828
 
10829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10830
    public boolean isSet(_Fields field) {
10831
      if (field == null) {
10832
        throw new IllegalArgumentException();
10833
      }
10834
 
10835
      switch (field) {
10836
      case CEX:
10837
        return isSetCex();
10838
      }
10839
      throw new IllegalStateException();
10840
    }
10841
 
10842
    @Override
10843
    public boolean equals(Object that) {
10844
      if (that == null)
10845
        return false;
10846
      if (that instanceof retireItemOn_result)
10847
        return this.equals((retireItemOn_result)that);
10848
      return false;
10849
    }
10850
 
10851
    public boolean equals(retireItemOn_result that) {
10852
      if (that == null)
10853
        return false;
10854
 
10855
      boolean this_present_cex = true && this.isSetCex();
10856
      boolean that_present_cex = true && that.isSetCex();
10857
      if (this_present_cex || that_present_cex) {
10858
        if (!(this_present_cex && that_present_cex))
10859
          return false;
10860
        if (!this.cex.equals(that.cex))
10861
          return false;
10862
      }
10863
 
10864
      return true;
10865
    }
10866
 
10867
    @Override
10868
    public int hashCode() {
10869
      return 0;
10870
    }
10871
 
10872
    public int compareTo(retireItemOn_result other) {
10873
      if (!getClass().equals(other.getClass())) {
10874
        return getClass().getName().compareTo(other.getClass().getName());
10875
      }
10876
 
10877
      int lastComparison = 0;
10878
      retireItemOn_result typedOther = (retireItemOn_result)other;
10879
 
10880
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10881
      if (lastComparison != 0) {
10882
        return lastComparison;
10883
      }
10884
      if (isSetCex()) {
10885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10886
        if (lastComparison != 0) {
10887
          return lastComparison;
10888
        }
10889
      }
10890
      return 0;
10891
    }
10892
 
10893
    public _Fields fieldForId(int fieldId) {
10894
      return _Fields.findByThriftId(fieldId);
10895
    }
10896
 
10897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10898
      org.apache.thrift.protocol.TField field;
10899
      iprot.readStructBegin();
10900
      while (true)
10901
      {
10902
        field = iprot.readFieldBegin();
10903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10904
          break;
10905
        }
10906
        switch (field.id) {
10907
          case 1: // CEX
10908
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10909
              this.cex = new CatalogServiceException();
10910
              this.cex.read(iprot);
10911
            } else { 
10912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10913
            }
10914
            break;
10915
          default:
10916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10917
        }
10918
        iprot.readFieldEnd();
10919
      }
10920
      iprot.readStructEnd();
10921
      validate();
10922
    }
10923
 
10924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10925
      oprot.writeStructBegin(STRUCT_DESC);
10926
 
10927
      if (this.isSetCex()) {
10928
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10929
        this.cex.write(oprot);
10930
        oprot.writeFieldEnd();
10931
      }
10932
      oprot.writeFieldStop();
10933
      oprot.writeStructEnd();
10934
    }
10935
 
10936
    @Override
10937
    public String toString() {
10938
      StringBuilder sb = new StringBuilder("retireItemOn_result(");
10939
      boolean first = true;
10940
 
10941
      sb.append("cex:");
10942
      if (this.cex == null) {
10943
        sb.append("null");
10944
      } else {
10945
        sb.append(this.cex);
10946
      }
10947
      first = false;
10948
      sb.append(")");
10949
      return sb.toString();
10950
    }
10951
 
10952
    public void validate() throws org.apache.thrift.TException {
10953
      // check for required fields
10954
    }
10955
 
10956
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10957
      try {
10958
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10959
      } catch (org.apache.thrift.TException te) {
10960
        throw new java.io.IOException(te);
10961
      }
10962
    }
10963
 
10964
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10965
      try {
10966
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10967
      } catch (org.apache.thrift.TException te) {
10968
        throw new java.io.IOException(te);
10969
      }
10970
    }
10971
 
10972
  }
10973
 
10974
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
10975
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
10976
 
10977
    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);
10978
    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);
10979
    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);
10980
 
10981
    private long item_id; // required
10982
    private long timestamp; // required
10983
    private status newstatus; // required
10984
 
10985
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10986
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10987
      ITEM_ID((short)1, "item_id"),
10988
      TIMESTAMP((short)2, "timestamp"),
10989
      /**
10990
       * 
10991
       * @see status
10992
       */
10993
      NEWSTATUS((short)3, "newstatus");
10994
 
10995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10996
 
10997
      static {
10998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10999
          byName.put(field.getFieldName(), field);
11000
        }
11001
      }
11002
 
11003
      /**
11004
       * Find the _Fields constant that matches fieldId, or null if its not found.
11005
       */
11006
      public static _Fields findByThriftId(int fieldId) {
11007
        switch(fieldId) {
11008
          case 1: // ITEM_ID
11009
            return ITEM_ID;
11010
          case 2: // TIMESTAMP
11011
            return TIMESTAMP;
11012
          case 3: // NEWSTATUS
11013
            return NEWSTATUS;
11014
          default:
11015
            return null;
11016
        }
11017
      }
11018
 
11019
      /**
11020
       * Find the _Fields constant that matches fieldId, throwing an exception
11021
       * if it is not found.
11022
       */
11023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11024
        _Fields fields = findByThriftId(fieldId);
11025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11026
        return fields;
11027
      }
11028
 
11029
      /**
11030
       * Find the _Fields constant that matches name, or null if its not found.
11031
       */
11032
      public static _Fields findByName(String name) {
11033
        return byName.get(name);
11034
      }
11035
 
11036
      private final short _thriftId;
11037
      private final String _fieldName;
11038
 
11039
      _Fields(short thriftId, String fieldName) {
11040
        _thriftId = thriftId;
11041
        _fieldName = fieldName;
11042
      }
11043
 
11044
      public short getThriftFieldId() {
11045
        return _thriftId;
11046
      }
11047
 
11048
      public String getFieldName() {
11049
        return _fieldName;
11050
      }
11051
    }
11052
 
11053
    // isset id assignments
11054
    private static final int __ITEM_ID_ISSET_ID = 0;
11055
    private static final int __TIMESTAMP_ISSET_ID = 1;
11056
    private BitSet __isset_bit_vector = new BitSet(2);
11057
 
11058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11059
    static {
11060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11061
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11063
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11064
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11065
      tmpMap.put(_Fields.NEWSTATUS, new org.apache.thrift.meta_data.FieldMetaData("newstatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11066
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
11067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);
11069
    }
11070
 
11071
    public changeItemStatus_args() {
11072
    }
11073
 
11074
    public changeItemStatus_args(
11075
      long item_id,
11076
      long timestamp,
11077
      status newstatus)
11078
    {
11079
      this();
11080
      this.item_id = item_id;
11081
      setItem_idIsSet(true);
11082
      this.timestamp = timestamp;
11083
      setTimestampIsSet(true);
11084
      this.newstatus = newstatus;
11085
    }
11086
 
11087
    /**
11088
     * Performs a deep copy on <i>other</i>.
11089
     */
11090
    public changeItemStatus_args(changeItemStatus_args other) {
11091
      __isset_bit_vector.clear();
11092
      __isset_bit_vector.or(other.__isset_bit_vector);
11093
      this.item_id = other.item_id;
11094
      this.timestamp = other.timestamp;
11095
      if (other.isSetNewstatus()) {
11096
        this.newstatus = other.newstatus;
11097
      }
11098
    }
11099
 
11100
    public changeItemStatus_args deepCopy() {
11101
      return new changeItemStatus_args(this);
11102
    }
11103
 
11104
    @Override
11105
    public void clear() {
11106
      setItem_idIsSet(false);
11107
      this.item_id = 0;
11108
      setTimestampIsSet(false);
11109
      this.timestamp = 0;
11110
      this.newstatus = null;
11111
    }
11112
 
11113
    public long getItem_id() {
11114
      return this.item_id;
11115
    }
11116
 
11117
    public void setItem_id(long item_id) {
11118
      this.item_id = item_id;
11119
      setItem_idIsSet(true);
11120
    }
11121
 
11122
    public void unsetItem_id() {
11123
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
11124
    }
11125
 
11126
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
11127
    public boolean isSetItem_id() {
11128
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
11129
    }
11130
 
11131
    public void setItem_idIsSet(boolean value) {
11132
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
11133
    }
11134
 
11135
    public long getTimestamp() {
11136
      return this.timestamp;
11137
    }
11138
 
11139
    public void setTimestamp(long timestamp) {
11140
      this.timestamp = timestamp;
11141
      setTimestampIsSet(true);
11142
    }
11143
 
11144
    public void unsetTimestamp() {
11145
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
11146
    }
11147
 
11148
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
11149
    public boolean isSetTimestamp() {
11150
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
11151
    }
11152
 
11153
    public void setTimestampIsSet(boolean value) {
11154
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
11155
    }
11156
 
11157
    /**
11158
     * 
11159
     * @see status
11160
     */
11161
    public status getNewstatus() {
11162
      return this.newstatus;
11163
    }
11164
 
11165
    /**
11166
     * 
11167
     * @see status
11168
     */
11169
    public void setNewstatus(status newstatus) {
11170
      this.newstatus = newstatus;
11171
    }
11172
 
11173
    public void unsetNewstatus() {
11174
      this.newstatus = null;
11175
    }
11176
 
11177
    /** Returns true if field newstatus is set (has been assigned a value) and false otherwise */
11178
    public boolean isSetNewstatus() {
11179
      return this.newstatus != null;
11180
    }
11181
 
11182
    public void setNewstatusIsSet(boolean value) {
11183
      if (!value) {
11184
        this.newstatus = null;
11185
      }
11186
    }
11187
 
11188
    public void setFieldValue(_Fields field, Object value) {
11189
      switch (field) {
11190
      case ITEM_ID:
11191
        if (value == null) {
11192
          unsetItem_id();
11193
        } else {
11194
          setItem_id((Long)value);
11195
        }
11196
        break;
11197
 
11198
      case TIMESTAMP:
11199
        if (value == null) {
11200
          unsetTimestamp();
11201
        } else {
11202
          setTimestamp((Long)value);
11203
        }
11204
        break;
11205
 
11206
      case NEWSTATUS:
11207
        if (value == null) {
11208
          unsetNewstatus();
11209
        } else {
11210
          setNewstatus((status)value);
11211
        }
11212
        break;
11213
 
11214
      }
11215
    }
11216
 
11217
    public Object getFieldValue(_Fields field) {
11218
      switch (field) {
11219
      case ITEM_ID:
11220
        return Long.valueOf(getItem_id());
11221
 
11222
      case TIMESTAMP:
11223
        return Long.valueOf(getTimestamp());
11224
 
11225
      case NEWSTATUS:
11226
        return getNewstatus();
11227
 
11228
      }
11229
      throw new IllegalStateException();
11230
    }
11231
 
11232
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11233
    public boolean isSet(_Fields field) {
11234
      if (field == null) {
11235
        throw new IllegalArgumentException();
11236
      }
11237
 
11238
      switch (field) {
11239
      case ITEM_ID:
11240
        return isSetItem_id();
11241
      case TIMESTAMP:
11242
        return isSetTimestamp();
11243
      case NEWSTATUS:
11244
        return isSetNewstatus();
11245
      }
11246
      throw new IllegalStateException();
11247
    }
11248
 
11249
    @Override
11250
    public boolean equals(Object that) {
11251
      if (that == null)
11252
        return false;
11253
      if (that instanceof changeItemStatus_args)
11254
        return this.equals((changeItemStatus_args)that);
11255
      return false;
11256
    }
11257
 
11258
    public boolean equals(changeItemStatus_args that) {
11259
      if (that == null)
11260
        return false;
11261
 
11262
      boolean this_present_item_id = true;
11263
      boolean that_present_item_id = true;
11264
      if (this_present_item_id || that_present_item_id) {
11265
        if (!(this_present_item_id && that_present_item_id))
11266
          return false;
11267
        if (this.item_id != that.item_id)
11268
          return false;
11269
      }
11270
 
11271
      boolean this_present_timestamp = true;
11272
      boolean that_present_timestamp = true;
11273
      if (this_present_timestamp || that_present_timestamp) {
11274
        if (!(this_present_timestamp && that_present_timestamp))
11275
          return false;
11276
        if (this.timestamp != that.timestamp)
11277
          return false;
11278
      }
11279
 
11280
      boolean this_present_newstatus = true && this.isSetNewstatus();
11281
      boolean that_present_newstatus = true && that.isSetNewstatus();
11282
      if (this_present_newstatus || that_present_newstatus) {
11283
        if (!(this_present_newstatus && that_present_newstatus))
11284
          return false;
11285
        if (!this.newstatus.equals(that.newstatus))
11286
          return false;
11287
      }
11288
 
11289
      return true;
11290
    }
11291
 
11292
    @Override
11293
    public int hashCode() {
11294
      return 0;
11295
    }
11296
 
11297
    public int compareTo(changeItemStatus_args other) {
11298
      if (!getClass().equals(other.getClass())) {
11299
        return getClass().getName().compareTo(other.getClass().getName());
11300
      }
11301
 
11302
      int lastComparison = 0;
11303
      changeItemStatus_args typedOther = (changeItemStatus_args)other;
11304
 
11305
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
11306
      if (lastComparison != 0) {
11307
        return lastComparison;
11308
      }
11309
      if (isSetItem_id()) {
11310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
11311
        if (lastComparison != 0) {
11312
          return lastComparison;
11313
        }
11314
      }
11315
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
11316
      if (lastComparison != 0) {
11317
        return lastComparison;
11318
      }
11319
      if (isSetTimestamp()) {
11320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
11321
        if (lastComparison != 0) {
11322
          return lastComparison;
11323
        }
11324
      }
11325
      lastComparison = Boolean.valueOf(isSetNewstatus()).compareTo(typedOther.isSetNewstatus());
11326
      if (lastComparison != 0) {
11327
        return lastComparison;
11328
      }
11329
      if (isSetNewstatus()) {
11330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newstatus, typedOther.newstatus);
11331
        if (lastComparison != 0) {
11332
          return lastComparison;
11333
        }
11334
      }
11335
      return 0;
11336
    }
11337
 
11338
    public _Fields fieldForId(int fieldId) {
11339
      return _Fields.findByThriftId(fieldId);
11340
    }
11341
 
11342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11343
      org.apache.thrift.protocol.TField field;
11344
      iprot.readStructBegin();
11345
      while (true)
11346
      {
11347
        field = iprot.readFieldBegin();
11348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11349
          break;
11350
        }
11351
        switch (field.id) {
11352
          case 1: // ITEM_ID
11353
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11354
              this.item_id = iprot.readI64();
11355
              setItem_idIsSet(true);
11356
            } else { 
11357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11358
            }
11359
            break;
11360
          case 2: // TIMESTAMP
11361
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11362
              this.timestamp = iprot.readI64();
11363
              setTimestampIsSet(true);
11364
            } else { 
11365
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11366
            }
11367
            break;
11368
          case 3: // NEWSTATUS
11369
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11370
              this.newstatus = status.findByValue(iprot.readI32());
11371
            } else { 
11372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11373
            }
11374
            break;
11375
          default:
11376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11377
        }
11378
        iprot.readFieldEnd();
11379
      }
11380
      iprot.readStructEnd();
11381
      validate();
11382
    }
11383
 
11384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11385
      validate();
11386
 
11387
      oprot.writeStructBegin(STRUCT_DESC);
11388
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
11389
      oprot.writeI64(this.item_id);
11390
      oprot.writeFieldEnd();
11391
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
11392
      oprot.writeI64(this.timestamp);
11393
      oprot.writeFieldEnd();
11394
      if (this.newstatus != null) {
11395
        oprot.writeFieldBegin(NEWSTATUS_FIELD_DESC);
11396
        oprot.writeI32(this.newstatus.getValue());
11397
        oprot.writeFieldEnd();
11398
      }
11399
      oprot.writeFieldStop();
11400
      oprot.writeStructEnd();
11401
    }
11402
 
11403
    @Override
11404
    public String toString() {
11405
      StringBuilder sb = new StringBuilder("changeItemStatus_args(");
11406
      boolean first = true;
11407
 
11408
      sb.append("item_id:");
11409
      sb.append(this.item_id);
11410
      first = false;
11411
      if (!first) sb.append(", ");
11412
      sb.append("timestamp:");
11413
      sb.append(this.timestamp);
11414
      first = false;
11415
      if (!first) sb.append(", ");
11416
      sb.append("newstatus:");
11417
      if (this.newstatus == null) {
11418
        sb.append("null");
11419
      } else {
11420
        sb.append(this.newstatus);
11421
      }
11422
      first = false;
11423
      sb.append(")");
11424
      return sb.toString();
11425
    }
11426
 
11427
    public void validate() throws org.apache.thrift.TException {
11428
      // check for required fields
11429
    }
11430
 
11431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11432
      try {
11433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11434
      } catch (org.apache.thrift.TException te) {
11435
        throw new java.io.IOException(te);
11436
      }
11437
    }
11438
 
11439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11440
      try {
11441
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11442
        __isset_bit_vector = new BitSet(1);
11443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11444
      } catch (org.apache.thrift.TException te) {
11445
        throw new java.io.IOException(te);
11446
      }
11447
    }
11448
 
11449
  }
11450
 
11451
  public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable   {
11452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");
11453
 
11454
    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);
11455
 
11456
    private CatalogServiceException cex; // required
11457
 
11458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11460
      CEX((short)1, "cex");
11461
 
11462
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11463
 
11464
      static {
11465
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11466
          byName.put(field.getFieldName(), field);
11467
        }
11468
      }
11469
 
11470
      /**
11471
       * Find the _Fields constant that matches fieldId, or null if its not found.
11472
       */
11473
      public static _Fields findByThriftId(int fieldId) {
11474
        switch(fieldId) {
11475
          case 1: // CEX
11476
            return CEX;
11477
          default:
11478
            return null;
11479
        }
11480
      }
11481
 
11482
      /**
11483
       * Find the _Fields constant that matches fieldId, throwing an exception
11484
       * if it is not found.
11485
       */
11486
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11487
        _Fields fields = findByThriftId(fieldId);
11488
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11489
        return fields;
11490
      }
11491
 
11492
      /**
11493
       * Find the _Fields constant that matches name, or null if its not found.
11494
       */
11495
      public static _Fields findByName(String name) {
11496
        return byName.get(name);
11497
      }
11498
 
11499
      private final short _thriftId;
11500
      private final String _fieldName;
11501
 
11502
      _Fields(short thriftId, String fieldName) {
11503
        _thriftId = thriftId;
11504
        _fieldName = fieldName;
11505
      }
11506
 
11507
      public short getThriftFieldId() {
11508
        return _thriftId;
11509
      }
11510
 
11511
      public String getFieldName() {
11512
        return _fieldName;
11513
      }
11514
    }
11515
 
11516
    // isset id assignments
11517
 
11518
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11519
    static {
11520
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11521
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11523
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11524
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);
11525
    }
11526
 
11527
    public changeItemStatus_result() {
11528
    }
11529
 
11530
    public changeItemStatus_result(
11531
      CatalogServiceException cex)
11532
    {
11533
      this();
11534
      this.cex = cex;
11535
    }
11536
 
11537
    /**
11538
     * Performs a deep copy on <i>other</i>.
11539
     */
11540
    public changeItemStatus_result(changeItemStatus_result other) {
11541
      if (other.isSetCex()) {
11542
        this.cex = new CatalogServiceException(other.cex);
11543
      }
11544
    }
11545
 
11546
    public changeItemStatus_result deepCopy() {
11547
      return new changeItemStatus_result(this);
11548
    }
11549
 
11550
    @Override
11551
    public void clear() {
11552
      this.cex = null;
11553
    }
11554
 
11555
    public CatalogServiceException getCex() {
11556
      return this.cex;
11557
    }
11558
 
11559
    public void setCex(CatalogServiceException cex) {
11560
      this.cex = cex;
11561
    }
11562
 
11563
    public void unsetCex() {
11564
      this.cex = null;
11565
    }
11566
 
11567
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11568
    public boolean isSetCex() {
11569
      return this.cex != null;
11570
    }
11571
 
11572
    public void setCexIsSet(boolean value) {
11573
      if (!value) {
11574
        this.cex = null;
11575
      }
11576
    }
11577
 
11578
    public void setFieldValue(_Fields field, Object value) {
11579
      switch (field) {
11580
      case CEX:
11581
        if (value == null) {
11582
          unsetCex();
11583
        } else {
11584
          setCex((CatalogServiceException)value);
11585
        }
11586
        break;
11587
 
11588
      }
11589
    }
11590
 
11591
    public Object getFieldValue(_Fields field) {
11592
      switch (field) {
11593
      case CEX:
11594
        return getCex();
11595
 
11596
      }
11597
      throw new IllegalStateException();
11598
    }
11599
 
11600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11601
    public boolean isSet(_Fields field) {
11602
      if (field == null) {
11603
        throw new IllegalArgumentException();
11604
      }
11605
 
11606
      switch (field) {
11607
      case CEX:
11608
        return isSetCex();
11609
      }
11610
      throw new IllegalStateException();
11611
    }
11612
 
11613
    @Override
11614
    public boolean equals(Object that) {
11615
      if (that == null)
11616
        return false;
11617
      if (that instanceof changeItemStatus_result)
11618
        return this.equals((changeItemStatus_result)that);
11619
      return false;
11620
    }
11621
 
11622
    public boolean equals(changeItemStatus_result that) {
11623
      if (that == null)
11624
        return false;
11625
 
11626
      boolean this_present_cex = true && this.isSetCex();
11627
      boolean that_present_cex = true && that.isSetCex();
11628
      if (this_present_cex || that_present_cex) {
11629
        if (!(this_present_cex && that_present_cex))
11630
          return false;
11631
        if (!this.cex.equals(that.cex))
11632
          return false;
11633
      }
11634
 
11635
      return true;
11636
    }
11637
 
11638
    @Override
11639
    public int hashCode() {
11640
      return 0;
11641
    }
11642
 
11643
    public int compareTo(changeItemStatus_result other) {
11644
      if (!getClass().equals(other.getClass())) {
11645
        return getClass().getName().compareTo(other.getClass().getName());
11646
      }
11647
 
11648
      int lastComparison = 0;
11649
      changeItemStatus_result typedOther = (changeItemStatus_result)other;
11650
 
11651
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11652
      if (lastComparison != 0) {
11653
        return lastComparison;
11654
      }
11655
      if (isSetCex()) {
11656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11657
        if (lastComparison != 0) {
11658
          return lastComparison;
11659
        }
11660
      }
11661
      return 0;
11662
    }
11663
 
11664
    public _Fields fieldForId(int fieldId) {
11665
      return _Fields.findByThriftId(fieldId);
11666
    }
11667
 
11668
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11669
      org.apache.thrift.protocol.TField field;
11670
      iprot.readStructBegin();
11671
      while (true)
11672
      {
11673
        field = iprot.readFieldBegin();
11674
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11675
          break;
11676
        }
11677
        switch (field.id) {
11678
          case 1: // CEX
11679
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11680
              this.cex = new CatalogServiceException();
11681
              this.cex.read(iprot);
11682
            } else { 
11683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11684
            }
11685
            break;
11686
          default:
11687
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11688
        }
11689
        iprot.readFieldEnd();
11690
      }
11691
      iprot.readStructEnd();
11692
      validate();
11693
    }
11694
 
11695
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11696
      oprot.writeStructBegin(STRUCT_DESC);
11697
 
11698
      if (this.isSetCex()) {
11699
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11700
        this.cex.write(oprot);
11701
        oprot.writeFieldEnd();
11702
      }
11703
      oprot.writeFieldStop();
11704
      oprot.writeStructEnd();
11705
    }
11706
 
11707
    @Override
11708
    public String toString() {
11709
      StringBuilder sb = new StringBuilder("changeItemStatus_result(");
11710
      boolean first = true;
11711
 
11712
      sb.append("cex:");
11713
      if (this.cex == null) {
11714
        sb.append("null");
11715
      } else {
11716
        sb.append(this.cex);
11717
      }
11718
      first = false;
11719
      sb.append(")");
11720
      return sb.toString();
11721
    }
11722
 
11723
    public void validate() throws org.apache.thrift.TException {
11724
      // check for required fields
11725
    }
11726
 
11727
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11728
      try {
11729
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11730
      } catch (org.apache.thrift.TException te) {
11731
        throw new java.io.IOException(te);
11732
      }
11733
    }
11734
 
11735
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11736
      try {
11737
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11738
      } catch (org.apache.thrift.TException te) {
11739
        throw new java.io.IOException(te);
11740
      }
11741
    }
11742
 
11743
  }
11744
 
11745
  public static class getItem_args implements org.apache.thrift.TBase<getItem_args, getItem_args._Fields>, java.io.Serializable, Cloneable   {
11746
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItem_args");
11747
 
11748
    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);
11749
 
11750
    private long item_id; // required
11751
 
11752
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11753
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11754
      ITEM_ID((short)1, "item_id");
11755
 
11756
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11757
 
11758
      static {
11759
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11760
          byName.put(field.getFieldName(), field);
11761
        }
11762
      }
11763
 
11764
      /**
11765
       * Find the _Fields constant that matches fieldId, or null if its not found.
11766
       */
11767
      public static _Fields findByThriftId(int fieldId) {
11768
        switch(fieldId) {
11769
          case 1: // ITEM_ID
11770
            return ITEM_ID;
11771
          default:
11772
            return null;
11773
        }
11774
      }
11775
 
11776
      /**
11777
       * Find the _Fields constant that matches fieldId, throwing an exception
11778
       * if it is not found.
11779
       */
11780
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11781
        _Fields fields = findByThriftId(fieldId);
11782
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11783
        return fields;
11784
      }
11785
 
11786
      /**
11787
       * Find the _Fields constant that matches name, or null if its not found.
11788
       */
11789
      public static _Fields findByName(String name) {
11790
        return byName.get(name);
11791
      }
11792
 
11793
      private final short _thriftId;
11794
      private final String _fieldName;
11795
 
11796
      _Fields(short thriftId, String fieldName) {
11797
        _thriftId = thriftId;
11798
        _fieldName = fieldName;
11799
      }
11800
 
11801
      public short getThriftFieldId() {
11802
        return _thriftId;
11803
      }
11804
 
11805
      public String getFieldName() {
11806
        return _fieldName;
11807
      }
11808
    }
11809
 
11810
    // isset id assignments
11811
    private static final int __ITEM_ID_ISSET_ID = 0;
11812
    private BitSet __isset_bit_vector = new BitSet(1);
11813
 
11814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11815
    static {
11816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11817
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItem_args.class, metaDataMap);
11821
    }
11822
 
11823
    public getItem_args() {
11824
    }
11825
 
11826
    public getItem_args(
11827
      long item_id)
11828
    {
11829
      this();
11830
      this.item_id = item_id;
11831
      setItem_idIsSet(true);
11832
    }
11833
 
11834
    /**
11835
     * Performs a deep copy on <i>other</i>.
11836
     */
11837
    public getItem_args(getItem_args other) {
11838
      __isset_bit_vector.clear();
11839
      __isset_bit_vector.or(other.__isset_bit_vector);
11840
      this.item_id = other.item_id;
11841
    }
11842
 
11843
    public getItem_args deepCopy() {
11844
      return new getItem_args(this);
11845
    }
11846
 
11847
    @Override
11848
    public void clear() {
11849
      setItem_idIsSet(false);
11850
      this.item_id = 0;
11851
    }
11852
 
11853
    public long getItem_id() {
11854
      return this.item_id;
11855
    }
11856
 
11857
    public void setItem_id(long item_id) {
11858
      this.item_id = item_id;
11859
      setItem_idIsSet(true);
11860
    }
11861
 
11862
    public void unsetItem_id() {
11863
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
11864
    }
11865
 
11866
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
11867
    public boolean isSetItem_id() {
11868
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
11869
    }
11870
 
11871
    public void setItem_idIsSet(boolean value) {
11872
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
11873
    }
11874
 
11875
    public void setFieldValue(_Fields field, Object value) {
11876
      switch (field) {
11877
      case ITEM_ID:
11878
        if (value == null) {
11879
          unsetItem_id();
11880
        } else {
11881
          setItem_id((Long)value);
11882
        }
11883
        break;
11884
 
11885
      }
11886
    }
11887
 
11888
    public Object getFieldValue(_Fields field) {
11889
      switch (field) {
11890
      case ITEM_ID:
11891
        return Long.valueOf(getItem_id());
11892
 
11893
      }
11894
      throw new IllegalStateException();
11895
    }
11896
 
11897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11898
    public boolean isSet(_Fields field) {
11899
      if (field == null) {
11900
        throw new IllegalArgumentException();
11901
      }
11902
 
11903
      switch (field) {
11904
      case ITEM_ID:
11905
        return isSetItem_id();
11906
      }
11907
      throw new IllegalStateException();
11908
    }
11909
 
11910
    @Override
11911
    public boolean equals(Object that) {
11912
      if (that == null)
11913
        return false;
11914
      if (that instanceof getItem_args)
11915
        return this.equals((getItem_args)that);
11916
      return false;
11917
    }
11918
 
11919
    public boolean equals(getItem_args that) {
11920
      if (that == null)
11921
        return false;
11922
 
11923
      boolean this_present_item_id = true;
11924
      boolean that_present_item_id = true;
11925
      if (this_present_item_id || that_present_item_id) {
11926
        if (!(this_present_item_id && that_present_item_id))
11927
          return false;
11928
        if (this.item_id != that.item_id)
11929
          return false;
11930
      }
11931
 
11932
      return true;
11933
    }
11934
 
11935
    @Override
11936
    public int hashCode() {
11937
      return 0;
11938
    }
11939
 
11940
    public int compareTo(getItem_args other) {
11941
      if (!getClass().equals(other.getClass())) {
11942
        return getClass().getName().compareTo(other.getClass().getName());
11943
      }
11944
 
11945
      int lastComparison = 0;
11946
      getItem_args typedOther = (getItem_args)other;
11947
 
11948
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
11949
      if (lastComparison != 0) {
11950
        return lastComparison;
11951
      }
11952
      if (isSetItem_id()) {
11953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
11954
        if (lastComparison != 0) {
11955
          return lastComparison;
11956
        }
11957
      }
11958
      return 0;
11959
    }
11960
 
11961
    public _Fields fieldForId(int fieldId) {
11962
      return _Fields.findByThriftId(fieldId);
11963
    }
11964
 
11965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11966
      org.apache.thrift.protocol.TField field;
11967
      iprot.readStructBegin();
11968
      while (true)
11969
      {
11970
        field = iprot.readFieldBegin();
11971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11972
          break;
11973
        }
11974
        switch (field.id) {
11975
          case 1: // ITEM_ID
11976
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11977
              this.item_id = iprot.readI64();
11978
              setItem_idIsSet(true);
11979
            } else { 
11980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11981
            }
11982
            break;
11983
          default:
11984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11985
        }
11986
        iprot.readFieldEnd();
11987
      }
11988
      iprot.readStructEnd();
11989
      validate();
11990
    }
11991
 
11992
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11993
      validate();
11994
 
11995
      oprot.writeStructBegin(STRUCT_DESC);
11996
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
11997
      oprot.writeI64(this.item_id);
11998
      oprot.writeFieldEnd();
11999
      oprot.writeFieldStop();
12000
      oprot.writeStructEnd();
12001
    }
12002
 
12003
    @Override
12004
    public String toString() {
12005
      StringBuilder sb = new StringBuilder("getItem_args(");
12006
      boolean first = true;
12007
 
12008
      sb.append("item_id:");
12009
      sb.append(this.item_id);
12010
      first = false;
12011
      sb.append(")");
12012
      return sb.toString();
12013
    }
12014
 
12015
    public void validate() throws org.apache.thrift.TException {
12016
      // check for required fields
12017
    }
12018
 
12019
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12020
      try {
12021
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12022
      } catch (org.apache.thrift.TException te) {
12023
        throw new java.io.IOException(te);
12024
      }
12025
    }
12026
 
12027
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12028
      try {
12029
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12030
        __isset_bit_vector = new BitSet(1);
12031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12032
      } catch (org.apache.thrift.TException te) {
12033
        throw new java.io.IOException(te);
12034
      }
12035
    }
12036
 
12037
  }
12038
 
12039
  public static class getItem_result implements org.apache.thrift.TBase<getItem_result, getItem_result._Fields>, java.io.Serializable, Cloneable   {
12040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItem_result");
12041
 
12042
    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);
12043
    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);
12044
 
12045
    private Item success; // required
12046
    private CatalogServiceException cex; // required
12047
 
12048
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12049
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12050
      SUCCESS((short)0, "success"),
12051
      CEX((short)1, "cex");
12052
 
12053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12054
 
12055
      static {
12056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12057
          byName.put(field.getFieldName(), field);
12058
        }
12059
      }
12060
 
12061
      /**
12062
       * Find the _Fields constant that matches fieldId, or null if its not found.
12063
       */
12064
      public static _Fields findByThriftId(int fieldId) {
12065
        switch(fieldId) {
12066
          case 0: // SUCCESS
12067
            return SUCCESS;
12068
          case 1: // CEX
12069
            return CEX;
12070
          default:
12071
            return null;
12072
        }
12073
      }
12074
 
12075
      /**
12076
       * Find the _Fields constant that matches fieldId, throwing an exception
12077
       * if it is not found.
12078
       */
12079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12080
        _Fields fields = findByThriftId(fieldId);
12081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12082
        return fields;
12083
      }
12084
 
12085
      /**
12086
       * Find the _Fields constant that matches name, or null if its not found.
12087
       */
12088
      public static _Fields findByName(String name) {
12089
        return byName.get(name);
12090
      }
12091
 
12092
      private final short _thriftId;
12093
      private final String _fieldName;
12094
 
12095
      _Fields(short thriftId, String fieldName) {
12096
        _thriftId = thriftId;
12097
        _fieldName = fieldName;
12098
      }
12099
 
12100
      public short getThriftFieldId() {
12101
        return _thriftId;
12102
      }
12103
 
12104
      public String getFieldName() {
12105
        return _fieldName;
12106
      }
12107
    }
12108
 
12109
    // isset id assignments
12110
 
12111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12112
    static {
12113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12114
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12115
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
12116
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItem_result.class, metaDataMap);
12120
    }
12121
 
12122
    public getItem_result() {
12123
    }
12124
 
12125
    public getItem_result(
12126
      Item success,
12127
      CatalogServiceException cex)
12128
    {
12129
      this();
12130
      this.success = success;
12131
      this.cex = cex;
12132
    }
12133
 
12134
    /**
12135
     * Performs a deep copy on <i>other</i>.
12136
     */
12137
    public getItem_result(getItem_result other) {
12138
      if (other.isSetSuccess()) {
12139
        this.success = new Item(other.success);
12140
      }
12141
      if (other.isSetCex()) {
12142
        this.cex = new CatalogServiceException(other.cex);
12143
      }
12144
    }
12145
 
12146
    public getItem_result deepCopy() {
12147
      return new getItem_result(this);
12148
    }
12149
 
12150
    @Override
12151
    public void clear() {
12152
      this.success = null;
12153
      this.cex = null;
12154
    }
12155
 
12156
    public Item getSuccess() {
12157
      return this.success;
12158
    }
12159
 
12160
    public void setSuccess(Item success) {
12161
      this.success = success;
12162
    }
12163
 
12164
    public void unsetSuccess() {
12165
      this.success = null;
12166
    }
12167
 
12168
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12169
    public boolean isSetSuccess() {
12170
      return this.success != null;
12171
    }
12172
 
12173
    public void setSuccessIsSet(boolean value) {
12174
      if (!value) {
12175
        this.success = null;
12176
      }
12177
    }
12178
 
12179
    public CatalogServiceException getCex() {
12180
      return this.cex;
12181
    }
12182
 
12183
    public void setCex(CatalogServiceException cex) {
12184
      this.cex = cex;
12185
    }
12186
 
12187
    public void unsetCex() {
12188
      this.cex = null;
12189
    }
12190
 
12191
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12192
    public boolean isSetCex() {
12193
      return this.cex != null;
12194
    }
12195
 
12196
    public void setCexIsSet(boolean value) {
12197
      if (!value) {
12198
        this.cex = null;
12199
      }
12200
    }
12201
 
12202
    public void setFieldValue(_Fields field, Object value) {
12203
      switch (field) {
12204
      case SUCCESS:
12205
        if (value == null) {
12206
          unsetSuccess();
12207
        } else {
12208
          setSuccess((Item)value);
12209
        }
12210
        break;
12211
 
12212
      case CEX:
12213
        if (value == null) {
12214
          unsetCex();
12215
        } else {
12216
          setCex((CatalogServiceException)value);
12217
        }
12218
        break;
12219
 
12220
      }
12221
    }
12222
 
12223
    public Object getFieldValue(_Fields field) {
12224
      switch (field) {
12225
      case SUCCESS:
12226
        return getSuccess();
12227
 
12228
      case CEX:
12229
        return getCex();
12230
 
12231
      }
12232
      throw new IllegalStateException();
12233
    }
12234
 
12235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12236
    public boolean isSet(_Fields field) {
12237
      if (field == null) {
12238
        throw new IllegalArgumentException();
12239
      }
12240
 
12241
      switch (field) {
12242
      case SUCCESS:
12243
        return isSetSuccess();
12244
      case CEX:
12245
        return isSetCex();
12246
      }
12247
      throw new IllegalStateException();
12248
    }
12249
 
12250
    @Override
12251
    public boolean equals(Object that) {
12252
      if (that == null)
12253
        return false;
12254
      if (that instanceof getItem_result)
12255
        return this.equals((getItem_result)that);
12256
      return false;
12257
    }
12258
 
12259
    public boolean equals(getItem_result that) {
12260
      if (that == null)
12261
        return false;
12262
 
12263
      boolean this_present_success = true && this.isSetSuccess();
12264
      boolean that_present_success = true && that.isSetSuccess();
12265
      if (this_present_success || that_present_success) {
12266
        if (!(this_present_success && that_present_success))
12267
          return false;
12268
        if (!this.success.equals(that.success))
12269
          return false;
12270
      }
12271
 
12272
      boolean this_present_cex = true && this.isSetCex();
12273
      boolean that_present_cex = true && that.isSetCex();
12274
      if (this_present_cex || that_present_cex) {
12275
        if (!(this_present_cex && that_present_cex))
12276
          return false;
12277
        if (!this.cex.equals(that.cex))
12278
          return false;
12279
      }
12280
 
12281
      return true;
12282
    }
12283
 
12284
    @Override
12285
    public int hashCode() {
12286
      return 0;
12287
    }
12288
 
12289
    public int compareTo(getItem_result other) {
12290
      if (!getClass().equals(other.getClass())) {
12291
        return getClass().getName().compareTo(other.getClass().getName());
12292
      }
12293
 
12294
      int lastComparison = 0;
12295
      getItem_result typedOther = (getItem_result)other;
12296
 
12297
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12298
      if (lastComparison != 0) {
12299
        return lastComparison;
12300
      }
12301
      if (isSetSuccess()) {
12302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12303
        if (lastComparison != 0) {
12304
          return lastComparison;
12305
        }
12306
      }
12307
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12308
      if (lastComparison != 0) {
12309
        return lastComparison;
12310
      }
12311
      if (isSetCex()) {
12312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12313
        if (lastComparison != 0) {
12314
          return lastComparison;
12315
        }
12316
      }
12317
      return 0;
12318
    }
12319
 
12320
    public _Fields fieldForId(int fieldId) {
12321
      return _Fields.findByThriftId(fieldId);
12322
    }
12323
 
12324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12325
      org.apache.thrift.protocol.TField field;
12326
      iprot.readStructBegin();
12327
      while (true)
12328
      {
12329
        field = iprot.readFieldBegin();
12330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12331
          break;
12332
        }
12333
        switch (field.id) {
12334
          case 0: // SUCCESS
12335
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12336
              this.success = new Item();
12337
              this.success.read(iprot);
12338
            } else { 
12339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12340
            }
12341
            break;
12342
          case 1: // CEX
12343
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12344
              this.cex = new CatalogServiceException();
12345
              this.cex.read(iprot);
12346
            } else { 
12347
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12348
            }
12349
            break;
12350
          default:
12351
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12352
        }
12353
        iprot.readFieldEnd();
12354
      }
12355
      iprot.readStructEnd();
12356
      validate();
12357
    }
12358
 
12359
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12360
      oprot.writeStructBegin(STRUCT_DESC);
12361
 
12362
      if (this.isSetSuccess()) {
12363
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12364
        this.success.write(oprot);
12365
        oprot.writeFieldEnd();
12366
      } else if (this.isSetCex()) {
12367
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12368
        this.cex.write(oprot);
12369
        oprot.writeFieldEnd();
12370
      }
12371
      oprot.writeFieldStop();
12372
      oprot.writeStructEnd();
12373
    }
12374
 
12375
    @Override
12376
    public String toString() {
12377
      StringBuilder sb = new StringBuilder("getItem_result(");
12378
      boolean first = true;
12379
 
12380
      sb.append("success:");
12381
      if (this.success == null) {
12382
        sb.append("null");
12383
      } else {
12384
        sb.append(this.success);
12385
      }
12386
      first = false;
12387
      if (!first) sb.append(", ");
12388
      sb.append("cex:");
12389
      if (this.cex == null) {
12390
        sb.append("null");
12391
      } else {
12392
        sb.append(this.cex);
12393
      }
12394
      first = false;
12395
      sb.append(")");
12396
      return sb.toString();
12397
    }
12398
 
12399
    public void validate() throws org.apache.thrift.TException {
12400
      // check for required fields
12401
    }
12402
 
12403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12404
      try {
12405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12406
      } catch (org.apache.thrift.TException te) {
12407
        throw new java.io.IOException(te);
12408
      }
12409
    }
12410
 
12411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12412
      try {
12413
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12414
      } catch (org.apache.thrift.TException te) {
12415
        throw new java.io.IOException(te);
12416
      }
12417
    }
12418
 
12419
  }
12420
 
12421
  public static class getItemsByCatalogId_args implements org.apache.thrift.TBase<getItemsByCatalogId_args, getItemsByCatalogId_args._Fields>, java.io.Serializable, Cloneable   {
12422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCatalogId_args");
12423
 
12424
    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);
12425
 
12426
    private long catalog_item_id; // required
12427
 
12428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12430
      CATALOG_ITEM_ID((short)1, "catalog_item_id");
12431
 
12432
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12433
 
12434
      static {
12435
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12436
          byName.put(field.getFieldName(), field);
12437
        }
12438
      }
12439
 
12440
      /**
12441
       * Find the _Fields constant that matches fieldId, or null if its not found.
12442
       */
12443
      public static _Fields findByThriftId(int fieldId) {
12444
        switch(fieldId) {
12445
          case 1: // CATALOG_ITEM_ID
12446
            return CATALOG_ITEM_ID;
12447
          default:
12448
            return null;
12449
        }
12450
      }
12451
 
12452
      /**
12453
       * Find the _Fields constant that matches fieldId, throwing an exception
12454
       * if it is not found.
12455
       */
12456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12457
        _Fields fields = findByThriftId(fieldId);
12458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12459
        return fields;
12460
      }
12461
 
12462
      /**
12463
       * Find the _Fields constant that matches name, or null if its not found.
12464
       */
12465
      public static _Fields findByName(String name) {
12466
        return byName.get(name);
12467
      }
12468
 
12469
      private final short _thriftId;
12470
      private final String _fieldName;
12471
 
12472
      _Fields(short thriftId, String fieldName) {
12473
        _thriftId = thriftId;
12474
        _fieldName = fieldName;
12475
      }
12476
 
12477
      public short getThriftFieldId() {
12478
        return _thriftId;
12479
      }
12480
 
12481
      public String getFieldName() {
12482
        return _fieldName;
12483
      }
12484
    }
12485
 
12486
    // isset id assignments
12487
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
12488
    private BitSet __isset_bit_vector = new BitSet(1);
12489
 
12490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12491
    static {
12492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12493
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCatalogId_args.class, metaDataMap);
12497
    }
12498
 
12499
    public getItemsByCatalogId_args() {
12500
    }
12501
 
12502
    public getItemsByCatalogId_args(
12503
      long catalog_item_id)
12504
    {
12505
      this();
12506
      this.catalog_item_id = catalog_item_id;
12507
      setCatalog_item_idIsSet(true);
12508
    }
12509
 
12510
    /**
12511
     * Performs a deep copy on <i>other</i>.
12512
     */
12513
    public getItemsByCatalogId_args(getItemsByCatalogId_args other) {
12514
      __isset_bit_vector.clear();
12515
      __isset_bit_vector.or(other.__isset_bit_vector);
12516
      this.catalog_item_id = other.catalog_item_id;
12517
    }
12518
 
12519
    public getItemsByCatalogId_args deepCopy() {
12520
      return new getItemsByCatalogId_args(this);
12521
    }
12522
 
12523
    @Override
12524
    public void clear() {
12525
      setCatalog_item_idIsSet(false);
12526
      this.catalog_item_id = 0;
12527
    }
12528
 
12529
    public long getCatalog_item_id() {
12530
      return this.catalog_item_id;
12531
    }
12532
 
12533
    public void setCatalog_item_id(long catalog_item_id) {
12534
      this.catalog_item_id = catalog_item_id;
12535
      setCatalog_item_idIsSet(true);
12536
    }
12537
 
12538
    public void unsetCatalog_item_id() {
12539
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
12540
    }
12541
 
12542
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
12543
    public boolean isSetCatalog_item_id() {
12544
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
12545
    }
12546
 
12547
    public void setCatalog_item_idIsSet(boolean value) {
12548
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
12549
    }
12550
 
12551
    public void setFieldValue(_Fields field, Object value) {
12552
      switch (field) {
12553
      case CATALOG_ITEM_ID:
12554
        if (value == null) {
12555
          unsetCatalog_item_id();
12556
        } else {
12557
          setCatalog_item_id((Long)value);
12558
        }
12559
        break;
12560
 
12561
      }
12562
    }
12563
 
12564
    public Object getFieldValue(_Fields field) {
12565
      switch (field) {
12566
      case CATALOG_ITEM_ID:
12567
        return Long.valueOf(getCatalog_item_id());
12568
 
12569
      }
12570
      throw new IllegalStateException();
12571
    }
12572
 
12573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12574
    public boolean isSet(_Fields field) {
12575
      if (field == null) {
12576
        throw new IllegalArgumentException();
12577
      }
12578
 
12579
      switch (field) {
12580
      case CATALOG_ITEM_ID:
12581
        return isSetCatalog_item_id();
12582
      }
12583
      throw new IllegalStateException();
12584
    }
12585
 
12586
    @Override
12587
    public boolean equals(Object that) {
12588
      if (that == null)
12589
        return false;
12590
      if (that instanceof getItemsByCatalogId_args)
12591
        return this.equals((getItemsByCatalogId_args)that);
12592
      return false;
12593
    }
12594
 
12595
    public boolean equals(getItemsByCatalogId_args that) {
12596
      if (that == null)
12597
        return false;
12598
 
12599
      boolean this_present_catalog_item_id = true;
12600
      boolean that_present_catalog_item_id = true;
12601
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
12602
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
12603
          return false;
12604
        if (this.catalog_item_id != that.catalog_item_id)
12605
          return false;
12606
      }
12607
 
12608
      return true;
12609
    }
12610
 
12611
    @Override
12612
    public int hashCode() {
12613
      return 0;
12614
    }
12615
 
12616
    public int compareTo(getItemsByCatalogId_args other) {
12617
      if (!getClass().equals(other.getClass())) {
12618
        return getClass().getName().compareTo(other.getClass().getName());
12619
      }
12620
 
12621
      int lastComparison = 0;
12622
      getItemsByCatalogId_args typedOther = (getItemsByCatalogId_args)other;
12623
 
12624
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
12625
      if (lastComparison != 0) {
12626
        return lastComparison;
12627
      }
12628
      if (isSetCatalog_item_id()) {
12629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
12630
        if (lastComparison != 0) {
12631
          return lastComparison;
12632
        }
12633
      }
12634
      return 0;
12635
    }
12636
 
12637
    public _Fields fieldForId(int fieldId) {
12638
      return _Fields.findByThriftId(fieldId);
12639
    }
12640
 
12641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12642
      org.apache.thrift.protocol.TField field;
12643
      iprot.readStructBegin();
12644
      while (true)
12645
      {
12646
        field = iprot.readFieldBegin();
12647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12648
          break;
12649
        }
12650
        switch (field.id) {
12651
          case 1: // CATALOG_ITEM_ID
12652
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12653
              this.catalog_item_id = iprot.readI64();
12654
              setCatalog_item_idIsSet(true);
12655
            } else { 
12656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12657
            }
12658
            break;
12659
          default:
12660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12661
        }
12662
        iprot.readFieldEnd();
12663
      }
12664
      iprot.readStructEnd();
12665
      validate();
12666
    }
12667
 
12668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12669
      validate();
12670
 
12671
      oprot.writeStructBegin(STRUCT_DESC);
12672
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
12673
      oprot.writeI64(this.catalog_item_id);
12674
      oprot.writeFieldEnd();
12675
      oprot.writeFieldStop();
12676
      oprot.writeStructEnd();
12677
    }
12678
 
12679
    @Override
12680
    public String toString() {
12681
      StringBuilder sb = new StringBuilder("getItemsByCatalogId_args(");
12682
      boolean first = true;
12683
 
12684
      sb.append("catalog_item_id:");
12685
      sb.append(this.catalog_item_id);
12686
      first = false;
12687
      sb.append(")");
12688
      return sb.toString();
12689
    }
12690
 
12691
    public void validate() throws org.apache.thrift.TException {
12692
      // check for required fields
12693
    }
12694
 
12695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12696
      try {
12697
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12698
      } catch (org.apache.thrift.TException te) {
12699
        throw new java.io.IOException(te);
12700
      }
12701
    }
12702
 
12703
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12704
      try {
12705
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12706
        __isset_bit_vector = new BitSet(1);
12707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12708
      } catch (org.apache.thrift.TException te) {
12709
        throw new java.io.IOException(te);
12710
      }
12711
    }
12712
 
12713
  }
12714
 
12715
  public static class getItemsByCatalogId_result implements org.apache.thrift.TBase<getItemsByCatalogId_result, getItemsByCatalogId_result._Fields>, java.io.Serializable, Cloneable   {
12716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCatalogId_result");
12717
 
12718
    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);
12719
    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);
12720
 
12721
    private List<Item> success; // required
12722
    private CatalogServiceException cex; // required
12723
 
12724
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12725
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12726
      SUCCESS((short)0, "success"),
12727
      CEX((short)1, "cex");
12728
 
12729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12730
 
12731
      static {
12732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12733
          byName.put(field.getFieldName(), field);
12734
        }
12735
      }
12736
 
12737
      /**
12738
       * Find the _Fields constant that matches fieldId, or null if its not found.
12739
       */
12740
      public static _Fields findByThriftId(int fieldId) {
12741
        switch(fieldId) {
12742
          case 0: // SUCCESS
12743
            return SUCCESS;
12744
          case 1: // CEX
12745
            return CEX;
12746
          default:
12747
            return null;
12748
        }
12749
      }
12750
 
12751
      /**
12752
       * Find the _Fields constant that matches fieldId, throwing an exception
12753
       * if it is not found.
12754
       */
12755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12756
        _Fields fields = findByThriftId(fieldId);
12757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12758
        return fields;
12759
      }
12760
 
12761
      /**
12762
       * Find the _Fields constant that matches name, or null if its not found.
12763
       */
12764
      public static _Fields findByName(String name) {
12765
        return byName.get(name);
12766
      }
12767
 
12768
      private final short _thriftId;
12769
      private final String _fieldName;
12770
 
12771
      _Fields(short thriftId, String fieldName) {
12772
        _thriftId = thriftId;
12773
        _fieldName = fieldName;
12774
      }
12775
 
12776
      public short getThriftFieldId() {
12777
        return _thriftId;
12778
      }
12779
 
12780
      public String getFieldName() {
12781
        return _fieldName;
12782
      }
12783
    }
12784
 
12785
    // isset id assignments
12786
 
12787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12788
    static {
12789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12790
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12791
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12792
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
12793
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCatalogId_result.class, metaDataMap);
12797
    }
12798
 
12799
    public getItemsByCatalogId_result() {
12800
    }
12801
 
12802
    public getItemsByCatalogId_result(
12803
      List<Item> success,
12804
      CatalogServiceException cex)
12805
    {
12806
      this();
12807
      this.success = success;
12808
      this.cex = cex;
12809
    }
12810
 
12811
    /**
12812
     * Performs a deep copy on <i>other</i>.
12813
     */
12814
    public getItemsByCatalogId_result(getItemsByCatalogId_result other) {
12815
      if (other.isSetSuccess()) {
12816
        List<Item> __this__success = new ArrayList<Item>();
12817
        for (Item other_element : other.success) {
12818
          __this__success.add(new Item(other_element));
12819
        }
12820
        this.success = __this__success;
12821
      }
12822
      if (other.isSetCex()) {
12823
        this.cex = new CatalogServiceException(other.cex);
12824
      }
12825
    }
12826
 
12827
    public getItemsByCatalogId_result deepCopy() {
12828
      return new getItemsByCatalogId_result(this);
12829
    }
12830
 
12831
    @Override
12832
    public void clear() {
12833
      this.success = null;
12834
      this.cex = null;
12835
    }
12836
 
12837
    public int getSuccessSize() {
12838
      return (this.success == null) ? 0 : this.success.size();
12839
    }
12840
 
12841
    public java.util.Iterator<Item> getSuccessIterator() {
12842
      return (this.success == null) ? null : this.success.iterator();
12843
    }
12844
 
12845
    public void addToSuccess(Item elem) {
12846
      if (this.success == null) {
12847
        this.success = new ArrayList<Item>();
12848
      }
12849
      this.success.add(elem);
12850
    }
12851
 
12852
    public List<Item> getSuccess() {
12853
      return this.success;
12854
    }
12855
 
12856
    public void setSuccess(List<Item> success) {
12857
      this.success = success;
12858
    }
12859
 
12860
    public void unsetSuccess() {
12861
      this.success = null;
12862
    }
12863
 
12864
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12865
    public boolean isSetSuccess() {
12866
      return this.success != null;
12867
    }
12868
 
12869
    public void setSuccessIsSet(boolean value) {
12870
      if (!value) {
12871
        this.success = null;
12872
      }
12873
    }
12874
 
12875
    public CatalogServiceException getCex() {
12876
      return this.cex;
12877
    }
12878
 
12879
    public void setCex(CatalogServiceException cex) {
12880
      this.cex = cex;
12881
    }
12882
 
12883
    public void unsetCex() {
12884
      this.cex = null;
12885
    }
12886
 
12887
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12888
    public boolean isSetCex() {
12889
      return this.cex != null;
12890
    }
12891
 
12892
    public void setCexIsSet(boolean value) {
12893
      if (!value) {
12894
        this.cex = null;
12895
      }
12896
    }
12897
 
12898
    public void setFieldValue(_Fields field, Object value) {
12899
      switch (field) {
12900
      case SUCCESS:
12901
        if (value == null) {
12902
          unsetSuccess();
12903
        } else {
12904
          setSuccess((List<Item>)value);
12905
        }
12906
        break;
12907
 
12908
      case CEX:
12909
        if (value == null) {
12910
          unsetCex();
12911
        } else {
12912
          setCex((CatalogServiceException)value);
12913
        }
12914
        break;
12915
 
12916
      }
12917
    }
12918
 
12919
    public Object getFieldValue(_Fields field) {
12920
      switch (field) {
12921
      case SUCCESS:
12922
        return getSuccess();
12923
 
12924
      case CEX:
12925
        return getCex();
12926
 
12927
      }
12928
      throw new IllegalStateException();
12929
    }
12930
 
12931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12932
    public boolean isSet(_Fields field) {
12933
      if (field == null) {
12934
        throw new IllegalArgumentException();
12935
      }
12936
 
12937
      switch (field) {
12938
      case SUCCESS:
12939
        return isSetSuccess();
12940
      case CEX:
12941
        return isSetCex();
12942
      }
12943
      throw new IllegalStateException();
12944
    }
12945
 
12946
    @Override
12947
    public boolean equals(Object that) {
12948
      if (that == null)
12949
        return false;
12950
      if (that instanceof getItemsByCatalogId_result)
12951
        return this.equals((getItemsByCatalogId_result)that);
12952
      return false;
12953
    }
12954
 
12955
    public boolean equals(getItemsByCatalogId_result that) {
12956
      if (that == null)
12957
        return false;
12958
 
12959
      boolean this_present_success = true && this.isSetSuccess();
12960
      boolean that_present_success = true && that.isSetSuccess();
12961
      if (this_present_success || that_present_success) {
12962
        if (!(this_present_success && that_present_success))
12963
          return false;
12964
        if (!this.success.equals(that.success))
12965
          return false;
12966
      }
12967
 
12968
      boolean this_present_cex = true && this.isSetCex();
12969
      boolean that_present_cex = true && that.isSetCex();
12970
      if (this_present_cex || that_present_cex) {
12971
        if (!(this_present_cex && that_present_cex))
12972
          return false;
12973
        if (!this.cex.equals(that.cex))
12974
          return false;
12975
      }
12976
 
12977
      return true;
12978
    }
12979
 
12980
    @Override
12981
    public int hashCode() {
12982
      return 0;
12983
    }
12984
 
12985
    public int compareTo(getItemsByCatalogId_result other) {
12986
      if (!getClass().equals(other.getClass())) {
12987
        return getClass().getName().compareTo(other.getClass().getName());
12988
      }
12989
 
12990
      int lastComparison = 0;
12991
      getItemsByCatalogId_result typedOther = (getItemsByCatalogId_result)other;
12992
 
12993
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12994
      if (lastComparison != 0) {
12995
        return lastComparison;
12996
      }
12997
      if (isSetSuccess()) {
12998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12999
        if (lastComparison != 0) {
13000
          return lastComparison;
13001
        }
13002
      }
13003
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13004
      if (lastComparison != 0) {
13005
        return lastComparison;
13006
      }
13007
      if (isSetCex()) {
13008
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13009
        if (lastComparison != 0) {
13010
          return lastComparison;
13011
        }
13012
      }
13013
      return 0;
13014
    }
13015
 
13016
    public _Fields fieldForId(int fieldId) {
13017
      return _Fields.findByThriftId(fieldId);
13018
    }
13019
 
13020
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13021
      org.apache.thrift.protocol.TField field;
13022
      iprot.readStructBegin();
13023
      while (true)
13024
      {
13025
        field = iprot.readFieldBegin();
13026
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13027
          break;
13028
        }
13029
        switch (field.id) {
13030
          case 0: // SUCCESS
13031
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13032
              {
13033
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
13034
                this.success = new ArrayList<Item>(_list9.size);
13035
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
13036
                {
13037
                  Item _elem11; // required
13038
                  _elem11 = new Item();
13039
                  _elem11.read(iprot);
13040
                  this.success.add(_elem11);
13041
                }
13042
                iprot.readListEnd();
13043
              }
13044
            } else { 
13045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13046
            }
13047
            break;
13048
          case 1: // CEX
13049
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13050
              this.cex = new CatalogServiceException();
13051
              this.cex.read(iprot);
13052
            } else { 
13053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13054
            }
13055
            break;
13056
          default:
13057
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13058
        }
13059
        iprot.readFieldEnd();
13060
      }
13061
      iprot.readStructEnd();
13062
      validate();
13063
    }
13064
 
13065
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13066
      oprot.writeStructBegin(STRUCT_DESC);
13067
 
13068
      if (this.isSetSuccess()) {
13069
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13070
        {
13071
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13072
          for (Item _iter12 : this.success)
13073
          {
13074
            _iter12.write(oprot);
13075
          }
13076
          oprot.writeListEnd();
13077
        }
13078
        oprot.writeFieldEnd();
13079
      } else if (this.isSetCex()) {
13080
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13081
        this.cex.write(oprot);
13082
        oprot.writeFieldEnd();
13083
      }
13084
      oprot.writeFieldStop();
13085
      oprot.writeStructEnd();
13086
    }
13087
 
13088
    @Override
13089
    public String toString() {
13090
      StringBuilder sb = new StringBuilder("getItemsByCatalogId_result(");
13091
      boolean first = true;
13092
 
13093
      sb.append("success:");
13094
      if (this.success == null) {
13095
        sb.append("null");
13096
      } else {
13097
        sb.append(this.success);
13098
      }
13099
      first = false;
13100
      if (!first) sb.append(", ");
13101
      sb.append("cex:");
13102
      if (this.cex == null) {
13103
        sb.append("null");
13104
      } else {
13105
        sb.append(this.cex);
13106
      }
13107
      first = false;
13108
      sb.append(")");
13109
      return sb.toString();
13110
    }
13111
 
13112
    public void validate() throws org.apache.thrift.TException {
13113
      // check for required fields
13114
    }
13115
 
13116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13117
      try {
13118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13119
      } catch (org.apache.thrift.TException te) {
13120
        throw new java.io.IOException(te);
13121
      }
13122
    }
13123
 
13124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13125
      try {
13126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13127
      } catch (org.apache.thrift.TException te) {
13128
        throw new java.io.IOException(te);
13129
      }
13130
    }
13131
 
13132
  }
13133
 
13134
  public static class getValidItemsByCatalogId_args implements org.apache.thrift.TBase<getValidItemsByCatalogId_args, getValidItemsByCatalogId_args._Fields>, java.io.Serializable, Cloneable   {
13135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidItemsByCatalogId_args");
13136
 
13137
    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);
13138
 
13139
    private long catalog_item_id; // required
13140
 
13141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13143
      CATALOG_ITEM_ID((short)1, "catalog_item_id");
13144
 
13145
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13146
 
13147
      static {
13148
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13149
          byName.put(field.getFieldName(), field);
13150
        }
13151
      }
13152
 
13153
      /**
13154
       * Find the _Fields constant that matches fieldId, or null if its not found.
13155
       */
13156
      public static _Fields findByThriftId(int fieldId) {
13157
        switch(fieldId) {
13158
          case 1: // CATALOG_ITEM_ID
13159
            return CATALOG_ITEM_ID;
13160
          default:
13161
            return null;
13162
        }
13163
      }
13164
 
13165
      /**
13166
       * Find the _Fields constant that matches fieldId, throwing an exception
13167
       * if it is not found.
13168
       */
13169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13170
        _Fields fields = findByThriftId(fieldId);
13171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13172
        return fields;
13173
      }
13174
 
13175
      /**
13176
       * Find the _Fields constant that matches name, or null if its not found.
13177
       */
13178
      public static _Fields findByName(String name) {
13179
        return byName.get(name);
13180
      }
13181
 
13182
      private final short _thriftId;
13183
      private final String _fieldName;
13184
 
13185
      _Fields(short thriftId, String fieldName) {
13186
        _thriftId = thriftId;
13187
        _fieldName = fieldName;
13188
      }
13189
 
13190
      public short getThriftFieldId() {
13191
        return _thriftId;
13192
      }
13193
 
13194
      public String getFieldName() {
13195
        return _fieldName;
13196
      }
13197
    }
13198
 
13199
    // isset id assignments
13200
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
13201
    private BitSet __isset_bit_vector = new BitSet(1);
13202
 
13203
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13204
    static {
13205
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13206
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidItemsByCatalogId_args.class, metaDataMap);
13210
    }
13211
 
13212
    public getValidItemsByCatalogId_args() {
13213
    }
13214
 
13215
    public getValidItemsByCatalogId_args(
13216
      long catalog_item_id)
13217
    {
13218
      this();
13219
      this.catalog_item_id = catalog_item_id;
13220
      setCatalog_item_idIsSet(true);
13221
    }
13222
 
13223
    /**
13224
     * Performs a deep copy on <i>other</i>.
13225
     */
13226
    public getValidItemsByCatalogId_args(getValidItemsByCatalogId_args other) {
13227
      __isset_bit_vector.clear();
13228
      __isset_bit_vector.or(other.__isset_bit_vector);
13229
      this.catalog_item_id = other.catalog_item_id;
13230
    }
13231
 
13232
    public getValidItemsByCatalogId_args deepCopy() {
13233
      return new getValidItemsByCatalogId_args(this);
13234
    }
13235
 
13236
    @Override
13237
    public void clear() {
13238
      setCatalog_item_idIsSet(false);
13239
      this.catalog_item_id = 0;
13240
    }
13241
 
13242
    public long getCatalog_item_id() {
13243
      return this.catalog_item_id;
13244
    }
13245
 
13246
    public void setCatalog_item_id(long catalog_item_id) {
13247
      this.catalog_item_id = catalog_item_id;
13248
      setCatalog_item_idIsSet(true);
13249
    }
13250
 
13251
    public void unsetCatalog_item_id() {
13252
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
13253
    }
13254
 
13255
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
13256
    public boolean isSetCatalog_item_id() {
13257
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
13258
    }
13259
 
13260
    public void setCatalog_item_idIsSet(boolean value) {
13261
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
13262
    }
13263
 
13264
    public void setFieldValue(_Fields field, Object value) {
13265
      switch (field) {
13266
      case CATALOG_ITEM_ID:
13267
        if (value == null) {
13268
          unsetCatalog_item_id();
13269
        } else {
13270
          setCatalog_item_id((Long)value);
13271
        }
13272
        break;
13273
 
13274
      }
13275
    }
13276
 
13277
    public Object getFieldValue(_Fields field) {
13278
      switch (field) {
13279
      case CATALOG_ITEM_ID:
13280
        return Long.valueOf(getCatalog_item_id());
13281
 
13282
      }
13283
      throw new IllegalStateException();
13284
    }
13285
 
13286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13287
    public boolean isSet(_Fields field) {
13288
      if (field == null) {
13289
        throw new IllegalArgumentException();
13290
      }
13291
 
13292
      switch (field) {
13293
      case CATALOG_ITEM_ID:
13294
        return isSetCatalog_item_id();
13295
      }
13296
      throw new IllegalStateException();
13297
    }
13298
 
13299
    @Override
13300
    public boolean equals(Object that) {
13301
      if (that == null)
13302
        return false;
13303
      if (that instanceof getValidItemsByCatalogId_args)
13304
        return this.equals((getValidItemsByCatalogId_args)that);
13305
      return false;
13306
    }
13307
 
13308
    public boolean equals(getValidItemsByCatalogId_args that) {
13309
      if (that == null)
13310
        return false;
13311
 
13312
      boolean this_present_catalog_item_id = true;
13313
      boolean that_present_catalog_item_id = true;
13314
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
13315
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
13316
          return false;
13317
        if (this.catalog_item_id != that.catalog_item_id)
13318
          return false;
13319
      }
13320
 
13321
      return true;
13322
    }
13323
 
13324
    @Override
13325
    public int hashCode() {
13326
      return 0;
13327
    }
13328
 
13329
    public int compareTo(getValidItemsByCatalogId_args other) {
13330
      if (!getClass().equals(other.getClass())) {
13331
        return getClass().getName().compareTo(other.getClass().getName());
13332
      }
13333
 
13334
      int lastComparison = 0;
13335
      getValidItemsByCatalogId_args typedOther = (getValidItemsByCatalogId_args)other;
13336
 
13337
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
13338
      if (lastComparison != 0) {
13339
        return lastComparison;
13340
      }
13341
      if (isSetCatalog_item_id()) {
13342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
13343
        if (lastComparison != 0) {
13344
          return lastComparison;
13345
        }
13346
      }
13347
      return 0;
13348
    }
13349
 
13350
    public _Fields fieldForId(int fieldId) {
13351
      return _Fields.findByThriftId(fieldId);
13352
    }
13353
 
13354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13355
      org.apache.thrift.protocol.TField field;
13356
      iprot.readStructBegin();
13357
      while (true)
13358
      {
13359
        field = iprot.readFieldBegin();
13360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13361
          break;
13362
        }
13363
        switch (field.id) {
13364
          case 1: // CATALOG_ITEM_ID
13365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13366
              this.catalog_item_id = iprot.readI64();
13367
              setCatalog_item_idIsSet(true);
13368
            } else { 
13369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13370
            }
13371
            break;
13372
          default:
13373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13374
        }
13375
        iprot.readFieldEnd();
13376
      }
13377
      iprot.readStructEnd();
13378
      validate();
13379
    }
13380
 
13381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13382
      validate();
13383
 
13384
      oprot.writeStructBegin(STRUCT_DESC);
13385
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
13386
      oprot.writeI64(this.catalog_item_id);
13387
      oprot.writeFieldEnd();
13388
      oprot.writeFieldStop();
13389
      oprot.writeStructEnd();
13390
    }
13391
 
13392
    @Override
13393
    public String toString() {
13394
      StringBuilder sb = new StringBuilder("getValidItemsByCatalogId_args(");
13395
      boolean first = true;
13396
 
13397
      sb.append("catalog_item_id:");
13398
      sb.append(this.catalog_item_id);
13399
      first = false;
13400
      sb.append(")");
13401
      return sb.toString();
13402
    }
13403
 
13404
    public void validate() throws org.apache.thrift.TException {
13405
      // check for required fields
13406
    }
13407
 
13408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13409
      try {
13410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13411
      } catch (org.apache.thrift.TException te) {
13412
        throw new java.io.IOException(te);
13413
      }
13414
    }
13415
 
13416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13417
      try {
13418
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13419
        __isset_bit_vector = new BitSet(1);
13420
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13421
      } catch (org.apache.thrift.TException te) {
13422
        throw new java.io.IOException(te);
13423
      }
13424
    }
13425
 
13426
  }
13427
 
13428
  public static class getValidItemsByCatalogId_result implements org.apache.thrift.TBase<getValidItemsByCatalogId_result, getValidItemsByCatalogId_result._Fields>, java.io.Serializable, Cloneable   {
13429
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidItemsByCatalogId_result");
13430
 
13431
    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);
13432
    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);
13433
 
13434
    private List<Item> success; // required
13435
    private CatalogServiceException cex; // required
13436
 
13437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13439
      SUCCESS((short)0, "success"),
13440
      CEX((short)1, "cex");
13441
 
13442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13443
 
13444
      static {
13445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13446
          byName.put(field.getFieldName(), field);
13447
        }
13448
      }
13449
 
13450
      /**
13451
       * Find the _Fields constant that matches fieldId, or null if its not found.
13452
       */
13453
      public static _Fields findByThriftId(int fieldId) {
13454
        switch(fieldId) {
13455
          case 0: // SUCCESS
13456
            return SUCCESS;
13457
          case 1: // CEX
13458
            return CEX;
13459
          default:
13460
            return null;
13461
        }
13462
      }
13463
 
13464
      /**
13465
       * Find the _Fields constant that matches fieldId, throwing an exception
13466
       * if it is not found.
13467
       */
13468
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13469
        _Fields fields = findByThriftId(fieldId);
13470
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13471
        return fields;
13472
      }
13473
 
13474
      /**
13475
       * Find the _Fields constant that matches name, or null if its not found.
13476
       */
13477
      public static _Fields findByName(String name) {
13478
        return byName.get(name);
13479
      }
13480
 
13481
      private final short _thriftId;
13482
      private final String _fieldName;
13483
 
13484
      _Fields(short thriftId, String fieldName) {
13485
        _thriftId = thriftId;
13486
        _fieldName = fieldName;
13487
      }
13488
 
13489
      public short getThriftFieldId() {
13490
        return _thriftId;
13491
      }
13492
 
13493
      public String getFieldName() {
13494
        return _fieldName;
13495
      }
13496
    }
13497
 
13498
    // isset id assignments
13499
 
13500
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13501
    static {
13502
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13503
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13504
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13505
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
13506
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidItemsByCatalogId_result.class, metaDataMap);
13510
    }
13511
 
13512
    public getValidItemsByCatalogId_result() {
13513
    }
13514
 
13515
    public getValidItemsByCatalogId_result(
13516
      List<Item> success,
13517
      CatalogServiceException cex)
13518
    {
13519
      this();
13520
      this.success = success;
13521
      this.cex = cex;
13522
    }
13523
 
13524
    /**
13525
     * Performs a deep copy on <i>other</i>.
13526
     */
13527
    public getValidItemsByCatalogId_result(getValidItemsByCatalogId_result other) {
13528
      if (other.isSetSuccess()) {
13529
        List<Item> __this__success = new ArrayList<Item>();
13530
        for (Item other_element : other.success) {
13531
          __this__success.add(new Item(other_element));
13532
        }
13533
        this.success = __this__success;
13534
      }
13535
      if (other.isSetCex()) {
13536
        this.cex = new CatalogServiceException(other.cex);
13537
      }
13538
    }
13539
 
13540
    public getValidItemsByCatalogId_result deepCopy() {
13541
      return new getValidItemsByCatalogId_result(this);
13542
    }
13543
 
13544
    @Override
13545
    public void clear() {
13546
      this.success = null;
13547
      this.cex = null;
13548
    }
13549
 
13550
    public int getSuccessSize() {
13551
      return (this.success == null) ? 0 : this.success.size();
13552
    }
13553
 
13554
    public java.util.Iterator<Item> getSuccessIterator() {
13555
      return (this.success == null) ? null : this.success.iterator();
13556
    }
13557
 
13558
    public void addToSuccess(Item elem) {
13559
      if (this.success == null) {
13560
        this.success = new ArrayList<Item>();
13561
      }
13562
      this.success.add(elem);
13563
    }
13564
 
13565
    public List<Item> getSuccess() {
13566
      return this.success;
13567
    }
13568
 
13569
    public void setSuccess(List<Item> success) {
13570
      this.success = success;
13571
    }
13572
 
13573
    public void unsetSuccess() {
13574
      this.success = null;
13575
    }
13576
 
13577
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13578
    public boolean isSetSuccess() {
13579
      return this.success != null;
13580
    }
13581
 
13582
    public void setSuccessIsSet(boolean value) {
13583
      if (!value) {
13584
        this.success = null;
13585
      }
13586
    }
13587
 
13588
    public CatalogServiceException getCex() {
13589
      return this.cex;
13590
    }
13591
 
13592
    public void setCex(CatalogServiceException cex) {
13593
      this.cex = cex;
13594
    }
13595
 
13596
    public void unsetCex() {
13597
      this.cex = null;
13598
    }
13599
 
13600
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13601
    public boolean isSetCex() {
13602
      return this.cex != null;
13603
    }
13604
 
13605
    public void setCexIsSet(boolean value) {
13606
      if (!value) {
13607
        this.cex = null;
13608
      }
13609
    }
13610
 
13611
    public void setFieldValue(_Fields field, Object value) {
13612
      switch (field) {
13613
      case SUCCESS:
13614
        if (value == null) {
13615
          unsetSuccess();
13616
        } else {
13617
          setSuccess((List<Item>)value);
13618
        }
13619
        break;
13620
 
13621
      case CEX:
13622
        if (value == null) {
13623
          unsetCex();
13624
        } else {
13625
          setCex((CatalogServiceException)value);
13626
        }
13627
        break;
13628
 
13629
      }
13630
    }
13631
 
13632
    public Object getFieldValue(_Fields field) {
13633
      switch (field) {
13634
      case SUCCESS:
13635
        return getSuccess();
13636
 
13637
      case CEX:
13638
        return getCex();
13639
 
13640
      }
13641
      throw new IllegalStateException();
13642
    }
13643
 
13644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13645
    public boolean isSet(_Fields field) {
13646
      if (field == null) {
13647
        throw new IllegalArgumentException();
13648
      }
13649
 
13650
      switch (field) {
13651
      case SUCCESS:
13652
        return isSetSuccess();
13653
      case CEX:
13654
        return isSetCex();
13655
      }
13656
      throw new IllegalStateException();
13657
    }
13658
 
13659
    @Override
13660
    public boolean equals(Object that) {
13661
      if (that == null)
13662
        return false;
13663
      if (that instanceof getValidItemsByCatalogId_result)
13664
        return this.equals((getValidItemsByCatalogId_result)that);
13665
      return false;
13666
    }
13667
 
13668
    public boolean equals(getValidItemsByCatalogId_result that) {
13669
      if (that == null)
13670
        return false;
13671
 
13672
      boolean this_present_success = true && this.isSetSuccess();
13673
      boolean that_present_success = true && that.isSetSuccess();
13674
      if (this_present_success || that_present_success) {
13675
        if (!(this_present_success && that_present_success))
13676
          return false;
13677
        if (!this.success.equals(that.success))
13678
          return false;
13679
      }
13680
 
13681
      boolean this_present_cex = true && this.isSetCex();
13682
      boolean that_present_cex = true && that.isSetCex();
13683
      if (this_present_cex || that_present_cex) {
13684
        if (!(this_present_cex && that_present_cex))
13685
          return false;
13686
        if (!this.cex.equals(that.cex))
13687
          return false;
13688
      }
13689
 
13690
      return true;
13691
    }
13692
 
13693
    @Override
13694
    public int hashCode() {
13695
      return 0;
13696
    }
13697
 
13698
    public int compareTo(getValidItemsByCatalogId_result other) {
13699
      if (!getClass().equals(other.getClass())) {
13700
        return getClass().getName().compareTo(other.getClass().getName());
13701
      }
13702
 
13703
      int lastComparison = 0;
13704
      getValidItemsByCatalogId_result typedOther = (getValidItemsByCatalogId_result)other;
13705
 
13706
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13707
      if (lastComparison != 0) {
13708
        return lastComparison;
13709
      }
13710
      if (isSetSuccess()) {
13711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13712
        if (lastComparison != 0) {
13713
          return lastComparison;
13714
        }
13715
      }
13716
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13717
      if (lastComparison != 0) {
13718
        return lastComparison;
13719
      }
13720
      if (isSetCex()) {
13721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13722
        if (lastComparison != 0) {
13723
          return lastComparison;
13724
        }
13725
      }
13726
      return 0;
13727
    }
13728
 
13729
    public _Fields fieldForId(int fieldId) {
13730
      return _Fields.findByThriftId(fieldId);
13731
    }
13732
 
13733
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13734
      org.apache.thrift.protocol.TField field;
13735
      iprot.readStructBegin();
13736
      while (true)
13737
      {
13738
        field = iprot.readFieldBegin();
13739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13740
          break;
13741
        }
13742
        switch (field.id) {
13743
          case 0: // SUCCESS
13744
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13745
              {
13746
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
13747
                this.success = new ArrayList<Item>(_list13.size);
13748
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
13749
                {
13750
                  Item _elem15; // required
13751
                  _elem15 = new Item();
13752
                  _elem15.read(iprot);
13753
                  this.success.add(_elem15);
13754
                }
13755
                iprot.readListEnd();
13756
              }
13757
            } else { 
13758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13759
            }
13760
            break;
13761
          case 1: // CEX
13762
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13763
              this.cex = new CatalogServiceException();
13764
              this.cex.read(iprot);
13765
            } else { 
13766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13767
            }
13768
            break;
13769
          default:
13770
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13771
        }
13772
        iprot.readFieldEnd();
13773
      }
13774
      iprot.readStructEnd();
13775
      validate();
13776
    }
13777
 
13778
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13779
      oprot.writeStructBegin(STRUCT_DESC);
13780
 
13781
      if (this.isSetSuccess()) {
13782
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13783
        {
13784
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13785
          for (Item _iter16 : this.success)
13786
          {
13787
            _iter16.write(oprot);
13788
          }
13789
          oprot.writeListEnd();
13790
        }
13791
        oprot.writeFieldEnd();
13792
      } else if (this.isSetCex()) {
13793
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13794
        this.cex.write(oprot);
13795
        oprot.writeFieldEnd();
13796
      }
13797
      oprot.writeFieldStop();
13798
      oprot.writeStructEnd();
13799
    }
13800
 
13801
    @Override
13802
    public String toString() {
13803
      StringBuilder sb = new StringBuilder("getValidItemsByCatalogId_result(");
13804
      boolean first = true;
13805
 
13806
      sb.append("success:");
13807
      if (this.success == null) {
13808
        sb.append("null");
13809
      } else {
13810
        sb.append(this.success);
13811
      }
13812
      first = false;
13813
      if (!first) sb.append(", ");
13814
      sb.append("cex:");
13815
      if (this.cex == null) {
13816
        sb.append("null");
13817
      } else {
13818
        sb.append(this.cex);
13819
      }
13820
      first = false;
13821
      sb.append(")");
13822
      return sb.toString();
13823
    }
13824
 
13825
    public void validate() throws org.apache.thrift.TException {
13826
      // check for required fields
13827
    }
13828
 
13829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13830
      try {
13831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13832
      } catch (org.apache.thrift.TException te) {
13833
        throw new java.io.IOException(te);
13834
      }
13835
    }
13836
 
13837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13838
      try {
13839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13840
      } catch (org.apache.thrift.TException te) {
13841
        throw new java.io.IOException(te);
13842
      }
13843
    }
13844
 
13845
  }
13846
 
13847
  public static class getAllItems_args implements org.apache.thrift.TBase<getAllItems_args, getAllItems_args._Fields>, java.io.Serializable, Cloneable   {
13848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItems_args");
13849
 
13850
    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);
13851
 
13852
    private boolean isActive; // required
13853
 
13854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13855
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13856
      IS_ACTIVE((short)1, "isActive");
13857
 
13858
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13859
 
13860
      static {
13861
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13862
          byName.put(field.getFieldName(), field);
13863
        }
13864
      }
13865
 
13866
      /**
13867
       * Find the _Fields constant that matches fieldId, or null if its not found.
13868
       */
13869
      public static _Fields findByThriftId(int fieldId) {
13870
        switch(fieldId) {
13871
          case 1: // IS_ACTIVE
13872
            return IS_ACTIVE;
13873
          default:
13874
            return null;
13875
        }
13876
      }
13877
 
13878
      /**
13879
       * Find the _Fields constant that matches fieldId, throwing an exception
13880
       * if it is not found.
13881
       */
13882
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13883
        _Fields fields = findByThriftId(fieldId);
13884
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13885
        return fields;
13886
      }
13887
 
13888
      /**
13889
       * Find the _Fields constant that matches name, or null if its not found.
13890
       */
13891
      public static _Fields findByName(String name) {
13892
        return byName.get(name);
13893
      }
13894
 
13895
      private final short _thriftId;
13896
      private final String _fieldName;
13897
 
13898
      _Fields(short thriftId, String fieldName) {
13899
        _thriftId = thriftId;
13900
        _fieldName = fieldName;
13901
      }
13902
 
13903
      public short getThriftFieldId() {
13904
        return _thriftId;
13905
      }
13906
 
13907
      public String getFieldName() {
13908
        return _fieldName;
13909
      }
13910
    }
13911
 
13912
    // isset id assignments
13913
    private static final int __ISACTIVE_ISSET_ID = 0;
13914
    private BitSet __isset_bit_vector = new BitSet(1);
13915
 
13916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13917
    static {
13918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13919
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItems_args.class, metaDataMap);
13923
    }
13924
 
13925
    public getAllItems_args() {
13926
    }
13927
 
13928
    public getAllItems_args(
13929
      boolean isActive)
13930
    {
13931
      this();
13932
      this.isActive = isActive;
13933
      setIsActiveIsSet(true);
13934
    }
13935
 
13936
    /**
13937
     * Performs a deep copy on <i>other</i>.
13938
     */
13939
    public getAllItems_args(getAllItems_args other) {
13940
      __isset_bit_vector.clear();
13941
      __isset_bit_vector.or(other.__isset_bit_vector);
13942
      this.isActive = other.isActive;
13943
    }
13944
 
13945
    public getAllItems_args deepCopy() {
13946
      return new getAllItems_args(this);
13947
    }
13948
 
13949
    @Override
13950
    public void clear() {
13951
      setIsActiveIsSet(false);
13952
      this.isActive = false;
13953
    }
13954
 
13955
    public boolean isIsActive() {
13956
      return this.isActive;
13957
    }
13958
 
13959
    public void setIsActive(boolean isActive) {
13960
      this.isActive = isActive;
13961
      setIsActiveIsSet(true);
13962
    }
13963
 
13964
    public void unsetIsActive() {
13965
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
13966
    }
13967
 
13968
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
13969
    public boolean isSetIsActive() {
13970
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
13971
    }
13972
 
13973
    public void setIsActiveIsSet(boolean value) {
13974
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
13975
    }
13976
 
13977
    public void setFieldValue(_Fields field, Object value) {
13978
      switch (field) {
13979
      case IS_ACTIVE:
13980
        if (value == null) {
13981
          unsetIsActive();
13982
        } else {
13983
          setIsActive((Boolean)value);
13984
        }
13985
        break;
13986
 
13987
      }
13988
    }
13989
 
13990
    public Object getFieldValue(_Fields field) {
13991
      switch (field) {
13992
      case IS_ACTIVE:
13993
        return Boolean.valueOf(isIsActive());
13994
 
13995
      }
13996
      throw new IllegalStateException();
13997
    }
13998
 
13999
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14000
    public boolean isSet(_Fields field) {
14001
      if (field == null) {
14002
        throw new IllegalArgumentException();
14003
      }
14004
 
14005
      switch (field) {
14006
      case IS_ACTIVE:
14007
        return isSetIsActive();
14008
      }
14009
      throw new IllegalStateException();
14010
    }
14011
 
14012
    @Override
14013
    public boolean equals(Object that) {
14014
      if (that == null)
14015
        return false;
14016
      if (that instanceof getAllItems_args)
14017
        return this.equals((getAllItems_args)that);
14018
      return false;
14019
    }
14020
 
14021
    public boolean equals(getAllItems_args that) {
14022
      if (that == null)
14023
        return false;
14024
 
14025
      boolean this_present_isActive = true;
14026
      boolean that_present_isActive = true;
14027
      if (this_present_isActive || that_present_isActive) {
14028
        if (!(this_present_isActive && that_present_isActive))
14029
          return false;
14030
        if (this.isActive != that.isActive)
14031
          return false;
14032
      }
14033
 
14034
      return true;
14035
    }
14036
 
14037
    @Override
14038
    public int hashCode() {
14039
      return 0;
14040
    }
14041
 
14042
    public int compareTo(getAllItems_args other) {
14043
      if (!getClass().equals(other.getClass())) {
14044
        return getClass().getName().compareTo(other.getClass().getName());
14045
      }
14046
 
14047
      int lastComparison = 0;
14048
      getAllItems_args typedOther = (getAllItems_args)other;
14049
 
14050
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
14051
      if (lastComparison != 0) {
14052
        return lastComparison;
14053
      }
14054
      if (isSetIsActive()) {
14055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
14056
        if (lastComparison != 0) {
14057
          return lastComparison;
14058
        }
14059
      }
14060
      return 0;
14061
    }
14062
 
14063
    public _Fields fieldForId(int fieldId) {
14064
      return _Fields.findByThriftId(fieldId);
14065
    }
14066
 
14067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14068
      org.apache.thrift.protocol.TField field;
14069
      iprot.readStructBegin();
14070
      while (true)
14071
      {
14072
        field = iprot.readFieldBegin();
14073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14074
          break;
14075
        }
14076
        switch (field.id) {
14077
          case 1: // IS_ACTIVE
14078
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14079
              this.isActive = iprot.readBool();
14080
              setIsActiveIsSet(true);
14081
            } else { 
14082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14083
            }
14084
            break;
14085
          default:
14086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14087
        }
14088
        iprot.readFieldEnd();
14089
      }
14090
      iprot.readStructEnd();
14091
      validate();
14092
    }
14093
 
14094
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14095
      validate();
14096
 
14097
      oprot.writeStructBegin(STRUCT_DESC);
14098
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
14099
      oprot.writeBool(this.isActive);
14100
      oprot.writeFieldEnd();
14101
      oprot.writeFieldStop();
14102
      oprot.writeStructEnd();
14103
    }
14104
 
14105
    @Override
14106
    public String toString() {
14107
      StringBuilder sb = new StringBuilder("getAllItems_args(");
14108
      boolean first = true;
14109
 
14110
      sb.append("isActive:");
14111
      sb.append(this.isActive);
14112
      first = false;
14113
      sb.append(")");
14114
      return sb.toString();
14115
    }
14116
 
14117
    public void validate() throws org.apache.thrift.TException {
14118
      // check for required fields
14119
    }
14120
 
14121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14122
      try {
14123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14124
      } catch (org.apache.thrift.TException te) {
14125
        throw new java.io.IOException(te);
14126
      }
14127
    }
14128
 
14129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14130
      try {
14131
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14132
        __isset_bit_vector = new BitSet(1);
14133
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14134
      } catch (org.apache.thrift.TException te) {
14135
        throw new java.io.IOException(te);
14136
      }
14137
    }
14138
 
14139
  }
14140
 
14141
  public static class getAllItems_result implements org.apache.thrift.TBase<getAllItems_result, getAllItems_result._Fields>, java.io.Serializable, Cloneable   {
14142
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItems_result");
14143
 
14144
    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);
14145
    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);
14146
 
14147
    private List<Item> success; // required
14148
    private CatalogServiceException cex; // required
14149
 
14150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14151
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14152
      SUCCESS((short)0, "success"),
14153
      CEX((short)1, "cex");
14154
 
14155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14156
 
14157
      static {
14158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14159
          byName.put(field.getFieldName(), field);
14160
        }
14161
      }
14162
 
14163
      /**
14164
       * Find the _Fields constant that matches fieldId, or null if its not found.
14165
       */
14166
      public static _Fields findByThriftId(int fieldId) {
14167
        switch(fieldId) {
14168
          case 0: // SUCCESS
14169
            return SUCCESS;
14170
          case 1: // CEX
14171
            return CEX;
14172
          default:
14173
            return null;
14174
        }
14175
      }
14176
 
14177
      /**
14178
       * Find the _Fields constant that matches fieldId, throwing an exception
14179
       * if it is not found.
14180
       */
14181
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14182
        _Fields fields = findByThriftId(fieldId);
14183
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14184
        return fields;
14185
      }
14186
 
14187
      /**
14188
       * Find the _Fields constant that matches name, or null if its not found.
14189
       */
14190
      public static _Fields findByName(String name) {
14191
        return byName.get(name);
14192
      }
14193
 
14194
      private final short _thriftId;
14195
      private final String _fieldName;
14196
 
14197
      _Fields(short thriftId, String fieldName) {
14198
        _thriftId = thriftId;
14199
        _fieldName = fieldName;
14200
      }
14201
 
14202
      public short getThriftFieldId() {
14203
        return _thriftId;
14204
      }
14205
 
14206
      public String getFieldName() {
14207
        return _fieldName;
14208
      }
14209
    }
14210
 
14211
    // isset id assignments
14212
 
14213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14214
    static {
14215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14216
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14217
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14218
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
14219
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItems_result.class, metaDataMap);
14223
    }
14224
 
14225
    public getAllItems_result() {
14226
    }
14227
 
14228
    public getAllItems_result(
14229
      List<Item> success,
14230
      CatalogServiceException cex)
14231
    {
14232
      this();
14233
      this.success = success;
14234
      this.cex = cex;
14235
    }
14236
 
14237
    /**
14238
     * Performs a deep copy on <i>other</i>.
14239
     */
14240
    public getAllItems_result(getAllItems_result other) {
14241
      if (other.isSetSuccess()) {
14242
        List<Item> __this__success = new ArrayList<Item>();
14243
        for (Item other_element : other.success) {
14244
          __this__success.add(new Item(other_element));
14245
        }
14246
        this.success = __this__success;
14247
      }
14248
      if (other.isSetCex()) {
14249
        this.cex = new CatalogServiceException(other.cex);
14250
      }
14251
    }
14252
 
14253
    public getAllItems_result deepCopy() {
14254
      return new getAllItems_result(this);
14255
    }
14256
 
14257
    @Override
14258
    public void clear() {
14259
      this.success = null;
14260
      this.cex = null;
14261
    }
14262
 
14263
    public int getSuccessSize() {
14264
      return (this.success == null) ? 0 : this.success.size();
14265
    }
14266
 
14267
    public java.util.Iterator<Item> getSuccessIterator() {
14268
      return (this.success == null) ? null : this.success.iterator();
14269
    }
14270
 
14271
    public void addToSuccess(Item elem) {
14272
      if (this.success == null) {
14273
        this.success = new ArrayList<Item>();
14274
      }
14275
      this.success.add(elem);
14276
    }
14277
 
14278
    public List<Item> getSuccess() {
14279
      return this.success;
14280
    }
14281
 
14282
    public void setSuccess(List<Item> success) {
14283
      this.success = success;
14284
    }
14285
 
14286
    public void unsetSuccess() {
14287
      this.success = null;
14288
    }
14289
 
14290
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14291
    public boolean isSetSuccess() {
14292
      return this.success != null;
14293
    }
14294
 
14295
    public void setSuccessIsSet(boolean value) {
14296
      if (!value) {
14297
        this.success = null;
14298
      }
14299
    }
14300
 
14301
    public CatalogServiceException getCex() {
14302
      return this.cex;
14303
    }
14304
 
14305
    public void setCex(CatalogServiceException cex) {
14306
      this.cex = cex;
14307
    }
14308
 
14309
    public void unsetCex() {
14310
      this.cex = null;
14311
    }
14312
 
14313
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14314
    public boolean isSetCex() {
14315
      return this.cex != null;
14316
    }
14317
 
14318
    public void setCexIsSet(boolean value) {
14319
      if (!value) {
14320
        this.cex = null;
14321
      }
14322
    }
14323
 
14324
    public void setFieldValue(_Fields field, Object value) {
14325
      switch (field) {
14326
      case SUCCESS:
14327
        if (value == null) {
14328
          unsetSuccess();
14329
        } else {
14330
          setSuccess((List<Item>)value);
14331
        }
14332
        break;
14333
 
14334
      case CEX:
14335
        if (value == null) {
14336
          unsetCex();
14337
        } else {
14338
          setCex((CatalogServiceException)value);
14339
        }
14340
        break;
14341
 
14342
      }
14343
    }
14344
 
14345
    public Object getFieldValue(_Fields field) {
14346
      switch (field) {
14347
      case SUCCESS:
14348
        return getSuccess();
14349
 
14350
      case CEX:
14351
        return getCex();
14352
 
14353
      }
14354
      throw new IllegalStateException();
14355
    }
14356
 
14357
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14358
    public boolean isSet(_Fields field) {
14359
      if (field == null) {
14360
        throw new IllegalArgumentException();
14361
      }
14362
 
14363
      switch (field) {
14364
      case SUCCESS:
14365
        return isSetSuccess();
14366
      case CEX:
14367
        return isSetCex();
14368
      }
14369
      throw new IllegalStateException();
14370
    }
14371
 
14372
    @Override
14373
    public boolean equals(Object that) {
14374
      if (that == null)
14375
        return false;
14376
      if (that instanceof getAllItems_result)
14377
        return this.equals((getAllItems_result)that);
14378
      return false;
14379
    }
14380
 
14381
    public boolean equals(getAllItems_result that) {
14382
      if (that == null)
14383
        return false;
14384
 
14385
      boolean this_present_success = true && this.isSetSuccess();
14386
      boolean that_present_success = true && that.isSetSuccess();
14387
      if (this_present_success || that_present_success) {
14388
        if (!(this_present_success && that_present_success))
14389
          return false;
14390
        if (!this.success.equals(that.success))
14391
          return false;
14392
      }
14393
 
14394
      boolean this_present_cex = true && this.isSetCex();
14395
      boolean that_present_cex = true && that.isSetCex();
14396
      if (this_present_cex || that_present_cex) {
14397
        if (!(this_present_cex && that_present_cex))
14398
          return false;
14399
        if (!this.cex.equals(that.cex))
14400
          return false;
14401
      }
14402
 
14403
      return true;
14404
    }
14405
 
14406
    @Override
14407
    public int hashCode() {
14408
      return 0;
14409
    }
14410
 
14411
    public int compareTo(getAllItems_result other) {
14412
      if (!getClass().equals(other.getClass())) {
14413
        return getClass().getName().compareTo(other.getClass().getName());
14414
      }
14415
 
14416
      int lastComparison = 0;
14417
      getAllItems_result typedOther = (getAllItems_result)other;
14418
 
14419
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14420
      if (lastComparison != 0) {
14421
        return lastComparison;
14422
      }
14423
      if (isSetSuccess()) {
14424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14425
        if (lastComparison != 0) {
14426
          return lastComparison;
14427
        }
14428
      }
14429
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14430
      if (lastComparison != 0) {
14431
        return lastComparison;
14432
      }
14433
      if (isSetCex()) {
14434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14435
        if (lastComparison != 0) {
14436
          return lastComparison;
14437
        }
14438
      }
14439
      return 0;
14440
    }
14441
 
14442
    public _Fields fieldForId(int fieldId) {
14443
      return _Fields.findByThriftId(fieldId);
14444
    }
14445
 
14446
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14447
      org.apache.thrift.protocol.TField field;
14448
      iprot.readStructBegin();
14449
      while (true)
14450
      {
14451
        field = iprot.readFieldBegin();
14452
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14453
          break;
14454
        }
14455
        switch (field.id) {
14456
          case 0: // SUCCESS
14457
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14458
              {
14459
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
14460
                this.success = new ArrayList<Item>(_list17.size);
14461
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
14462
                {
14463
                  Item _elem19; // required
14464
                  _elem19 = new Item();
14465
                  _elem19.read(iprot);
14466
                  this.success.add(_elem19);
14467
                }
14468
                iprot.readListEnd();
14469
              }
14470
            } else { 
14471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14472
            }
14473
            break;
14474
          case 1: // CEX
14475
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14476
              this.cex = new CatalogServiceException();
14477
              this.cex.read(iprot);
14478
            } else { 
14479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14480
            }
14481
            break;
14482
          default:
14483
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14484
        }
14485
        iprot.readFieldEnd();
14486
      }
14487
      iprot.readStructEnd();
14488
      validate();
14489
    }
14490
 
14491
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14492
      oprot.writeStructBegin(STRUCT_DESC);
14493
 
14494
      if (this.isSetSuccess()) {
14495
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14496
        {
14497
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14498
          for (Item _iter20 : this.success)
14499
          {
14500
            _iter20.write(oprot);
14501
          }
14502
          oprot.writeListEnd();
14503
        }
14504
        oprot.writeFieldEnd();
14505
      } else if (this.isSetCex()) {
14506
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14507
        this.cex.write(oprot);
14508
        oprot.writeFieldEnd();
14509
      }
14510
      oprot.writeFieldStop();
14511
      oprot.writeStructEnd();
14512
    }
14513
 
14514
    @Override
14515
    public String toString() {
14516
      StringBuilder sb = new StringBuilder("getAllItems_result(");
14517
      boolean first = true;
14518
 
14519
      sb.append("success:");
14520
      if (this.success == null) {
14521
        sb.append("null");
14522
      } else {
14523
        sb.append(this.success);
14524
      }
14525
      first = false;
14526
      if (!first) sb.append(", ");
14527
      sb.append("cex:");
14528
      if (this.cex == null) {
14529
        sb.append("null");
14530
      } else {
14531
        sb.append(this.cex);
14532
      }
14533
      first = false;
14534
      sb.append(")");
14535
      return sb.toString();
14536
    }
14537
 
14538
    public void validate() throws org.apache.thrift.TException {
14539
      // check for required fields
14540
    }
14541
 
14542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14543
      try {
14544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14545
      } catch (org.apache.thrift.TException te) {
14546
        throw new java.io.IOException(te);
14547
      }
14548
    }
14549
 
14550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14551
      try {
14552
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14553
      } catch (org.apache.thrift.TException te) {
14554
        throw new java.io.IOException(te);
14555
      }
14556
    }
14557
 
14558
  }
14559
 
14560
  public static class getAllItemsByStatus_args implements org.apache.thrift.TBase<getAllItemsByStatus_args, getAllItemsByStatus_args._Fields>, java.io.Serializable, Cloneable   {
14561
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatus_args");
14562
 
14563
    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);
14564
 
14565
    private status itemStatus; // required
14566
 
14567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14569
      /**
14570
       * 
14571
       * @see status
14572
       */
14573
      ITEM_STATUS((short)1, "itemStatus");
14574
 
14575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14576
 
14577
      static {
14578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14579
          byName.put(field.getFieldName(), field);
14580
        }
14581
      }
14582
 
14583
      /**
14584
       * Find the _Fields constant that matches fieldId, or null if its not found.
14585
       */
14586
      public static _Fields findByThriftId(int fieldId) {
14587
        switch(fieldId) {
14588
          case 1: // ITEM_STATUS
14589
            return ITEM_STATUS;
14590
          default:
14591
            return null;
14592
        }
14593
      }
14594
 
14595
      /**
14596
       * Find the _Fields constant that matches fieldId, throwing an exception
14597
       * if it is not found.
14598
       */
14599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14600
        _Fields fields = findByThriftId(fieldId);
14601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14602
        return fields;
14603
      }
14604
 
14605
      /**
14606
       * Find the _Fields constant that matches name, or null if its not found.
14607
       */
14608
      public static _Fields findByName(String name) {
14609
        return byName.get(name);
14610
      }
14611
 
14612
      private final short _thriftId;
14613
      private final String _fieldName;
14614
 
14615
      _Fields(short thriftId, String fieldName) {
14616
        _thriftId = thriftId;
14617
        _fieldName = fieldName;
14618
      }
14619
 
14620
      public short getThriftFieldId() {
14621
        return _thriftId;
14622
      }
14623
 
14624
      public String getFieldName() {
14625
        return _fieldName;
14626
      }
14627
    }
14628
 
14629
    // isset id assignments
14630
 
14631
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14632
    static {
14633
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14634
      tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14635
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
14636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatus_args.class, metaDataMap);
14638
    }
14639
 
14640
    public getAllItemsByStatus_args() {
14641
    }
14642
 
14643
    public getAllItemsByStatus_args(
14644
      status itemStatus)
14645
    {
14646
      this();
14647
      this.itemStatus = itemStatus;
14648
    }
14649
 
14650
    /**
14651
     * Performs a deep copy on <i>other</i>.
14652
     */
14653
    public getAllItemsByStatus_args(getAllItemsByStatus_args other) {
14654
      if (other.isSetItemStatus()) {
14655
        this.itemStatus = other.itemStatus;
14656
      }
14657
    }
14658
 
14659
    public getAllItemsByStatus_args deepCopy() {
14660
      return new getAllItemsByStatus_args(this);
14661
    }
14662
 
14663
    @Override
14664
    public void clear() {
14665
      this.itemStatus = null;
14666
    }
14667
 
14668
    /**
14669
     * 
14670
     * @see status
14671
     */
14672
    public status getItemStatus() {
14673
      return this.itemStatus;
14674
    }
14675
 
14676
    /**
14677
     * 
14678
     * @see status
14679
     */
14680
    public void setItemStatus(status itemStatus) {
14681
      this.itemStatus = itemStatus;
14682
    }
14683
 
14684
    public void unsetItemStatus() {
14685
      this.itemStatus = null;
14686
    }
14687
 
14688
    /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
14689
    public boolean isSetItemStatus() {
14690
      return this.itemStatus != null;
14691
    }
14692
 
14693
    public void setItemStatusIsSet(boolean value) {
14694
      if (!value) {
14695
        this.itemStatus = null;
14696
      }
14697
    }
14698
 
14699
    public void setFieldValue(_Fields field, Object value) {
14700
      switch (field) {
14701
      case ITEM_STATUS:
14702
        if (value == null) {
14703
          unsetItemStatus();
14704
        } else {
14705
          setItemStatus((status)value);
14706
        }
14707
        break;
14708
 
14709
      }
14710
    }
14711
 
14712
    public Object getFieldValue(_Fields field) {
14713
      switch (field) {
14714
      case ITEM_STATUS:
14715
        return getItemStatus();
14716
 
14717
      }
14718
      throw new IllegalStateException();
14719
    }
14720
 
14721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14722
    public boolean isSet(_Fields field) {
14723
      if (field == null) {
14724
        throw new IllegalArgumentException();
14725
      }
14726
 
14727
      switch (field) {
14728
      case ITEM_STATUS:
14729
        return isSetItemStatus();
14730
      }
14731
      throw new IllegalStateException();
14732
    }
14733
 
14734
    @Override
14735
    public boolean equals(Object that) {
14736
      if (that == null)
14737
        return false;
14738
      if (that instanceof getAllItemsByStatus_args)
14739
        return this.equals((getAllItemsByStatus_args)that);
14740
      return false;
14741
    }
14742
 
14743
    public boolean equals(getAllItemsByStatus_args that) {
14744
      if (that == null)
14745
        return false;
14746
 
14747
      boolean this_present_itemStatus = true && this.isSetItemStatus();
14748
      boolean that_present_itemStatus = true && that.isSetItemStatus();
14749
      if (this_present_itemStatus || that_present_itemStatus) {
14750
        if (!(this_present_itemStatus && that_present_itemStatus))
14751
          return false;
14752
        if (!this.itemStatus.equals(that.itemStatus))
14753
          return false;
14754
      }
14755
 
14756
      return true;
14757
    }
14758
 
14759
    @Override
14760
    public int hashCode() {
14761
      return 0;
14762
    }
14763
 
14764
    public int compareTo(getAllItemsByStatus_args other) {
14765
      if (!getClass().equals(other.getClass())) {
14766
        return getClass().getName().compareTo(other.getClass().getName());
14767
      }
14768
 
14769
      int lastComparison = 0;
14770
      getAllItemsByStatus_args typedOther = (getAllItemsByStatus_args)other;
14771
 
14772
      lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
14773
      if (lastComparison != 0) {
14774
        return lastComparison;
14775
      }
14776
      if (isSetItemStatus()) {
14777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
14778
        if (lastComparison != 0) {
14779
          return lastComparison;
14780
        }
14781
      }
14782
      return 0;
14783
    }
14784
 
14785
    public _Fields fieldForId(int fieldId) {
14786
      return _Fields.findByThriftId(fieldId);
14787
    }
14788
 
14789
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14790
      org.apache.thrift.protocol.TField field;
14791
      iprot.readStructBegin();
14792
      while (true)
14793
      {
14794
        field = iprot.readFieldBegin();
14795
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14796
          break;
14797
        }
14798
        switch (field.id) {
14799
          case 1: // ITEM_STATUS
14800
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14801
              this.itemStatus = status.findByValue(iprot.readI32());
14802
            } else { 
14803
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14804
            }
14805
            break;
14806
          default:
14807
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14808
        }
14809
        iprot.readFieldEnd();
14810
      }
14811
      iprot.readStructEnd();
14812
      validate();
14813
    }
14814
 
14815
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14816
      validate();
14817
 
14818
      oprot.writeStructBegin(STRUCT_DESC);
14819
      if (this.itemStatus != null) {
14820
        oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
14821
        oprot.writeI32(this.itemStatus.getValue());
14822
        oprot.writeFieldEnd();
14823
      }
14824
      oprot.writeFieldStop();
14825
      oprot.writeStructEnd();
14826
    }
14827
 
14828
    @Override
14829
    public String toString() {
14830
      StringBuilder sb = new StringBuilder("getAllItemsByStatus_args(");
14831
      boolean first = true;
14832
 
14833
      sb.append("itemStatus:");
14834
      if (this.itemStatus == null) {
14835
        sb.append("null");
14836
      } else {
14837
        sb.append(this.itemStatus);
14838
      }
14839
      first = false;
14840
      sb.append(")");
14841
      return sb.toString();
14842
    }
14843
 
14844
    public void validate() throws org.apache.thrift.TException {
14845
      // check for required fields
14846
    }
14847
 
14848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14849
      try {
14850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14851
      } catch (org.apache.thrift.TException te) {
14852
        throw new java.io.IOException(te);
14853
      }
14854
    }
14855
 
14856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14857
      try {
14858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14859
      } catch (org.apache.thrift.TException te) {
14860
        throw new java.io.IOException(te);
14861
      }
14862
    }
14863
 
14864
  }
14865
 
14866
  public static class getAllItemsByStatus_result implements org.apache.thrift.TBase<getAllItemsByStatus_result, getAllItemsByStatus_result._Fields>, java.io.Serializable, Cloneable   {
14867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatus_result");
14868
 
14869
    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);
14870
    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);
14871
 
14872
    private List<Item> success; // required
14873
    private CatalogServiceException cex; // required
14874
 
14875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14877
      SUCCESS((short)0, "success"),
14878
      CEX((short)1, "cex");
14879
 
14880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14881
 
14882
      static {
14883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14884
          byName.put(field.getFieldName(), field);
14885
        }
14886
      }
14887
 
14888
      /**
14889
       * Find the _Fields constant that matches fieldId, or null if its not found.
14890
       */
14891
      public static _Fields findByThriftId(int fieldId) {
14892
        switch(fieldId) {
14893
          case 0: // SUCCESS
14894
            return SUCCESS;
14895
          case 1: // CEX
14896
            return CEX;
14897
          default:
14898
            return null;
14899
        }
14900
      }
14901
 
14902
      /**
14903
       * Find the _Fields constant that matches fieldId, throwing an exception
14904
       * if it is not found.
14905
       */
14906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14907
        _Fields fields = findByThriftId(fieldId);
14908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14909
        return fields;
14910
      }
14911
 
14912
      /**
14913
       * Find the _Fields constant that matches name, or null if its not found.
14914
       */
14915
      public static _Fields findByName(String name) {
14916
        return byName.get(name);
14917
      }
14918
 
14919
      private final short _thriftId;
14920
      private final String _fieldName;
14921
 
14922
      _Fields(short thriftId, String fieldName) {
14923
        _thriftId = thriftId;
14924
        _fieldName = fieldName;
14925
      }
14926
 
14927
      public short getThriftFieldId() {
14928
        return _thriftId;
14929
      }
14930
 
14931
      public String getFieldName() {
14932
        return _fieldName;
14933
      }
14934
    }
14935
 
14936
    // isset id assignments
14937
 
14938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14939
    static {
14940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14941
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14942
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14943
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
14944
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14946
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14947
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatus_result.class, metaDataMap);
14948
    }
14949
 
14950
    public getAllItemsByStatus_result() {
14951
    }
14952
 
14953
    public getAllItemsByStatus_result(
14954
      List<Item> success,
14955
      CatalogServiceException cex)
14956
    {
14957
      this();
14958
      this.success = success;
14959
      this.cex = cex;
14960
    }
14961
 
14962
    /**
14963
     * Performs a deep copy on <i>other</i>.
14964
     */
14965
    public getAllItemsByStatus_result(getAllItemsByStatus_result other) {
14966
      if (other.isSetSuccess()) {
14967
        List<Item> __this__success = new ArrayList<Item>();
14968
        for (Item other_element : other.success) {
14969
          __this__success.add(new Item(other_element));
14970
        }
14971
        this.success = __this__success;
14972
      }
14973
      if (other.isSetCex()) {
14974
        this.cex = new CatalogServiceException(other.cex);
14975
      }
14976
    }
14977
 
14978
    public getAllItemsByStatus_result deepCopy() {
14979
      return new getAllItemsByStatus_result(this);
14980
    }
14981
 
14982
    @Override
14983
    public void clear() {
14984
      this.success = null;
14985
      this.cex = null;
14986
    }
14987
 
14988
    public int getSuccessSize() {
14989
      return (this.success == null) ? 0 : this.success.size();
14990
    }
14991
 
14992
    public java.util.Iterator<Item> getSuccessIterator() {
14993
      return (this.success == null) ? null : this.success.iterator();
14994
    }
14995
 
14996
    public void addToSuccess(Item elem) {
14997
      if (this.success == null) {
14998
        this.success = new ArrayList<Item>();
14999
      }
15000
      this.success.add(elem);
15001
    }
15002
 
15003
    public List<Item> getSuccess() {
15004
      return this.success;
15005
    }
15006
 
15007
    public void setSuccess(List<Item> success) {
15008
      this.success = success;
15009
    }
15010
 
15011
    public void unsetSuccess() {
15012
      this.success = null;
15013
    }
15014
 
15015
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15016
    public boolean isSetSuccess() {
15017
      return this.success != null;
15018
    }
15019
 
15020
    public void setSuccessIsSet(boolean value) {
15021
      if (!value) {
15022
        this.success = null;
15023
      }
15024
    }
15025
 
15026
    public CatalogServiceException getCex() {
15027
      return this.cex;
15028
    }
15029
 
15030
    public void setCex(CatalogServiceException cex) {
15031
      this.cex = cex;
15032
    }
15033
 
15034
    public void unsetCex() {
15035
      this.cex = null;
15036
    }
15037
 
15038
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15039
    public boolean isSetCex() {
15040
      return this.cex != null;
15041
    }
15042
 
15043
    public void setCexIsSet(boolean value) {
15044
      if (!value) {
15045
        this.cex = null;
15046
      }
15047
    }
15048
 
15049
    public void setFieldValue(_Fields field, Object value) {
15050
      switch (field) {
15051
      case SUCCESS:
15052
        if (value == null) {
15053
          unsetSuccess();
15054
        } else {
15055
          setSuccess((List<Item>)value);
15056
        }
15057
        break;
15058
 
15059
      case CEX:
15060
        if (value == null) {
15061
          unsetCex();
15062
        } else {
15063
          setCex((CatalogServiceException)value);
15064
        }
15065
        break;
15066
 
15067
      }
15068
    }
15069
 
15070
    public Object getFieldValue(_Fields field) {
15071
      switch (field) {
15072
      case SUCCESS:
15073
        return getSuccess();
15074
 
15075
      case CEX:
15076
        return getCex();
15077
 
15078
      }
15079
      throw new IllegalStateException();
15080
    }
15081
 
15082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15083
    public boolean isSet(_Fields field) {
15084
      if (field == null) {
15085
        throw new IllegalArgumentException();
15086
      }
15087
 
15088
      switch (field) {
15089
      case SUCCESS:
15090
        return isSetSuccess();
15091
      case CEX:
15092
        return isSetCex();
15093
      }
15094
      throw new IllegalStateException();
15095
    }
15096
 
15097
    @Override
15098
    public boolean equals(Object that) {
15099
      if (that == null)
15100
        return false;
15101
      if (that instanceof getAllItemsByStatus_result)
15102
        return this.equals((getAllItemsByStatus_result)that);
15103
      return false;
15104
    }
15105
 
15106
    public boolean equals(getAllItemsByStatus_result that) {
15107
      if (that == null)
15108
        return false;
15109
 
15110
      boolean this_present_success = true && this.isSetSuccess();
15111
      boolean that_present_success = true && that.isSetSuccess();
15112
      if (this_present_success || that_present_success) {
15113
        if (!(this_present_success && that_present_success))
15114
          return false;
15115
        if (!this.success.equals(that.success))
15116
          return false;
15117
      }
15118
 
15119
      boolean this_present_cex = true && this.isSetCex();
15120
      boolean that_present_cex = true && that.isSetCex();
15121
      if (this_present_cex || that_present_cex) {
15122
        if (!(this_present_cex && that_present_cex))
15123
          return false;
15124
        if (!this.cex.equals(that.cex))
15125
          return false;
15126
      }
15127
 
15128
      return true;
15129
    }
15130
 
15131
    @Override
15132
    public int hashCode() {
15133
      return 0;
15134
    }
15135
 
15136
    public int compareTo(getAllItemsByStatus_result other) {
15137
      if (!getClass().equals(other.getClass())) {
15138
        return getClass().getName().compareTo(other.getClass().getName());
15139
      }
15140
 
15141
      int lastComparison = 0;
15142
      getAllItemsByStatus_result typedOther = (getAllItemsByStatus_result)other;
15143
 
15144
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15145
      if (lastComparison != 0) {
15146
        return lastComparison;
15147
      }
15148
      if (isSetSuccess()) {
15149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15150
        if (lastComparison != 0) {
15151
          return lastComparison;
15152
        }
15153
      }
15154
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15155
      if (lastComparison != 0) {
15156
        return lastComparison;
15157
      }
15158
      if (isSetCex()) {
15159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15160
        if (lastComparison != 0) {
15161
          return lastComparison;
15162
        }
15163
      }
15164
      return 0;
15165
    }
15166
 
15167
    public _Fields fieldForId(int fieldId) {
15168
      return _Fields.findByThriftId(fieldId);
15169
    }
15170
 
15171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15172
      org.apache.thrift.protocol.TField field;
15173
      iprot.readStructBegin();
15174
      while (true)
15175
      {
15176
        field = iprot.readFieldBegin();
15177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15178
          break;
15179
        }
15180
        switch (field.id) {
15181
          case 0: // SUCCESS
15182
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15183
              {
15184
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
15185
                this.success = new ArrayList<Item>(_list21.size);
15186
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15187
                {
15188
                  Item _elem23; // required
15189
                  _elem23 = new Item();
15190
                  _elem23.read(iprot);
15191
                  this.success.add(_elem23);
15192
                }
15193
                iprot.readListEnd();
15194
              }
15195
            } else { 
15196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15197
            }
15198
            break;
15199
          case 1: // CEX
15200
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15201
              this.cex = new CatalogServiceException();
15202
              this.cex.read(iprot);
15203
            } else { 
15204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15205
            }
15206
            break;
15207
          default:
15208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15209
        }
15210
        iprot.readFieldEnd();
15211
      }
15212
      iprot.readStructEnd();
15213
      validate();
15214
    }
15215
 
15216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15217
      oprot.writeStructBegin(STRUCT_DESC);
15218
 
15219
      if (this.isSetSuccess()) {
15220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15221
        {
15222
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15223
          for (Item _iter24 : this.success)
15224
          {
15225
            _iter24.write(oprot);
15226
          }
15227
          oprot.writeListEnd();
15228
        }
15229
        oprot.writeFieldEnd();
15230
      } else if (this.isSetCex()) {
15231
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15232
        this.cex.write(oprot);
15233
        oprot.writeFieldEnd();
15234
      }
15235
      oprot.writeFieldStop();
15236
      oprot.writeStructEnd();
15237
    }
15238
 
15239
    @Override
15240
    public String toString() {
15241
      StringBuilder sb = new StringBuilder("getAllItemsByStatus_result(");
15242
      boolean first = true;
15243
 
15244
      sb.append("success:");
15245
      if (this.success == null) {
15246
        sb.append("null");
15247
      } else {
15248
        sb.append(this.success);
15249
      }
15250
      first = false;
15251
      if (!first) sb.append(", ");
15252
      sb.append("cex:");
15253
      if (this.cex == null) {
15254
        sb.append("null");
15255
      } else {
15256
        sb.append(this.cex);
15257
      }
15258
      first = false;
15259
      sb.append(")");
15260
      return sb.toString();
15261
    }
15262
 
15263
    public void validate() throws org.apache.thrift.TException {
15264
      // check for required fields
15265
    }
15266
 
15267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15268
      try {
15269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15270
      } catch (org.apache.thrift.TException te) {
15271
        throw new java.io.IOException(te);
15272
      }
15273
    }
15274
 
15275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15276
      try {
15277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15278
      } catch (org.apache.thrift.TException te) {
15279
        throw new java.io.IOException(te);
15280
      }
15281
    }
15282
 
15283
  }
15284
 
15285
  public static class markItemAsContentComplete_args implements org.apache.thrift.TBase<markItemAsContentComplete_args, markItemAsContentComplete_args._Fields>, java.io.Serializable, Cloneable   {
15286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemAsContentComplete_args");
15287
 
15288
    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);
15289
    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);
15290
    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);
15291
    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);
15292
    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);
15293
 
15294
    private long entityId; // required
15295
    private long category; // required
15296
    private String brand; // required
15297
    private String modelName; // required
15298
    private String modelNumber; // required
15299
 
15300
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15301
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15302
      ENTITY_ID((short)1, "entityId"),
15303
      CATEGORY((short)2, "category"),
15304
      BRAND((short)3, "brand"),
15305
      MODEL_NAME((short)4, "modelName"),
15306
      MODEL_NUMBER((short)5, "modelNumber");
15307
 
15308
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15309
 
15310
      static {
15311
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15312
          byName.put(field.getFieldName(), field);
15313
        }
15314
      }
15315
 
15316
      /**
15317
       * Find the _Fields constant that matches fieldId, or null if its not found.
15318
       */
15319
      public static _Fields findByThriftId(int fieldId) {
15320
        switch(fieldId) {
15321
          case 1: // ENTITY_ID
15322
            return ENTITY_ID;
15323
          case 2: // CATEGORY
15324
            return CATEGORY;
15325
          case 3: // BRAND
15326
            return BRAND;
15327
          case 4: // MODEL_NAME
15328
            return MODEL_NAME;
15329
          case 5: // MODEL_NUMBER
15330
            return MODEL_NUMBER;
15331
          default:
15332
            return null;
15333
        }
15334
      }
15335
 
15336
      /**
15337
       * Find the _Fields constant that matches fieldId, throwing an exception
15338
       * if it is not found.
15339
       */
15340
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15341
        _Fields fields = findByThriftId(fieldId);
15342
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15343
        return fields;
15344
      }
15345
 
15346
      /**
15347
       * Find the _Fields constant that matches name, or null if its not found.
15348
       */
15349
      public static _Fields findByName(String name) {
15350
        return byName.get(name);
15351
      }
15352
 
15353
      private final short _thriftId;
15354
      private final String _fieldName;
15355
 
15356
      _Fields(short thriftId, String fieldName) {
15357
        _thriftId = thriftId;
15358
        _fieldName = fieldName;
15359
      }
15360
 
15361
      public short getThriftFieldId() {
15362
        return _thriftId;
15363
      }
15364
 
15365
      public String getFieldName() {
15366
        return _fieldName;
15367
      }
15368
    }
15369
 
15370
    // isset id assignments
15371
    private static final int __ENTITYID_ISSET_ID = 0;
15372
    private static final int __CATEGORY_ISSET_ID = 1;
15373
    private BitSet __isset_bit_vector = new BitSet(2);
15374
 
15375
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15376
    static {
15377
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15378
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entityId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15380
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15382
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15384
      tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15385
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15386
      tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15388
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15389
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemAsContentComplete_args.class, metaDataMap);
15390
    }
15391
 
15392
    public markItemAsContentComplete_args() {
15393
    }
15394
 
15395
    public markItemAsContentComplete_args(
15396
      long entityId,
15397
      long category,
15398
      String brand,
15399
      String modelName,
15400
      String modelNumber)
15401
    {
15402
      this();
15403
      this.entityId = entityId;
15404
      setEntityIdIsSet(true);
15405
      this.category = category;
15406
      setCategoryIsSet(true);
15407
      this.brand = brand;
15408
      this.modelName = modelName;
15409
      this.modelNumber = modelNumber;
15410
    }
15411
 
15412
    /**
15413
     * Performs a deep copy on <i>other</i>.
15414
     */
15415
    public markItemAsContentComplete_args(markItemAsContentComplete_args other) {
15416
      __isset_bit_vector.clear();
15417
      __isset_bit_vector.or(other.__isset_bit_vector);
15418
      this.entityId = other.entityId;
15419
      this.category = other.category;
15420
      if (other.isSetBrand()) {
15421
        this.brand = other.brand;
15422
      }
15423
      if (other.isSetModelName()) {
15424
        this.modelName = other.modelName;
15425
      }
15426
      if (other.isSetModelNumber()) {
15427
        this.modelNumber = other.modelNumber;
15428
      }
15429
    }
15430
 
15431
    public markItemAsContentComplete_args deepCopy() {
15432
      return new markItemAsContentComplete_args(this);
15433
    }
15434
 
15435
    @Override
15436
    public void clear() {
15437
      setEntityIdIsSet(false);
15438
      this.entityId = 0;
15439
      setCategoryIsSet(false);
15440
      this.category = 0;
15441
      this.brand = null;
15442
      this.modelName = null;
15443
      this.modelNumber = null;
15444
    }
15445
 
15446
    public long getEntityId() {
15447
      return this.entityId;
15448
    }
15449
 
15450
    public void setEntityId(long entityId) {
15451
      this.entityId = entityId;
15452
      setEntityIdIsSet(true);
15453
    }
15454
 
15455
    public void unsetEntityId() {
15456
      __isset_bit_vector.clear(__ENTITYID_ISSET_ID);
15457
    }
15458
 
15459
    /** Returns true if field entityId is set (has been assigned a value) and false otherwise */
15460
    public boolean isSetEntityId() {
15461
      return __isset_bit_vector.get(__ENTITYID_ISSET_ID);
15462
    }
15463
 
15464
    public void setEntityIdIsSet(boolean value) {
15465
      __isset_bit_vector.set(__ENTITYID_ISSET_ID, value);
15466
    }
15467
 
15468
    public long getCategory() {
15469
      return this.category;
15470
    }
15471
 
15472
    public void setCategory(long category) {
15473
      this.category = category;
15474
      setCategoryIsSet(true);
15475
    }
15476
 
15477
    public void unsetCategory() {
15478
      __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
15479
    }
15480
 
15481
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
15482
    public boolean isSetCategory() {
15483
      return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
15484
    }
15485
 
15486
    public void setCategoryIsSet(boolean value) {
15487
      __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
15488
    }
15489
 
15490
    public String getBrand() {
15491
      return this.brand;
15492
    }
15493
 
15494
    public void setBrand(String brand) {
15495
      this.brand = brand;
15496
    }
15497
 
15498
    public void unsetBrand() {
15499
      this.brand = null;
15500
    }
15501
 
15502
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
15503
    public boolean isSetBrand() {
15504
      return this.brand != null;
15505
    }
15506
 
15507
    public void setBrandIsSet(boolean value) {
15508
      if (!value) {
15509
        this.brand = null;
15510
      }
15511
    }
15512
 
15513
    public String getModelName() {
15514
      return this.modelName;
15515
    }
15516
 
15517
    public void setModelName(String modelName) {
15518
      this.modelName = modelName;
15519
    }
15520
 
15521
    public void unsetModelName() {
15522
      this.modelName = null;
15523
    }
15524
 
15525
    /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
15526
    public boolean isSetModelName() {
15527
      return this.modelName != null;
15528
    }
15529
 
15530
    public void setModelNameIsSet(boolean value) {
15531
      if (!value) {
15532
        this.modelName = null;
15533
      }
15534
    }
15535
 
15536
    public String getModelNumber() {
15537
      return this.modelNumber;
15538
    }
15539
 
15540
    public void setModelNumber(String modelNumber) {
15541
      this.modelNumber = modelNumber;
15542
    }
15543
 
15544
    public void unsetModelNumber() {
15545
      this.modelNumber = null;
15546
    }
15547
 
15548
    /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
15549
    public boolean isSetModelNumber() {
15550
      return this.modelNumber != null;
15551
    }
15552
 
15553
    public void setModelNumberIsSet(boolean value) {
15554
      if (!value) {
15555
        this.modelNumber = null;
15556
      }
15557
    }
15558
 
15559
    public void setFieldValue(_Fields field, Object value) {
15560
      switch (field) {
15561
      case ENTITY_ID:
15562
        if (value == null) {
15563
          unsetEntityId();
15564
        } else {
15565
          setEntityId((Long)value);
15566
        }
15567
        break;
15568
 
15569
      case CATEGORY:
15570
        if (value == null) {
15571
          unsetCategory();
15572
        } else {
15573
          setCategory((Long)value);
15574
        }
15575
        break;
15576
 
15577
      case BRAND:
15578
        if (value == null) {
15579
          unsetBrand();
15580
        } else {
15581
          setBrand((String)value);
15582
        }
15583
        break;
15584
 
15585
      case MODEL_NAME:
15586
        if (value == null) {
15587
          unsetModelName();
15588
        } else {
15589
          setModelName((String)value);
15590
        }
15591
        break;
15592
 
15593
      case MODEL_NUMBER:
15594
        if (value == null) {
15595
          unsetModelNumber();
15596
        } else {
15597
          setModelNumber((String)value);
15598
        }
15599
        break;
15600
 
15601
      }
15602
    }
15603
 
15604
    public Object getFieldValue(_Fields field) {
15605
      switch (field) {
15606
      case ENTITY_ID:
15607
        return Long.valueOf(getEntityId());
15608
 
15609
      case CATEGORY:
15610
        return Long.valueOf(getCategory());
15611
 
15612
      case BRAND:
15613
        return getBrand();
15614
 
15615
      case MODEL_NAME:
15616
        return getModelName();
15617
 
15618
      case MODEL_NUMBER:
15619
        return getModelNumber();
15620
 
15621
      }
15622
      throw new IllegalStateException();
15623
    }
15624
 
15625
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15626
    public boolean isSet(_Fields field) {
15627
      if (field == null) {
15628
        throw new IllegalArgumentException();
15629
      }
15630
 
15631
      switch (field) {
15632
      case ENTITY_ID:
15633
        return isSetEntityId();
15634
      case CATEGORY:
15635
        return isSetCategory();
15636
      case BRAND:
15637
        return isSetBrand();
15638
      case MODEL_NAME:
15639
        return isSetModelName();
15640
      case MODEL_NUMBER:
15641
        return isSetModelNumber();
15642
      }
15643
      throw new IllegalStateException();
15644
    }
15645
 
15646
    @Override
15647
    public boolean equals(Object that) {
15648
      if (that == null)
15649
        return false;
15650
      if (that instanceof markItemAsContentComplete_args)
15651
        return this.equals((markItemAsContentComplete_args)that);
15652
      return false;
15653
    }
15654
 
15655
    public boolean equals(markItemAsContentComplete_args that) {
15656
      if (that == null)
15657
        return false;
15658
 
15659
      boolean this_present_entityId = true;
15660
      boolean that_present_entityId = true;
15661
      if (this_present_entityId || that_present_entityId) {
15662
        if (!(this_present_entityId && that_present_entityId))
15663
          return false;
15664
        if (this.entityId != that.entityId)
15665
          return false;
15666
      }
15667
 
15668
      boolean this_present_category = true;
15669
      boolean that_present_category = true;
15670
      if (this_present_category || that_present_category) {
15671
        if (!(this_present_category && that_present_category))
15672
          return false;
15673
        if (this.category != that.category)
15674
          return false;
15675
      }
15676
 
15677
      boolean this_present_brand = true && this.isSetBrand();
15678
      boolean that_present_brand = true && that.isSetBrand();
15679
      if (this_present_brand || that_present_brand) {
15680
        if (!(this_present_brand && that_present_brand))
15681
          return false;
15682
        if (!this.brand.equals(that.brand))
15683
          return false;
15684
      }
15685
 
15686
      boolean this_present_modelName = true && this.isSetModelName();
15687
      boolean that_present_modelName = true && that.isSetModelName();
15688
      if (this_present_modelName || that_present_modelName) {
15689
        if (!(this_present_modelName && that_present_modelName))
15690
          return false;
15691
        if (!this.modelName.equals(that.modelName))
15692
          return false;
15693
      }
15694
 
15695
      boolean this_present_modelNumber = true && this.isSetModelNumber();
15696
      boolean that_present_modelNumber = true && that.isSetModelNumber();
15697
      if (this_present_modelNumber || that_present_modelNumber) {
15698
        if (!(this_present_modelNumber && that_present_modelNumber))
15699
          return false;
15700
        if (!this.modelNumber.equals(that.modelNumber))
15701
          return false;
15702
      }
15703
 
15704
      return true;
15705
    }
15706
 
15707
    @Override
15708
    public int hashCode() {
15709
      return 0;
15710
    }
15711
 
15712
    public int compareTo(markItemAsContentComplete_args other) {
15713
      if (!getClass().equals(other.getClass())) {
15714
        return getClass().getName().compareTo(other.getClass().getName());
15715
      }
15716
 
15717
      int lastComparison = 0;
15718
      markItemAsContentComplete_args typedOther = (markItemAsContentComplete_args)other;
15719
 
15720
      lastComparison = Boolean.valueOf(isSetEntityId()).compareTo(typedOther.isSetEntityId());
15721
      if (lastComparison != 0) {
15722
        return lastComparison;
15723
      }
15724
      if (isSetEntityId()) {
15725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityId, typedOther.entityId);
15726
        if (lastComparison != 0) {
15727
          return lastComparison;
15728
        }
15729
      }
15730
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
15731
      if (lastComparison != 0) {
15732
        return lastComparison;
15733
      }
15734
      if (isSetCategory()) {
15735
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
15736
        if (lastComparison != 0) {
15737
          return lastComparison;
15738
        }
15739
      }
15740
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
15741
      if (lastComparison != 0) {
15742
        return lastComparison;
15743
      }
15744
      if (isSetBrand()) {
15745
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
15746
        if (lastComparison != 0) {
15747
          return lastComparison;
15748
        }
15749
      }
15750
      lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
15751
      if (lastComparison != 0) {
15752
        return lastComparison;
15753
      }
15754
      if (isSetModelName()) {
15755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
15756
        if (lastComparison != 0) {
15757
          return lastComparison;
15758
        }
15759
      }
15760
      lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
15761
      if (lastComparison != 0) {
15762
        return lastComparison;
15763
      }
15764
      if (isSetModelNumber()) {
15765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
15766
        if (lastComparison != 0) {
15767
          return lastComparison;
15768
        }
15769
      }
15770
      return 0;
15771
    }
15772
 
15773
    public _Fields fieldForId(int fieldId) {
15774
      return _Fields.findByThriftId(fieldId);
15775
    }
15776
 
15777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15778
      org.apache.thrift.protocol.TField field;
15779
      iprot.readStructBegin();
15780
      while (true)
15781
      {
15782
        field = iprot.readFieldBegin();
15783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15784
          break;
15785
        }
15786
        switch (field.id) {
15787
          case 1: // ENTITY_ID
15788
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15789
              this.entityId = iprot.readI64();
15790
              setEntityIdIsSet(true);
15791
            } else { 
15792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15793
            }
15794
            break;
15795
          case 2: // CATEGORY
15796
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15797
              this.category = iprot.readI64();
15798
              setCategoryIsSet(true);
15799
            } else { 
15800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15801
            }
15802
            break;
15803
          case 3: // BRAND
15804
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15805
              this.brand = iprot.readString();
15806
            } else { 
15807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15808
            }
15809
            break;
15810
          case 4: // MODEL_NAME
15811
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15812
              this.modelName = iprot.readString();
15813
            } else { 
15814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15815
            }
15816
            break;
15817
          case 5: // MODEL_NUMBER
15818
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15819
              this.modelNumber = iprot.readString();
15820
            } else { 
15821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15822
            }
15823
            break;
15824
          default:
15825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15826
        }
15827
        iprot.readFieldEnd();
15828
      }
15829
      iprot.readStructEnd();
15830
      validate();
15831
    }
15832
 
15833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15834
      validate();
15835
 
15836
      oprot.writeStructBegin(STRUCT_DESC);
15837
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
15838
      oprot.writeI64(this.entityId);
15839
      oprot.writeFieldEnd();
15840
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
15841
      oprot.writeI64(this.category);
15842
      oprot.writeFieldEnd();
15843
      if (this.brand != null) {
15844
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
15845
        oprot.writeString(this.brand);
15846
        oprot.writeFieldEnd();
15847
      }
15848
      if (this.modelName != null) {
15849
        oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
15850
        oprot.writeString(this.modelName);
15851
        oprot.writeFieldEnd();
15852
      }
15853
      if (this.modelNumber != null) {
15854
        oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
15855
        oprot.writeString(this.modelNumber);
15856
        oprot.writeFieldEnd();
15857
      }
15858
      oprot.writeFieldStop();
15859
      oprot.writeStructEnd();
15860
    }
15861
 
15862
    @Override
15863
    public String toString() {
15864
      StringBuilder sb = new StringBuilder("markItemAsContentComplete_args(");
15865
      boolean first = true;
15866
 
15867
      sb.append("entityId:");
15868
      sb.append(this.entityId);
15869
      first = false;
15870
      if (!first) sb.append(", ");
15871
      sb.append("category:");
15872
      sb.append(this.category);
15873
      first = false;
15874
      if (!first) sb.append(", ");
15875
      sb.append("brand:");
15876
      if (this.brand == null) {
15877
        sb.append("null");
15878
      } else {
15879
        sb.append(this.brand);
15880
      }
15881
      first = false;
15882
      if (!first) sb.append(", ");
15883
      sb.append("modelName:");
15884
      if (this.modelName == null) {
15885
        sb.append("null");
15886
      } else {
15887
        sb.append(this.modelName);
15888
      }
15889
      first = false;
15890
      if (!first) sb.append(", ");
15891
      sb.append("modelNumber:");
15892
      if (this.modelNumber == null) {
15893
        sb.append("null");
15894
      } else {
15895
        sb.append(this.modelNumber);
15896
      }
15897
      first = false;
15898
      sb.append(")");
15899
      return sb.toString();
15900
    }
15901
 
15902
    public void validate() throws org.apache.thrift.TException {
15903
      // check for required fields
15904
    }
15905
 
15906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15907
      try {
15908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15909
      } catch (org.apache.thrift.TException te) {
15910
        throw new java.io.IOException(te);
15911
      }
15912
    }
15913
 
15914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15915
      try {
15916
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15917
        __isset_bit_vector = new BitSet(1);
15918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15919
      } catch (org.apache.thrift.TException te) {
15920
        throw new java.io.IOException(te);
15921
      }
15922
    }
15923
 
15924
  }
15925
 
15926
  public static class markItemAsContentComplete_result implements org.apache.thrift.TBase<markItemAsContentComplete_result, markItemAsContentComplete_result._Fields>, java.io.Serializable, Cloneable   {
15927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemAsContentComplete_result");
15928
 
15929
    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);
15930
    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);
15931
 
15932
    private boolean success; // required
15933
    private CatalogServiceException cex; // required
15934
 
15935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15937
      SUCCESS((short)0, "success"),
15938
      CEX((short)1, "cex");
15939
 
15940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15941
 
15942
      static {
15943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15944
          byName.put(field.getFieldName(), field);
15945
        }
15946
      }
15947
 
15948
      /**
15949
       * Find the _Fields constant that matches fieldId, or null if its not found.
15950
       */
15951
      public static _Fields findByThriftId(int fieldId) {
15952
        switch(fieldId) {
15953
          case 0: // SUCCESS
15954
            return SUCCESS;
15955
          case 1: // CEX
15956
            return CEX;
15957
          default:
15958
            return null;
15959
        }
15960
      }
15961
 
15962
      /**
15963
       * Find the _Fields constant that matches fieldId, throwing an exception
15964
       * if it is not found.
15965
       */
15966
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15967
        _Fields fields = findByThriftId(fieldId);
15968
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15969
        return fields;
15970
      }
15971
 
15972
      /**
15973
       * Find the _Fields constant that matches name, or null if its not found.
15974
       */
15975
      public static _Fields findByName(String name) {
15976
        return byName.get(name);
15977
      }
15978
 
15979
      private final short _thriftId;
15980
      private final String _fieldName;
15981
 
15982
      _Fields(short thriftId, String fieldName) {
15983
        _thriftId = thriftId;
15984
        _fieldName = fieldName;
15985
      }
15986
 
15987
      public short getThriftFieldId() {
15988
        return _thriftId;
15989
      }
15990
 
15991
      public String getFieldName() {
15992
        return _fieldName;
15993
      }
15994
    }
15995
 
15996
    // isset id assignments
15997
    private static final int __SUCCESS_ISSET_ID = 0;
15998
    private BitSet __isset_bit_vector = new BitSet(1);
15999
 
16000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16001
    static {
16002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16003
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16004
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16005
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16006
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16007
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16008
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemAsContentComplete_result.class, metaDataMap);
16009
    }
16010
 
16011
    public markItemAsContentComplete_result() {
16012
    }
16013
 
16014
    public markItemAsContentComplete_result(
16015
      boolean success,
16016
      CatalogServiceException cex)
16017
    {
16018
      this();
16019
      this.success = success;
16020
      setSuccessIsSet(true);
16021
      this.cex = cex;
16022
    }
16023
 
16024
    /**
16025
     * Performs a deep copy on <i>other</i>.
16026
     */
16027
    public markItemAsContentComplete_result(markItemAsContentComplete_result other) {
16028
      __isset_bit_vector.clear();
16029
      __isset_bit_vector.or(other.__isset_bit_vector);
16030
      this.success = other.success;
16031
      if (other.isSetCex()) {
16032
        this.cex = new CatalogServiceException(other.cex);
16033
      }
16034
    }
16035
 
16036
    public markItemAsContentComplete_result deepCopy() {
16037
      return new markItemAsContentComplete_result(this);
16038
    }
16039
 
16040
    @Override
16041
    public void clear() {
16042
      setSuccessIsSet(false);
16043
      this.success = false;
16044
      this.cex = null;
16045
    }
16046
 
16047
    public boolean isSuccess() {
16048
      return this.success;
16049
    }
16050
 
16051
    public void setSuccess(boolean success) {
16052
      this.success = success;
16053
      setSuccessIsSet(true);
16054
    }
16055
 
16056
    public void unsetSuccess() {
16057
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16058
    }
16059
 
16060
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16061
    public boolean isSetSuccess() {
16062
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16063
    }
16064
 
16065
    public void setSuccessIsSet(boolean value) {
16066
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16067
    }
16068
 
16069
    public CatalogServiceException getCex() {
16070
      return this.cex;
16071
    }
16072
 
16073
    public void setCex(CatalogServiceException cex) {
16074
      this.cex = cex;
16075
    }
16076
 
16077
    public void unsetCex() {
16078
      this.cex = null;
16079
    }
16080
 
16081
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16082
    public boolean isSetCex() {
16083
      return this.cex != null;
16084
    }
16085
 
16086
    public void setCexIsSet(boolean value) {
16087
      if (!value) {
16088
        this.cex = null;
16089
      }
16090
    }
16091
 
16092
    public void setFieldValue(_Fields field, Object value) {
16093
      switch (field) {
16094
      case SUCCESS:
16095
        if (value == null) {
16096
          unsetSuccess();
16097
        } else {
16098
          setSuccess((Boolean)value);
16099
        }
16100
        break;
16101
 
16102
      case CEX:
16103
        if (value == null) {
16104
          unsetCex();
16105
        } else {
16106
          setCex((CatalogServiceException)value);
16107
        }
16108
        break;
16109
 
16110
      }
16111
    }
16112
 
16113
    public Object getFieldValue(_Fields field) {
16114
      switch (field) {
16115
      case SUCCESS:
16116
        return Boolean.valueOf(isSuccess());
16117
 
16118
      case CEX:
16119
        return getCex();
16120
 
16121
      }
16122
      throw new IllegalStateException();
16123
    }
16124
 
16125
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16126
    public boolean isSet(_Fields field) {
16127
      if (field == null) {
16128
        throw new IllegalArgumentException();
16129
      }
16130
 
16131
      switch (field) {
16132
      case SUCCESS:
16133
        return isSetSuccess();
16134
      case CEX:
16135
        return isSetCex();
16136
      }
16137
      throw new IllegalStateException();
16138
    }
16139
 
16140
    @Override
16141
    public boolean equals(Object that) {
16142
      if (that == null)
16143
        return false;
16144
      if (that instanceof markItemAsContentComplete_result)
16145
        return this.equals((markItemAsContentComplete_result)that);
16146
      return false;
16147
    }
16148
 
16149
    public boolean equals(markItemAsContentComplete_result that) {
16150
      if (that == null)
16151
        return false;
16152
 
16153
      boolean this_present_success = true;
16154
      boolean that_present_success = true;
16155
      if (this_present_success || that_present_success) {
16156
        if (!(this_present_success && that_present_success))
16157
          return false;
16158
        if (this.success != that.success)
16159
          return false;
16160
      }
16161
 
16162
      boolean this_present_cex = true && this.isSetCex();
16163
      boolean that_present_cex = true && that.isSetCex();
16164
      if (this_present_cex || that_present_cex) {
16165
        if (!(this_present_cex && that_present_cex))
16166
          return false;
16167
        if (!this.cex.equals(that.cex))
16168
          return false;
16169
      }
16170
 
16171
      return true;
16172
    }
16173
 
16174
    @Override
16175
    public int hashCode() {
16176
      return 0;
16177
    }
16178
 
16179
    public int compareTo(markItemAsContentComplete_result other) {
16180
      if (!getClass().equals(other.getClass())) {
16181
        return getClass().getName().compareTo(other.getClass().getName());
16182
      }
16183
 
16184
      int lastComparison = 0;
16185
      markItemAsContentComplete_result typedOther = (markItemAsContentComplete_result)other;
16186
 
16187
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16188
      if (lastComparison != 0) {
16189
        return lastComparison;
16190
      }
16191
      if (isSetSuccess()) {
16192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16193
        if (lastComparison != 0) {
16194
          return lastComparison;
16195
        }
16196
      }
16197
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16198
      if (lastComparison != 0) {
16199
        return lastComparison;
16200
      }
16201
      if (isSetCex()) {
16202
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16203
        if (lastComparison != 0) {
16204
          return lastComparison;
16205
        }
16206
      }
16207
      return 0;
16208
    }
16209
 
16210
    public _Fields fieldForId(int fieldId) {
16211
      return _Fields.findByThriftId(fieldId);
16212
    }
16213
 
16214
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16215
      org.apache.thrift.protocol.TField field;
16216
      iprot.readStructBegin();
16217
      while (true)
16218
      {
16219
        field = iprot.readFieldBegin();
16220
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16221
          break;
16222
        }
16223
        switch (field.id) {
16224
          case 0: // SUCCESS
16225
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16226
              this.success = iprot.readBool();
16227
              setSuccessIsSet(true);
16228
            } else { 
16229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16230
            }
16231
            break;
16232
          case 1: // CEX
16233
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16234
              this.cex = new CatalogServiceException();
16235
              this.cex.read(iprot);
16236
            } else { 
16237
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16238
            }
16239
            break;
16240
          default:
16241
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16242
        }
16243
        iprot.readFieldEnd();
16244
      }
16245
      iprot.readStructEnd();
16246
      validate();
16247
    }
16248
 
16249
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16250
      oprot.writeStructBegin(STRUCT_DESC);
16251
 
16252
      if (this.isSetSuccess()) {
16253
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16254
        oprot.writeBool(this.success);
16255
        oprot.writeFieldEnd();
16256
      } else if (this.isSetCex()) {
16257
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16258
        this.cex.write(oprot);
16259
        oprot.writeFieldEnd();
16260
      }
16261
      oprot.writeFieldStop();
16262
      oprot.writeStructEnd();
16263
    }
16264
 
16265
    @Override
16266
    public String toString() {
16267
      StringBuilder sb = new StringBuilder("markItemAsContentComplete_result(");
16268
      boolean first = true;
16269
 
16270
      sb.append("success:");
16271
      sb.append(this.success);
16272
      first = false;
16273
      if (!first) sb.append(", ");
16274
      sb.append("cex:");
16275
      if (this.cex == null) {
16276
        sb.append("null");
16277
      } else {
16278
        sb.append(this.cex);
16279
      }
16280
      first = false;
16281
      sb.append(")");
16282
      return sb.toString();
16283
    }
16284
 
16285
    public void validate() throws org.apache.thrift.TException {
16286
      // check for required fields
16287
    }
16288
 
16289
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16290
      try {
16291
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16292
      } catch (org.apache.thrift.TException te) {
16293
        throw new java.io.IOException(te);
16294
      }
16295
    }
16296
 
16297
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16298
      try {
16299
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16300
      } catch (org.apache.thrift.TException te) {
16301
        throw new java.io.IOException(te);
16302
      }
16303
    }
16304
 
16305
  }
16306
 
16307
  public static class getAllItemsInRange_args implements org.apache.thrift.TBase<getAllItemsInRange_args, getAllItemsInRange_args._Fields>, java.io.Serializable, Cloneable   {
16308
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsInRange_args");
16309
 
16310
    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);
16311
    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);
16312
 
16313
    private long offset; // required
16314
    private long limit; // required
16315
 
16316
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16317
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16318
      OFFSET((short)1, "offset"),
16319
      LIMIT((short)2, "limit");
16320
 
16321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16322
 
16323
      static {
16324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16325
          byName.put(field.getFieldName(), field);
16326
        }
16327
      }
16328
 
16329
      /**
16330
       * Find the _Fields constant that matches fieldId, or null if its not found.
16331
       */
16332
      public static _Fields findByThriftId(int fieldId) {
16333
        switch(fieldId) {
16334
          case 1: // OFFSET
16335
            return OFFSET;
16336
          case 2: // LIMIT
16337
            return LIMIT;
16338
          default:
16339
            return null;
16340
        }
16341
      }
16342
 
16343
      /**
16344
       * Find the _Fields constant that matches fieldId, throwing an exception
16345
       * if it is not found.
16346
       */
16347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16348
        _Fields fields = findByThriftId(fieldId);
16349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16350
        return fields;
16351
      }
16352
 
16353
      /**
16354
       * Find the _Fields constant that matches name, or null if its not found.
16355
       */
16356
      public static _Fields findByName(String name) {
16357
        return byName.get(name);
16358
      }
16359
 
16360
      private final short _thriftId;
16361
      private final String _fieldName;
16362
 
16363
      _Fields(short thriftId, String fieldName) {
16364
        _thriftId = thriftId;
16365
        _fieldName = fieldName;
16366
      }
16367
 
16368
      public short getThriftFieldId() {
16369
        return _thriftId;
16370
      }
16371
 
16372
      public String getFieldName() {
16373
        return _fieldName;
16374
      }
16375
    }
16376
 
16377
    // isset id assignments
16378
    private static final int __OFFSET_ISSET_ID = 0;
16379
    private static final int __LIMIT_ISSET_ID = 1;
16380
    private BitSet __isset_bit_vector = new BitSet(2);
16381
 
16382
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16383
    static {
16384
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16385
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16386
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16387
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16388
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsInRange_args.class, metaDataMap);
16391
    }
16392
 
16393
    public getAllItemsInRange_args() {
16394
    }
16395
 
16396
    public getAllItemsInRange_args(
16397
      long offset,
16398
      long limit)
16399
    {
16400
      this();
16401
      this.offset = offset;
16402
      setOffsetIsSet(true);
16403
      this.limit = limit;
16404
      setLimitIsSet(true);
16405
    }
16406
 
16407
    /**
16408
     * Performs a deep copy on <i>other</i>.
16409
     */
16410
    public getAllItemsInRange_args(getAllItemsInRange_args other) {
16411
      __isset_bit_vector.clear();
16412
      __isset_bit_vector.or(other.__isset_bit_vector);
16413
      this.offset = other.offset;
16414
      this.limit = other.limit;
16415
    }
16416
 
16417
    public getAllItemsInRange_args deepCopy() {
16418
      return new getAllItemsInRange_args(this);
16419
    }
16420
 
16421
    @Override
16422
    public void clear() {
16423
      setOffsetIsSet(false);
16424
      this.offset = 0;
16425
      setLimitIsSet(false);
16426
      this.limit = 0;
16427
    }
16428
 
16429
    public long getOffset() {
16430
      return this.offset;
16431
    }
16432
 
16433
    public void setOffset(long offset) {
16434
      this.offset = offset;
16435
      setOffsetIsSet(true);
16436
    }
16437
 
16438
    public void unsetOffset() {
16439
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
16440
    }
16441
 
16442
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
16443
    public boolean isSetOffset() {
16444
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
16445
    }
16446
 
16447
    public void setOffsetIsSet(boolean value) {
16448
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
16449
    }
16450
 
16451
    public long getLimit() {
16452
      return this.limit;
16453
    }
16454
 
16455
    public void setLimit(long limit) {
16456
      this.limit = limit;
16457
      setLimitIsSet(true);
16458
    }
16459
 
16460
    public void unsetLimit() {
16461
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
16462
    }
16463
 
16464
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
16465
    public boolean isSetLimit() {
16466
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
16467
    }
16468
 
16469
    public void setLimitIsSet(boolean value) {
16470
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
16471
    }
16472
 
16473
    public void setFieldValue(_Fields field, Object value) {
16474
      switch (field) {
16475
      case OFFSET:
16476
        if (value == null) {
16477
          unsetOffset();
16478
        } else {
16479
          setOffset((Long)value);
16480
        }
16481
        break;
16482
 
16483
      case LIMIT:
16484
        if (value == null) {
16485
          unsetLimit();
16486
        } else {
16487
          setLimit((Long)value);
16488
        }
16489
        break;
16490
 
16491
      }
16492
    }
16493
 
16494
    public Object getFieldValue(_Fields field) {
16495
      switch (field) {
16496
      case OFFSET:
16497
        return Long.valueOf(getOffset());
16498
 
16499
      case LIMIT:
16500
        return Long.valueOf(getLimit());
16501
 
16502
      }
16503
      throw new IllegalStateException();
16504
    }
16505
 
16506
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16507
    public boolean isSet(_Fields field) {
16508
      if (field == null) {
16509
        throw new IllegalArgumentException();
16510
      }
16511
 
16512
      switch (field) {
16513
      case OFFSET:
16514
        return isSetOffset();
16515
      case LIMIT:
16516
        return isSetLimit();
16517
      }
16518
      throw new IllegalStateException();
16519
    }
16520
 
16521
    @Override
16522
    public boolean equals(Object that) {
16523
      if (that == null)
16524
        return false;
16525
      if (that instanceof getAllItemsInRange_args)
16526
        return this.equals((getAllItemsInRange_args)that);
16527
      return false;
16528
    }
16529
 
16530
    public boolean equals(getAllItemsInRange_args that) {
16531
      if (that == null)
16532
        return false;
16533
 
16534
      boolean this_present_offset = true;
16535
      boolean that_present_offset = true;
16536
      if (this_present_offset || that_present_offset) {
16537
        if (!(this_present_offset && that_present_offset))
16538
          return false;
16539
        if (this.offset != that.offset)
16540
          return false;
16541
      }
16542
 
16543
      boolean this_present_limit = true;
16544
      boolean that_present_limit = true;
16545
      if (this_present_limit || that_present_limit) {
16546
        if (!(this_present_limit && that_present_limit))
16547
          return false;
16548
        if (this.limit != that.limit)
16549
          return false;
16550
      }
16551
 
16552
      return true;
16553
    }
16554
 
16555
    @Override
16556
    public int hashCode() {
16557
      return 0;
16558
    }
16559
 
16560
    public int compareTo(getAllItemsInRange_args other) {
16561
      if (!getClass().equals(other.getClass())) {
16562
        return getClass().getName().compareTo(other.getClass().getName());
16563
      }
16564
 
16565
      int lastComparison = 0;
16566
      getAllItemsInRange_args typedOther = (getAllItemsInRange_args)other;
16567
 
16568
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
16569
      if (lastComparison != 0) {
16570
        return lastComparison;
16571
      }
16572
      if (isSetOffset()) {
16573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
16574
        if (lastComparison != 0) {
16575
          return lastComparison;
16576
        }
16577
      }
16578
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
16579
      if (lastComparison != 0) {
16580
        return lastComparison;
16581
      }
16582
      if (isSetLimit()) {
16583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
16584
        if (lastComparison != 0) {
16585
          return lastComparison;
16586
        }
16587
      }
16588
      return 0;
16589
    }
16590
 
16591
    public _Fields fieldForId(int fieldId) {
16592
      return _Fields.findByThriftId(fieldId);
16593
    }
16594
 
16595
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16596
      org.apache.thrift.protocol.TField field;
16597
      iprot.readStructBegin();
16598
      while (true)
16599
      {
16600
        field = iprot.readFieldBegin();
16601
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16602
          break;
16603
        }
16604
        switch (field.id) {
16605
          case 1: // OFFSET
16606
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16607
              this.offset = iprot.readI64();
16608
              setOffsetIsSet(true);
16609
            } else { 
16610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16611
            }
16612
            break;
16613
          case 2: // LIMIT
16614
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16615
              this.limit = iprot.readI64();
16616
              setLimitIsSet(true);
16617
            } else { 
16618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16619
            }
16620
            break;
16621
          default:
16622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16623
        }
16624
        iprot.readFieldEnd();
16625
      }
16626
      iprot.readStructEnd();
16627
      validate();
16628
    }
16629
 
16630
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16631
      validate();
16632
 
16633
      oprot.writeStructBegin(STRUCT_DESC);
16634
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
16635
      oprot.writeI64(this.offset);
16636
      oprot.writeFieldEnd();
16637
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
16638
      oprot.writeI64(this.limit);
16639
      oprot.writeFieldEnd();
16640
      oprot.writeFieldStop();
16641
      oprot.writeStructEnd();
16642
    }
16643
 
16644
    @Override
16645
    public String toString() {
16646
      StringBuilder sb = new StringBuilder("getAllItemsInRange_args(");
16647
      boolean first = true;
16648
 
16649
      sb.append("offset:");
16650
      sb.append(this.offset);
16651
      first = false;
16652
      if (!first) sb.append(", ");
16653
      sb.append("limit:");
16654
      sb.append(this.limit);
16655
      first = false;
16656
      sb.append(")");
16657
      return sb.toString();
16658
    }
16659
 
16660
    public void validate() throws org.apache.thrift.TException {
16661
      // check for required fields
16662
    }
16663
 
16664
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16665
      try {
16666
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16667
      } catch (org.apache.thrift.TException te) {
16668
        throw new java.io.IOException(te);
16669
      }
16670
    }
16671
 
16672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16673
      try {
16674
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16675
      } catch (org.apache.thrift.TException te) {
16676
        throw new java.io.IOException(te);
16677
      }
16678
    }
16679
 
16680
  }
16681
 
16682
  public static class getAllItemsInRange_result implements org.apache.thrift.TBase<getAllItemsInRange_result, getAllItemsInRange_result._Fields>, java.io.Serializable, Cloneable   {
16683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsInRange_result");
16684
 
16685
    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);
16686
    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);
16687
 
16688
    private List<Item> success; // required
16689
    private CatalogServiceException cex; // required
16690
 
16691
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16692
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16693
      SUCCESS((short)0, "success"),
16694
      CEX((short)1, "cex");
16695
 
16696
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16697
 
16698
      static {
16699
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16700
          byName.put(field.getFieldName(), field);
16701
        }
16702
      }
16703
 
16704
      /**
16705
       * Find the _Fields constant that matches fieldId, or null if its not found.
16706
       */
16707
      public static _Fields findByThriftId(int fieldId) {
16708
        switch(fieldId) {
16709
          case 0: // SUCCESS
16710
            return SUCCESS;
16711
          case 1: // CEX
16712
            return CEX;
16713
          default:
16714
            return null;
16715
        }
16716
      }
16717
 
16718
      /**
16719
       * Find the _Fields constant that matches fieldId, throwing an exception
16720
       * if it is not found.
16721
       */
16722
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16723
        _Fields fields = findByThriftId(fieldId);
16724
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16725
        return fields;
16726
      }
16727
 
16728
      /**
16729
       * Find the _Fields constant that matches name, or null if its not found.
16730
       */
16731
      public static _Fields findByName(String name) {
16732
        return byName.get(name);
16733
      }
16734
 
16735
      private final short _thriftId;
16736
      private final String _fieldName;
16737
 
16738
      _Fields(short thriftId, String fieldName) {
16739
        _thriftId = thriftId;
16740
        _fieldName = fieldName;
16741
      }
16742
 
16743
      public short getThriftFieldId() {
16744
        return _thriftId;
16745
      }
16746
 
16747
      public String getFieldName() {
16748
        return _fieldName;
16749
      }
16750
    }
16751
 
16752
    // isset id assignments
16753
 
16754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16755
    static {
16756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16757
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16758
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16759
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
16760
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16762
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16763
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsInRange_result.class, metaDataMap);
16764
    }
16765
 
16766
    public getAllItemsInRange_result() {
16767
    }
16768
 
16769
    public getAllItemsInRange_result(
16770
      List<Item> success,
16771
      CatalogServiceException cex)
16772
    {
16773
      this();
16774
      this.success = success;
16775
      this.cex = cex;
16776
    }
16777
 
16778
    /**
16779
     * Performs a deep copy on <i>other</i>.
16780
     */
16781
    public getAllItemsInRange_result(getAllItemsInRange_result other) {
16782
      if (other.isSetSuccess()) {
16783
        List<Item> __this__success = new ArrayList<Item>();
16784
        for (Item other_element : other.success) {
16785
          __this__success.add(new Item(other_element));
16786
        }
16787
        this.success = __this__success;
16788
      }
16789
      if (other.isSetCex()) {
16790
        this.cex = new CatalogServiceException(other.cex);
16791
      }
16792
    }
16793
 
16794
    public getAllItemsInRange_result deepCopy() {
16795
      return new getAllItemsInRange_result(this);
16796
    }
16797
 
16798
    @Override
16799
    public void clear() {
16800
      this.success = null;
16801
      this.cex = null;
16802
    }
16803
 
16804
    public int getSuccessSize() {
16805
      return (this.success == null) ? 0 : this.success.size();
16806
    }
16807
 
16808
    public java.util.Iterator<Item> getSuccessIterator() {
16809
      return (this.success == null) ? null : this.success.iterator();
16810
    }
16811
 
16812
    public void addToSuccess(Item elem) {
16813
      if (this.success == null) {
16814
        this.success = new ArrayList<Item>();
16815
      }
16816
      this.success.add(elem);
16817
    }
16818
 
16819
    public List<Item> getSuccess() {
16820
      return this.success;
16821
    }
16822
 
16823
    public void setSuccess(List<Item> success) {
16824
      this.success = success;
16825
    }
16826
 
16827
    public void unsetSuccess() {
16828
      this.success = null;
16829
    }
16830
 
16831
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16832
    public boolean isSetSuccess() {
16833
      return this.success != null;
16834
    }
16835
 
16836
    public void setSuccessIsSet(boolean value) {
16837
      if (!value) {
16838
        this.success = null;
16839
      }
16840
    }
16841
 
16842
    public CatalogServiceException getCex() {
16843
      return this.cex;
16844
    }
16845
 
16846
    public void setCex(CatalogServiceException cex) {
16847
      this.cex = cex;
16848
    }
16849
 
16850
    public void unsetCex() {
16851
      this.cex = null;
16852
    }
16853
 
16854
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16855
    public boolean isSetCex() {
16856
      return this.cex != null;
16857
    }
16858
 
16859
    public void setCexIsSet(boolean value) {
16860
      if (!value) {
16861
        this.cex = null;
16862
      }
16863
    }
16864
 
16865
    public void setFieldValue(_Fields field, Object value) {
16866
      switch (field) {
16867
      case SUCCESS:
16868
        if (value == null) {
16869
          unsetSuccess();
16870
        } else {
16871
          setSuccess((List<Item>)value);
16872
        }
16873
        break;
16874
 
16875
      case CEX:
16876
        if (value == null) {
16877
          unsetCex();
16878
        } else {
16879
          setCex((CatalogServiceException)value);
16880
        }
16881
        break;
16882
 
16883
      }
16884
    }
16885
 
16886
    public Object getFieldValue(_Fields field) {
16887
      switch (field) {
16888
      case SUCCESS:
16889
        return getSuccess();
16890
 
16891
      case CEX:
16892
        return getCex();
16893
 
16894
      }
16895
      throw new IllegalStateException();
16896
    }
16897
 
16898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16899
    public boolean isSet(_Fields field) {
16900
      if (field == null) {
16901
        throw new IllegalArgumentException();
16902
      }
16903
 
16904
      switch (field) {
16905
      case SUCCESS:
16906
        return isSetSuccess();
16907
      case CEX:
16908
        return isSetCex();
16909
      }
16910
      throw new IllegalStateException();
16911
    }
16912
 
16913
    @Override
16914
    public boolean equals(Object that) {
16915
      if (that == null)
16916
        return false;
16917
      if (that instanceof getAllItemsInRange_result)
16918
        return this.equals((getAllItemsInRange_result)that);
16919
      return false;
16920
    }
16921
 
16922
    public boolean equals(getAllItemsInRange_result that) {
16923
      if (that == null)
16924
        return false;
16925
 
16926
      boolean this_present_success = true && this.isSetSuccess();
16927
      boolean that_present_success = true && that.isSetSuccess();
16928
      if (this_present_success || that_present_success) {
16929
        if (!(this_present_success && that_present_success))
16930
          return false;
16931
        if (!this.success.equals(that.success))
16932
          return false;
16933
      }
16934
 
16935
      boolean this_present_cex = true && this.isSetCex();
16936
      boolean that_present_cex = true && that.isSetCex();
16937
      if (this_present_cex || that_present_cex) {
16938
        if (!(this_present_cex && that_present_cex))
16939
          return false;
16940
        if (!this.cex.equals(that.cex))
16941
          return false;
16942
      }
16943
 
16944
      return true;
16945
    }
16946
 
16947
    @Override
16948
    public int hashCode() {
16949
      return 0;
16950
    }
16951
 
16952
    public int compareTo(getAllItemsInRange_result other) {
16953
      if (!getClass().equals(other.getClass())) {
16954
        return getClass().getName().compareTo(other.getClass().getName());
16955
      }
16956
 
16957
      int lastComparison = 0;
16958
      getAllItemsInRange_result typedOther = (getAllItemsInRange_result)other;
16959
 
16960
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16961
      if (lastComparison != 0) {
16962
        return lastComparison;
16963
      }
16964
      if (isSetSuccess()) {
16965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16966
        if (lastComparison != 0) {
16967
          return lastComparison;
16968
        }
16969
      }
16970
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16971
      if (lastComparison != 0) {
16972
        return lastComparison;
16973
      }
16974
      if (isSetCex()) {
16975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16976
        if (lastComparison != 0) {
16977
          return lastComparison;
16978
        }
16979
      }
16980
      return 0;
16981
    }
16982
 
16983
    public _Fields fieldForId(int fieldId) {
16984
      return _Fields.findByThriftId(fieldId);
16985
    }
16986
 
16987
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16988
      org.apache.thrift.protocol.TField field;
16989
      iprot.readStructBegin();
16990
      while (true)
16991
      {
16992
        field = iprot.readFieldBegin();
16993
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16994
          break;
16995
        }
16996
        switch (field.id) {
16997
          case 0: // SUCCESS
16998
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16999
              {
17000
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
17001
                this.success = new ArrayList<Item>(_list25.size);
17002
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
17003
                {
17004
                  Item _elem27; // required
17005
                  _elem27 = new Item();
17006
                  _elem27.read(iprot);
17007
                  this.success.add(_elem27);
17008
                }
17009
                iprot.readListEnd();
17010
              }
17011
            } else { 
17012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17013
            }
17014
            break;
17015
          case 1: // CEX
17016
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17017
              this.cex = new CatalogServiceException();
17018
              this.cex.read(iprot);
17019
            } else { 
17020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17021
            }
17022
            break;
17023
          default:
17024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17025
        }
17026
        iprot.readFieldEnd();
17027
      }
17028
      iprot.readStructEnd();
17029
      validate();
17030
    }
17031
 
17032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17033
      oprot.writeStructBegin(STRUCT_DESC);
17034
 
17035
      if (this.isSetSuccess()) {
17036
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17037
        {
17038
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17039
          for (Item _iter28 : this.success)
17040
          {
17041
            _iter28.write(oprot);
17042
          }
17043
          oprot.writeListEnd();
17044
        }
17045
        oprot.writeFieldEnd();
17046
      } else if (this.isSetCex()) {
17047
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17048
        this.cex.write(oprot);
17049
        oprot.writeFieldEnd();
17050
      }
17051
      oprot.writeFieldStop();
17052
      oprot.writeStructEnd();
17053
    }
17054
 
17055
    @Override
17056
    public String toString() {
17057
      StringBuilder sb = new StringBuilder("getAllItemsInRange_result(");
17058
      boolean first = true;
17059
 
17060
      sb.append("success:");
17061
      if (this.success == null) {
17062
        sb.append("null");
17063
      } else {
17064
        sb.append(this.success);
17065
      }
17066
      first = false;
17067
      if (!first) sb.append(", ");
17068
      sb.append("cex:");
17069
      if (this.cex == null) {
17070
        sb.append("null");
17071
      } else {
17072
        sb.append(this.cex);
17073
      }
17074
      first = false;
17075
      sb.append(")");
17076
      return sb.toString();
17077
    }
17078
 
17079
    public void validate() throws org.apache.thrift.TException {
17080
      // check for required fields
17081
    }
17082
 
17083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17084
      try {
17085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17086
      } catch (org.apache.thrift.TException te) {
17087
        throw new java.io.IOException(te);
17088
      }
17089
    }
17090
 
17091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17092
      try {
17093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17094
      } catch (org.apache.thrift.TException te) {
17095
        throw new java.io.IOException(te);
17096
      }
17097
    }
17098
 
17099
  }
17100
 
17101
  public static class getAllItemsByStatusInRange_args implements org.apache.thrift.TBase<getAllItemsByStatusInRange_args, getAllItemsByStatusInRange_args._Fields>, java.io.Serializable, Cloneable   {
17102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatusInRange_args");
17103
 
17104
    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);
17105
    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);
17106
    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);
17107
 
17108
    private status itemStatus; // required
17109
    private long offset; // required
17110
    private long limit; // required
17111
 
17112
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17113
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17114
      /**
17115
       * 
17116
       * @see status
17117
       */
17118
      ITEM_STATUS((short)1, "itemStatus"),
17119
      OFFSET((short)2, "offset"),
17120
      LIMIT((short)3, "limit");
17121
 
17122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17123
 
17124
      static {
17125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17126
          byName.put(field.getFieldName(), field);
17127
        }
17128
      }
17129
 
17130
      /**
17131
       * Find the _Fields constant that matches fieldId, or null if its not found.
17132
       */
17133
      public static _Fields findByThriftId(int fieldId) {
17134
        switch(fieldId) {
17135
          case 1: // ITEM_STATUS
17136
            return ITEM_STATUS;
17137
          case 2: // OFFSET
17138
            return OFFSET;
17139
          case 3: // LIMIT
17140
            return LIMIT;
17141
          default:
17142
            return null;
17143
        }
17144
      }
17145
 
17146
      /**
17147
       * Find the _Fields constant that matches fieldId, throwing an exception
17148
       * if it is not found.
17149
       */
17150
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17151
        _Fields fields = findByThriftId(fieldId);
17152
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17153
        return fields;
17154
      }
17155
 
17156
      /**
17157
       * Find the _Fields constant that matches name, or null if its not found.
17158
       */
17159
      public static _Fields findByName(String name) {
17160
        return byName.get(name);
17161
      }
17162
 
17163
      private final short _thriftId;
17164
      private final String _fieldName;
17165
 
17166
      _Fields(short thriftId, String fieldName) {
17167
        _thriftId = thriftId;
17168
        _fieldName = fieldName;
17169
      }
17170
 
17171
      public short getThriftFieldId() {
17172
        return _thriftId;
17173
      }
17174
 
17175
      public String getFieldName() {
17176
        return _fieldName;
17177
      }
17178
    }
17179
 
17180
    // isset id assignments
17181
    private static final int __OFFSET_ISSET_ID = 0;
17182
    private static final int __LIMIT_ISSET_ID = 1;
17183
    private BitSet __isset_bit_vector = new BitSet(2);
17184
 
17185
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17186
    static {
17187
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17188
      tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17189
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
17190
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17192
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17193
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17194
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17195
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatusInRange_args.class, metaDataMap);
17196
    }
17197
 
17198
    public getAllItemsByStatusInRange_args() {
17199
    }
17200
 
17201
    public getAllItemsByStatusInRange_args(
17202
      status itemStatus,
17203
      long offset,
17204
      long limit)
17205
    {
17206
      this();
17207
      this.itemStatus = itemStatus;
17208
      this.offset = offset;
17209
      setOffsetIsSet(true);
17210
      this.limit = limit;
17211
      setLimitIsSet(true);
17212
    }
17213
 
17214
    /**
17215
     * Performs a deep copy on <i>other</i>.
17216
     */
17217
    public getAllItemsByStatusInRange_args(getAllItemsByStatusInRange_args other) {
17218
      __isset_bit_vector.clear();
17219
      __isset_bit_vector.or(other.__isset_bit_vector);
17220
      if (other.isSetItemStatus()) {
17221
        this.itemStatus = other.itemStatus;
17222
      }
17223
      this.offset = other.offset;
17224
      this.limit = other.limit;
17225
    }
17226
 
17227
    public getAllItemsByStatusInRange_args deepCopy() {
17228
      return new getAllItemsByStatusInRange_args(this);
17229
    }
17230
 
17231
    @Override
17232
    public void clear() {
17233
      this.itemStatus = null;
17234
      setOffsetIsSet(false);
17235
      this.offset = 0;
17236
      setLimitIsSet(false);
17237
      this.limit = 0;
17238
    }
17239
 
17240
    /**
17241
     * 
17242
     * @see status
17243
     */
17244
    public status getItemStatus() {
17245
      return this.itemStatus;
17246
    }
17247
 
17248
    /**
17249
     * 
17250
     * @see status
17251
     */
17252
    public void setItemStatus(status itemStatus) {
17253
      this.itemStatus = itemStatus;
17254
    }
17255
 
17256
    public void unsetItemStatus() {
17257
      this.itemStatus = null;
17258
    }
17259
 
17260
    /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
17261
    public boolean isSetItemStatus() {
17262
      return this.itemStatus != null;
17263
    }
17264
 
17265
    public void setItemStatusIsSet(boolean value) {
17266
      if (!value) {
17267
        this.itemStatus = null;
17268
      }
17269
    }
17270
 
17271
    public long getOffset() {
17272
      return this.offset;
17273
    }
17274
 
17275
    public void setOffset(long offset) {
17276
      this.offset = offset;
17277
      setOffsetIsSet(true);
17278
    }
17279
 
17280
    public void unsetOffset() {
17281
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
17282
    }
17283
 
17284
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
17285
    public boolean isSetOffset() {
17286
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
17287
    }
17288
 
17289
    public void setOffsetIsSet(boolean value) {
17290
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
17291
    }
17292
 
17293
    public long getLimit() {
17294
      return this.limit;
17295
    }
17296
 
17297
    public void setLimit(long limit) {
17298
      this.limit = limit;
17299
      setLimitIsSet(true);
17300
    }
17301
 
17302
    public void unsetLimit() {
17303
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
17304
    }
17305
 
17306
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
17307
    public boolean isSetLimit() {
17308
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
17309
    }
17310
 
17311
    public void setLimitIsSet(boolean value) {
17312
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
17313
    }
17314
 
17315
    public void setFieldValue(_Fields field, Object value) {
17316
      switch (field) {
17317
      case ITEM_STATUS:
17318
        if (value == null) {
17319
          unsetItemStatus();
17320
        } else {
17321
          setItemStatus((status)value);
17322
        }
17323
        break;
17324
 
17325
      case OFFSET:
17326
        if (value == null) {
17327
          unsetOffset();
17328
        } else {
17329
          setOffset((Long)value);
17330
        }
17331
        break;
17332
 
17333
      case LIMIT:
17334
        if (value == null) {
17335
          unsetLimit();
17336
        } else {
17337
          setLimit((Long)value);
17338
        }
17339
        break;
17340
 
17341
      }
17342
    }
17343
 
17344
    public Object getFieldValue(_Fields field) {
17345
      switch (field) {
17346
      case ITEM_STATUS:
17347
        return getItemStatus();
17348
 
17349
      case OFFSET:
17350
        return Long.valueOf(getOffset());
17351
 
17352
      case LIMIT:
17353
        return Long.valueOf(getLimit());
17354
 
17355
      }
17356
      throw new IllegalStateException();
17357
    }
17358
 
17359
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17360
    public boolean isSet(_Fields field) {
17361
      if (field == null) {
17362
        throw new IllegalArgumentException();
17363
      }
17364
 
17365
      switch (field) {
17366
      case ITEM_STATUS:
17367
        return isSetItemStatus();
17368
      case OFFSET:
17369
        return isSetOffset();
17370
      case LIMIT:
17371
        return isSetLimit();
17372
      }
17373
      throw new IllegalStateException();
17374
    }
17375
 
17376
    @Override
17377
    public boolean equals(Object that) {
17378
      if (that == null)
17379
        return false;
17380
      if (that instanceof getAllItemsByStatusInRange_args)
17381
        return this.equals((getAllItemsByStatusInRange_args)that);
17382
      return false;
17383
    }
17384
 
17385
    public boolean equals(getAllItemsByStatusInRange_args that) {
17386
      if (that == null)
17387
        return false;
17388
 
17389
      boolean this_present_itemStatus = true && this.isSetItemStatus();
17390
      boolean that_present_itemStatus = true && that.isSetItemStatus();
17391
      if (this_present_itemStatus || that_present_itemStatus) {
17392
        if (!(this_present_itemStatus && that_present_itemStatus))
17393
          return false;
17394
        if (!this.itemStatus.equals(that.itemStatus))
17395
          return false;
17396
      }
17397
 
17398
      boolean this_present_offset = true;
17399
      boolean that_present_offset = true;
17400
      if (this_present_offset || that_present_offset) {
17401
        if (!(this_present_offset && that_present_offset))
17402
          return false;
17403
        if (this.offset != that.offset)
17404
          return false;
17405
      }
17406
 
17407
      boolean this_present_limit = true;
17408
      boolean that_present_limit = true;
17409
      if (this_present_limit || that_present_limit) {
17410
        if (!(this_present_limit && that_present_limit))
17411
          return false;
17412
        if (this.limit != that.limit)
17413
          return false;
17414
      }
17415
 
17416
      return true;
17417
    }
17418
 
17419
    @Override
17420
    public int hashCode() {
17421
      return 0;
17422
    }
17423
 
17424
    public int compareTo(getAllItemsByStatusInRange_args other) {
17425
      if (!getClass().equals(other.getClass())) {
17426
        return getClass().getName().compareTo(other.getClass().getName());
17427
      }
17428
 
17429
      int lastComparison = 0;
17430
      getAllItemsByStatusInRange_args typedOther = (getAllItemsByStatusInRange_args)other;
17431
 
17432
      lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
17433
      if (lastComparison != 0) {
17434
        return lastComparison;
17435
      }
17436
      if (isSetItemStatus()) {
17437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
17438
        if (lastComparison != 0) {
17439
          return lastComparison;
17440
        }
17441
      }
17442
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
17443
      if (lastComparison != 0) {
17444
        return lastComparison;
17445
      }
17446
      if (isSetOffset()) {
17447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
17448
        if (lastComparison != 0) {
17449
          return lastComparison;
17450
        }
17451
      }
17452
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
17453
      if (lastComparison != 0) {
17454
        return lastComparison;
17455
      }
17456
      if (isSetLimit()) {
17457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
17458
        if (lastComparison != 0) {
17459
          return lastComparison;
17460
        }
17461
      }
17462
      return 0;
17463
    }
17464
 
17465
    public _Fields fieldForId(int fieldId) {
17466
      return _Fields.findByThriftId(fieldId);
17467
    }
17468
 
17469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17470
      org.apache.thrift.protocol.TField field;
17471
      iprot.readStructBegin();
17472
      while (true)
17473
      {
17474
        field = iprot.readFieldBegin();
17475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17476
          break;
17477
        }
17478
        switch (field.id) {
17479
          case 1: // ITEM_STATUS
17480
            if (field.type == org.apache.thrift.protocol.TType.I32) {
17481
              this.itemStatus = status.findByValue(iprot.readI32());
17482
            } else { 
17483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17484
            }
17485
            break;
17486
          case 2: // OFFSET
17487
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17488
              this.offset = iprot.readI64();
17489
              setOffsetIsSet(true);
17490
            } else { 
17491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17492
            }
17493
            break;
17494
          case 3: // LIMIT
17495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17496
              this.limit = iprot.readI64();
17497
              setLimitIsSet(true);
17498
            } else { 
17499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17500
            }
17501
            break;
17502
          default:
17503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17504
        }
17505
        iprot.readFieldEnd();
17506
      }
17507
      iprot.readStructEnd();
17508
      validate();
17509
    }
17510
 
17511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17512
      validate();
17513
 
17514
      oprot.writeStructBegin(STRUCT_DESC);
17515
      if (this.itemStatus != null) {
17516
        oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
17517
        oprot.writeI32(this.itemStatus.getValue());
17518
        oprot.writeFieldEnd();
17519
      }
17520
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
17521
      oprot.writeI64(this.offset);
17522
      oprot.writeFieldEnd();
17523
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
17524
      oprot.writeI64(this.limit);
17525
      oprot.writeFieldEnd();
17526
      oprot.writeFieldStop();
17527
      oprot.writeStructEnd();
17528
    }
17529
 
17530
    @Override
17531
    public String toString() {
17532
      StringBuilder sb = new StringBuilder("getAllItemsByStatusInRange_args(");
17533
      boolean first = true;
17534
 
17535
      sb.append("itemStatus:");
17536
      if (this.itemStatus == null) {
17537
        sb.append("null");
17538
      } else {
17539
        sb.append(this.itemStatus);
17540
      }
17541
      first = false;
17542
      if (!first) sb.append(", ");
17543
      sb.append("offset:");
17544
      sb.append(this.offset);
17545
      first = false;
17546
      if (!first) sb.append(", ");
17547
      sb.append("limit:");
17548
      sb.append(this.limit);
17549
      first = false;
17550
      sb.append(")");
17551
      return sb.toString();
17552
    }
17553
 
17554
    public void validate() throws org.apache.thrift.TException {
17555
      // check for required fields
17556
    }
17557
 
17558
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17559
      try {
17560
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17561
      } catch (org.apache.thrift.TException te) {
17562
        throw new java.io.IOException(te);
17563
      }
17564
    }
17565
 
17566
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17567
      try {
17568
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17569
      } catch (org.apache.thrift.TException te) {
17570
        throw new java.io.IOException(te);
17571
      }
17572
    }
17573
 
17574
  }
17575
 
17576
  public static class getAllItemsByStatusInRange_result implements org.apache.thrift.TBase<getAllItemsByStatusInRange_result, getAllItemsByStatusInRange_result._Fields>, java.io.Serializable, Cloneable   {
17577
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatusInRange_result");
17578
 
17579
    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);
17580
    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);
17581
 
17582
    private List<Item> success; // required
17583
    private CatalogServiceException cex; // required
17584
 
17585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17587
      SUCCESS((short)0, "success"),
17588
      CEX((short)1, "cex");
17589
 
17590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17591
 
17592
      static {
17593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17594
          byName.put(field.getFieldName(), field);
17595
        }
17596
      }
17597
 
17598
      /**
17599
       * Find the _Fields constant that matches fieldId, or null if its not found.
17600
       */
17601
      public static _Fields findByThriftId(int fieldId) {
17602
        switch(fieldId) {
17603
          case 0: // SUCCESS
17604
            return SUCCESS;
17605
          case 1: // CEX
17606
            return CEX;
17607
          default:
17608
            return null;
17609
        }
17610
      }
17611
 
17612
      /**
17613
       * Find the _Fields constant that matches fieldId, throwing an exception
17614
       * if it is not found.
17615
       */
17616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17617
        _Fields fields = findByThriftId(fieldId);
17618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17619
        return fields;
17620
      }
17621
 
17622
      /**
17623
       * Find the _Fields constant that matches name, or null if its not found.
17624
       */
17625
      public static _Fields findByName(String name) {
17626
        return byName.get(name);
17627
      }
17628
 
17629
      private final short _thriftId;
17630
      private final String _fieldName;
17631
 
17632
      _Fields(short thriftId, String fieldName) {
17633
        _thriftId = thriftId;
17634
        _fieldName = fieldName;
17635
      }
17636
 
17637
      public short getThriftFieldId() {
17638
        return _thriftId;
17639
      }
17640
 
17641
      public String getFieldName() {
17642
        return _fieldName;
17643
      }
17644
    }
17645
 
17646
    // isset id assignments
17647
 
17648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17649
    static {
17650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17651
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17652
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17653
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
17654
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17655
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17656
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17657
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatusInRange_result.class, metaDataMap);
17658
    }
17659
 
17660
    public getAllItemsByStatusInRange_result() {
17661
    }
17662
 
17663
    public getAllItemsByStatusInRange_result(
17664
      List<Item> success,
17665
      CatalogServiceException cex)
17666
    {
17667
      this();
17668
      this.success = success;
17669
      this.cex = cex;
17670
    }
17671
 
17672
    /**
17673
     * Performs a deep copy on <i>other</i>.
17674
     */
17675
    public getAllItemsByStatusInRange_result(getAllItemsByStatusInRange_result other) {
17676
      if (other.isSetSuccess()) {
17677
        List<Item> __this__success = new ArrayList<Item>();
17678
        for (Item other_element : other.success) {
17679
          __this__success.add(new Item(other_element));
17680
        }
17681
        this.success = __this__success;
17682
      }
17683
      if (other.isSetCex()) {
17684
        this.cex = new CatalogServiceException(other.cex);
17685
      }
17686
    }
17687
 
17688
    public getAllItemsByStatusInRange_result deepCopy() {
17689
      return new getAllItemsByStatusInRange_result(this);
17690
    }
17691
 
17692
    @Override
17693
    public void clear() {
17694
      this.success = null;
17695
      this.cex = null;
17696
    }
17697
 
17698
    public int getSuccessSize() {
17699
      return (this.success == null) ? 0 : this.success.size();
17700
    }
17701
 
17702
    public java.util.Iterator<Item> getSuccessIterator() {
17703
      return (this.success == null) ? null : this.success.iterator();
17704
    }
17705
 
17706
    public void addToSuccess(Item elem) {
17707
      if (this.success == null) {
17708
        this.success = new ArrayList<Item>();
17709
      }
17710
      this.success.add(elem);
17711
    }
17712
 
17713
    public List<Item> getSuccess() {
17714
      return this.success;
17715
    }
17716
 
17717
    public void setSuccess(List<Item> success) {
17718
      this.success = success;
17719
    }
17720
 
17721
    public void unsetSuccess() {
17722
      this.success = null;
17723
    }
17724
 
17725
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17726
    public boolean isSetSuccess() {
17727
      return this.success != null;
17728
    }
17729
 
17730
    public void setSuccessIsSet(boolean value) {
17731
      if (!value) {
17732
        this.success = null;
17733
      }
17734
    }
17735
 
17736
    public CatalogServiceException getCex() {
17737
      return this.cex;
17738
    }
17739
 
17740
    public void setCex(CatalogServiceException cex) {
17741
      this.cex = cex;
17742
    }
17743
 
17744
    public void unsetCex() {
17745
      this.cex = null;
17746
    }
17747
 
17748
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
17749
    public boolean isSetCex() {
17750
      return this.cex != null;
17751
    }
17752
 
17753
    public void setCexIsSet(boolean value) {
17754
      if (!value) {
17755
        this.cex = null;
17756
      }
17757
    }
17758
 
17759
    public void setFieldValue(_Fields field, Object value) {
17760
      switch (field) {
17761
      case SUCCESS:
17762
        if (value == null) {
17763
          unsetSuccess();
17764
        } else {
17765
          setSuccess((List<Item>)value);
17766
        }
17767
        break;
17768
 
17769
      case CEX:
17770
        if (value == null) {
17771
          unsetCex();
17772
        } else {
17773
          setCex((CatalogServiceException)value);
17774
        }
17775
        break;
17776
 
17777
      }
17778
    }
17779
 
17780
    public Object getFieldValue(_Fields field) {
17781
      switch (field) {
17782
      case SUCCESS:
17783
        return getSuccess();
17784
 
17785
      case CEX:
17786
        return getCex();
17787
 
17788
      }
17789
      throw new IllegalStateException();
17790
    }
17791
 
17792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17793
    public boolean isSet(_Fields field) {
17794
      if (field == null) {
17795
        throw new IllegalArgumentException();
17796
      }
17797
 
17798
      switch (field) {
17799
      case SUCCESS:
17800
        return isSetSuccess();
17801
      case CEX:
17802
        return isSetCex();
17803
      }
17804
      throw new IllegalStateException();
17805
    }
17806
 
17807
    @Override
17808
    public boolean equals(Object that) {
17809
      if (that == null)
17810
        return false;
17811
      if (that instanceof getAllItemsByStatusInRange_result)
17812
        return this.equals((getAllItemsByStatusInRange_result)that);
17813
      return false;
17814
    }
17815
 
17816
    public boolean equals(getAllItemsByStatusInRange_result that) {
17817
      if (that == null)
17818
        return false;
17819
 
17820
      boolean this_present_success = true && this.isSetSuccess();
17821
      boolean that_present_success = true && that.isSetSuccess();
17822
      if (this_present_success || that_present_success) {
17823
        if (!(this_present_success && that_present_success))
17824
          return false;
17825
        if (!this.success.equals(that.success))
17826
          return false;
17827
      }
17828
 
17829
      boolean this_present_cex = true && this.isSetCex();
17830
      boolean that_present_cex = true && that.isSetCex();
17831
      if (this_present_cex || that_present_cex) {
17832
        if (!(this_present_cex && that_present_cex))
17833
          return false;
17834
        if (!this.cex.equals(that.cex))
17835
          return false;
17836
      }
17837
 
17838
      return true;
17839
    }
17840
 
17841
    @Override
17842
    public int hashCode() {
17843
      return 0;
17844
    }
17845
 
17846
    public int compareTo(getAllItemsByStatusInRange_result other) {
17847
      if (!getClass().equals(other.getClass())) {
17848
        return getClass().getName().compareTo(other.getClass().getName());
17849
      }
17850
 
17851
      int lastComparison = 0;
17852
      getAllItemsByStatusInRange_result typedOther = (getAllItemsByStatusInRange_result)other;
17853
 
17854
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17855
      if (lastComparison != 0) {
17856
        return lastComparison;
17857
      }
17858
      if (isSetSuccess()) {
17859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17860
        if (lastComparison != 0) {
17861
          return lastComparison;
17862
        }
17863
      }
17864
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17865
      if (lastComparison != 0) {
17866
        return lastComparison;
17867
      }
17868
      if (isSetCex()) {
17869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17870
        if (lastComparison != 0) {
17871
          return lastComparison;
17872
        }
17873
      }
17874
      return 0;
17875
    }
17876
 
17877
    public _Fields fieldForId(int fieldId) {
17878
      return _Fields.findByThriftId(fieldId);
17879
    }
17880
 
17881
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17882
      org.apache.thrift.protocol.TField field;
17883
      iprot.readStructBegin();
17884
      while (true)
17885
      {
17886
        field = iprot.readFieldBegin();
17887
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17888
          break;
17889
        }
17890
        switch (field.id) {
17891
          case 0: // SUCCESS
17892
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17893
              {
17894
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
17895
                this.success = new ArrayList<Item>(_list29.size);
17896
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
17897
                {
17898
                  Item _elem31; // required
17899
                  _elem31 = new Item();
17900
                  _elem31.read(iprot);
17901
                  this.success.add(_elem31);
17902
                }
17903
                iprot.readListEnd();
17904
              }
17905
            } else { 
17906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17907
            }
17908
            break;
17909
          case 1: // CEX
17910
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17911
              this.cex = new CatalogServiceException();
17912
              this.cex.read(iprot);
17913
            } else { 
17914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17915
            }
17916
            break;
17917
          default:
17918
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17919
        }
17920
        iprot.readFieldEnd();
17921
      }
17922
      iprot.readStructEnd();
17923
      validate();
17924
    }
17925
 
17926
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17927
      oprot.writeStructBegin(STRUCT_DESC);
17928
 
17929
      if (this.isSetSuccess()) {
17930
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17931
        {
17932
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17933
          for (Item _iter32 : this.success)
17934
          {
17935
            _iter32.write(oprot);
17936
          }
17937
          oprot.writeListEnd();
17938
        }
17939
        oprot.writeFieldEnd();
17940
      } else if (this.isSetCex()) {
17941
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17942
        this.cex.write(oprot);
17943
        oprot.writeFieldEnd();
17944
      }
17945
      oprot.writeFieldStop();
17946
      oprot.writeStructEnd();
17947
    }
17948
 
17949
    @Override
17950
    public String toString() {
17951
      StringBuilder sb = new StringBuilder("getAllItemsByStatusInRange_result(");
17952
      boolean first = true;
17953
 
17954
      sb.append("success:");
17955
      if (this.success == null) {
17956
        sb.append("null");
17957
      } else {
17958
        sb.append(this.success);
17959
      }
17960
      first = false;
17961
      if (!first) sb.append(", ");
17962
      sb.append("cex:");
17963
      if (this.cex == null) {
17964
        sb.append("null");
17965
      } else {
17966
        sb.append(this.cex);
17967
      }
17968
      first = false;
17969
      sb.append(")");
17970
      return sb.toString();
17971
    }
17972
 
17973
    public void validate() throws org.apache.thrift.TException {
17974
      // check for required fields
17975
    }
17976
 
17977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17978
      try {
17979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17980
      } catch (org.apache.thrift.TException te) {
17981
        throw new java.io.IOException(te);
17982
      }
17983
    }
17984
 
17985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17986
      try {
17987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17988
      } catch (org.apache.thrift.TException te) {
17989
        throw new java.io.IOException(te);
17990
      }
17991
    }
17992
 
17993
  }
17994
 
17995
  public static class getItemCountByStatus_args implements org.apache.thrift.TBase<getItemCountByStatus_args, getItemCountByStatus_args._Fields>, java.io.Serializable, Cloneable   {
17996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemCountByStatus_args");
17997
 
17998
    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);
17999
    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);
18000
 
18001
    private boolean useStatus; // required
18002
    private status itemStatus; // required
18003
 
18004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18006
      USE_STATUS((short)1, "useStatus"),
18007
      /**
18008
       * 
18009
       * @see status
18010
       */
18011
      ITEM_STATUS((short)2, "itemStatus");
18012
 
18013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18014
 
18015
      static {
18016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18017
          byName.put(field.getFieldName(), field);
18018
        }
18019
      }
18020
 
18021
      /**
18022
       * Find the _Fields constant that matches fieldId, or null if its not found.
18023
       */
18024
      public static _Fields findByThriftId(int fieldId) {
18025
        switch(fieldId) {
18026
          case 1: // USE_STATUS
18027
            return USE_STATUS;
18028
          case 2: // ITEM_STATUS
18029
            return ITEM_STATUS;
18030
          default:
18031
            return null;
18032
        }
18033
      }
18034
 
18035
      /**
18036
       * Find the _Fields constant that matches fieldId, throwing an exception
18037
       * if it is not found.
18038
       */
18039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18040
        _Fields fields = findByThriftId(fieldId);
18041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18042
        return fields;
18043
      }
18044
 
18045
      /**
18046
       * Find the _Fields constant that matches name, or null if its not found.
18047
       */
18048
      public static _Fields findByName(String name) {
18049
        return byName.get(name);
18050
      }
18051
 
18052
      private final short _thriftId;
18053
      private final String _fieldName;
18054
 
18055
      _Fields(short thriftId, String fieldName) {
18056
        _thriftId = thriftId;
18057
        _fieldName = fieldName;
18058
      }
18059
 
18060
      public short getThriftFieldId() {
18061
        return _thriftId;
18062
      }
18063
 
18064
      public String getFieldName() {
18065
        return _fieldName;
18066
      }
18067
    }
18068
 
18069
    // isset id assignments
18070
    private static final int __USESTATUS_ISSET_ID = 0;
18071
    private BitSet __isset_bit_vector = new BitSet(1);
18072
 
18073
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18074
    static {
18075
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18076
      tmpMap.put(_Fields.USE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("useStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18078
      tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18079
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
18080
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18081
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemCountByStatus_args.class, metaDataMap);
18082
    }
18083
 
18084
    public getItemCountByStatus_args() {
18085
    }
18086
 
18087
    public getItemCountByStatus_args(
18088
      boolean useStatus,
18089
      status itemStatus)
18090
    {
18091
      this();
18092
      this.useStatus = useStatus;
18093
      setUseStatusIsSet(true);
18094
      this.itemStatus = itemStatus;
18095
    }
18096
 
18097
    /**
18098
     * Performs a deep copy on <i>other</i>.
18099
     */
18100
    public getItemCountByStatus_args(getItemCountByStatus_args other) {
18101
      __isset_bit_vector.clear();
18102
      __isset_bit_vector.or(other.__isset_bit_vector);
18103
      this.useStatus = other.useStatus;
18104
      if (other.isSetItemStatus()) {
18105
        this.itemStatus = other.itemStatus;
18106
      }
18107
    }
18108
 
18109
    public getItemCountByStatus_args deepCopy() {
18110
      return new getItemCountByStatus_args(this);
18111
    }
18112
 
18113
    @Override
18114
    public void clear() {
18115
      setUseStatusIsSet(false);
18116
      this.useStatus = false;
18117
      this.itemStatus = null;
18118
    }
18119
 
18120
    public boolean isUseStatus() {
18121
      return this.useStatus;
18122
    }
18123
 
18124
    public void setUseStatus(boolean useStatus) {
18125
      this.useStatus = useStatus;
18126
      setUseStatusIsSet(true);
18127
    }
18128
 
18129
    public void unsetUseStatus() {
18130
      __isset_bit_vector.clear(__USESTATUS_ISSET_ID);
18131
    }
18132
 
18133
    /** Returns true if field useStatus is set (has been assigned a value) and false otherwise */
18134
    public boolean isSetUseStatus() {
18135
      return __isset_bit_vector.get(__USESTATUS_ISSET_ID);
18136
    }
18137
 
18138
    public void setUseStatusIsSet(boolean value) {
18139
      __isset_bit_vector.set(__USESTATUS_ISSET_ID, value);
18140
    }
18141
 
18142
    /**
18143
     * 
18144
     * @see status
18145
     */
18146
    public status getItemStatus() {
18147
      return this.itemStatus;
18148
    }
18149
 
18150
    /**
18151
     * 
18152
     * @see status
18153
     */
18154
    public void setItemStatus(status itemStatus) {
18155
      this.itemStatus = itemStatus;
18156
    }
18157
 
18158
    public void unsetItemStatus() {
18159
      this.itemStatus = null;
18160
    }
18161
 
18162
    /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
18163
    public boolean isSetItemStatus() {
18164
      return this.itemStatus != null;
18165
    }
18166
 
18167
    public void setItemStatusIsSet(boolean value) {
18168
      if (!value) {
18169
        this.itemStatus = null;
18170
      }
18171
    }
18172
 
18173
    public void setFieldValue(_Fields field, Object value) {
18174
      switch (field) {
18175
      case USE_STATUS:
18176
        if (value == null) {
18177
          unsetUseStatus();
18178
        } else {
18179
          setUseStatus((Boolean)value);
18180
        }
18181
        break;
18182
 
18183
      case ITEM_STATUS:
18184
        if (value == null) {
18185
          unsetItemStatus();
18186
        } else {
18187
          setItemStatus((status)value);
18188
        }
18189
        break;
18190
 
18191
      }
18192
    }
18193
 
18194
    public Object getFieldValue(_Fields field) {
18195
      switch (field) {
18196
      case USE_STATUS:
18197
        return Boolean.valueOf(isUseStatus());
18198
 
18199
      case ITEM_STATUS:
18200
        return getItemStatus();
18201
 
18202
      }
18203
      throw new IllegalStateException();
18204
    }
18205
 
18206
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18207
    public boolean isSet(_Fields field) {
18208
      if (field == null) {
18209
        throw new IllegalArgumentException();
18210
      }
18211
 
18212
      switch (field) {
18213
      case USE_STATUS:
18214
        return isSetUseStatus();
18215
      case ITEM_STATUS:
18216
        return isSetItemStatus();
18217
      }
18218
      throw new IllegalStateException();
18219
    }
18220
 
18221
    @Override
18222
    public boolean equals(Object that) {
18223
      if (that == null)
18224
        return false;
18225
      if (that instanceof getItemCountByStatus_args)
18226
        return this.equals((getItemCountByStatus_args)that);
18227
      return false;
18228
    }
18229
 
18230
    public boolean equals(getItemCountByStatus_args that) {
18231
      if (that == null)
18232
        return false;
18233
 
18234
      boolean this_present_useStatus = true;
18235
      boolean that_present_useStatus = true;
18236
      if (this_present_useStatus || that_present_useStatus) {
18237
        if (!(this_present_useStatus && that_present_useStatus))
18238
          return false;
18239
        if (this.useStatus != that.useStatus)
18240
          return false;
18241
      }
18242
 
18243
      boolean this_present_itemStatus = true && this.isSetItemStatus();
18244
      boolean that_present_itemStatus = true && that.isSetItemStatus();
18245
      if (this_present_itemStatus || that_present_itemStatus) {
18246
        if (!(this_present_itemStatus && that_present_itemStatus))
18247
          return false;
18248
        if (!this.itemStatus.equals(that.itemStatus))
18249
          return false;
18250
      }
18251
 
18252
      return true;
18253
    }
18254
 
18255
    @Override
18256
    public int hashCode() {
18257
      return 0;
18258
    }
18259
 
18260
    public int compareTo(getItemCountByStatus_args other) {
18261
      if (!getClass().equals(other.getClass())) {
18262
        return getClass().getName().compareTo(other.getClass().getName());
18263
      }
18264
 
18265
      int lastComparison = 0;
18266
      getItemCountByStatus_args typedOther = (getItemCountByStatus_args)other;
18267
 
18268
      lastComparison = Boolean.valueOf(isSetUseStatus()).compareTo(typedOther.isSetUseStatus());
18269
      if (lastComparison != 0) {
18270
        return lastComparison;
18271
      }
18272
      if (isSetUseStatus()) {
18273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.useStatus, typedOther.useStatus);
18274
        if (lastComparison != 0) {
18275
          return lastComparison;
18276
        }
18277
      }
18278
      lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
18279
      if (lastComparison != 0) {
18280
        return lastComparison;
18281
      }
18282
      if (isSetItemStatus()) {
18283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
18284
        if (lastComparison != 0) {
18285
          return lastComparison;
18286
        }
18287
      }
18288
      return 0;
18289
    }
18290
 
18291
    public _Fields fieldForId(int fieldId) {
18292
      return _Fields.findByThriftId(fieldId);
18293
    }
18294
 
18295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18296
      org.apache.thrift.protocol.TField field;
18297
      iprot.readStructBegin();
18298
      while (true)
18299
      {
18300
        field = iprot.readFieldBegin();
18301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18302
          break;
18303
        }
18304
        switch (field.id) {
18305
          case 1: // USE_STATUS
18306
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18307
              this.useStatus = iprot.readBool();
18308
              setUseStatusIsSet(true);
18309
            } else { 
18310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18311
            }
18312
            break;
18313
          case 2: // ITEM_STATUS
18314
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18315
              this.itemStatus = status.findByValue(iprot.readI32());
18316
            } else { 
18317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18318
            }
18319
            break;
18320
          default:
18321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18322
        }
18323
        iprot.readFieldEnd();
18324
      }
18325
      iprot.readStructEnd();
18326
      validate();
18327
    }
18328
 
18329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18330
      validate();
18331
 
18332
      oprot.writeStructBegin(STRUCT_DESC);
18333
      oprot.writeFieldBegin(USE_STATUS_FIELD_DESC);
18334
      oprot.writeBool(this.useStatus);
18335
      oprot.writeFieldEnd();
18336
      if (this.itemStatus != null) {
18337
        oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
18338
        oprot.writeI32(this.itemStatus.getValue());
18339
        oprot.writeFieldEnd();
18340
      }
18341
      oprot.writeFieldStop();
18342
      oprot.writeStructEnd();
18343
    }
18344
 
18345
    @Override
18346
    public String toString() {
18347
      StringBuilder sb = new StringBuilder("getItemCountByStatus_args(");
18348
      boolean first = true;
18349
 
18350
      sb.append("useStatus:");
18351
      sb.append(this.useStatus);
18352
      first = false;
18353
      if (!first) sb.append(", ");
18354
      sb.append("itemStatus:");
18355
      if (this.itemStatus == null) {
18356
        sb.append("null");
18357
      } else {
18358
        sb.append(this.itemStatus);
18359
      }
18360
      first = false;
18361
      sb.append(")");
18362
      return sb.toString();
18363
    }
18364
 
18365
    public void validate() throws org.apache.thrift.TException {
18366
      // check for required fields
18367
    }
18368
 
18369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18370
      try {
18371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18372
      } catch (org.apache.thrift.TException te) {
18373
        throw new java.io.IOException(te);
18374
      }
18375
    }
18376
 
18377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18378
      try {
18379
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18380
        __isset_bit_vector = new BitSet(1);
18381
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18382
      } catch (org.apache.thrift.TException te) {
18383
        throw new java.io.IOException(te);
18384
      }
18385
    }
18386
 
18387
  }
18388
 
18389
  public static class getItemCountByStatus_result implements org.apache.thrift.TBase<getItemCountByStatus_result, getItemCountByStatus_result._Fields>, java.io.Serializable, Cloneable   {
18390
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemCountByStatus_result");
18391
 
18392
    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);
18393
 
18394
    private int success; // required
18395
 
18396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18398
      SUCCESS((short)0, "success");
18399
 
18400
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18401
 
18402
      static {
18403
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18404
          byName.put(field.getFieldName(), field);
18405
        }
18406
      }
18407
 
18408
      /**
18409
       * Find the _Fields constant that matches fieldId, or null if its not found.
18410
       */
18411
      public static _Fields findByThriftId(int fieldId) {
18412
        switch(fieldId) {
18413
          case 0: // SUCCESS
18414
            return SUCCESS;
18415
          default:
18416
            return null;
18417
        }
18418
      }
18419
 
18420
      /**
18421
       * Find the _Fields constant that matches fieldId, throwing an exception
18422
       * if it is not found.
18423
       */
18424
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18425
        _Fields fields = findByThriftId(fieldId);
18426
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18427
        return fields;
18428
      }
18429
 
18430
      /**
18431
       * Find the _Fields constant that matches name, or null if its not found.
18432
       */
18433
      public static _Fields findByName(String name) {
18434
        return byName.get(name);
18435
      }
18436
 
18437
      private final short _thriftId;
18438
      private final String _fieldName;
18439
 
18440
      _Fields(short thriftId, String fieldName) {
18441
        _thriftId = thriftId;
18442
        _fieldName = fieldName;
18443
      }
18444
 
18445
      public short getThriftFieldId() {
18446
        return _thriftId;
18447
      }
18448
 
18449
      public String getFieldName() {
18450
        return _fieldName;
18451
      }
18452
    }
18453
 
18454
    // isset id assignments
18455
    private static final int __SUCCESS_ISSET_ID = 0;
18456
    private BitSet __isset_bit_vector = new BitSet(1);
18457
 
18458
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18459
    static {
18460
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18461
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18462
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18463
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18464
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemCountByStatus_result.class, metaDataMap);
18465
    }
18466
 
18467
    public getItemCountByStatus_result() {
18468
    }
18469
 
18470
    public getItemCountByStatus_result(
18471
      int success)
18472
    {
18473
      this();
18474
      this.success = success;
18475
      setSuccessIsSet(true);
18476
    }
18477
 
18478
    /**
18479
     * Performs a deep copy on <i>other</i>.
18480
     */
18481
    public getItemCountByStatus_result(getItemCountByStatus_result other) {
18482
      __isset_bit_vector.clear();
18483
      __isset_bit_vector.or(other.__isset_bit_vector);
18484
      this.success = other.success;
18485
    }
18486
 
18487
    public getItemCountByStatus_result deepCopy() {
18488
      return new getItemCountByStatus_result(this);
18489
    }
18490
 
18491
    @Override
18492
    public void clear() {
18493
      setSuccessIsSet(false);
18494
      this.success = 0;
18495
    }
18496
 
18497
    public int getSuccess() {
18498
      return this.success;
18499
    }
18500
 
18501
    public void setSuccess(int success) {
18502
      this.success = success;
18503
      setSuccessIsSet(true);
18504
    }
18505
 
18506
    public void unsetSuccess() {
18507
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18508
    }
18509
 
18510
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18511
    public boolean isSetSuccess() {
18512
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18513
    }
18514
 
18515
    public void setSuccessIsSet(boolean value) {
18516
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18517
    }
18518
 
18519
    public void setFieldValue(_Fields field, Object value) {
18520
      switch (field) {
18521
      case SUCCESS:
18522
        if (value == null) {
18523
          unsetSuccess();
18524
        } else {
18525
          setSuccess((Integer)value);
18526
        }
18527
        break;
18528
 
18529
      }
18530
    }
18531
 
18532
    public Object getFieldValue(_Fields field) {
18533
      switch (field) {
18534
      case SUCCESS:
18535
        return Integer.valueOf(getSuccess());
18536
 
18537
      }
18538
      throw new IllegalStateException();
18539
    }
18540
 
18541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18542
    public boolean isSet(_Fields field) {
18543
      if (field == null) {
18544
        throw new IllegalArgumentException();
18545
      }
18546
 
18547
      switch (field) {
18548
      case SUCCESS:
18549
        return isSetSuccess();
18550
      }
18551
      throw new IllegalStateException();
18552
    }
18553
 
18554
    @Override
18555
    public boolean equals(Object that) {
18556
      if (that == null)
18557
        return false;
18558
      if (that instanceof getItemCountByStatus_result)
18559
        return this.equals((getItemCountByStatus_result)that);
18560
      return false;
18561
    }
18562
 
18563
    public boolean equals(getItemCountByStatus_result that) {
18564
      if (that == null)
18565
        return false;
18566
 
18567
      boolean this_present_success = true;
18568
      boolean that_present_success = true;
18569
      if (this_present_success || that_present_success) {
18570
        if (!(this_present_success && that_present_success))
18571
          return false;
18572
        if (this.success != that.success)
18573
          return false;
18574
      }
18575
 
18576
      return true;
18577
    }
18578
 
18579
    @Override
18580
    public int hashCode() {
18581
      return 0;
18582
    }
18583
 
18584
    public int compareTo(getItemCountByStatus_result other) {
18585
      if (!getClass().equals(other.getClass())) {
18586
        return getClass().getName().compareTo(other.getClass().getName());
18587
      }
18588
 
18589
      int lastComparison = 0;
18590
      getItemCountByStatus_result typedOther = (getItemCountByStatus_result)other;
18591
 
18592
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18593
      if (lastComparison != 0) {
18594
        return lastComparison;
18595
      }
18596
      if (isSetSuccess()) {
18597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18598
        if (lastComparison != 0) {
18599
          return lastComparison;
18600
        }
18601
      }
18602
      return 0;
18603
    }
18604
 
18605
    public _Fields fieldForId(int fieldId) {
18606
      return _Fields.findByThriftId(fieldId);
18607
    }
18608
 
18609
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18610
      org.apache.thrift.protocol.TField field;
18611
      iprot.readStructBegin();
18612
      while (true)
18613
      {
18614
        field = iprot.readFieldBegin();
18615
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18616
          break;
18617
        }
18618
        switch (field.id) {
18619
          case 0: // SUCCESS
18620
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18621
              this.success = iprot.readI32();
18622
              setSuccessIsSet(true);
18623
            } else { 
18624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18625
            }
18626
            break;
18627
          default:
18628
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18629
        }
18630
        iprot.readFieldEnd();
18631
      }
18632
      iprot.readStructEnd();
18633
      validate();
18634
    }
18635
 
18636
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18637
      oprot.writeStructBegin(STRUCT_DESC);
18638
 
18639
      if (this.isSetSuccess()) {
18640
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18641
        oprot.writeI32(this.success);
18642
        oprot.writeFieldEnd();
18643
      }
18644
      oprot.writeFieldStop();
18645
      oprot.writeStructEnd();
18646
    }
18647
 
18648
    @Override
18649
    public String toString() {
18650
      StringBuilder sb = new StringBuilder("getItemCountByStatus_result(");
18651
      boolean first = true;
18652
 
18653
      sb.append("success:");
18654
      sb.append(this.success);
18655
      first = false;
18656
      sb.append(")");
18657
      return sb.toString();
18658
    }
18659
 
18660
    public void validate() throws org.apache.thrift.TException {
18661
      // check for required fields
18662
    }
18663
 
18664
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18665
      try {
18666
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18667
      } catch (org.apache.thrift.TException te) {
18668
        throw new java.io.IOException(te);
18669
      }
18670
    }
18671
 
18672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18673
      try {
18674
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18675
      } catch (org.apache.thrift.TException te) {
18676
        throw new java.io.IOException(te);
18677
      }
18678
    }
18679
 
18680
  }
18681
 
18682
  public static class getBestSellers_args implements org.apache.thrift.TBase<getBestSellers_args, getBestSellers_args._Fields>, java.io.Serializable, Cloneable   {
18683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellers_args");
18684
 
18685
 
18686
 
18687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18689
;
18690
 
18691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18692
 
18693
      static {
18694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18695
          byName.put(field.getFieldName(), field);
18696
        }
18697
      }
18698
 
18699
      /**
18700
       * Find the _Fields constant that matches fieldId, or null if its not found.
18701
       */
18702
      public static _Fields findByThriftId(int fieldId) {
18703
        switch(fieldId) {
18704
          default:
18705
            return null;
18706
        }
18707
      }
18708
 
18709
      /**
18710
       * Find the _Fields constant that matches fieldId, throwing an exception
18711
       * if it is not found.
18712
       */
18713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18714
        _Fields fields = findByThriftId(fieldId);
18715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18716
        return fields;
18717
      }
18718
 
18719
      /**
18720
       * Find the _Fields constant that matches name, or null if its not found.
18721
       */
18722
      public static _Fields findByName(String name) {
18723
        return byName.get(name);
18724
      }
18725
 
18726
      private final short _thriftId;
18727
      private final String _fieldName;
18728
 
18729
      _Fields(short thriftId, String fieldName) {
18730
        _thriftId = thriftId;
18731
        _fieldName = fieldName;
18732
      }
18733
 
18734
      public short getThriftFieldId() {
18735
        return _thriftId;
18736
      }
18737
 
18738
      public String getFieldName() {
18739
        return _fieldName;
18740
      }
18741
    }
18742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18743
    static {
18744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellers_args.class, metaDataMap);
18747
    }
18748
 
18749
    public getBestSellers_args() {
18750
    }
18751
 
18752
    /**
18753
     * Performs a deep copy on <i>other</i>.
18754
     */
18755
    public getBestSellers_args(getBestSellers_args other) {
18756
    }
18757
 
18758
    public getBestSellers_args deepCopy() {
18759
      return new getBestSellers_args(this);
18760
    }
18761
 
18762
    @Override
18763
    public void clear() {
18764
    }
18765
 
18766
    public void setFieldValue(_Fields field, Object value) {
18767
      switch (field) {
18768
      }
18769
    }
18770
 
18771
    public Object getFieldValue(_Fields field) {
18772
      switch (field) {
18773
      }
18774
      throw new IllegalStateException();
18775
    }
18776
 
18777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18778
    public boolean isSet(_Fields field) {
18779
      if (field == null) {
18780
        throw new IllegalArgumentException();
18781
      }
18782
 
18783
      switch (field) {
18784
      }
18785
      throw new IllegalStateException();
18786
    }
18787
 
18788
    @Override
18789
    public boolean equals(Object that) {
18790
      if (that == null)
18791
        return false;
18792
      if (that instanceof getBestSellers_args)
18793
        return this.equals((getBestSellers_args)that);
18794
      return false;
18795
    }
18796
 
18797
    public boolean equals(getBestSellers_args that) {
18798
      if (that == null)
18799
        return false;
18800
 
18801
      return true;
18802
    }
18803
 
18804
    @Override
18805
    public int hashCode() {
18806
      return 0;
18807
    }
18808
 
18809
    public int compareTo(getBestSellers_args other) {
18810
      if (!getClass().equals(other.getClass())) {
18811
        return getClass().getName().compareTo(other.getClass().getName());
18812
      }
18813
 
18814
      int lastComparison = 0;
18815
      getBestSellers_args typedOther = (getBestSellers_args)other;
18816
 
18817
      return 0;
18818
    }
18819
 
18820
    public _Fields fieldForId(int fieldId) {
18821
      return _Fields.findByThriftId(fieldId);
18822
    }
18823
 
18824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18825
      org.apache.thrift.protocol.TField field;
18826
      iprot.readStructBegin();
18827
      while (true)
18828
      {
18829
        field = iprot.readFieldBegin();
18830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18831
          break;
18832
        }
18833
        switch (field.id) {
18834
          default:
18835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18836
        }
18837
        iprot.readFieldEnd();
18838
      }
18839
      iprot.readStructEnd();
18840
      validate();
18841
    }
18842
 
18843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18844
      validate();
18845
 
18846
      oprot.writeStructBegin(STRUCT_DESC);
18847
      oprot.writeFieldStop();
18848
      oprot.writeStructEnd();
18849
    }
18850
 
18851
    @Override
18852
    public String toString() {
18853
      StringBuilder sb = new StringBuilder("getBestSellers_args(");
18854
      boolean first = true;
18855
 
18856
      sb.append(")");
18857
      return sb.toString();
18858
    }
18859
 
18860
    public void validate() throws org.apache.thrift.TException {
18861
      // check for required fields
18862
    }
18863
 
18864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18865
      try {
18866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18867
      } catch (org.apache.thrift.TException te) {
18868
        throw new java.io.IOException(te);
18869
      }
18870
    }
18871
 
18872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18873
      try {
18874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18875
      } catch (org.apache.thrift.TException te) {
18876
        throw new java.io.IOException(te);
18877
      }
18878
    }
18879
 
18880
  }
18881
 
18882
  public static class getBestSellers_result implements org.apache.thrift.TBase<getBestSellers_result, getBestSellers_result._Fields>, java.io.Serializable, Cloneable   {
18883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellers_result");
18884
 
18885
    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);
18886
    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);
18887
 
18888
    private List<Item> success; // required
18889
    private CatalogServiceException isex; // required
18890
 
18891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18893
      SUCCESS((short)0, "success"),
18894
      ISEX((short)1, "isex");
18895
 
18896
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18897
 
18898
      static {
18899
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18900
          byName.put(field.getFieldName(), field);
18901
        }
18902
      }
18903
 
18904
      /**
18905
       * Find the _Fields constant that matches fieldId, or null if its not found.
18906
       */
18907
      public static _Fields findByThriftId(int fieldId) {
18908
        switch(fieldId) {
18909
          case 0: // SUCCESS
18910
            return SUCCESS;
18911
          case 1: // ISEX
18912
            return ISEX;
18913
          default:
18914
            return null;
18915
        }
18916
      }
18917
 
18918
      /**
18919
       * Find the _Fields constant that matches fieldId, throwing an exception
18920
       * if it is not found.
18921
       */
18922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18923
        _Fields fields = findByThriftId(fieldId);
18924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18925
        return fields;
18926
      }
18927
 
18928
      /**
18929
       * Find the _Fields constant that matches name, or null if its not found.
18930
       */
18931
      public static _Fields findByName(String name) {
18932
        return byName.get(name);
18933
      }
18934
 
18935
      private final short _thriftId;
18936
      private final String _fieldName;
18937
 
18938
      _Fields(short thriftId, String fieldName) {
18939
        _thriftId = thriftId;
18940
        _fieldName = fieldName;
18941
      }
18942
 
18943
      public short getThriftFieldId() {
18944
        return _thriftId;
18945
      }
18946
 
18947
      public String getFieldName() {
18948
        return _fieldName;
18949
      }
18950
    }
18951
 
18952
    // isset id assignments
18953
 
18954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18955
    static {
18956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18957
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18958
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18959
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
18960
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18962
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18963
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellers_result.class, metaDataMap);
18964
    }
18965
 
18966
    public getBestSellers_result() {
18967
    }
18968
 
18969
    public getBestSellers_result(
18970
      List<Item> success,
18971
      CatalogServiceException isex)
18972
    {
18973
      this();
18974
      this.success = success;
18975
      this.isex = isex;
18976
    }
18977
 
18978
    /**
18979
     * Performs a deep copy on <i>other</i>.
18980
     */
18981
    public getBestSellers_result(getBestSellers_result other) {
18982
      if (other.isSetSuccess()) {
18983
        List<Item> __this__success = new ArrayList<Item>();
18984
        for (Item other_element : other.success) {
18985
          __this__success.add(new Item(other_element));
18986
        }
18987
        this.success = __this__success;
18988
      }
18989
      if (other.isSetIsex()) {
18990
        this.isex = new CatalogServiceException(other.isex);
18991
      }
18992
    }
18993
 
18994
    public getBestSellers_result deepCopy() {
18995
      return new getBestSellers_result(this);
18996
    }
18997
 
18998
    @Override
18999
    public void clear() {
19000
      this.success = null;
19001
      this.isex = null;
19002
    }
19003
 
19004
    public int getSuccessSize() {
19005
      return (this.success == null) ? 0 : this.success.size();
19006
    }
19007
 
19008
    public java.util.Iterator<Item> getSuccessIterator() {
19009
      return (this.success == null) ? null : this.success.iterator();
19010
    }
19011
 
19012
    public void addToSuccess(Item elem) {
19013
      if (this.success == null) {
19014
        this.success = new ArrayList<Item>();
19015
      }
19016
      this.success.add(elem);
19017
    }
19018
 
19019
    public List<Item> getSuccess() {
19020
      return this.success;
19021
    }
19022
 
19023
    public void setSuccess(List<Item> success) {
19024
      this.success = success;
19025
    }
19026
 
19027
    public void unsetSuccess() {
19028
      this.success = null;
19029
    }
19030
 
19031
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19032
    public boolean isSetSuccess() {
19033
      return this.success != null;
19034
    }
19035
 
19036
    public void setSuccessIsSet(boolean value) {
19037
      if (!value) {
19038
        this.success = null;
19039
      }
19040
    }
19041
 
19042
    public CatalogServiceException getIsex() {
19043
      return this.isex;
19044
    }
19045
 
19046
    public void setIsex(CatalogServiceException isex) {
19047
      this.isex = isex;
19048
    }
19049
 
19050
    public void unsetIsex() {
19051
      this.isex = null;
19052
    }
19053
 
19054
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
19055
    public boolean isSetIsex() {
19056
      return this.isex != null;
19057
    }
19058
 
19059
    public void setIsexIsSet(boolean value) {
19060
      if (!value) {
19061
        this.isex = null;
19062
      }
19063
    }
19064
 
19065
    public void setFieldValue(_Fields field, Object value) {
19066
      switch (field) {
19067
      case SUCCESS:
19068
        if (value == null) {
19069
          unsetSuccess();
19070
        } else {
19071
          setSuccess((List<Item>)value);
19072
        }
19073
        break;
19074
 
19075
      case ISEX:
19076
        if (value == null) {
19077
          unsetIsex();
19078
        } else {
19079
          setIsex((CatalogServiceException)value);
19080
        }
19081
        break;
19082
 
19083
      }
19084
    }
19085
 
19086
    public Object getFieldValue(_Fields field) {
19087
      switch (field) {
19088
      case SUCCESS:
19089
        return getSuccess();
19090
 
19091
      case ISEX:
19092
        return getIsex();
19093
 
19094
      }
19095
      throw new IllegalStateException();
19096
    }
19097
 
19098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19099
    public boolean isSet(_Fields field) {
19100
      if (field == null) {
19101
        throw new IllegalArgumentException();
19102
      }
19103
 
19104
      switch (field) {
19105
      case SUCCESS:
19106
        return isSetSuccess();
19107
      case ISEX:
19108
        return isSetIsex();
19109
      }
19110
      throw new IllegalStateException();
19111
    }
19112
 
19113
    @Override
19114
    public boolean equals(Object that) {
19115
      if (that == null)
19116
        return false;
19117
      if (that instanceof getBestSellers_result)
19118
        return this.equals((getBestSellers_result)that);
19119
      return false;
19120
    }
19121
 
19122
    public boolean equals(getBestSellers_result that) {
19123
      if (that == null)
19124
        return false;
19125
 
19126
      boolean this_present_success = true && this.isSetSuccess();
19127
      boolean that_present_success = true && that.isSetSuccess();
19128
      if (this_present_success || that_present_success) {
19129
        if (!(this_present_success && that_present_success))
19130
          return false;
19131
        if (!this.success.equals(that.success))
19132
          return false;
19133
      }
19134
 
19135
      boolean this_present_isex = true && this.isSetIsex();
19136
      boolean that_present_isex = true && that.isSetIsex();
19137
      if (this_present_isex || that_present_isex) {
19138
        if (!(this_present_isex && that_present_isex))
19139
          return false;
19140
        if (!this.isex.equals(that.isex))
19141
          return false;
19142
      }
19143
 
19144
      return true;
19145
    }
19146
 
19147
    @Override
19148
    public int hashCode() {
19149
      return 0;
19150
    }
19151
 
19152
    public int compareTo(getBestSellers_result other) {
19153
      if (!getClass().equals(other.getClass())) {
19154
        return getClass().getName().compareTo(other.getClass().getName());
19155
      }
19156
 
19157
      int lastComparison = 0;
19158
      getBestSellers_result typedOther = (getBestSellers_result)other;
19159
 
19160
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19161
      if (lastComparison != 0) {
19162
        return lastComparison;
19163
      }
19164
      if (isSetSuccess()) {
19165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19166
        if (lastComparison != 0) {
19167
          return lastComparison;
19168
        }
19169
      }
19170
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
19171
      if (lastComparison != 0) {
19172
        return lastComparison;
19173
      }
19174
      if (isSetIsex()) {
19175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
19176
        if (lastComparison != 0) {
19177
          return lastComparison;
19178
        }
19179
      }
19180
      return 0;
19181
    }
19182
 
19183
    public _Fields fieldForId(int fieldId) {
19184
      return _Fields.findByThriftId(fieldId);
19185
    }
19186
 
19187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19188
      org.apache.thrift.protocol.TField field;
19189
      iprot.readStructBegin();
19190
      while (true)
19191
      {
19192
        field = iprot.readFieldBegin();
19193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19194
          break;
19195
        }
19196
        switch (field.id) {
19197
          case 0: // SUCCESS
19198
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19199
              {
19200
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
19201
                this.success = new ArrayList<Item>(_list33.size);
19202
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19203
                {
19204
                  Item _elem35; // required
19205
                  _elem35 = new Item();
19206
                  _elem35.read(iprot);
19207
                  this.success.add(_elem35);
19208
                }
19209
                iprot.readListEnd();
19210
              }
19211
            } else { 
19212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19213
            }
19214
            break;
19215
          case 1: // ISEX
19216
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19217
              this.isex = new CatalogServiceException();
19218
              this.isex.read(iprot);
19219
            } else { 
19220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19221
            }
19222
            break;
19223
          default:
19224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19225
        }
19226
        iprot.readFieldEnd();
19227
      }
19228
      iprot.readStructEnd();
19229
      validate();
19230
    }
19231
 
19232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19233
      oprot.writeStructBegin(STRUCT_DESC);
19234
 
19235
      if (this.isSetSuccess()) {
19236
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19237
        {
19238
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19239
          for (Item _iter36 : this.success)
19240
          {
19241
            _iter36.write(oprot);
19242
          }
19243
          oprot.writeListEnd();
19244
        }
19245
        oprot.writeFieldEnd();
19246
      } else if (this.isSetIsex()) {
19247
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
19248
        this.isex.write(oprot);
19249
        oprot.writeFieldEnd();
19250
      }
19251
      oprot.writeFieldStop();
19252
      oprot.writeStructEnd();
19253
    }
19254
 
19255
    @Override
19256
    public String toString() {
19257
      StringBuilder sb = new StringBuilder("getBestSellers_result(");
19258
      boolean first = true;
19259
 
19260
      sb.append("success:");
19261
      if (this.success == null) {
19262
        sb.append("null");
19263
      } else {
19264
        sb.append(this.success);
19265
      }
19266
      first = false;
19267
      if (!first) sb.append(", ");
19268
      sb.append("isex:");
19269
      if (this.isex == null) {
19270
        sb.append("null");
19271
      } else {
19272
        sb.append(this.isex);
19273
      }
19274
      first = false;
19275
      sb.append(")");
19276
      return sb.toString();
19277
    }
19278
 
19279
    public void validate() throws org.apache.thrift.TException {
19280
      // check for required fields
19281
    }
19282
 
19283
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19284
      try {
19285
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19286
      } catch (org.apache.thrift.TException te) {
19287
        throw new java.io.IOException(te);
19288
      }
19289
    }
19290
 
19291
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19292
      try {
19293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19294
      } catch (org.apache.thrift.TException te) {
19295
        throw new java.io.IOException(te);
19296
      }
19297
    }
19298
 
19299
  }
19300
 
19301
  public static class getBestSellersCatalogIds_args implements org.apache.thrift.TBase<getBestSellersCatalogIds_args, getBestSellersCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
19302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCatalogIds_args");
19303
 
19304
    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);
19305
    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);
19306
    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);
19307
    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);
19308
 
19309
    private long beginIndex; // required
19310
    private long totalItems; // required
19311
    private String brand; // required
19312
    private long category; // required
19313
 
19314
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19315
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19316
      BEGIN_INDEX((short)1, "beginIndex"),
19317
      TOTAL_ITEMS((short)2, "totalItems"),
19318
      BRAND((short)3, "brand"),
19319
      CATEGORY((short)4, "category");
19320
 
19321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19322
 
19323
      static {
19324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19325
          byName.put(field.getFieldName(), field);
19326
        }
19327
      }
19328
 
19329
      /**
19330
       * Find the _Fields constant that matches fieldId, or null if its not found.
19331
       */
19332
      public static _Fields findByThriftId(int fieldId) {
19333
        switch(fieldId) {
19334
          case 1: // BEGIN_INDEX
19335
            return BEGIN_INDEX;
19336
          case 2: // TOTAL_ITEMS
19337
            return TOTAL_ITEMS;
19338
          case 3: // BRAND
19339
            return BRAND;
19340
          case 4: // CATEGORY
19341
            return CATEGORY;
19342
          default:
19343
            return null;
19344
        }
19345
      }
19346
 
19347
      /**
19348
       * Find the _Fields constant that matches fieldId, throwing an exception
19349
       * if it is not found.
19350
       */
19351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19352
        _Fields fields = findByThriftId(fieldId);
19353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19354
        return fields;
19355
      }
19356
 
19357
      /**
19358
       * Find the _Fields constant that matches name, or null if its not found.
19359
       */
19360
      public static _Fields findByName(String name) {
19361
        return byName.get(name);
19362
      }
19363
 
19364
      private final short _thriftId;
19365
      private final String _fieldName;
19366
 
19367
      _Fields(short thriftId, String fieldName) {
19368
        _thriftId = thriftId;
19369
        _fieldName = fieldName;
19370
      }
19371
 
19372
      public short getThriftFieldId() {
19373
        return _thriftId;
19374
      }
19375
 
19376
      public String getFieldName() {
19377
        return _fieldName;
19378
      }
19379
    }
19380
 
19381
    // isset id assignments
19382
    private static final int __BEGININDEX_ISSET_ID = 0;
19383
    private static final int __TOTALITEMS_ISSET_ID = 1;
19384
    private static final int __CATEGORY_ISSET_ID = 2;
19385
    private BitSet __isset_bit_vector = new BitSet(3);
19386
 
19387
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19388
    static {
19389
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19390
      tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19391
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19392
      tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19394
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19396
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCatalogIds_args.class, metaDataMap);
19400
    }
19401
 
19402
    public getBestSellersCatalogIds_args() {
19403
    }
19404
 
19405
    public getBestSellersCatalogIds_args(
19406
      long beginIndex,
19407
      long totalItems,
19408
      String brand,
19409
      long category)
19410
    {
19411
      this();
19412
      this.beginIndex = beginIndex;
19413
      setBeginIndexIsSet(true);
19414
      this.totalItems = totalItems;
19415
      setTotalItemsIsSet(true);
19416
      this.brand = brand;
19417
      this.category = category;
19418
      setCategoryIsSet(true);
19419
    }
19420
 
19421
    /**
19422
     * Performs a deep copy on <i>other</i>.
19423
     */
19424
    public getBestSellersCatalogIds_args(getBestSellersCatalogIds_args other) {
19425
      __isset_bit_vector.clear();
19426
      __isset_bit_vector.or(other.__isset_bit_vector);
19427
      this.beginIndex = other.beginIndex;
19428
      this.totalItems = other.totalItems;
19429
      if (other.isSetBrand()) {
19430
        this.brand = other.brand;
19431
      }
19432
      this.category = other.category;
19433
    }
19434
 
19435
    public getBestSellersCatalogIds_args deepCopy() {
19436
      return new getBestSellersCatalogIds_args(this);
19437
    }
19438
 
19439
    @Override
19440
    public void clear() {
19441
      setBeginIndexIsSet(false);
19442
      this.beginIndex = 0;
19443
      setTotalItemsIsSet(false);
19444
      this.totalItems = 0;
19445
      this.brand = null;
19446
      setCategoryIsSet(false);
19447
      this.category = 0;
19448
    }
19449
 
19450
    public long getBeginIndex() {
19451
      return this.beginIndex;
19452
    }
19453
 
19454
    public void setBeginIndex(long beginIndex) {
19455
      this.beginIndex = beginIndex;
19456
      setBeginIndexIsSet(true);
19457
    }
19458
 
19459
    public void unsetBeginIndex() {
19460
      __isset_bit_vector.clear(__BEGININDEX_ISSET_ID);
19461
    }
19462
 
19463
    /** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */
19464
    public boolean isSetBeginIndex() {
19465
      return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);
19466
    }
19467
 
19468
    public void setBeginIndexIsSet(boolean value) {
19469
      __isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);
19470
    }
19471
 
19472
    public long getTotalItems() {
19473
      return this.totalItems;
19474
    }
19475
 
19476
    public void setTotalItems(long totalItems) {
19477
      this.totalItems = totalItems;
19478
      setTotalItemsIsSet(true);
19479
    }
19480
 
19481
    public void unsetTotalItems() {
19482
      __isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);
19483
    }
19484
 
19485
    /** Returns true if field totalItems is set (has been assigned a value) and false otherwise */
19486
    public boolean isSetTotalItems() {
19487
      return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);
19488
    }
19489
 
19490
    public void setTotalItemsIsSet(boolean value) {
19491
      __isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);
19492
    }
19493
 
19494
    public String getBrand() {
19495
      return this.brand;
19496
    }
19497
 
19498
    public void setBrand(String brand) {
19499
      this.brand = brand;
19500
    }
19501
 
19502
    public void unsetBrand() {
19503
      this.brand = null;
19504
    }
19505
 
19506
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
19507
    public boolean isSetBrand() {
19508
      return this.brand != null;
19509
    }
19510
 
19511
    public void setBrandIsSet(boolean value) {
19512
      if (!value) {
19513
        this.brand = null;
19514
      }
19515
    }
19516
 
19517
    public long getCategory() {
19518
      return this.category;
19519
    }
19520
 
19521
    public void setCategory(long category) {
19522
      this.category = category;
19523
      setCategoryIsSet(true);
19524
    }
19525
 
19526
    public void unsetCategory() {
19527
      __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
19528
    }
19529
 
19530
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
19531
    public boolean isSetCategory() {
19532
      return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
19533
    }
19534
 
19535
    public void setCategoryIsSet(boolean value) {
19536
      __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
19537
    }
19538
 
19539
    public void setFieldValue(_Fields field, Object value) {
19540
      switch (field) {
19541
      case BEGIN_INDEX:
19542
        if (value == null) {
19543
          unsetBeginIndex();
19544
        } else {
19545
          setBeginIndex((Long)value);
19546
        }
19547
        break;
19548
 
19549
      case TOTAL_ITEMS:
19550
        if (value == null) {
19551
          unsetTotalItems();
19552
        } else {
19553
          setTotalItems((Long)value);
19554
        }
19555
        break;
19556
 
19557
      case BRAND:
19558
        if (value == null) {
19559
          unsetBrand();
19560
        } else {
19561
          setBrand((String)value);
19562
        }
19563
        break;
19564
 
19565
      case CATEGORY:
19566
        if (value == null) {
19567
          unsetCategory();
19568
        } else {
19569
          setCategory((Long)value);
19570
        }
19571
        break;
19572
 
19573
      }
19574
    }
19575
 
19576
    public Object getFieldValue(_Fields field) {
19577
      switch (field) {
19578
      case BEGIN_INDEX:
19579
        return Long.valueOf(getBeginIndex());
19580
 
19581
      case TOTAL_ITEMS:
19582
        return Long.valueOf(getTotalItems());
19583
 
19584
      case BRAND:
19585
        return getBrand();
19586
 
19587
      case CATEGORY:
19588
        return Long.valueOf(getCategory());
19589
 
19590
      }
19591
      throw new IllegalStateException();
19592
    }
19593
 
19594
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19595
    public boolean isSet(_Fields field) {
19596
      if (field == null) {
19597
        throw new IllegalArgumentException();
19598
      }
19599
 
19600
      switch (field) {
19601
      case BEGIN_INDEX:
19602
        return isSetBeginIndex();
19603
      case TOTAL_ITEMS:
19604
        return isSetTotalItems();
19605
      case BRAND:
19606
        return isSetBrand();
19607
      case CATEGORY:
19608
        return isSetCategory();
19609
      }
19610
      throw new IllegalStateException();
19611
    }
19612
 
19613
    @Override
19614
    public boolean equals(Object that) {
19615
      if (that == null)
19616
        return false;
19617
      if (that instanceof getBestSellersCatalogIds_args)
19618
        return this.equals((getBestSellersCatalogIds_args)that);
19619
      return false;
19620
    }
19621
 
19622
    public boolean equals(getBestSellersCatalogIds_args that) {
19623
      if (that == null)
19624
        return false;
19625
 
19626
      boolean this_present_beginIndex = true;
19627
      boolean that_present_beginIndex = true;
19628
      if (this_present_beginIndex || that_present_beginIndex) {
19629
        if (!(this_present_beginIndex && that_present_beginIndex))
19630
          return false;
19631
        if (this.beginIndex != that.beginIndex)
19632
          return false;
19633
      }
19634
 
19635
      boolean this_present_totalItems = true;
19636
      boolean that_present_totalItems = true;
19637
      if (this_present_totalItems || that_present_totalItems) {
19638
        if (!(this_present_totalItems && that_present_totalItems))
19639
          return false;
19640
        if (this.totalItems != that.totalItems)
19641
          return false;
19642
      }
19643
 
19644
      boolean this_present_brand = true && this.isSetBrand();
19645
      boolean that_present_brand = true && that.isSetBrand();
19646
      if (this_present_brand || that_present_brand) {
19647
        if (!(this_present_brand && that_present_brand))
19648
          return false;
19649
        if (!this.brand.equals(that.brand))
19650
          return false;
19651
      }
19652
 
19653
      boolean this_present_category = true;
19654
      boolean that_present_category = true;
19655
      if (this_present_category || that_present_category) {
19656
        if (!(this_present_category && that_present_category))
19657
          return false;
19658
        if (this.category != that.category)
19659
          return false;
19660
      }
19661
 
19662
      return true;
19663
    }
19664
 
19665
    @Override
19666
    public int hashCode() {
19667
      return 0;
19668
    }
19669
 
19670
    public int compareTo(getBestSellersCatalogIds_args other) {
19671
      if (!getClass().equals(other.getClass())) {
19672
        return getClass().getName().compareTo(other.getClass().getName());
19673
      }
19674
 
19675
      int lastComparison = 0;
19676
      getBestSellersCatalogIds_args typedOther = (getBestSellersCatalogIds_args)other;
19677
 
19678
      lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());
19679
      if (lastComparison != 0) {
19680
        return lastComparison;
19681
      }
19682
      if (isSetBeginIndex()) {
19683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);
19684
        if (lastComparison != 0) {
19685
          return lastComparison;
19686
        }
19687
      }
19688
      lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());
19689
      if (lastComparison != 0) {
19690
        return lastComparison;
19691
      }
19692
      if (isSetTotalItems()) {
19693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);
19694
        if (lastComparison != 0) {
19695
          return lastComparison;
19696
        }
19697
      }
19698
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
19699
      if (lastComparison != 0) {
19700
        return lastComparison;
19701
      }
19702
      if (isSetBrand()) {
19703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
19704
        if (lastComparison != 0) {
19705
          return lastComparison;
19706
        }
19707
      }
19708
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
19709
      if (lastComparison != 0) {
19710
        return lastComparison;
19711
      }
19712
      if (isSetCategory()) {
19713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
19714
        if (lastComparison != 0) {
19715
          return lastComparison;
19716
        }
19717
      }
19718
      return 0;
19719
    }
19720
 
19721
    public _Fields fieldForId(int fieldId) {
19722
      return _Fields.findByThriftId(fieldId);
19723
    }
19724
 
19725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19726
      org.apache.thrift.protocol.TField field;
19727
      iprot.readStructBegin();
19728
      while (true)
19729
      {
19730
        field = iprot.readFieldBegin();
19731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19732
          break;
19733
        }
19734
        switch (field.id) {
19735
          case 1: // BEGIN_INDEX
19736
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19737
              this.beginIndex = iprot.readI64();
19738
              setBeginIndexIsSet(true);
19739
            } else { 
19740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19741
            }
19742
            break;
19743
          case 2: // TOTAL_ITEMS
19744
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19745
              this.totalItems = iprot.readI64();
19746
              setTotalItemsIsSet(true);
19747
            } else { 
19748
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19749
            }
19750
            break;
19751
          case 3: // BRAND
19752
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19753
              this.brand = iprot.readString();
19754
            } else { 
19755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19756
            }
19757
            break;
19758
          case 4: // CATEGORY
19759
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19760
              this.category = iprot.readI64();
19761
              setCategoryIsSet(true);
19762
            } else { 
19763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19764
            }
19765
            break;
19766
          default:
19767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19768
        }
19769
        iprot.readFieldEnd();
19770
      }
19771
      iprot.readStructEnd();
19772
      validate();
19773
    }
19774
 
19775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19776
      validate();
19777
 
19778
      oprot.writeStructBegin(STRUCT_DESC);
19779
      oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);
19780
      oprot.writeI64(this.beginIndex);
19781
      oprot.writeFieldEnd();
19782
      oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);
19783
      oprot.writeI64(this.totalItems);
19784
      oprot.writeFieldEnd();
19785
      if (this.brand != null) {
19786
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
19787
        oprot.writeString(this.brand);
19788
        oprot.writeFieldEnd();
19789
      }
19790
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
19791
      oprot.writeI64(this.category);
19792
      oprot.writeFieldEnd();
19793
      oprot.writeFieldStop();
19794
      oprot.writeStructEnd();
19795
    }
19796
 
19797
    @Override
19798
    public String toString() {
19799
      StringBuilder sb = new StringBuilder("getBestSellersCatalogIds_args(");
19800
      boolean first = true;
19801
 
19802
      sb.append("beginIndex:");
19803
      sb.append(this.beginIndex);
19804
      first = false;
19805
      if (!first) sb.append(", ");
19806
      sb.append("totalItems:");
19807
      sb.append(this.totalItems);
19808
      first = false;
19809
      if (!first) sb.append(", ");
19810
      sb.append("brand:");
19811
      if (this.brand == null) {
19812
        sb.append("null");
19813
      } else {
19814
        sb.append(this.brand);
19815
      }
19816
      first = false;
19817
      if (!first) sb.append(", ");
19818
      sb.append("category:");
19819
      sb.append(this.category);
19820
      first = false;
19821
      sb.append(")");
19822
      return sb.toString();
19823
    }
19824
 
19825
    public void validate() throws org.apache.thrift.TException {
19826
      // check for required fields
19827
    }
19828
 
19829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19830
      try {
19831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19832
      } catch (org.apache.thrift.TException te) {
19833
        throw new java.io.IOException(te);
19834
      }
19835
    }
19836
 
19837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19838
      try {
19839
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19840
        __isset_bit_vector = new BitSet(1);
19841
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19842
      } catch (org.apache.thrift.TException te) {
19843
        throw new java.io.IOException(te);
19844
      }
19845
    }
19846
 
19847
  }
19848
 
19849
  public static class getBestSellersCatalogIds_result implements org.apache.thrift.TBase<getBestSellersCatalogIds_result, getBestSellersCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
19850
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCatalogIds_result");
19851
 
19852
    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);
19853
    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);
19854
 
19855
    private List<Long> success; // required
19856
    private CatalogServiceException cex; // required
19857
 
19858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19860
      SUCCESS((short)0, "success"),
19861
      CEX((short)1, "cex");
19862
 
19863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19864
 
19865
      static {
19866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19867
          byName.put(field.getFieldName(), field);
19868
        }
19869
      }
19870
 
19871
      /**
19872
       * Find the _Fields constant that matches fieldId, or null if its not found.
19873
       */
19874
      public static _Fields findByThriftId(int fieldId) {
19875
        switch(fieldId) {
19876
          case 0: // SUCCESS
19877
            return SUCCESS;
19878
          case 1: // CEX
19879
            return CEX;
19880
          default:
19881
            return null;
19882
        }
19883
      }
19884
 
19885
      /**
19886
       * Find the _Fields constant that matches fieldId, throwing an exception
19887
       * if it is not found.
19888
       */
19889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19890
        _Fields fields = findByThriftId(fieldId);
19891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19892
        return fields;
19893
      }
19894
 
19895
      /**
19896
       * Find the _Fields constant that matches name, or null if its not found.
19897
       */
19898
      public static _Fields findByName(String name) {
19899
        return byName.get(name);
19900
      }
19901
 
19902
      private final short _thriftId;
19903
      private final String _fieldName;
19904
 
19905
      _Fields(short thriftId, String fieldName) {
19906
        _thriftId = thriftId;
19907
        _fieldName = fieldName;
19908
      }
19909
 
19910
      public short getThriftFieldId() {
19911
        return _thriftId;
19912
      }
19913
 
19914
      public String getFieldName() {
19915
        return _fieldName;
19916
      }
19917
    }
19918
 
19919
    // isset id assignments
19920
 
19921
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19922
    static {
19923
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19924
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19925
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19926
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
19927
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCatalogIds_result.class, metaDataMap);
19931
    }
19932
 
19933
    public getBestSellersCatalogIds_result() {
19934
    }
19935
 
19936
    public getBestSellersCatalogIds_result(
19937
      List<Long> success,
19938
      CatalogServiceException cex)
19939
    {
19940
      this();
19941
      this.success = success;
19942
      this.cex = cex;
19943
    }
19944
 
19945
    /**
19946
     * Performs a deep copy on <i>other</i>.
19947
     */
19948
    public getBestSellersCatalogIds_result(getBestSellersCatalogIds_result other) {
19949
      if (other.isSetSuccess()) {
19950
        List<Long> __this__success = new ArrayList<Long>();
19951
        for (Long other_element : other.success) {
19952
          __this__success.add(other_element);
19953
        }
19954
        this.success = __this__success;
19955
      }
19956
      if (other.isSetCex()) {
19957
        this.cex = new CatalogServiceException(other.cex);
19958
      }
19959
    }
19960
 
19961
    public getBestSellersCatalogIds_result deepCopy() {
19962
      return new getBestSellersCatalogIds_result(this);
19963
    }
19964
 
19965
    @Override
19966
    public void clear() {
19967
      this.success = null;
19968
      this.cex = null;
19969
    }
19970
 
19971
    public int getSuccessSize() {
19972
      return (this.success == null) ? 0 : this.success.size();
19973
    }
19974
 
19975
    public java.util.Iterator<Long> getSuccessIterator() {
19976
      return (this.success == null) ? null : this.success.iterator();
19977
    }
19978
 
19979
    public void addToSuccess(long elem) {
19980
      if (this.success == null) {
19981
        this.success = new ArrayList<Long>();
19982
      }
19983
      this.success.add(elem);
19984
    }
19985
 
19986
    public List<Long> getSuccess() {
19987
      return this.success;
19988
    }
19989
 
19990
    public void setSuccess(List<Long> success) {
19991
      this.success = success;
19992
    }
19993
 
19994
    public void unsetSuccess() {
19995
      this.success = null;
19996
    }
19997
 
19998
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19999
    public boolean isSetSuccess() {
20000
      return this.success != null;
20001
    }
20002
 
20003
    public void setSuccessIsSet(boolean value) {
20004
      if (!value) {
20005
        this.success = null;
20006
      }
20007
    }
20008
 
20009
    public CatalogServiceException getCex() {
20010
      return this.cex;
20011
    }
20012
 
20013
    public void setCex(CatalogServiceException cex) {
20014
      this.cex = cex;
20015
    }
20016
 
20017
    public void unsetCex() {
20018
      this.cex = null;
20019
    }
20020
 
20021
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20022
    public boolean isSetCex() {
20023
      return this.cex != null;
20024
    }
20025
 
20026
    public void setCexIsSet(boolean value) {
20027
      if (!value) {
20028
        this.cex = null;
20029
      }
20030
    }
20031
 
20032
    public void setFieldValue(_Fields field, Object value) {
20033
      switch (field) {
20034
      case SUCCESS:
20035
        if (value == null) {
20036
          unsetSuccess();
20037
        } else {
20038
          setSuccess((List<Long>)value);
20039
        }
20040
        break;
20041
 
20042
      case CEX:
20043
        if (value == null) {
20044
          unsetCex();
20045
        } else {
20046
          setCex((CatalogServiceException)value);
20047
        }
20048
        break;
20049
 
20050
      }
20051
    }
20052
 
20053
    public Object getFieldValue(_Fields field) {
20054
      switch (field) {
20055
      case SUCCESS:
20056
        return getSuccess();
20057
 
20058
      case CEX:
20059
        return getCex();
20060
 
20061
      }
20062
      throw new IllegalStateException();
20063
    }
20064
 
20065
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20066
    public boolean isSet(_Fields field) {
20067
      if (field == null) {
20068
        throw new IllegalArgumentException();
20069
      }
20070
 
20071
      switch (field) {
20072
      case SUCCESS:
20073
        return isSetSuccess();
20074
      case CEX:
20075
        return isSetCex();
20076
      }
20077
      throw new IllegalStateException();
20078
    }
20079
 
20080
    @Override
20081
    public boolean equals(Object that) {
20082
      if (that == null)
20083
        return false;
20084
      if (that instanceof getBestSellersCatalogIds_result)
20085
        return this.equals((getBestSellersCatalogIds_result)that);
20086
      return false;
20087
    }
20088
 
20089
    public boolean equals(getBestSellersCatalogIds_result that) {
20090
      if (that == null)
20091
        return false;
20092
 
20093
      boolean this_present_success = true && this.isSetSuccess();
20094
      boolean that_present_success = true && that.isSetSuccess();
20095
      if (this_present_success || that_present_success) {
20096
        if (!(this_present_success && that_present_success))
20097
          return false;
20098
        if (!this.success.equals(that.success))
20099
          return false;
20100
      }
20101
 
20102
      boolean this_present_cex = true && this.isSetCex();
20103
      boolean that_present_cex = true && that.isSetCex();
20104
      if (this_present_cex || that_present_cex) {
20105
        if (!(this_present_cex && that_present_cex))
20106
          return false;
20107
        if (!this.cex.equals(that.cex))
20108
          return false;
20109
      }
20110
 
20111
      return true;
20112
    }
20113
 
20114
    @Override
20115
    public int hashCode() {
20116
      return 0;
20117
    }
20118
 
20119
    public int compareTo(getBestSellersCatalogIds_result other) {
20120
      if (!getClass().equals(other.getClass())) {
20121
        return getClass().getName().compareTo(other.getClass().getName());
20122
      }
20123
 
20124
      int lastComparison = 0;
20125
      getBestSellersCatalogIds_result typedOther = (getBestSellersCatalogIds_result)other;
20126
 
20127
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20128
      if (lastComparison != 0) {
20129
        return lastComparison;
20130
      }
20131
      if (isSetSuccess()) {
20132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20133
        if (lastComparison != 0) {
20134
          return lastComparison;
20135
        }
20136
      }
20137
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20138
      if (lastComparison != 0) {
20139
        return lastComparison;
20140
      }
20141
      if (isSetCex()) {
20142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20143
        if (lastComparison != 0) {
20144
          return lastComparison;
20145
        }
20146
      }
20147
      return 0;
20148
    }
20149
 
20150
    public _Fields fieldForId(int fieldId) {
20151
      return _Fields.findByThriftId(fieldId);
20152
    }
20153
 
20154
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20155
      org.apache.thrift.protocol.TField field;
20156
      iprot.readStructBegin();
20157
      while (true)
20158
      {
20159
        field = iprot.readFieldBegin();
20160
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20161
          break;
20162
        }
20163
        switch (field.id) {
20164
          case 0: // SUCCESS
20165
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20166
              {
20167
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20168
                this.success = new ArrayList<Long>(_list37.size);
20169
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20170
                {
20171
                  long _elem39; // required
20172
                  _elem39 = iprot.readI64();
20173
                  this.success.add(_elem39);
20174
                }
20175
                iprot.readListEnd();
20176
              }
20177
            } else { 
20178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20179
            }
20180
            break;
20181
          case 1: // CEX
20182
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20183
              this.cex = new CatalogServiceException();
20184
              this.cex.read(iprot);
20185
            } else { 
20186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20187
            }
20188
            break;
20189
          default:
20190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20191
        }
20192
        iprot.readFieldEnd();
20193
      }
20194
      iprot.readStructEnd();
20195
      validate();
20196
    }
20197
 
20198
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20199
      oprot.writeStructBegin(STRUCT_DESC);
20200
 
20201
      if (this.isSetSuccess()) {
20202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20203
        {
20204
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
20205
          for (long _iter40 : this.success)
20206
          {
20207
            oprot.writeI64(_iter40);
20208
          }
20209
          oprot.writeListEnd();
20210
        }
20211
        oprot.writeFieldEnd();
20212
      } else if (this.isSetCex()) {
20213
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20214
        this.cex.write(oprot);
20215
        oprot.writeFieldEnd();
20216
      }
20217
      oprot.writeFieldStop();
20218
      oprot.writeStructEnd();
20219
    }
20220
 
20221
    @Override
20222
    public String toString() {
20223
      StringBuilder sb = new StringBuilder("getBestSellersCatalogIds_result(");
20224
      boolean first = true;
20225
 
20226
      sb.append("success:");
20227
      if (this.success == null) {
20228
        sb.append("null");
20229
      } else {
20230
        sb.append(this.success);
20231
      }
20232
      first = false;
20233
      if (!first) sb.append(", ");
20234
      sb.append("cex:");
20235
      if (this.cex == null) {
20236
        sb.append("null");
20237
      } else {
20238
        sb.append(this.cex);
20239
      }
20240
      first = false;
20241
      sb.append(")");
20242
      return sb.toString();
20243
    }
20244
 
20245
    public void validate() throws org.apache.thrift.TException {
20246
      // check for required fields
20247
    }
20248
 
20249
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20250
      try {
20251
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20252
      } catch (org.apache.thrift.TException te) {
20253
        throw new java.io.IOException(te);
20254
      }
20255
    }
20256
 
20257
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20258
      try {
20259
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20260
      } catch (org.apache.thrift.TException te) {
20261
        throw new java.io.IOException(te);
20262
      }
20263
    }
20264
 
20265
  }
20266
 
20267
  public static class getBestSellersCount_args implements org.apache.thrift.TBase<getBestSellersCount_args, getBestSellersCount_args._Fields>, java.io.Serializable, Cloneable   {
20268
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCount_args");
20269
 
20270
 
20271
 
20272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20274
;
20275
 
20276
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20277
 
20278
      static {
20279
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20280
          byName.put(field.getFieldName(), field);
20281
        }
20282
      }
20283
 
20284
      /**
20285
       * Find the _Fields constant that matches fieldId, or null if its not found.
20286
       */
20287
      public static _Fields findByThriftId(int fieldId) {
20288
        switch(fieldId) {
20289
          default:
20290
            return null;
20291
        }
20292
      }
20293
 
20294
      /**
20295
       * Find the _Fields constant that matches fieldId, throwing an exception
20296
       * if it is not found.
20297
       */
20298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20299
        _Fields fields = findByThriftId(fieldId);
20300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20301
        return fields;
20302
      }
20303
 
20304
      /**
20305
       * Find the _Fields constant that matches name, or null if its not found.
20306
       */
20307
      public static _Fields findByName(String name) {
20308
        return byName.get(name);
20309
      }
20310
 
20311
      private final short _thriftId;
20312
      private final String _fieldName;
20313
 
20314
      _Fields(short thriftId, String fieldName) {
20315
        _thriftId = thriftId;
20316
        _fieldName = fieldName;
20317
      }
20318
 
20319
      public short getThriftFieldId() {
20320
        return _thriftId;
20321
      }
20322
 
20323
      public String getFieldName() {
20324
        return _fieldName;
20325
      }
20326
    }
20327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20328
    static {
20329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20330
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20331
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCount_args.class, metaDataMap);
20332
    }
20333
 
20334
    public getBestSellersCount_args() {
20335
    }
20336
 
20337
    /**
20338
     * Performs a deep copy on <i>other</i>.
20339
     */
20340
    public getBestSellersCount_args(getBestSellersCount_args other) {
20341
    }
20342
 
20343
    public getBestSellersCount_args deepCopy() {
20344
      return new getBestSellersCount_args(this);
20345
    }
20346
 
20347
    @Override
20348
    public void clear() {
20349
    }
20350
 
20351
    public void setFieldValue(_Fields field, Object value) {
20352
      switch (field) {
20353
      }
20354
    }
20355
 
20356
    public Object getFieldValue(_Fields field) {
20357
      switch (field) {
20358
      }
20359
      throw new IllegalStateException();
20360
    }
20361
 
20362
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20363
    public boolean isSet(_Fields field) {
20364
      if (field == null) {
20365
        throw new IllegalArgumentException();
20366
      }
20367
 
20368
      switch (field) {
20369
      }
20370
      throw new IllegalStateException();
20371
    }
20372
 
20373
    @Override
20374
    public boolean equals(Object that) {
20375
      if (that == null)
20376
        return false;
20377
      if (that instanceof getBestSellersCount_args)
20378
        return this.equals((getBestSellersCount_args)that);
20379
      return false;
20380
    }
20381
 
20382
    public boolean equals(getBestSellersCount_args that) {
20383
      if (that == null)
20384
        return false;
20385
 
20386
      return true;
20387
    }
20388
 
20389
    @Override
20390
    public int hashCode() {
20391
      return 0;
20392
    }
20393
 
20394
    public int compareTo(getBestSellersCount_args other) {
20395
      if (!getClass().equals(other.getClass())) {
20396
        return getClass().getName().compareTo(other.getClass().getName());
20397
      }
20398
 
20399
      int lastComparison = 0;
20400
      getBestSellersCount_args typedOther = (getBestSellersCount_args)other;
20401
 
20402
      return 0;
20403
    }
20404
 
20405
    public _Fields fieldForId(int fieldId) {
20406
      return _Fields.findByThriftId(fieldId);
20407
    }
20408
 
20409
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20410
      org.apache.thrift.protocol.TField field;
20411
      iprot.readStructBegin();
20412
      while (true)
20413
      {
20414
        field = iprot.readFieldBegin();
20415
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20416
          break;
20417
        }
20418
        switch (field.id) {
20419
          default:
20420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20421
        }
20422
        iprot.readFieldEnd();
20423
      }
20424
      iprot.readStructEnd();
20425
      validate();
20426
    }
20427
 
20428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20429
      validate();
20430
 
20431
      oprot.writeStructBegin(STRUCT_DESC);
20432
      oprot.writeFieldStop();
20433
      oprot.writeStructEnd();
20434
    }
20435
 
20436
    @Override
20437
    public String toString() {
20438
      StringBuilder sb = new StringBuilder("getBestSellersCount_args(");
20439
      boolean first = true;
20440
 
20441
      sb.append(")");
20442
      return sb.toString();
20443
    }
20444
 
20445
    public void validate() throws org.apache.thrift.TException {
20446
      // check for required fields
20447
    }
20448
 
20449
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20450
      try {
20451
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20452
      } catch (org.apache.thrift.TException te) {
20453
        throw new java.io.IOException(te);
20454
      }
20455
    }
20456
 
20457
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20458
      try {
20459
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20460
      } catch (org.apache.thrift.TException te) {
20461
        throw new java.io.IOException(te);
20462
      }
20463
    }
20464
 
20465
  }
20466
 
20467
  public static class getBestSellersCount_result implements org.apache.thrift.TBase<getBestSellersCount_result, getBestSellersCount_result._Fields>, java.io.Serializable, Cloneable   {
20468
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCount_result");
20469
 
20470
    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);
20471
    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);
20472
 
20473
    private long success; // required
20474
    private CatalogServiceException cex; // required
20475
 
20476
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20477
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20478
      SUCCESS((short)0, "success"),
20479
      CEX((short)1, "cex");
20480
 
20481
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20482
 
20483
      static {
20484
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20485
          byName.put(field.getFieldName(), field);
20486
        }
20487
      }
20488
 
20489
      /**
20490
       * Find the _Fields constant that matches fieldId, or null if its not found.
20491
       */
20492
      public static _Fields findByThriftId(int fieldId) {
20493
        switch(fieldId) {
20494
          case 0: // SUCCESS
20495
            return SUCCESS;
20496
          case 1: // CEX
20497
            return CEX;
20498
          default:
20499
            return null;
20500
        }
20501
      }
20502
 
20503
      /**
20504
       * Find the _Fields constant that matches fieldId, throwing an exception
20505
       * if it is not found.
20506
       */
20507
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20508
        _Fields fields = findByThriftId(fieldId);
20509
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20510
        return fields;
20511
      }
20512
 
20513
      /**
20514
       * Find the _Fields constant that matches name, or null if its not found.
20515
       */
20516
      public static _Fields findByName(String name) {
20517
        return byName.get(name);
20518
      }
20519
 
20520
      private final short _thriftId;
20521
      private final String _fieldName;
20522
 
20523
      _Fields(short thriftId, String fieldName) {
20524
        _thriftId = thriftId;
20525
        _fieldName = fieldName;
20526
      }
20527
 
20528
      public short getThriftFieldId() {
20529
        return _thriftId;
20530
      }
20531
 
20532
      public String getFieldName() {
20533
        return _fieldName;
20534
      }
20535
    }
20536
 
20537
    // isset id assignments
20538
    private static final int __SUCCESS_ISSET_ID = 0;
20539
    private BitSet __isset_bit_vector = new BitSet(1);
20540
 
20541
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20542
    static {
20543
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20544
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20545
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20546
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCount_result.class, metaDataMap);
20550
    }
20551
 
20552
    public getBestSellersCount_result() {
20553
    }
20554
 
20555
    public getBestSellersCount_result(
20556
      long success,
20557
      CatalogServiceException cex)
20558
    {
20559
      this();
20560
      this.success = success;
20561
      setSuccessIsSet(true);
20562
      this.cex = cex;
20563
    }
20564
 
20565
    /**
20566
     * Performs a deep copy on <i>other</i>.
20567
     */
20568
    public getBestSellersCount_result(getBestSellersCount_result other) {
20569
      __isset_bit_vector.clear();
20570
      __isset_bit_vector.or(other.__isset_bit_vector);
20571
      this.success = other.success;
20572
      if (other.isSetCex()) {
20573
        this.cex = new CatalogServiceException(other.cex);
20574
      }
20575
    }
20576
 
20577
    public getBestSellersCount_result deepCopy() {
20578
      return new getBestSellersCount_result(this);
20579
    }
20580
 
20581
    @Override
20582
    public void clear() {
20583
      setSuccessIsSet(false);
20584
      this.success = 0;
20585
      this.cex = null;
20586
    }
20587
 
20588
    public long getSuccess() {
20589
      return this.success;
20590
    }
20591
 
20592
    public void setSuccess(long success) {
20593
      this.success = success;
20594
      setSuccessIsSet(true);
20595
    }
20596
 
20597
    public void unsetSuccess() {
20598
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
20599
    }
20600
 
20601
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20602
    public boolean isSetSuccess() {
20603
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
20604
    }
20605
 
20606
    public void setSuccessIsSet(boolean value) {
20607
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
20608
    }
20609
 
20610
    public CatalogServiceException getCex() {
20611
      return this.cex;
20612
    }
20613
 
20614
    public void setCex(CatalogServiceException cex) {
20615
      this.cex = cex;
20616
    }
20617
 
20618
    public void unsetCex() {
20619
      this.cex = null;
20620
    }
20621
 
20622
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20623
    public boolean isSetCex() {
20624
      return this.cex != null;
20625
    }
20626
 
20627
    public void setCexIsSet(boolean value) {
20628
      if (!value) {
20629
        this.cex = null;
20630
      }
20631
    }
20632
 
20633
    public void setFieldValue(_Fields field, Object value) {
20634
      switch (field) {
20635
      case SUCCESS:
20636
        if (value == null) {
20637
          unsetSuccess();
20638
        } else {
20639
          setSuccess((Long)value);
20640
        }
20641
        break;
20642
 
20643
      case CEX:
20644
        if (value == null) {
20645
          unsetCex();
20646
        } else {
20647
          setCex((CatalogServiceException)value);
20648
        }
20649
        break;
20650
 
20651
      }
20652
    }
20653
 
20654
    public Object getFieldValue(_Fields field) {
20655
      switch (field) {
20656
      case SUCCESS:
20657
        return Long.valueOf(getSuccess());
20658
 
20659
      case CEX:
20660
        return getCex();
20661
 
20662
      }
20663
      throw new IllegalStateException();
20664
    }
20665
 
20666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20667
    public boolean isSet(_Fields field) {
20668
      if (field == null) {
20669
        throw new IllegalArgumentException();
20670
      }
20671
 
20672
      switch (field) {
20673
      case SUCCESS:
20674
        return isSetSuccess();
20675
      case CEX:
20676
        return isSetCex();
20677
      }
20678
      throw new IllegalStateException();
20679
    }
20680
 
20681
    @Override
20682
    public boolean equals(Object that) {
20683
      if (that == null)
20684
        return false;
20685
      if (that instanceof getBestSellersCount_result)
20686
        return this.equals((getBestSellersCount_result)that);
20687
      return false;
20688
    }
20689
 
20690
    public boolean equals(getBestSellersCount_result that) {
20691
      if (that == null)
20692
        return false;
20693
 
20694
      boolean this_present_success = true;
20695
      boolean that_present_success = true;
20696
      if (this_present_success || that_present_success) {
20697
        if (!(this_present_success && that_present_success))
20698
          return false;
20699
        if (this.success != that.success)
20700
          return false;
20701
      }
20702
 
20703
      boolean this_present_cex = true && this.isSetCex();
20704
      boolean that_present_cex = true && that.isSetCex();
20705
      if (this_present_cex || that_present_cex) {
20706
        if (!(this_present_cex && that_present_cex))
20707
          return false;
20708
        if (!this.cex.equals(that.cex))
20709
          return false;
20710
      }
20711
 
20712
      return true;
20713
    }
20714
 
20715
    @Override
20716
    public int hashCode() {
20717
      return 0;
20718
    }
20719
 
20720
    public int compareTo(getBestSellersCount_result other) {
20721
      if (!getClass().equals(other.getClass())) {
20722
        return getClass().getName().compareTo(other.getClass().getName());
20723
      }
20724
 
20725
      int lastComparison = 0;
20726
      getBestSellersCount_result typedOther = (getBestSellersCount_result)other;
20727
 
20728
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20729
      if (lastComparison != 0) {
20730
        return lastComparison;
20731
      }
20732
      if (isSetSuccess()) {
20733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20734
        if (lastComparison != 0) {
20735
          return lastComparison;
20736
        }
20737
      }
20738
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20739
      if (lastComparison != 0) {
20740
        return lastComparison;
20741
      }
20742
      if (isSetCex()) {
20743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20744
        if (lastComparison != 0) {
20745
          return lastComparison;
20746
        }
20747
      }
20748
      return 0;
20749
    }
20750
 
20751
    public _Fields fieldForId(int fieldId) {
20752
      return _Fields.findByThriftId(fieldId);
20753
    }
20754
 
20755
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20756
      org.apache.thrift.protocol.TField field;
20757
      iprot.readStructBegin();
20758
      while (true)
20759
      {
20760
        field = iprot.readFieldBegin();
20761
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20762
          break;
20763
        }
20764
        switch (field.id) {
20765
          case 0: // SUCCESS
20766
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20767
              this.success = iprot.readI64();
20768
              setSuccessIsSet(true);
20769
            } else { 
20770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20771
            }
20772
            break;
20773
          case 1: // CEX
20774
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20775
              this.cex = new CatalogServiceException();
20776
              this.cex.read(iprot);
20777
            } else { 
20778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20779
            }
20780
            break;
20781
          default:
20782
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20783
        }
20784
        iprot.readFieldEnd();
20785
      }
20786
      iprot.readStructEnd();
20787
      validate();
20788
    }
20789
 
20790
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20791
      oprot.writeStructBegin(STRUCT_DESC);
20792
 
20793
      if (this.isSetSuccess()) {
20794
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20795
        oprot.writeI64(this.success);
20796
        oprot.writeFieldEnd();
20797
      } else if (this.isSetCex()) {
20798
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20799
        this.cex.write(oprot);
20800
        oprot.writeFieldEnd();
20801
      }
20802
      oprot.writeFieldStop();
20803
      oprot.writeStructEnd();
20804
    }
20805
 
20806
    @Override
20807
    public String toString() {
20808
      StringBuilder sb = new StringBuilder("getBestSellersCount_result(");
20809
      boolean first = true;
20810
 
20811
      sb.append("success:");
20812
      sb.append(this.success);
20813
      first = false;
20814
      if (!first) sb.append(", ");
20815
      sb.append("cex:");
20816
      if (this.cex == null) {
20817
        sb.append("null");
20818
      } else {
20819
        sb.append(this.cex);
20820
      }
20821
      first = false;
20822
      sb.append(")");
20823
      return sb.toString();
20824
    }
20825
 
20826
    public void validate() throws org.apache.thrift.TException {
20827
      // check for required fields
20828
    }
20829
 
20830
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20831
      try {
20832
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20833
      } catch (org.apache.thrift.TException te) {
20834
        throw new java.io.IOException(te);
20835
      }
20836
    }
20837
 
20838
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20839
      try {
20840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20841
      } catch (org.apache.thrift.TException te) {
20842
        throw new java.io.IOException(te);
20843
      }
20844
    }
20845
 
20846
  }
20847
 
20848
  public static class getBestDeals_args implements org.apache.thrift.TBase<getBestDeals_args, getBestDeals_args._Fields>, java.io.Serializable, Cloneable   {
20849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDeals_args");
20850
 
20851
 
20852
 
20853
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20854
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20855
;
20856
 
20857
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20858
 
20859
      static {
20860
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20861
          byName.put(field.getFieldName(), field);
20862
        }
20863
      }
20864
 
20865
      /**
20866
       * Find the _Fields constant that matches fieldId, or null if its not found.
20867
       */
20868
      public static _Fields findByThriftId(int fieldId) {
20869
        switch(fieldId) {
20870
          default:
20871
            return null;
20872
        }
20873
      }
20874
 
20875
      /**
20876
       * Find the _Fields constant that matches fieldId, throwing an exception
20877
       * if it is not found.
20878
       */
20879
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20880
        _Fields fields = findByThriftId(fieldId);
20881
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20882
        return fields;
20883
      }
20884
 
20885
      /**
20886
       * Find the _Fields constant that matches name, or null if its not found.
20887
       */
20888
      public static _Fields findByName(String name) {
20889
        return byName.get(name);
20890
      }
20891
 
20892
      private final short _thriftId;
20893
      private final String _fieldName;
20894
 
20895
      _Fields(short thriftId, String fieldName) {
20896
        _thriftId = thriftId;
20897
        _fieldName = fieldName;
20898
      }
20899
 
20900
      public short getThriftFieldId() {
20901
        return _thriftId;
20902
      }
20903
 
20904
      public String getFieldName() {
20905
        return _fieldName;
20906
      }
20907
    }
20908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20909
    static {
20910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20911
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20912
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDeals_args.class, metaDataMap);
20913
    }
20914
 
20915
    public getBestDeals_args() {
20916
    }
20917
 
20918
    /**
20919
     * Performs a deep copy on <i>other</i>.
20920
     */
20921
    public getBestDeals_args(getBestDeals_args other) {
20922
    }
20923
 
20924
    public getBestDeals_args deepCopy() {
20925
      return new getBestDeals_args(this);
20926
    }
20927
 
20928
    @Override
20929
    public void clear() {
20930
    }
20931
 
20932
    public void setFieldValue(_Fields field, Object value) {
20933
      switch (field) {
20934
      }
20935
    }
20936
 
20937
    public Object getFieldValue(_Fields field) {
20938
      switch (field) {
20939
      }
20940
      throw new IllegalStateException();
20941
    }
20942
 
20943
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20944
    public boolean isSet(_Fields field) {
20945
      if (field == null) {
20946
        throw new IllegalArgumentException();
20947
      }
20948
 
20949
      switch (field) {
20950
      }
20951
      throw new IllegalStateException();
20952
    }
20953
 
20954
    @Override
20955
    public boolean equals(Object that) {
20956
      if (that == null)
20957
        return false;
20958
      if (that instanceof getBestDeals_args)
20959
        return this.equals((getBestDeals_args)that);
20960
      return false;
20961
    }
20962
 
20963
    public boolean equals(getBestDeals_args that) {
20964
      if (that == null)
20965
        return false;
20966
 
20967
      return true;
20968
    }
20969
 
20970
    @Override
20971
    public int hashCode() {
20972
      return 0;
20973
    }
20974
 
20975
    public int compareTo(getBestDeals_args other) {
20976
      if (!getClass().equals(other.getClass())) {
20977
        return getClass().getName().compareTo(other.getClass().getName());
20978
      }
20979
 
20980
      int lastComparison = 0;
20981
      getBestDeals_args typedOther = (getBestDeals_args)other;
20982
 
20983
      return 0;
20984
    }
20985
 
20986
    public _Fields fieldForId(int fieldId) {
20987
      return _Fields.findByThriftId(fieldId);
20988
    }
20989
 
20990
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20991
      org.apache.thrift.protocol.TField field;
20992
      iprot.readStructBegin();
20993
      while (true)
20994
      {
20995
        field = iprot.readFieldBegin();
20996
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20997
          break;
20998
        }
20999
        switch (field.id) {
21000
          default:
21001
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21002
        }
21003
        iprot.readFieldEnd();
21004
      }
21005
      iprot.readStructEnd();
21006
      validate();
21007
    }
21008
 
21009
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21010
      validate();
21011
 
21012
      oprot.writeStructBegin(STRUCT_DESC);
21013
      oprot.writeFieldStop();
21014
      oprot.writeStructEnd();
21015
    }
21016
 
21017
    @Override
21018
    public String toString() {
21019
      StringBuilder sb = new StringBuilder("getBestDeals_args(");
21020
      boolean first = true;
21021
 
21022
      sb.append(")");
21023
      return sb.toString();
21024
    }
21025
 
21026
    public void validate() throws org.apache.thrift.TException {
21027
      // check for required fields
21028
    }
21029
 
21030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21031
      try {
21032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21033
      } catch (org.apache.thrift.TException te) {
21034
        throw new java.io.IOException(te);
21035
      }
21036
    }
21037
 
21038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21039
      try {
21040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21041
      } catch (org.apache.thrift.TException te) {
21042
        throw new java.io.IOException(te);
21043
      }
21044
    }
21045
 
21046
  }
21047
 
21048
  public static class getBestDeals_result implements org.apache.thrift.TBase<getBestDeals_result, getBestDeals_result._Fields>, java.io.Serializable, Cloneable   {
21049
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDeals_result");
21050
 
21051
    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);
21052
    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);
21053
 
21054
    private List<Item> success; // required
21055
    private CatalogServiceException isex; // required
21056
 
21057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21059
      SUCCESS((short)0, "success"),
21060
      ISEX((short)1, "isex");
21061
 
21062
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21063
 
21064
      static {
21065
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21066
          byName.put(field.getFieldName(), field);
21067
        }
21068
      }
21069
 
21070
      /**
21071
       * Find the _Fields constant that matches fieldId, or null if its not found.
21072
       */
21073
      public static _Fields findByThriftId(int fieldId) {
21074
        switch(fieldId) {
21075
          case 0: // SUCCESS
21076
            return SUCCESS;
21077
          case 1: // ISEX
21078
            return ISEX;
21079
          default:
21080
            return null;
21081
        }
21082
      }
21083
 
21084
      /**
21085
       * Find the _Fields constant that matches fieldId, throwing an exception
21086
       * if it is not found.
21087
       */
21088
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21089
        _Fields fields = findByThriftId(fieldId);
21090
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21091
        return fields;
21092
      }
21093
 
21094
      /**
21095
       * Find the _Fields constant that matches name, or null if its not found.
21096
       */
21097
      public static _Fields findByName(String name) {
21098
        return byName.get(name);
21099
      }
21100
 
21101
      private final short _thriftId;
21102
      private final String _fieldName;
21103
 
21104
      _Fields(short thriftId, String fieldName) {
21105
        _thriftId = thriftId;
21106
        _fieldName = fieldName;
21107
      }
21108
 
21109
      public short getThriftFieldId() {
21110
        return _thriftId;
21111
      }
21112
 
21113
      public String getFieldName() {
21114
        return _fieldName;
21115
      }
21116
    }
21117
 
21118
    // isset id assignments
21119
 
21120
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21121
    static {
21122
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21123
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21124
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21125
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
21126
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21128
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21129
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDeals_result.class, metaDataMap);
21130
    }
21131
 
21132
    public getBestDeals_result() {
21133
    }
21134
 
21135
    public getBestDeals_result(
21136
      List<Item> success,
21137
      CatalogServiceException isex)
21138
    {
21139
      this();
21140
      this.success = success;
21141
      this.isex = isex;
21142
    }
21143
 
21144
    /**
21145
     * Performs a deep copy on <i>other</i>.
21146
     */
21147
    public getBestDeals_result(getBestDeals_result other) {
21148
      if (other.isSetSuccess()) {
21149
        List<Item> __this__success = new ArrayList<Item>();
21150
        for (Item other_element : other.success) {
21151
          __this__success.add(new Item(other_element));
21152
        }
21153
        this.success = __this__success;
21154
      }
21155
      if (other.isSetIsex()) {
21156
        this.isex = new CatalogServiceException(other.isex);
21157
      }
21158
    }
21159
 
21160
    public getBestDeals_result deepCopy() {
21161
      return new getBestDeals_result(this);
21162
    }
21163
 
21164
    @Override
21165
    public void clear() {
21166
      this.success = null;
21167
      this.isex = null;
21168
    }
21169
 
21170
    public int getSuccessSize() {
21171
      return (this.success == null) ? 0 : this.success.size();
21172
    }
21173
 
21174
    public java.util.Iterator<Item> getSuccessIterator() {
21175
      return (this.success == null) ? null : this.success.iterator();
21176
    }
21177
 
21178
    public void addToSuccess(Item elem) {
21179
      if (this.success == null) {
21180
        this.success = new ArrayList<Item>();
21181
      }
21182
      this.success.add(elem);
21183
    }
21184
 
21185
    public List<Item> getSuccess() {
21186
      return this.success;
21187
    }
21188
 
21189
    public void setSuccess(List<Item> success) {
21190
      this.success = success;
21191
    }
21192
 
21193
    public void unsetSuccess() {
21194
      this.success = null;
21195
    }
21196
 
21197
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21198
    public boolean isSetSuccess() {
21199
      return this.success != null;
21200
    }
21201
 
21202
    public void setSuccessIsSet(boolean value) {
21203
      if (!value) {
21204
        this.success = null;
21205
      }
21206
    }
21207
 
21208
    public CatalogServiceException getIsex() {
21209
      return this.isex;
21210
    }
21211
 
21212
    public void setIsex(CatalogServiceException isex) {
21213
      this.isex = isex;
21214
    }
21215
 
21216
    public void unsetIsex() {
21217
      this.isex = null;
21218
    }
21219
 
21220
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
21221
    public boolean isSetIsex() {
21222
      return this.isex != null;
21223
    }
21224
 
21225
    public void setIsexIsSet(boolean value) {
21226
      if (!value) {
21227
        this.isex = null;
21228
      }
21229
    }
21230
 
21231
    public void setFieldValue(_Fields field, Object value) {
21232
      switch (field) {
21233
      case SUCCESS:
21234
        if (value == null) {
21235
          unsetSuccess();
21236
        } else {
21237
          setSuccess((List<Item>)value);
21238
        }
21239
        break;
21240
 
21241
      case ISEX:
21242
        if (value == null) {
21243
          unsetIsex();
21244
        } else {
21245
          setIsex((CatalogServiceException)value);
21246
        }
21247
        break;
21248
 
21249
      }
21250
    }
21251
 
21252
    public Object getFieldValue(_Fields field) {
21253
      switch (field) {
21254
      case SUCCESS:
21255
        return getSuccess();
21256
 
21257
      case ISEX:
21258
        return getIsex();
21259
 
21260
      }
21261
      throw new IllegalStateException();
21262
    }
21263
 
21264
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21265
    public boolean isSet(_Fields field) {
21266
      if (field == null) {
21267
        throw new IllegalArgumentException();
21268
      }
21269
 
21270
      switch (field) {
21271
      case SUCCESS:
21272
        return isSetSuccess();
21273
      case ISEX:
21274
        return isSetIsex();
21275
      }
21276
      throw new IllegalStateException();
21277
    }
21278
 
21279
    @Override
21280
    public boolean equals(Object that) {
21281
      if (that == null)
21282
        return false;
21283
      if (that instanceof getBestDeals_result)
21284
        return this.equals((getBestDeals_result)that);
21285
      return false;
21286
    }
21287
 
21288
    public boolean equals(getBestDeals_result that) {
21289
      if (that == null)
21290
        return false;
21291
 
21292
      boolean this_present_success = true && this.isSetSuccess();
21293
      boolean that_present_success = true && that.isSetSuccess();
21294
      if (this_present_success || that_present_success) {
21295
        if (!(this_present_success && that_present_success))
21296
          return false;
21297
        if (!this.success.equals(that.success))
21298
          return false;
21299
      }
21300
 
21301
      boolean this_present_isex = true && this.isSetIsex();
21302
      boolean that_present_isex = true && that.isSetIsex();
21303
      if (this_present_isex || that_present_isex) {
21304
        if (!(this_present_isex && that_present_isex))
21305
          return false;
21306
        if (!this.isex.equals(that.isex))
21307
          return false;
21308
      }
21309
 
21310
      return true;
21311
    }
21312
 
21313
    @Override
21314
    public int hashCode() {
21315
      return 0;
21316
    }
21317
 
21318
    public int compareTo(getBestDeals_result other) {
21319
      if (!getClass().equals(other.getClass())) {
21320
        return getClass().getName().compareTo(other.getClass().getName());
21321
      }
21322
 
21323
      int lastComparison = 0;
21324
      getBestDeals_result typedOther = (getBestDeals_result)other;
21325
 
21326
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21327
      if (lastComparison != 0) {
21328
        return lastComparison;
21329
      }
21330
      if (isSetSuccess()) {
21331
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21332
        if (lastComparison != 0) {
21333
          return lastComparison;
21334
        }
21335
      }
21336
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
21337
      if (lastComparison != 0) {
21338
        return lastComparison;
21339
      }
21340
      if (isSetIsex()) {
21341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
21342
        if (lastComparison != 0) {
21343
          return lastComparison;
21344
        }
21345
      }
21346
      return 0;
21347
    }
21348
 
21349
    public _Fields fieldForId(int fieldId) {
21350
      return _Fields.findByThriftId(fieldId);
21351
    }
21352
 
21353
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21354
      org.apache.thrift.protocol.TField field;
21355
      iprot.readStructBegin();
21356
      while (true)
21357
      {
21358
        field = iprot.readFieldBegin();
21359
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21360
          break;
21361
        }
21362
        switch (field.id) {
21363
          case 0: // SUCCESS
21364
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21365
              {
21366
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
21367
                this.success = new ArrayList<Item>(_list41.size);
21368
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
21369
                {
21370
                  Item _elem43; // required
21371
                  _elem43 = new Item();
21372
                  _elem43.read(iprot);
21373
                  this.success.add(_elem43);
21374
                }
21375
                iprot.readListEnd();
21376
              }
21377
            } else { 
21378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21379
            }
21380
            break;
21381
          case 1: // ISEX
21382
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21383
              this.isex = new CatalogServiceException();
21384
              this.isex.read(iprot);
21385
            } else { 
21386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21387
            }
21388
            break;
21389
          default:
21390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21391
        }
21392
        iprot.readFieldEnd();
21393
      }
21394
      iprot.readStructEnd();
21395
      validate();
21396
    }
21397
 
21398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21399
      oprot.writeStructBegin(STRUCT_DESC);
21400
 
21401
      if (this.isSetSuccess()) {
21402
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21403
        {
21404
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21405
          for (Item _iter44 : this.success)
21406
          {
21407
            _iter44.write(oprot);
21408
          }
21409
          oprot.writeListEnd();
21410
        }
21411
        oprot.writeFieldEnd();
21412
      } else if (this.isSetIsex()) {
21413
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
21414
        this.isex.write(oprot);
21415
        oprot.writeFieldEnd();
21416
      }
21417
      oprot.writeFieldStop();
21418
      oprot.writeStructEnd();
21419
    }
21420
 
21421
    @Override
21422
    public String toString() {
21423
      StringBuilder sb = new StringBuilder("getBestDeals_result(");
21424
      boolean first = true;
21425
 
21426
      sb.append("success:");
21427
      if (this.success == null) {
21428
        sb.append("null");
21429
      } else {
21430
        sb.append(this.success);
21431
      }
21432
      first = false;
21433
      if (!first) sb.append(", ");
21434
      sb.append("isex:");
21435
      if (this.isex == null) {
21436
        sb.append("null");
21437
      } else {
21438
        sb.append(this.isex);
21439
      }
21440
      first = false;
21441
      sb.append(")");
21442
      return sb.toString();
21443
    }
21444
 
21445
    public void validate() throws org.apache.thrift.TException {
21446
      // check for required fields
21447
    }
21448
 
21449
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21450
      try {
21451
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21452
      } catch (org.apache.thrift.TException te) {
21453
        throw new java.io.IOException(te);
21454
      }
21455
    }
21456
 
21457
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21458
      try {
21459
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21460
      } catch (org.apache.thrift.TException te) {
21461
        throw new java.io.IOException(te);
21462
      }
21463
    }
21464
 
21465
  }
21466
 
21467
  public static class getBestDealsCatalogIds_args implements org.apache.thrift.TBase<getBestDealsCatalogIds_args, getBestDealsCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
21468
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCatalogIds_args");
21469
 
21470
    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);
21471
    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);
21472
    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);
21473
    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);
21474
 
21475
    private long beginIndex; // required
21476
    private long totalItems; // required
21477
    private String brand; // required
21478
    private long category; // required
21479
 
21480
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21481
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21482
      BEGIN_INDEX((short)1, "beginIndex"),
21483
      TOTAL_ITEMS((short)2, "totalItems"),
21484
      BRAND((short)3, "brand"),
21485
      CATEGORY((short)4, "category");
21486
 
21487
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21488
 
21489
      static {
21490
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21491
          byName.put(field.getFieldName(), field);
21492
        }
21493
      }
21494
 
21495
      /**
21496
       * Find the _Fields constant that matches fieldId, or null if its not found.
21497
       */
21498
      public static _Fields findByThriftId(int fieldId) {
21499
        switch(fieldId) {
21500
          case 1: // BEGIN_INDEX
21501
            return BEGIN_INDEX;
21502
          case 2: // TOTAL_ITEMS
21503
            return TOTAL_ITEMS;
21504
          case 3: // BRAND
21505
            return BRAND;
21506
          case 4: // CATEGORY
21507
            return CATEGORY;
21508
          default:
21509
            return null;
21510
        }
21511
      }
21512
 
21513
      /**
21514
       * Find the _Fields constant that matches fieldId, throwing an exception
21515
       * if it is not found.
21516
       */
21517
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21518
        _Fields fields = findByThriftId(fieldId);
21519
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21520
        return fields;
21521
      }
21522
 
21523
      /**
21524
       * Find the _Fields constant that matches name, or null if its not found.
21525
       */
21526
      public static _Fields findByName(String name) {
21527
        return byName.get(name);
21528
      }
21529
 
21530
      private final short _thriftId;
21531
      private final String _fieldName;
21532
 
21533
      _Fields(short thriftId, String fieldName) {
21534
        _thriftId = thriftId;
21535
        _fieldName = fieldName;
21536
      }
21537
 
21538
      public short getThriftFieldId() {
21539
        return _thriftId;
21540
      }
21541
 
21542
      public String getFieldName() {
21543
        return _fieldName;
21544
      }
21545
    }
21546
 
21547
    // isset id assignments
21548
    private static final int __BEGININDEX_ISSET_ID = 0;
21549
    private static final int __TOTALITEMS_ISSET_ID = 1;
21550
    private static final int __CATEGORY_ISSET_ID = 2;
21551
    private BitSet __isset_bit_vector = new BitSet(3);
21552
 
21553
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21554
    static {
21555
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21556
      tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21558
      tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21559
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21560
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21562
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCatalogIds_args.class, metaDataMap);
21566
    }
21567
 
21568
    public getBestDealsCatalogIds_args() {
21569
    }
21570
 
21571
    public getBestDealsCatalogIds_args(
21572
      long beginIndex,
21573
      long totalItems,
21574
      String brand,
21575
      long category)
21576
    {
21577
      this();
21578
      this.beginIndex = beginIndex;
21579
      setBeginIndexIsSet(true);
21580
      this.totalItems = totalItems;
21581
      setTotalItemsIsSet(true);
21582
      this.brand = brand;
21583
      this.category = category;
21584
      setCategoryIsSet(true);
21585
    }
21586
 
21587
    /**
21588
     * Performs a deep copy on <i>other</i>.
21589
     */
21590
    public getBestDealsCatalogIds_args(getBestDealsCatalogIds_args other) {
21591
      __isset_bit_vector.clear();
21592
      __isset_bit_vector.or(other.__isset_bit_vector);
21593
      this.beginIndex = other.beginIndex;
21594
      this.totalItems = other.totalItems;
21595
      if (other.isSetBrand()) {
21596
        this.brand = other.brand;
21597
      }
21598
      this.category = other.category;
21599
    }
21600
 
21601
    public getBestDealsCatalogIds_args deepCopy() {
21602
      return new getBestDealsCatalogIds_args(this);
21603
    }
21604
 
21605
    @Override
21606
    public void clear() {
21607
      setBeginIndexIsSet(false);
21608
      this.beginIndex = 0;
21609
      setTotalItemsIsSet(false);
21610
      this.totalItems = 0;
21611
      this.brand = null;
21612
      setCategoryIsSet(false);
21613
      this.category = 0;
21614
    }
21615
 
21616
    public long getBeginIndex() {
21617
      return this.beginIndex;
21618
    }
21619
 
21620
    public void setBeginIndex(long beginIndex) {
21621
      this.beginIndex = beginIndex;
21622
      setBeginIndexIsSet(true);
21623
    }
21624
 
21625
    public void unsetBeginIndex() {
21626
      __isset_bit_vector.clear(__BEGININDEX_ISSET_ID);
21627
    }
21628
 
21629
    /** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */
21630
    public boolean isSetBeginIndex() {
21631
      return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);
21632
    }
21633
 
21634
    public void setBeginIndexIsSet(boolean value) {
21635
      __isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);
21636
    }
21637
 
21638
    public long getTotalItems() {
21639
      return this.totalItems;
21640
    }
21641
 
21642
    public void setTotalItems(long totalItems) {
21643
      this.totalItems = totalItems;
21644
      setTotalItemsIsSet(true);
21645
    }
21646
 
21647
    public void unsetTotalItems() {
21648
      __isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);
21649
    }
21650
 
21651
    /** Returns true if field totalItems is set (has been assigned a value) and false otherwise */
21652
    public boolean isSetTotalItems() {
21653
      return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);
21654
    }
21655
 
21656
    public void setTotalItemsIsSet(boolean value) {
21657
      __isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);
21658
    }
21659
 
21660
    public String getBrand() {
21661
      return this.brand;
21662
    }
21663
 
21664
    public void setBrand(String brand) {
21665
      this.brand = brand;
21666
    }
21667
 
21668
    public void unsetBrand() {
21669
      this.brand = null;
21670
    }
21671
 
21672
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
21673
    public boolean isSetBrand() {
21674
      return this.brand != null;
21675
    }
21676
 
21677
    public void setBrandIsSet(boolean value) {
21678
      if (!value) {
21679
        this.brand = null;
21680
      }
21681
    }
21682
 
21683
    public long getCategory() {
21684
      return this.category;
21685
    }
21686
 
21687
    public void setCategory(long category) {
21688
      this.category = category;
21689
      setCategoryIsSet(true);
21690
    }
21691
 
21692
    public void unsetCategory() {
21693
      __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
21694
    }
21695
 
21696
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
21697
    public boolean isSetCategory() {
21698
      return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
21699
    }
21700
 
21701
    public void setCategoryIsSet(boolean value) {
21702
      __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
21703
    }
21704
 
21705
    public void setFieldValue(_Fields field, Object value) {
21706
      switch (field) {
21707
      case BEGIN_INDEX:
21708
        if (value == null) {
21709
          unsetBeginIndex();
21710
        } else {
21711
          setBeginIndex((Long)value);
21712
        }
21713
        break;
21714
 
21715
      case TOTAL_ITEMS:
21716
        if (value == null) {
21717
          unsetTotalItems();
21718
        } else {
21719
          setTotalItems((Long)value);
21720
        }
21721
        break;
21722
 
21723
      case BRAND:
21724
        if (value == null) {
21725
          unsetBrand();
21726
        } else {
21727
          setBrand((String)value);
21728
        }
21729
        break;
21730
 
21731
      case CATEGORY:
21732
        if (value == null) {
21733
          unsetCategory();
21734
        } else {
21735
          setCategory((Long)value);
21736
        }
21737
        break;
21738
 
21739
      }
21740
    }
21741
 
21742
    public Object getFieldValue(_Fields field) {
21743
      switch (field) {
21744
      case BEGIN_INDEX:
21745
        return Long.valueOf(getBeginIndex());
21746
 
21747
      case TOTAL_ITEMS:
21748
        return Long.valueOf(getTotalItems());
21749
 
21750
      case BRAND:
21751
        return getBrand();
21752
 
21753
      case CATEGORY:
21754
        return Long.valueOf(getCategory());
21755
 
21756
      }
21757
      throw new IllegalStateException();
21758
    }
21759
 
21760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21761
    public boolean isSet(_Fields field) {
21762
      if (field == null) {
21763
        throw new IllegalArgumentException();
21764
      }
21765
 
21766
      switch (field) {
21767
      case BEGIN_INDEX:
21768
        return isSetBeginIndex();
21769
      case TOTAL_ITEMS:
21770
        return isSetTotalItems();
21771
      case BRAND:
21772
        return isSetBrand();
21773
      case CATEGORY:
21774
        return isSetCategory();
21775
      }
21776
      throw new IllegalStateException();
21777
    }
21778
 
21779
    @Override
21780
    public boolean equals(Object that) {
21781
      if (that == null)
21782
        return false;
21783
      if (that instanceof getBestDealsCatalogIds_args)
21784
        return this.equals((getBestDealsCatalogIds_args)that);
21785
      return false;
21786
    }
21787
 
21788
    public boolean equals(getBestDealsCatalogIds_args that) {
21789
      if (that == null)
21790
        return false;
21791
 
21792
      boolean this_present_beginIndex = true;
21793
      boolean that_present_beginIndex = true;
21794
      if (this_present_beginIndex || that_present_beginIndex) {
21795
        if (!(this_present_beginIndex && that_present_beginIndex))
21796
          return false;
21797
        if (this.beginIndex != that.beginIndex)
21798
          return false;
21799
      }
21800
 
21801
      boolean this_present_totalItems = true;
21802
      boolean that_present_totalItems = true;
21803
      if (this_present_totalItems || that_present_totalItems) {
21804
        if (!(this_present_totalItems && that_present_totalItems))
21805
          return false;
21806
        if (this.totalItems != that.totalItems)
21807
          return false;
21808
      }
21809
 
21810
      boolean this_present_brand = true && this.isSetBrand();
21811
      boolean that_present_brand = true && that.isSetBrand();
21812
      if (this_present_brand || that_present_brand) {
21813
        if (!(this_present_brand && that_present_brand))
21814
          return false;
21815
        if (!this.brand.equals(that.brand))
21816
          return false;
21817
      }
21818
 
21819
      boolean this_present_category = true;
21820
      boolean that_present_category = true;
21821
      if (this_present_category || that_present_category) {
21822
        if (!(this_present_category && that_present_category))
21823
          return false;
21824
        if (this.category != that.category)
21825
          return false;
21826
      }
21827
 
21828
      return true;
21829
    }
21830
 
21831
    @Override
21832
    public int hashCode() {
21833
      return 0;
21834
    }
21835
 
21836
    public int compareTo(getBestDealsCatalogIds_args other) {
21837
      if (!getClass().equals(other.getClass())) {
21838
        return getClass().getName().compareTo(other.getClass().getName());
21839
      }
21840
 
21841
      int lastComparison = 0;
21842
      getBestDealsCatalogIds_args typedOther = (getBestDealsCatalogIds_args)other;
21843
 
21844
      lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());
21845
      if (lastComparison != 0) {
21846
        return lastComparison;
21847
      }
21848
      if (isSetBeginIndex()) {
21849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);
21850
        if (lastComparison != 0) {
21851
          return lastComparison;
21852
        }
21853
      }
21854
      lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());
21855
      if (lastComparison != 0) {
21856
        return lastComparison;
21857
      }
21858
      if (isSetTotalItems()) {
21859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);
21860
        if (lastComparison != 0) {
21861
          return lastComparison;
21862
        }
21863
      }
21864
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
21865
      if (lastComparison != 0) {
21866
        return lastComparison;
21867
      }
21868
      if (isSetBrand()) {
21869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
21870
        if (lastComparison != 0) {
21871
          return lastComparison;
21872
        }
21873
      }
21874
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
21875
      if (lastComparison != 0) {
21876
        return lastComparison;
21877
      }
21878
      if (isSetCategory()) {
21879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
21880
        if (lastComparison != 0) {
21881
          return lastComparison;
21882
        }
21883
      }
21884
      return 0;
21885
    }
21886
 
21887
    public _Fields fieldForId(int fieldId) {
21888
      return _Fields.findByThriftId(fieldId);
21889
    }
21890
 
21891
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21892
      org.apache.thrift.protocol.TField field;
21893
      iprot.readStructBegin();
21894
      while (true)
21895
      {
21896
        field = iprot.readFieldBegin();
21897
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21898
          break;
21899
        }
21900
        switch (field.id) {
21901
          case 1: // BEGIN_INDEX
21902
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21903
              this.beginIndex = iprot.readI64();
21904
              setBeginIndexIsSet(true);
21905
            } else { 
21906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21907
            }
21908
            break;
21909
          case 2: // TOTAL_ITEMS
21910
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21911
              this.totalItems = iprot.readI64();
21912
              setTotalItemsIsSet(true);
21913
            } else { 
21914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21915
            }
21916
            break;
21917
          case 3: // BRAND
21918
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21919
              this.brand = iprot.readString();
21920
            } else { 
21921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21922
            }
21923
            break;
21924
          case 4: // CATEGORY
21925
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21926
              this.category = iprot.readI64();
21927
              setCategoryIsSet(true);
21928
            } else { 
21929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21930
            }
21931
            break;
21932
          default:
21933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21934
        }
21935
        iprot.readFieldEnd();
21936
      }
21937
      iprot.readStructEnd();
21938
      validate();
21939
    }
21940
 
21941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21942
      validate();
21943
 
21944
      oprot.writeStructBegin(STRUCT_DESC);
21945
      oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);
21946
      oprot.writeI64(this.beginIndex);
21947
      oprot.writeFieldEnd();
21948
      oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);
21949
      oprot.writeI64(this.totalItems);
21950
      oprot.writeFieldEnd();
21951
      if (this.brand != null) {
21952
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
21953
        oprot.writeString(this.brand);
21954
        oprot.writeFieldEnd();
21955
      }
21956
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
21957
      oprot.writeI64(this.category);
21958
      oprot.writeFieldEnd();
21959
      oprot.writeFieldStop();
21960
      oprot.writeStructEnd();
21961
    }
21962
 
21963
    @Override
21964
    public String toString() {
21965
      StringBuilder sb = new StringBuilder("getBestDealsCatalogIds_args(");
21966
      boolean first = true;
21967
 
21968
      sb.append("beginIndex:");
21969
      sb.append(this.beginIndex);
21970
      first = false;
21971
      if (!first) sb.append(", ");
21972
      sb.append("totalItems:");
21973
      sb.append(this.totalItems);
21974
      first = false;
21975
      if (!first) sb.append(", ");
21976
      sb.append("brand:");
21977
      if (this.brand == null) {
21978
        sb.append("null");
21979
      } else {
21980
        sb.append(this.brand);
21981
      }
21982
      first = false;
21983
      if (!first) sb.append(", ");
21984
      sb.append("category:");
21985
      sb.append(this.category);
21986
      first = false;
21987
      sb.append(")");
21988
      return sb.toString();
21989
    }
21990
 
21991
    public void validate() throws org.apache.thrift.TException {
21992
      // check for required fields
21993
    }
21994
 
21995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21996
      try {
21997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21998
      } catch (org.apache.thrift.TException te) {
21999
        throw new java.io.IOException(te);
22000
      }
22001
    }
22002
 
22003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22004
      try {
22005
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22006
        __isset_bit_vector = new BitSet(1);
22007
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22008
      } catch (org.apache.thrift.TException te) {
22009
        throw new java.io.IOException(te);
22010
      }
22011
    }
22012
 
22013
  }
22014
 
22015
  public static class getBestDealsCatalogIds_result implements org.apache.thrift.TBase<getBestDealsCatalogIds_result, getBestDealsCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
22016
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCatalogIds_result");
22017
 
22018
    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);
22019
    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);
22020
 
22021
    private List<Long> success; // required
22022
    private CatalogServiceException cex; // required
22023
 
22024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22026
      SUCCESS((short)0, "success"),
22027
      CEX((short)1, "cex");
22028
 
22029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22030
 
22031
      static {
22032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22033
          byName.put(field.getFieldName(), field);
22034
        }
22035
      }
22036
 
22037
      /**
22038
       * Find the _Fields constant that matches fieldId, or null if its not found.
22039
       */
22040
      public static _Fields findByThriftId(int fieldId) {
22041
        switch(fieldId) {
22042
          case 0: // SUCCESS
22043
            return SUCCESS;
22044
          case 1: // CEX
22045
            return CEX;
22046
          default:
22047
            return null;
22048
        }
22049
      }
22050
 
22051
      /**
22052
       * Find the _Fields constant that matches fieldId, throwing an exception
22053
       * if it is not found.
22054
       */
22055
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22056
        _Fields fields = findByThriftId(fieldId);
22057
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22058
        return fields;
22059
      }
22060
 
22061
      /**
22062
       * Find the _Fields constant that matches name, or null if its not found.
22063
       */
22064
      public static _Fields findByName(String name) {
22065
        return byName.get(name);
22066
      }
22067
 
22068
      private final short _thriftId;
22069
      private final String _fieldName;
22070
 
22071
      _Fields(short thriftId, String fieldName) {
22072
        _thriftId = thriftId;
22073
        _fieldName = fieldName;
22074
      }
22075
 
22076
      public short getThriftFieldId() {
22077
        return _thriftId;
22078
      }
22079
 
22080
      public String getFieldName() {
22081
        return _fieldName;
22082
      }
22083
    }
22084
 
22085
    // isset id assignments
22086
 
22087
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22088
    static {
22089
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22090
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22091
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22092
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
22093
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCatalogIds_result.class, metaDataMap);
22097
    }
22098
 
22099
    public getBestDealsCatalogIds_result() {
22100
    }
22101
 
22102
    public getBestDealsCatalogIds_result(
22103
      List<Long> success,
22104
      CatalogServiceException cex)
22105
    {
22106
      this();
22107
      this.success = success;
22108
      this.cex = cex;
22109
    }
22110
 
22111
    /**
22112
     * Performs a deep copy on <i>other</i>.
22113
     */
22114
    public getBestDealsCatalogIds_result(getBestDealsCatalogIds_result other) {
22115
      if (other.isSetSuccess()) {
22116
        List<Long> __this__success = new ArrayList<Long>();
22117
        for (Long other_element : other.success) {
22118
          __this__success.add(other_element);
22119
        }
22120
        this.success = __this__success;
22121
      }
22122
      if (other.isSetCex()) {
22123
        this.cex = new CatalogServiceException(other.cex);
22124
      }
22125
    }
22126
 
22127
    public getBestDealsCatalogIds_result deepCopy() {
22128
      return new getBestDealsCatalogIds_result(this);
22129
    }
22130
 
22131
    @Override
22132
    public void clear() {
22133
      this.success = null;
22134
      this.cex = null;
22135
    }
22136
 
22137
    public int getSuccessSize() {
22138
      return (this.success == null) ? 0 : this.success.size();
22139
    }
22140
 
22141
    public java.util.Iterator<Long> getSuccessIterator() {
22142
      return (this.success == null) ? null : this.success.iterator();
22143
    }
22144
 
22145
    public void addToSuccess(long elem) {
22146
      if (this.success == null) {
22147
        this.success = new ArrayList<Long>();
22148
      }
22149
      this.success.add(elem);
22150
    }
22151
 
22152
    public List<Long> getSuccess() {
22153
      return this.success;
22154
    }
22155
 
22156
    public void setSuccess(List<Long> success) {
22157
      this.success = success;
22158
    }
22159
 
22160
    public void unsetSuccess() {
22161
      this.success = null;
22162
    }
22163
 
22164
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22165
    public boolean isSetSuccess() {
22166
      return this.success != null;
22167
    }
22168
 
22169
    public void setSuccessIsSet(boolean value) {
22170
      if (!value) {
22171
        this.success = null;
22172
      }
22173
    }
22174
 
22175
    public CatalogServiceException getCex() {
22176
      return this.cex;
22177
    }
22178
 
22179
    public void setCex(CatalogServiceException cex) {
22180
      this.cex = cex;
22181
    }
22182
 
22183
    public void unsetCex() {
22184
      this.cex = null;
22185
    }
22186
 
22187
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22188
    public boolean isSetCex() {
22189
      return this.cex != null;
22190
    }
22191
 
22192
    public void setCexIsSet(boolean value) {
22193
      if (!value) {
22194
        this.cex = null;
22195
      }
22196
    }
22197
 
22198
    public void setFieldValue(_Fields field, Object value) {
22199
      switch (field) {
22200
      case SUCCESS:
22201
        if (value == null) {
22202
          unsetSuccess();
22203
        } else {
22204
          setSuccess((List<Long>)value);
22205
        }
22206
        break;
22207
 
22208
      case CEX:
22209
        if (value == null) {
22210
          unsetCex();
22211
        } else {
22212
          setCex((CatalogServiceException)value);
22213
        }
22214
        break;
22215
 
22216
      }
22217
    }
22218
 
22219
    public Object getFieldValue(_Fields field) {
22220
      switch (field) {
22221
      case SUCCESS:
22222
        return getSuccess();
22223
 
22224
      case CEX:
22225
        return getCex();
22226
 
22227
      }
22228
      throw new IllegalStateException();
22229
    }
22230
 
22231
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22232
    public boolean isSet(_Fields field) {
22233
      if (field == null) {
22234
        throw new IllegalArgumentException();
22235
      }
22236
 
22237
      switch (field) {
22238
      case SUCCESS:
22239
        return isSetSuccess();
22240
      case CEX:
22241
        return isSetCex();
22242
      }
22243
      throw new IllegalStateException();
22244
    }
22245
 
22246
    @Override
22247
    public boolean equals(Object that) {
22248
      if (that == null)
22249
        return false;
22250
      if (that instanceof getBestDealsCatalogIds_result)
22251
        return this.equals((getBestDealsCatalogIds_result)that);
22252
      return false;
22253
    }
22254
 
22255
    public boolean equals(getBestDealsCatalogIds_result that) {
22256
      if (that == null)
22257
        return false;
22258
 
22259
      boolean this_present_success = true && this.isSetSuccess();
22260
      boolean that_present_success = true && that.isSetSuccess();
22261
      if (this_present_success || that_present_success) {
22262
        if (!(this_present_success && that_present_success))
22263
          return false;
22264
        if (!this.success.equals(that.success))
22265
          return false;
22266
      }
22267
 
22268
      boolean this_present_cex = true && this.isSetCex();
22269
      boolean that_present_cex = true && that.isSetCex();
22270
      if (this_present_cex || that_present_cex) {
22271
        if (!(this_present_cex && that_present_cex))
22272
          return false;
22273
        if (!this.cex.equals(that.cex))
22274
          return false;
22275
      }
22276
 
22277
      return true;
22278
    }
22279
 
22280
    @Override
22281
    public int hashCode() {
22282
      return 0;
22283
    }
22284
 
22285
    public int compareTo(getBestDealsCatalogIds_result other) {
22286
      if (!getClass().equals(other.getClass())) {
22287
        return getClass().getName().compareTo(other.getClass().getName());
22288
      }
22289
 
22290
      int lastComparison = 0;
22291
      getBestDealsCatalogIds_result typedOther = (getBestDealsCatalogIds_result)other;
22292
 
22293
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22294
      if (lastComparison != 0) {
22295
        return lastComparison;
22296
      }
22297
      if (isSetSuccess()) {
22298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22299
        if (lastComparison != 0) {
22300
          return lastComparison;
22301
        }
22302
      }
22303
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22304
      if (lastComparison != 0) {
22305
        return lastComparison;
22306
      }
22307
      if (isSetCex()) {
22308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22309
        if (lastComparison != 0) {
22310
          return lastComparison;
22311
        }
22312
      }
22313
      return 0;
22314
    }
22315
 
22316
    public _Fields fieldForId(int fieldId) {
22317
      return _Fields.findByThriftId(fieldId);
22318
    }
22319
 
22320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22321
      org.apache.thrift.protocol.TField field;
22322
      iprot.readStructBegin();
22323
      while (true)
22324
      {
22325
        field = iprot.readFieldBegin();
22326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22327
          break;
22328
        }
22329
        switch (field.id) {
22330
          case 0: // SUCCESS
22331
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22332
              {
22333
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
22334
                this.success = new ArrayList<Long>(_list45.size);
22335
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
22336
                {
22337
                  long _elem47; // required
22338
                  _elem47 = iprot.readI64();
22339
                  this.success.add(_elem47);
22340
                }
22341
                iprot.readListEnd();
22342
              }
22343
            } else { 
22344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22345
            }
22346
            break;
22347
          case 1: // CEX
22348
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22349
              this.cex = new CatalogServiceException();
22350
              this.cex.read(iprot);
22351
            } else { 
22352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22353
            }
22354
            break;
22355
          default:
22356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22357
        }
22358
        iprot.readFieldEnd();
22359
      }
22360
      iprot.readStructEnd();
22361
      validate();
22362
    }
22363
 
22364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22365
      oprot.writeStructBegin(STRUCT_DESC);
22366
 
22367
      if (this.isSetSuccess()) {
22368
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22369
        {
22370
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
22371
          for (long _iter48 : this.success)
22372
          {
22373
            oprot.writeI64(_iter48);
22374
          }
22375
          oprot.writeListEnd();
22376
        }
22377
        oprot.writeFieldEnd();
22378
      } else if (this.isSetCex()) {
22379
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22380
        this.cex.write(oprot);
22381
        oprot.writeFieldEnd();
22382
      }
22383
      oprot.writeFieldStop();
22384
      oprot.writeStructEnd();
22385
    }
22386
 
22387
    @Override
22388
    public String toString() {
22389
      StringBuilder sb = new StringBuilder("getBestDealsCatalogIds_result(");
22390
      boolean first = true;
22391
 
22392
      sb.append("success:");
22393
      if (this.success == null) {
22394
        sb.append("null");
22395
      } else {
22396
        sb.append(this.success);
22397
      }
22398
      first = false;
22399
      if (!first) sb.append(", ");
22400
      sb.append("cex:");
22401
      if (this.cex == null) {
22402
        sb.append("null");
22403
      } else {
22404
        sb.append(this.cex);
22405
      }
22406
      first = false;
22407
      sb.append(")");
22408
      return sb.toString();
22409
    }
22410
 
22411
    public void validate() throws org.apache.thrift.TException {
22412
      // check for required fields
22413
    }
22414
 
22415
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22416
      try {
22417
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22418
      } catch (org.apache.thrift.TException te) {
22419
        throw new java.io.IOException(te);
22420
      }
22421
    }
22422
 
22423
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22424
      try {
22425
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22426
      } catch (org.apache.thrift.TException te) {
22427
        throw new java.io.IOException(te);
22428
      }
22429
    }
22430
 
22431
  }
22432
 
22433
  public static class getBestDealsCount_args implements org.apache.thrift.TBase<getBestDealsCount_args, getBestDealsCount_args._Fields>, java.io.Serializable, Cloneable   {
22434
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCount_args");
22435
 
22436
 
22437
 
22438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22440
;
22441
 
22442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22443
 
22444
      static {
22445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22446
          byName.put(field.getFieldName(), field);
22447
        }
22448
      }
22449
 
22450
      /**
22451
       * Find the _Fields constant that matches fieldId, or null if its not found.
22452
       */
22453
      public static _Fields findByThriftId(int fieldId) {
22454
        switch(fieldId) {
22455
          default:
22456
            return null;
22457
        }
22458
      }
22459
 
22460
      /**
22461
       * Find the _Fields constant that matches fieldId, throwing an exception
22462
       * if it is not found.
22463
       */
22464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22465
        _Fields fields = findByThriftId(fieldId);
22466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22467
        return fields;
22468
      }
22469
 
22470
      /**
22471
       * Find the _Fields constant that matches name, or null if its not found.
22472
       */
22473
      public static _Fields findByName(String name) {
22474
        return byName.get(name);
22475
      }
22476
 
22477
      private final short _thriftId;
22478
      private final String _fieldName;
22479
 
22480
      _Fields(short thriftId, String fieldName) {
22481
        _thriftId = thriftId;
22482
        _fieldName = fieldName;
22483
      }
22484
 
22485
      public short getThriftFieldId() {
22486
        return _thriftId;
22487
      }
22488
 
22489
      public String getFieldName() {
22490
        return _fieldName;
22491
      }
22492
    }
22493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22494
    static {
22495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCount_args.class, metaDataMap);
22498
    }
22499
 
22500
    public getBestDealsCount_args() {
22501
    }
22502
 
22503
    /**
22504
     * Performs a deep copy on <i>other</i>.
22505
     */
22506
    public getBestDealsCount_args(getBestDealsCount_args other) {
22507
    }
22508
 
22509
    public getBestDealsCount_args deepCopy() {
22510
      return new getBestDealsCount_args(this);
22511
    }
22512
 
22513
    @Override
22514
    public void clear() {
22515
    }
22516
 
22517
    public void setFieldValue(_Fields field, Object value) {
22518
      switch (field) {
22519
      }
22520
    }
22521
 
22522
    public Object getFieldValue(_Fields field) {
22523
      switch (field) {
22524
      }
22525
      throw new IllegalStateException();
22526
    }
22527
 
22528
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22529
    public boolean isSet(_Fields field) {
22530
      if (field == null) {
22531
        throw new IllegalArgumentException();
22532
      }
22533
 
22534
      switch (field) {
22535
      }
22536
      throw new IllegalStateException();
22537
    }
22538
 
22539
    @Override
22540
    public boolean equals(Object that) {
22541
      if (that == null)
22542
        return false;
22543
      if (that instanceof getBestDealsCount_args)
22544
        return this.equals((getBestDealsCount_args)that);
22545
      return false;
22546
    }
22547
 
22548
    public boolean equals(getBestDealsCount_args that) {
22549
      if (that == null)
22550
        return false;
22551
 
22552
      return true;
22553
    }
22554
 
22555
    @Override
22556
    public int hashCode() {
22557
      return 0;
22558
    }
22559
 
22560
    public int compareTo(getBestDealsCount_args other) {
22561
      if (!getClass().equals(other.getClass())) {
22562
        return getClass().getName().compareTo(other.getClass().getName());
22563
      }
22564
 
22565
      int lastComparison = 0;
22566
      getBestDealsCount_args typedOther = (getBestDealsCount_args)other;
22567
 
22568
      return 0;
22569
    }
22570
 
22571
    public _Fields fieldForId(int fieldId) {
22572
      return _Fields.findByThriftId(fieldId);
22573
    }
22574
 
22575
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22576
      org.apache.thrift.protocol.TField field;
22577
      iprot.readStructBegin();
22578
      while (true)
22579
      {
22580
        field = iprot.readFieldBegin();
22581
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22582
          break;
22583
        }
22584
        switch (field.id) {
22585
          default:
22586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22587
        }
22588
        iprot.readFieldEnd();
22589
      }
22590
      iprot.readStructEnd();
22591
      validate();
22592
    }
22593
 
22594
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22595
      validate();
22596
 
22597
      oprot.writeStructBegin(STRUCT_DESC);
22598
      oprot.writeFieldStop();
22599
      oprot.writeStructEnd();
22600
    }
22601
 
22602
    @Override
22603
    public String toString() {
22604
      StringBuilder sb = new StringBuilder("getBestDealsCount_args(");
22605
      boolean first = true;
22606
 
22607
      sb.append(")");
22608
      return sb.toString();
22609
    }
22610
 
22611
    public void validate() throws org.apache.thrift.TException {
22612
      // check for required fields
22613
    }
22614
 
22615
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22616
      try {
22617
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22618
      } catch (org.apache.thrift.TException te) {
22619
        throw new java.io.IOException(te);
22620
      }
22621
    }
22622
 
22623
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22624
      try {
22625
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22626
      } catch (org.apache.thrift.TException te) {
22627
        throw new java.io.IOException(te);
22628
      }
22629
    }
22630
 
22631
  }
22632
 
22633
  public static class getBestDealsCount_result implements org.apache.thrift.TBase<getBestDealsCount_result, getBestDealsCount_result._Fields>, java.io.Serializable, Cloneable   {
22634
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCount_result");
22635
 
22636
    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);
22637
    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);
22638
 
22639
    private long success; // required
22640
    private CatalogServiceException cex; // required
22641
 
22642
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22643
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22644
      SUCCESS((short)0, "success"),
22645
      CEX((short)1, "cex");
22646
 
22647
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22648
 
22649
      static {
22650
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22651
          byName.put(field.getFieldName(), field);
22652
        }
22653
      }
22654
 
22655
      /**
22656
       * Find the _Fields constant that matches fieldId, or null if its not found.
22657
       */
22658
      public static _Fields findByThriftId(int fieldId) {
22659
        switch(fieldId) {
22660
          case 0: // SUCCESS
22661
            return SUCCESS;
22662
          case 1: // CEX
22663
            return CEX;
22664
          default:
22665
            return null;
22666
        }
22667
      }
22668
 
22669
      /**
22670
       * Find the _Fields constant that matches fieldId, throwing an exception
22671
       * if it is not found.
22672
       */
22673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22674
        _Fields fields = findByThriftId(fieldId);
22675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22676
        return fields;
22677
      }
22678
 
22679
      /**
22680
       * Find the _Fields constant that matches name, or null if its not found.
22681
       */
22682
      public static _Fields findByName(String name) {
22683
        return byName.get(name);
22684
      }
22685
 
22686
      private final short _thriftId;
22687
      private final String _fieldName;
22688
 
22689
      _Fields(short thriftId, String fieldName) {
22690
        _thriftId = thriftId;
22691
        _fieldName = fieldName;
22692
      }
22693
 
22694
      public short getThriftFieldId() {
22695
        return _thriftId;
22696
      }
22697
 
22698
      public String getFieldName() {
22699
        return _fieldName;
22700
      }
22701
    }
22702
 
22703
    // isset id assignments
22704
    private static final int __SUCCESS_ISSET_ID = 0;
22705
    private BitSet __isset_bit_vector = new BitSet(1);
22706
 
22707
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22708
    static {
22709
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22710
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22711
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22712
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCount_result.class, metaDataMap);
22716
    }
22717
 
22718
    public getBestDealsCount_result() {
22719
    }
22720
 
22721
    public getBestDealsCount_result(
22722
      long success,
22723
      CatalogServiceException cex)
22724
    {
22725
      this();
22726
      this.success = success;
22727
      setSuccessIsSet(true);
22728
      this.cex = cex;
22729
    }
22730
 
22731
    /**
22732
     * Performs a deep copy on <i>other</i>.
22733
     */
22734
    public getBestDealsCount_result(getBestDealsCount_result other) {
22735
      __isset_bit_vector.clear();
22736
      __isset_bit_vector.or(other.__isset_bit_vector);
22737
      this.success = other.success;
22738
      if (other.isSetCex()) {
22739
        this.cex = new CatalogServiceException(other.cex);
22740
      }
22741
    }
22742
 
22743
    public getBestDealsCount_result deepCopy() {
22744
      return new getBestDealsCount_result(this);
22745
    }
22746
 
22747
    @Override
22748
    public void clear() {
22749
      setSuccessIsSet(false);
22750
      this.success = 0;
22751
      this.cex = null;
22752
    }
22753
 
22754
    public long getSuccess() {
22755
      return this.success;
22756
    }
22757
 
22758
    public void setSuccess(long success) {
22759
      this.success = success;
22760
      setSuccessIsSet(true);
22761
    }
22762
 
22763
    public void unsetSuccess() {
22764
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
22765
    }
22766
 
22767
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22768
    public boolean isSetSuccess() {
22769
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
22770
    }
22771
 
22772
    public void setSuccessIsSet(boolean value) {
22773
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
22774
    }
22775
 
22776
    public CatalogServiceException getCex() {
22777
      return this.cex;
22778
    }
22779
 
22780
    public void setCex(CatalogServiceException cex) {
22781
      this.cex = cex;
22782
    }
22783
 
22784
    public void unsetCex() {
22785
      this.cex = null;
22786
    }
22787
 
22788
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
22789
    public boolean isSetCex() {
22790
      return this.cex != null;
22791
    }
22792
 
22793
    public void setCexIsSet(boolean value) {
22794
      if (!value) {
22795
        this.cex = null;
22796
      }
22797
    }
22798
 
22799
    public void setFieldValue(_Fields field, Object value) {
22800
      switch (field) {
22801
      case SUCCESS:
22802
        if (value == null) {
22803
          unsetSuccess();
22804
        } else {
22805
          setSuccess((Long)value);
22806
        }
22807
        break;
22808
 
22809
      case CEX:
22810
        if (value == null) {
22811
          unsetCex();
22812
        } else {
22813
          setCex((CatalogServiceException)value);
22814
        }
22815
        break;
22816
 
22817
      }
22818
    }
22819
 
22820
    public Object getFieldValue(_Fields field) {
22821
      switch (field) {
22822
      case SUCCESS:
22823
        return Long.valueOf(getSuccess());
22824
 
22825
      case CEX:
22826
        return getCex();
22827
 
22828
      }
22829
      throw new IllegalStateException();
22830
    }
22831
 
22832
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22833
    public boolean isSet(_Fields field) {
22834
      if (field == null) {
22835
        throw new IllegalArgumentException();
22836
      }
22837
 
22838
      switch (field) {
22839
      case SUCCESS:
22840
        return isSetSuccess();
22841
      case CEX:
22842
        return isSetCex();
22843
      }
22844
      throw new IllegalStateException();
22845
    }
22846
 
22847
    @Override
22848
    public boolean equals(Object that) {
22849
      if (that == null)
22850
        return false;
22851
      if (that instanceof getBestDealsCount_result)
22852
        return this.equals((getBestDealsCount_result)that);
22853
      return false;
22854
    }
22855
 
22856
    public boolean equals(getBestDealsCount_result that) {
22857
      if (that == null)
22858
        return false;
22859
 
22860
      boolean this_present_success = true;
22861
      boolean that_present_success = true;
22862
      if (this_present_success || that_present_success) {
22863
        if (!(this_present_success && that_present_success))
22864
          return false;
22865
        if (this.success != that.success)
22866
          return false;
22867
      }
22868
 
22869
      boolean this_present_cex = true && this.isSetCex();
22870
      boolean that_present_cex = true && that.isSetCex();
22871
      if (this_present_cex || that_present_cex) {
22872
        if (!(this_present_cex && that_present_cex))
22873
          return false;
22874
        if (!this.cex.equals(that.cex))
22875
          return false;
22876
      }
22877
 
22878
      return true;
22879
    }
22880
 
22881
    @Override
22882
    public int hashCode() {
22883
      return 0;
22884
    }
22885
 
22886
    public int compareTo(getBestDealsCount_result other) {
22887
      if (!getClass().equals(other.getClass())) {
22888
        return getClass().getName().compareTo(other.getClass().getName());
22889
      }
22890
 
22891
      int lastComparison = 0;
22892
      getBestDealsCount_result typedOther = (getBestDealsCount_result)other;
22893
 
22894
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22895
      if (lastComparison != 0) {
22896
        return lastComparison;
22897
      }
22898
      if (isSetSuccess()) {
22899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22900
        if (lastComparison != 0) {
22901
          return lastComparison;
22902
        }
22903
      }
22904
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
22905
      if (lastComparison != 0) {
22906
        return lastComparison;
22907
      }
22908
      if (isSetCex()) {
22909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
22910
        if (lastComparison != 0) {
22911
          return lastComparison;
22912
        }
22913
      }
22914
      return 0;
22915
    }
22916
 
22917
    public _Fields fieldForId(int fieldId) {
22918
      return _Fields.findByThriftId(fieldId);
22919
    }
22920
 
22921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22922
      org.apache.thrift.protocol.TField field;
22923
      iprot.readStructBegin();
22924
      while (true)
22925
      {
22926
        field = iprot.readFieldBegin();
22927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22928
          break;
22929
        }
22930
        switch (field.id) {
22931
          case 0: // SUCCESS
22932
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22933
              this.success = iprot.readI64();
22934
              setSuccessIsSet(true);
22935
            } else { 
22936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22937
            }
22938
            break;
22939
          case 1: // CEX
22940
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22941
              this.cex = new CatalogServiceException();
22942
              this.cex.read(iprot);
22943
            } else { 
22944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22945
            }
22946
            break;
22947
          default:
22948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22949
        }
22950
        iprot.readFieldEnd();
22951
      }
22952
      iprot.readStructEnd();
22953
      validate();
22954
    }
22955
 
22956
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22957
      oprot.writeStructBegin(STRUCT_DESC);
22958
 
22959
      if (this.isSetSuccess()) {
22960
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22961
        oprot.writeI64(this.success);
22962
        oprot.writeFieldEnd();
22963
      } else if (this.isSetCex()) {
22964
        oprot.writeFieldBegin(CEX_FIELD_DESC);
22965
        this.cex.write(oprot);
22966
        oprot.writeFieldEnd();
22967
      }
22968
      oprot.writeFieldStop();
22969
      oprot.writeStructEnd();
22970
    }
22971
 
22972
    @Override
22973
    public String toString() {
22974
      StringBuilder sb = new StringBuilder("getBestDealsCount_result(");
22975
      boolean first = true;
22976
 
22977
      sb.append("success:");
22978
      sb.append(this.success);
22979
      first = false;
22980
      if (!first) sb.append(", ");
22981
      sb.append("cex:");
22982
      if (this.cex == null) {
22983
        sb.append("null");
22984
      } else {
22985
        sb.append(this.cex);
22986
      }
22987
      first = false;
22988
      sb.append(")");
22989
      return sb.toString();
22990
    }
22991
 
22992
    public void validate() throws org.apache.thrift.TException {
22993
      // check for required fields
22994
    }
22995
 
22996
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22997
      try {
22998
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22999
      } catch (org.apache.thrift.TException te) {
23000
        throw new java.io.IOException(te);
23001
      }
23002
    }
23003
 
23004
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23005
      try {
23006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23007
      } catch (org.apache.thrift.TException te) {
23008
        throw new java.io.IOException(te);
23009
      }
23010
    }
23011
 
23012
  }
23013
 
23014
  public static class getComingSoon_args implements org.apache.thrift.TBase<getComingSoon_args, getComingSoon_args._Fields>, java.io.Serializable, Cloneable   {
23015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoon_args");
23016
 
23017
 
23018
 
23019
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23020
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23021
;
23022
 
23023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23024
 
23025
      static {
23026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23027
          byName.put(field.getFieldName(), field);
23028
        }
23029
      }
23030
 
23031
      /**
23032
       * Find the _Fields constant that matches fieldId, or null if its not found.
23033
       */
23034
      public static _Fields findByThriftId(int fieldId) {
23035
        switch(fieldId) {
23036
          default:
23037
            return null;
23038
        }
23039
      }
23040
 
23041
      /**
23042
       * Find the _Fields constant that matches fieldId, throwing an exception
23043
       * if it is not found.
23044
       */
23045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23046
        _Fields fields = findByThriftId(fieldId);
23047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23048
        return fields;
23049
      }
23050
 
23051
      /**
23052
       * Find the _Fields constant that matches name, or null if its not found.
23053
       */
23054
      public static _Fields findByName(String name) {
23055
        return byName.get(name);
23056
      }
23057
 
23058
      private final short _thriftId;
23059
      private final String _fieldName;
23060
 
23061
      _Fields(short thriftId, String fieldName) {
23062
        _thriftId = thriftId;
23063
        _fieldName = fieldName;
23064
      }
23065
 
23066
      public short getThriftFieldId() {
23067
        return _thriftId;
23068
      }
23069
 
23070
      public String getFieldName() {
23071
        return _fieldName;
23072
      }
23073
    }
23074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23075
    static {
23076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23077
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23078
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoon_args.class, metaDataMap);
23079
    }
23080
 
23081
    public getComingSoon_args() {
23082
    }
23083
 
23084
    /**
23085
     * Performs a deep copy on <i>other</i>.
23086
     */
23087
    public getComingSoon_args(getComingSoon_args other) {
23088
    }
23089
 
23090
    public getComingSoon_args deepCopy() {
23091
      return new getComingSoon_args(this);
23092
    }
23093
 
23094
    @Override
23095
    public void clear() {
23096
    }
23097
 
23098
    public void setFieldValue(_Fields field, Object value) {
23099
      switch (field) {
23100
      }
23101
    }
23102
 
23103
    public Object getFieldValue(_Fields field) {
23104
      switch (field) {
23105
      }
23106
      throw new IllegalStateException();
23107
    }
23108
 
23109
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23110
    public boolean isSet(_Fields field) {
23111
      if (field == null) {
23112
        throw new IllegalArgumentException();
23113
      }
23114
 
23115
      switch (field) {
23116
      }
23117
      throw new IllegalStateException();
23118
    }
23119
 
23120
    @Override
23121
    public boolean equals(Object that) {
23122
      if (that == null)
23123
        return false;
23124
      if (that instanceof getComingSoon_args)
23125
        return this.equals((getComingSoon_args)that);
23126
      return false;
23127
    }
23128
 
23129
    public boolean equals(getComingSoon_args that) {
23130
      if (that == null)
23131
        return false;
23132
 
23133
      return true;
23134
    }
23135
 
23136
    @Override
23137
    public int hashCode() {
23138
      return 0;
23139
    }
23140
 
23141
    public int compareTo(getComingSoon_args other) {
23142
      if (!getClass().equals(other.getClass())) {
23143
        return getClass().getName().compareTo(other.getClass().getName());
23144
      }
23145
 
23146
      int lastComparison = 0;
23147
      getComingSoon_args typedOther = (getComingSoon_args)other;
23148
 
23149
      return 0;
23150
    }
23151
 
23152
    public _Fields fieldForId(int fieldId) {
23153
      return _Fields.findByThriftId(fieldId);
23154
    }
23155
 
23156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23157
      org.apache.thrift.protocol.TField field;
23158
      iprot.readStructBegin();
23159
      while (true)
23160
      {
23161
        field = iprot.readFieldBegin();
23162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23163
          break;
23164
        }
23165
        switch (field.id) {
23166
          default:
23167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23168
        }
23169
        iprot.readFieldEnd();
23170
      }
23171
      iprot.readStructEnd();
23172
      validate();
23173
    }
23174
 
23175
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23176
      validate();
23177
 
23178
      oprot.writeStructBegin(STRUCT_DESC);
23179
      oprot.writeFieldStop();
23180
      oprot.writeStructEnd();
23181
    }
23182
 
23183
    @Override
23184
    public String toString() {
23185
      StringBuilder sb = new StringBuilder("getComingSoon_args(");
23186
      boolean first = true;
23187
 
23188
      sb.append(")");
23189
      return sb.toString();
23190
    }
23191
 
23192
    public void validate() throws org.apache.thrift.TException {
23193
      // check for required fields
23194
    }
23195
 
23196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23197
      try {
23198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23199
      } catch (org.apache.thrift.TException te) {
23200
        throw new java.io.IOException(te);
23201
      }
23202
    }
23203
 
23204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23205
      try {
23206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23207
      } catch (org.apache.thrift.TException te) {
23208
        throw new java.io.IOException(te);
23209
      }
23210
    }
23211
 
23212
  }
23213
 
23214
  public static class getComingSoon_result implements org.apache.thrift.TBase<getComingSoon_result, getComingSoon_result._Fields>, java.io.Serializable, Cloneable   {
23215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoon_result");
23216
 
23217
    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);
23218
    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);
23219
 
23220
    private List<Item> success; // required
23221
    private CatalogServiceException isex; // required
23222
 
23223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23224
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23225
      SUCCESS((short)0, "success"),
23226
      ISEX((short)1, "isex");
23227
 
23228
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23229
 
23230
      static {
23231
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23232
          byName.put(field.getFieldName(), field);
23233
        }
23234
      }
23235
 
23236
      /**
23237
       * Find the _Fields constant that matches fieldId, or null if its not found.
23238
       */
23239
      public static _Fields findByThriftId(int fieldId) {
23240
        switch(fieldId) {
23241
          case 0: // SUCCESS
23242
            return SUCCESS;
23243
          case 1: // ISEX
23244
            return ISEX;
23245
          default:
23246
            return null;
23247
        }
23248
      }
23249
 
23250
      /**
23251
       * Find the _Fields constant that matches fieldId, throwing an exception
23252
       * if it is not found.
23253
       */
23254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23255
        _Fields fields = findByThriftId(fieldId);
23256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23257
        return fields;
23258
      }
23259
 
23260
      /**
23261
       * Find the _Fields constant that matches name, or null if its not found.
23262
       */
23263
      public static _Fields findByName(String name) {
23264
        return byName.get(name);
23265
      }
23266
 
23267
      private final short _thriftId;
23268
      private final String _fieldName;
23269
 
23270
      _Fields(short thriftId, String fieldName) {
23271
        _thriftId = thriftId;
23272
        _fieldName = fieldName;
23273
      }
23274
 
23275
      public short getThriftFieldId() {
23276
        return _thriftId;
23277
      }
23278
 
23279
      public String getFieldName() {
23280
        return _fieldName;
23281
      }
23282
    }
23283
 
23284
    // isset id assignments
23285
 
23286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23287
    static {
23288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23289
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23290
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23291
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
23292
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23293
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoon_result.class, metaDataMap);
23296
    }
23297
 
23298
    public getComingSoon_result() {
23299
    }
23300
 
23301
    public getComingSoon_result(
23302
      List<Item> success,
23303
      CatalogServiceException isex)
23304
    {
23305
      this();
23306
      this.success = success;
23307
      this.isex = isex;
23308
    }
23309
 
23310
    /**
23311
     * Performs a deep copy on <i>other</i>.
23312
     */
23313
    public getComingSoon_result(getComingSoon_result other) {
23314
      if (other.isSetSuccess()) {
23315
        List<Item> __this__success = new ArrayList<Item>();
23316
        for (Item other_element : other.success) {
23317
          __this__success.add(new Item(other_element));
23318
        }
23319
        this.success = __this__success;
23320
      }
23321
      if (other.isSetIsex()) {
23322
        this.isex = new CatalogServiceException(other.isex);
23323
      }
23324
    }
23325
 
23326
    public getComingSoon_result deepCopy() {
23327
      return new getComingSoon_result(this);
23328
    }
23329
 
23330
    @Override
23331
    public void clear() {
23332
      this.success = null;
23333
      this.isex = null;
23334
    }
23335
 
23336
    public int getSuccessSize() {
23337
      return (this.success == null) ? 0 : this.success.size();
23338
    }
23339
 
23340
    public java.util.Iterator<Item> getSuccessIterator() {
23341
      return (this.success == null) ? null : this.success.iterator();
23342
    }
23343
 
23344
    public void addToSuccess(Item elem) {
23345
      if (this.success == null) {
23346
        this.success = new ArrayList<Item>();
23347
      }
23348
      this.success.add(elem);
23349
    }
23350
 
23351
    public List<Item> getSuccess() {
23352
      return this.success;
23353
    }
23354
 
23355
    public void setSuccess(List<Item> success) {
23356
      this.success = success;
23357
    }
23358
 
23359
    public void unsetSuccess() {
23360
      this.success = null;
23361
    }
23362
 
23363
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23364
    public boolean isSetSuccess() {
23365
      return this.success != null;
23366
    }
23367
 
23368
    public void setSuccessIsSet(boolean value) {
23369
      if (!value) {
23370
        this.success = null;
23371
      }
23372
    }
23373
 
23374
    public CatalogServiceException getIsex() {
23375
      return this.isex;
23376
    }
23377
 
23378
    public void setIsex(CatalogServiceException isex) {
23379
      this.isex = isex;
23380
    }
23381
 
23382
    public void unsetIsex() {
23383
      this.isex = null;
23384
    }
23385
 
23386
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
23387
    public boolean isSetIsex() {
23388
      return this.isex != null;
23389
    }
23390
 
23391
    public void setIsexIsSet(boolean value) {
23392
      if (!value) {
23393
        this.isex = null;
23394
      }
23395
    }
23396
 
23397
    public void setFieldValue(_Fields field, Object value) {
23398
      switch (field) {
23399
      case SUCCESS:
23400
        if (value == null) {
23401
          unsetSuccess();
23402
        } else {
23403
          setSuccess((List<Item>)value);
23404
        }
23405
        break;
23406
 
23407
      case ISEX:
23408
        if (value == null) {
23409
          unsetIsex();
23410
        } else {
23411
          setIsex((CatalogServiceException)value);
23412
        }
23413
        break;
23414
 
23415
      }
23416
    }
23417
 
23418
    public Object getFieldValue(_Fields field) {
23419
      switch (field) {
23420
      case SUCCESS:
23421
        return getSuccess();
23422
 
23423
      case ISEX:
23424
        return getIsex();
23425
 
23426
      }
23427
      throw new IllegalStateException();
23428
    }
23429
 
23430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23431
    public boolean isSet(_Fields field) {
23432
      if (field == null) {
23433
        throw new IllegalArgumentException();
23434
      }
23435
 
23436
      switch (field) {
23437
      case SUCCESS:
23438
        return isSetSuccess();
23439
      case ISEX:
23440
        return isSetIsex();
23441
      }
23442
      throw new IllegalStateException();
23443
    }
23444
 
23445
    @Override
23446
    public boolean equals(Object that) {
23447
      if (that == null)
23448
        return false;
23449
      if (that instanceof getComingSoon_result)
23450
        return this.equals((getComingSoon_result)that);
23451
      return false;
23452
    }
23453
 
23454
    public boolean equals(getComingSoon_result that) {
23455
      if (that == null)
23456
        return false;
23457
 
23458
      boolean this_present_success = true && this.isSetSuccess();
23459
      boolean that_present_success = true && that.isSetSuccess();
23460
      if (this_present_success || that_present_success) {
23461
        if (!(this_present_success && that_present_success))
23462
          return false;
23463
        if (!this.success.equals(that.success))
23464
          return false;
23465
      }
23466
 
23467
      boolean this_present_isex = true && this.isSetIsex();
23468
      boolean that_present_isex = true && that.isSetIsex();
23469
      if (this_present_isex || that_present_isex) {
23470
        if (!(this_present_isex && that_present_isex))
23471
          return false;
23472
        if (!this.isex.equals(that.isex))
23473
          return false;
23474
      }
23475
 
23476
      return true;
23477
    }
23478
 
23479
    @Override
23480
    public int hashCode() {
23481
      return 0;
23482
    }
23483
 
23484
    public int compareTo(getComingSoon_result other) {
23485
      if (!getClass().equals(other.getClass())) {
23486
        return getClass().getName().compareTo(other.getClass().getName());
23487
      }
23488
 
23489
      int lastComparison = 0;
23490
      getComingSoon_result typedOther = (getComingSoon_result)other;
23491
 
23492
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23493
      if (lastComparison != 0) {
23494
        return lastComparison;
23495
      }
23496
      if (isSetSuccess()) {
23497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23498
        if (lastComparison != 0) {
23499
          return lastComparison;
23500
        }
23501
      }
23502
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
23503
      if (lastComparison != 0) {
23504
        return lastComparison;
23505
      }
23506
      if (isSetIsex()) {
23507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
23508
        if (lastComparison != 0) {
23509
          return lastComparison;
23510
        }
23511
      }
23512
      return 0;
23513
    }
23514
 
23515
    public _Fields fieldForId(int fieldId) {
23516
      return _Fields.findByThriftId(fieldId);
23517
    }
23518
 
23519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23520
      org.apache.thrift.protocol.TField field;
23521
      iprot.readStructBegin();
23522
      while (true)
23523
      {
23524
        field = iprot.readFieldBegin();
23525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23526
          break;
23527
        }
23528
        switch (field.id) {
23529
          case 0: // SUCCESS
23530
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23531
              {
23532
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
23533
                this.success = new ArrayList<Item>(_list49.size);
23534
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
23535
                {
23536
                  Item _elem51; // required
23537
                  _elem51 = new Item();
23538
                  _elem51.read(iprot);
23539
                  this.success.add(_elem51);
23540
                }
23541
                iprot.readListEnd();
23542
              }
23543
            } else { 
23544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23545
            }
23546
            break;
23547
          case 1: // ISEX
23548
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23549
              this.isex = new CatalogServiceException();
23550
              this.isex.read(iprot);
23551
            } else { 
23552
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23553
            }
23554
            break;
23555
          default:
23556
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23557
        }
23558
        iprot.readFieldEnd();
23559
      }
23560
      iprot.readStructEnd();
23561
      validate();
23562
    }
23563
 
23564
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23565
      oprot.writeStructBegin(STRUCT_DESC);
23566
 
23567
      if (this.isSetSuccess()) {
23568
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23569
        {
23570
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23571
          for (Item _iter52 : this.success)
23572
          {
23573
            _iter52.write(oprot);
23574
          }
23575
          oprot.writeListEnd();
23576
        }
23577
        oprot.writeFieldEnd();
23578
      } else if (this.isSetIsex()) {
23579
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
23580
        this.isex.write(oprot);
23581
        oprot.writeFieldEnd();
23582
      }
23583
      oprot.writeFieldStop();
23584
      oprot.writeStructEnd();
23585
    }
23586
 
23587
    @Override
23588
    public String toString() {
23589
      StringBuilder sb = new StringBuilder("getComingSoon_result(");
23590
      boolean first = true;
23591
 
23592
      sb.append("success:");
23593
      if (this.success == null) {
23594
        sb.append("null");
23595
      } else {
23596
        sb.append(this.success);
23597
      }
23598
      first = false;
23599
      if (!first) sb.append(", ");
23600
      sb.append("isex:");
23601
      if (this.isex == null) {
23602
        sb.append("null");
23603
      } else {
23604
        sb.append(this.isex);
23605
      }
23606
      first = false;
23607
      sb.append(")");
23608
      return sb.toString();
23609
    }
23610
 
23611
    public void validate() throws org.apache.thrift.TException {
23612
      // check for required fields
23613
    }
23614
 
23615
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23616
      try {
23617
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23618
      } catch (org.apache.thrift.TException te) {
23619
        throw new java.io.IOException(te);
23620
      }
23621
    }
23622
 
23623
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23624
      try {
23625
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23626
      } catch (org.apache.thrift.TException te) {
23627
        throw new java.io.IOException(te);
23628
      }
23629
    }
23630
 
23631
  }
23632
 
23633
  public static class getComingSoonCatalogIds_args implements org.apache.thrift.TBase<getComingSoonCatalogIds_args, getComingSoonCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
23634
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCatalogIds_args");
23635
 
23636
    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);
23637
    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);
23638
    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);
23639
    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);
23640
 
23641
    private long beginIndex; // required
23642
    private long totalItems; // required
23643
    private String brand; // required
23644
    private long category; // required
23645
 
23646
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23647
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23648
      BEGIN_INDEX((short)1, "beginIndex"),
23649
      TOTAL_ITEMS((short)2, "totalItems"),
23650
      BRAND((short)3, "brand"),
23651
      CATEGORY((short)4, "category");
23652
 
23653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23654
 
23655
      static {
23656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23657
          byName.put(field.getFieldName(), field);
23658
        }
23659
      }
23660
 
23661
      /**
23662
       * Find the _Fields constant that matches fieldId, or null if its not found.
23663
       */
23664
      public static _Fields findByThriftId(int fieldId) {
23665
        switch(fieldId) {
23666
          case 1: // BEGIN_INDEX
23667
            return BEGIN_INDEX;
23668
          case 2: // TOTAL_ITEMS
23669
            return TOTAL_ITEMS;
23670
          case 3: // BRAND
23671
            return BRAND;
23672
          case 4: // CATEGORY
23673
            return CATEGORY;
23674
          default:
23675
            return null;
23676
        }
23677
      }
23678
 
23679
      /**
23680
       * Find the _Fields constant that matches fieldId, throwing an exception
23681
       * if it is not found.
23682
       */
23683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23684
        _Fields fields = findByThriftId(fieldId);
23685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23686
        return fields;
23687
      }
23688
 
23689
      /**
23690
       * Find the _Fields constant that matches name, or null if its not found.
23691
       */
23692
      public static _Fields findByName(String name) {
23693
        return byName.get(name);
23694
      }
23695
 
23696
      private final short _thriftId;
23697
      private final String _fieldName;
23698
 
23699
      _Fields(short thriftId, String fieldName) {
23700
        _thriftId = thriftId;
23701
        _fieldName = fieldName;
23702
      }
23703
 
23704
      public short getThriftFieldId() {
23705
        return _thriftId;
23706
      }
23707
 
23708
      public String getFieldName() {
23709
        return _fieldName;
23710
      }
23711
    }
23712
 
23713
    // isset id assignments
23714
    private static final int __BEGININDEX_ISSET_ID = 0;
23715
    private static final int __TOTALITEMS_ISSET_ID = 1;
23716
    private static final int __CATEGORY_ISSET_ID = 2;
23717
    private BitSet __isset_bit_vector = new BitSet(3);
23718
 
23719
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23720
    static {
23721
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23722
      tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23724
      tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23725
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23726
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23728
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23730
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23731
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCatalogIds_args.class, metaDataMap);
23732
    }
23733
 
23734
    public getComingSoonCatalogIds_args() {
23735
    }
23736
 
23737
    public getComingSoonCatalogIds_args(
23738
      long beginIndex,
23739
      long totalItems,
23740
      String brand,
23741
      long category)
23742
    {
23743
      this();
23744
      this.beginIndex = beginIndex;
23745
      setBeginIndexIsSet(true);
23746
      this.totalItems = totalItems;
23747
      setTotalItemsIsSet(true);
23748
      this.brand = brand;
23749
      this.category = category;
23750
      setCategoryIsSet(true);
23751
    }
23752
 
23753
    /**
23754
     * Performs a deep copy on <i>other</i>.
23755
     */
23756
    public getComingSoonCatalogIds_args(getComingSoonCatalogIds_args other) {
23757
      __isset_bit_vector.clear();
23758
      __isset_bit_vector.or(other.__isset_bit_vector);
23759
      this.beginIndex = other.beginIndex;
23760
      this.totalItems = other.totalItems;
23761
      if (other.isSetBrand()) {
23762
        this.brand = other.brand;
23763
      }
23764
      this.category = other.category;
23765
    }
23766
 
23767
    public getComingSoonCatalogIds_args deepCopy() {
23768
      return new getComingSoonCatalogIds_args(this);
23769
    }
23770
 
23771
    @Override
23772
    public void clear() {
23773
      setBeginIndexIsSet(false);
23774
      this.beginIndex = 0;
23775
      setTotalItemsIsSet(false);
23776
      this.totalItems = 0;
23777
      this.brand = null;
23778
      setCategoryIsSet(false);
23779
      this.category = 0;
23780
    }
23781
 
23782
    public long getBeginIndex() {
23783
      return this.beginIndex;
23784
    }
23785
 
23786
    public void setBeginIndex(long beginIndex) {
23787
      this.beginIndex = beginIndex;
23788
      setBeginIndexIsSet(true);
23789
    }
23790
 
23791
    public void unsetBeginIndex() {
23792
      __isset_bit_vector.clear(__BEGININDEX_ISSET_ID);
23793
    }
23794
 
23795
    /** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */
23796
    public boolean isSetBeginIndex() {
23797
      return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);
23798
    }
23799
 
23800
    public void setBeginIndexIsSet(boolean value) {
23801
      __isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);
23802
    }
23803
 
23804
    public long getTotalItems() {
23805
      return this.totalItems;
23806
    }
23807
 
23808
    public void setTotalItems(long totalItems) {
23809
      this.totalItems = totalItems;
23810
      setTotalItemsIsSet(true);
23811
    }
23812
 
23813
    public void unsetTotalItems() {
23814
      __isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);
23815
    }
23816
 
23817
    /** Returns true if field totalItems is set (has been assigned a value) and false otherwise */
23818
    public boolean isSetTotalItems() {
23819
      return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);
23820
    }
23821
 
23822
    public void setTotalItemsIsSet(boolean value) {
23823
      __isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);
23824
    }
23825
 
23826
    public String getBrand() {
23827
      return this.brand;
23828
    }
23829
 
23830
    public void setBrand(String brand) {
23831
      this.brand = brand;
23832
    }
23833
 
23834
    public void unsetBrand() {
23835
      this.brand = null;
23836
    }
23837
 
23838
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
23839
    public boolean isSetBrand() {
23840
      return this.brand != null;
23841
    }
23842
 
23843
    public void setBrandIsSet(boolean value) {
23844
      if (!value) {
23845
        this.brand = null;
23846
      }
23847
    }
23848
 
23849
    public long getCategory() {
23850
      return this.category;
23851
    }
23852
 
23853
    public void setCategory(long category) {
23854
      this.category = category;
23855
      setCategoryIsSet(true);
23856
    }
23857
 
23858
    public void unsetCategory() {
23859
      __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
23860
    }
23861
 
23862
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
23863
    public boolean isSetCategory() {
23864
      return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
23865
    }
23866
 
23867
    public void setCategoryIsSet(boolean value) {
23868
      __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
23869
    }
23870
 
23871
    public void setFieldValue(_Fields field, Object value) {
23872
      switch (field) {
23873
      case BEGIN_INDEX:
23874
        if (value == null) {
23875
          unsetBeginIndex();
23876
        } else {
23877
          setBeginIndex((Long)value);
23878
        }
23879
        break;
23880
 
23881
      case TOTAL_ITEMS:
23882
        if (value == null) {
23883
          unsetTotalItems();
23884
        } else {
23885
          setTotalItems((Long)value);
23886
        }
23887
        break;
23888
 
23889
      case BRAND:
23890
        if (value == null) {
23891
          unsetBrand();
23892
        } else {
23893
          setBrand((String)value);
23894
        }
23895
        break;
23896
 
23897
      case CATEGORY:
23898
        if (value == null) {
23899
          unsetCategory();
23900
        } else {
23901
          setCategory((Long)value);
23902
        }
23903
        break;
23904
 
23905
      }
23906
    }
23907
 
23908
    public Object getFieldValue(_Fields field) {
23909
      switch (field) {
23910
      case BEGIN_INDEX:
23911
        return Long.valueOf(getBeginIndex());
23912
 
23913
      case TOTAL_ITEMS:
23914
        return Long.valueOf(getTotalItems());
23915
 
23916
      case BRAND:
23917
        return getBrand();
23918
 
23919
      case CATEGORY:
23920
        return Long.valueOf(getCategory());
23921
 
23922
      }
23923
      throw new IllegalStateException();
23924
    }
23925
 
23926
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23927
    public boolean isSet(_Fields field) {
23928
      if (field == null) {
23929
        throw new IllegalArgumentException();
23930
      }
23931
 
23932
      switch (field) {
23933
      case BEGIN_INDEX:
23934
        return isSetBeginIndex();
23935
      case TOTAL_ITEMS:
23936
        return isSetTotalItems();
23937
      case BRAND:
23938
        return isSetBrand();
23939
      case CATEGORY:
23940
        return isSetCategory();
23941
      }
23942
      throw new IllegalStateException();
23943
    }
23944
 
23945
    @Override
23946
    public boolean equals(Object that) {
23947
      if (that == null)
23948
        return false;
23949
      if (that instanceof getComingSoonCatalogIds_args)
23950
        return this.equals((getComingSoonCatalogIds_args)that);
23951
      return false;
23952
    }
23953
 
23954
    public boolean equals(getComingSoonCatalogIds_args that) {
23955
      if (that == null)
23956
        return false;
23957
 
23958
      boolean this_present_beginIndex = true;
23959
      boolean that_present_beginIndex = true;
23960
      if (this_present_beginIndex || that_present_beginIndex) {
23961
        if (!(this_present_beginIndex && that_present_beginIndex))
23962
          return false;
23963
        if (this.beginIndex != that.beginIndex)
23964
          return false;
23965
      }
23966
 
23967
      boolean this_present_totalItems = true;
23968
      boolean that_present_totalItems = true;
23969
      if (this_present_totalItems || that_present_totalItems) {
23970
        if (!(this_present_totalItems && that_present_totalItems))
23971
          return false;
23972
        if (this.totalItems != that.totalItems)
23973
          return false;
23974
      }
23975
 
23976
      boolean this_present_brand = true && this.isSetBrand();
23977
      boolean that_present_brand = true && that.isSetBrand();
23978
      if (this_present_brand || that_present_brand) {
23979
        if (!(this_present_brand && that_present_brand))
23980
          return false;
23981
        if (!this.brand.equals(that.brand))
23982
          return false;
23983
      }
23984
 
23985
      boolean this_present_category = true;
23986
      boolean that_present_category = true;
23987
      if (this_present_category || that_present_category) {
23988
        if (!(this_present_category && that_present_category))
23989
          return false;
23990
        if (this.category != that.category)
23991
          return false;
23992
      }
23993
 
23994
      return true;
23995
    }
23996
 
23997
    @Override
23998
    public int hashCode() {
23999
      return 0;
24000
    }
24001
 
24002
    public int compareTo(getComingSoonCatalogIds_args other) {
24003
      if (!getClass().equals(other.getClass())) {
24004
        return getClass().getName().compareTo(other.getClass().getName());
24005
      }
24006
 
24007
      int lastComparison = 0;
24008
      getComingSoonCatalogIds_args typedOther = (getComingSoonCatalogIds_args)other;
24009
 
24010
      lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());
24011
      if (lastComparison != 0) {
24012
        return lastComparison;
24013
      }
24014
      if (isSetBeginIndex()) {
24015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);
24016
        if (lastComparison != 0) {
24017
          return lastComparison;
24018
        }
24019
      }
24020
      lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());
24021
      if (lastComparison != 0) {
24022
        return lastComparison;
24023
      }
24024
      if (isSetTotalItems()) {
24025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);
24026
        if (lastComparison != 0) {
24027
          return lastComparison;
24028
        }
24029
      }
24030
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
24031
      if (lastComparison != 0) {
24032
        return lastComparison;
24033
      }
24034
      if (isSetBrand()) {
24035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
24036
        if (lastComparison != 0) {
24037
          return lastComparison;
24038
        }
24039
      }
24040
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
24041
      if (lastComparison != 0) {
24042
        return lastComparison;
24043
      }
24044
      if (isSetCategory()) {
24045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
24046
        if (lastComparison != 0) {
24047
          return lastComparison;
24048
        }
24049
      }
24050
      return 0;
24051
    }
24052
 
24053
    public _Fields fieldForId(int fieldId) {
24054
      return _Fields.findByThriftId(fieldId);
24055
    }
24056
 
24057
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24058
      org.apache.thrift.protocol.TField field;
24059
      iprot.readStructBegin();
24060
      while (true)
24061
      {
24062
        field = iprot.readFieldBegin();
24063
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24064
          break;
24065
        }
24066
        switch (field.id) {
24067
          case 1: // BEGIN_INDEX
24068
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24069
              this.beginIndex = iprot.readI64();
24070
              setBeginIndexIsSet(true);
24071
            } else { 
24072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24073
            }
24074
            break;
24075
          case 2: // TOTAL_ITEMS
24076
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24077
              this.totalItems = iprot.readI64();
24078
              setTotalItemsIsSet(true);
24079
            } else { 
24080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24081
            }
24082
            break;
24083
          case 3: // BRAND
24084
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24085
              this.brand = iprot.readString();
24086
            } else { 
24087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24088
            }
24089
            break;
24090
          case 4: // CATEGORY
24091
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24092
              this.category = iprot.readI64();
24093
              setCategoryIsSet(true);
24094
            } else { 
24095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24096
            }
24097
            break;
24098
          default:
24099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24100
        }
24101
        iprot.readFieldEnd();
24102
      }
24103
      iprot.readStructEnd();
24104
      validate();
24105
    }
24106
 
24107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24108
      validate();
24109
 
24110
      oprot.writeStructBegin(STRUCT_DESC);
24111
      oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);
24112
      oprot.writeI64(this.beginIndex);
24113
      oprot.writeFieldEnd();
24114
      oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);
24115
      oprot.writeI64(this.totalItems);
24116
      oprot.writeFieldEnd();
24117
      if (this.brand != null) {
24118
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
24119
        oprot.writeString(this.brand);
24120
        oprot.writeFieldEnd();
24121
      }
24122
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
24123
      oprot.writeI64(this.category);
24124
      oprot.writeFieldEnd();
24125
      oprot.writeFieldStop();
24126
      oprot.writeStructEnd();
24127
    }
24128
 
24129
    @Override
24130
    public String toString() {
24131
      StringBuilder sb = new StringBuilder("getComingSoonCatalogIds_args(");
24132
      boolean first = true;
24133
 
24134
      sb.append("beginIndex:");
24135
      sb.append(this.beginIndex);
24136
      first = false;
24137
      if (!first) sb.append(", ");
24138
      sb.append("totalItems:");
24139
      sb.append(this.totalItems);
24140
      first = false;
24141
      if (!first) sb.append(", ");
24142
      sb.append("brand:");
24143
      if (this.brand == null) {
24144
        sb.append("null");
24145
      } else {
24146
        sb.append(this.brand);
24147
      }
24148
      first = false;
24149
      if (!first) sb.append(", ");
24150
      sb.append("category:");
24151
      sb.append(this.category);
24152
      first = false;
24153
      sb.append(")");
24154
      return sb.toString();
24155
    }
24156
 
24157
    public void validate() throws org.apache.thrift.TException {
24158
      // check for required fields
24159
    }
24160
 
24161
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24162
      try {
24163
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24164
      } catch (org.apache.thrift.TException te) {
24165
        throw new java.io.IOException(te);
24166
      }
24167
    }
24168
 
24169
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24170
      try {
24171
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24172
        __isset_bit_vector = new BitSet(1);
24173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24174
      } catch (org.apache.thrift.TException te) {
24175
        throw new java.io.IOException(te);
24176
      }
24177
    }
24178
 
24179
  }
24180
 
24181
  public static class getComingSoonCatalogIds_result implements org.apache.thrift.TBase<getComingSoonCatalogIds_result, getComingSoonCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
24182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCatalogIds_result");
24183
 
24184
    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);
24185
    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);
24186
 
24187
    private List<Long> success; // required
24188
    private CatalogServiceException cex; // required
24189
 
24190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24192
      SUCCESS((short)0, "success"),
24193
      CEX((short)1, "cex");
24194
 
24195
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24196
 
24197
      static {
24198
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24199
          byName.put(field.getFieldName(), field);
24200
        }
24201
      }
24202
 
24203
      /**
24204
       * Find the _Fields constant that matches fieldId, or null if its not found.
24205
       */
24206
      public static _Fields findByThriftId(int fieldId) {
24207
        switch(fieldId) {
24208
          case 0: // SUCCESS
24209
            return SUCCESS;
24210
          case 1: // CEX
24211
            return CEX;
24212
          default:
24213
            return null;
24214
        }
24215
      }
24216
 
24217
      /**
24218
       * Find the _Fields constant that matches fieldId, throwing an exception
24219
       * if it is not found.
24220
       */
24221
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24222
        _Fields fields = findByThriftId(fieldId);
24223
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24224
        return fields;
24225
      }
24226
 
24227
      /**
24228
       * Find the _Fields constant that matches name, or null if its not found.
24229
       */
24230
      public static _Fields findByName(String name) {
24231
        return byName.get(name);
24232
      }
24233
 
24234
      private final short _thriftId;
24235
      private final String _fieldName;
24236
 
24237
      _Fields(short thriftId, String fieldName) {
24238
        _thriftId = thriftId;
24239
        _fieldName = fieldName;
24240
      }
24241
 
24242
      public short getThriftFieldId() {
24243
        return _thriftId;
24244
      }
24245
 
24246
      public String getFieldName() {
24247
        return _fieldName;
24248
      }
24249
    }
24250
 
24251
    // isset id assignments
24252
 
24253
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24254
    static {
24255
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24256
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24257
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24258
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
24259
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24261
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24262
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCatalogIds_result.class, metaDataMap);
24263
    }
24264
 
24265
    public getComingSoonCatalogIds_result() {
24266
    }
24267
 
24268
    public getComingSoonCatalogIds_result(
24269
      List<Long> success,
24270
      CatalogServiceException cex)
24271
    {
24272
      this();
24273
      this.success = success;
24274
      this.cex = cex;
24275
    }
24276
 
24277
    /**
24278
     * Performs a deep copy on <i>other</i>.
24279
     */
24280
    public getComingSoonCatalogIds_result(getComingSoonCatalogIds_result other) {
24281
      if (other.isSetSuccess()) {
24282
        List<Long> __this__success = new ArrayList<Long>();
24283
        for (Long other_element : other.success) {
24284
          __this__success.add(other_element);
24285
        }
24286
        this.success = __this__success;
24287
      }
24288
      if (other.isSetCex()) {
24289
        this.cex = new CatalogServiceException(other.cex);
24290
      }
24291
    }
24292
 
24293
    public getComingSoonCatalogIds_result deepCopy() {
24294
      return new getComingSoonCatalogIds_result(this);
24295
    }
24296
 
24297
    @Override
24298
    public void clear() {
24299
      this.success = null;
24300
      this.cex = null;
24301
    }
24302
 
24303
    public int getSuccessSize() {
24304
      return (this.success == null) ? 0 : this.success.size();
24305
    }
24306
 
24307
    public java.util.Iterator<Long> getSuccessIterator() {
24308
      return (this.success == null) ? null : this.success.iterator();
24309
    }
24310
 
24311
    public void addToSuccess(long elem) {
24312
      if (this.success == null) {
24313
        this.success = new ArrayList<Long>();
24314
      }
24315
      this.success.add(elem);
24316
    }
24317
 
24318
    public List<Long> getSuccess() {
24319
      return this.success;
24320
    }
24321
 
24322
    public void setSuccess(List<Long> success) {
24323
      this.success = success;
24324
    }
24325
 
24326
    public void unsetSuccess() {
24327
      this.success = null;
24328
    }
24329
 
24330
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24331
    public boolean isSetSuccess() {
24332
      return this.success != null;
24333
    }
24334
 
24335
    public void setSuccessIsSet(boolean value) {
24336
      if (!value) {
24337
        this.success = null;
24338
      }
24339
    }
24340
 
24341
    public CatalogServiceException getCex() {
24342
      return this.cex;
24343
    }
24344
 
24345
    public void setCex(CatalogServiceException cex) {
24346
      this.cex = cex;
24347
    }
24348
 
24349
    public void unsetCex() {
24350
      this.cex = null;
24351
    }
24352
 
24353
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
24354
    public boolean isSetCex() {
24355
      return this.cex != null;
24356
    }
24357
 
24358
    public void setCexIsSet(boolean value) {
24359
      if (!value) {
24360
        this.cex = null;
24361
      }
24362
    }
24363
 
24364
    public void setFieldValue(_Fields field, Object value) {
24365
      switch (field) {
24366
      case SUCCESS:
24367
        if (value == null) {
24368
          unsetSuccess();
24369
        } else {
24370
          setSuccess((List<Long>)value);
24371
        }
24372
        break;
24373
 
24374
      case CEX:
24375
        if (value == null) {
24376
          unsetCex();
24377
        } else {
24378
          setCex((CatalogServiceException)value);
24379
        }
24380
        break;
24381
 
24382
      }
24383
    }
24384
 
24385
    public Object getFieldValue(_Fields field) {
24386
      switch (field) {
24387
      case SUCCESS:
24388
        return getSuccess();
24389
 
24390
      case CEX:
24391
        return getCex();
24392
 
24393
      }
24394
      throw new IllegalStateException();
24395
    }
24396
 
24397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24398
    public boolean isSet(_Fields field) {
24399
      if (field == null) {
24400
        throw new IllegalArgumentException();
24401
      }
24402
 
24403
      switch (field) {
24404
      case SUCCESS:
24405
        return isSetSuccess();
24406
      case CEX:
24407
        return isSetCex();
24408
      }
24409
      throw new IllegalStateException();
24410
    }
24411
 
24412
    @Override
24413
    public boolean equals(Object that) {
24414
      if (that == null)
24415
        return false;
24416
      if (that instanceof getComingSoonCatalogIds_result)
24417
        return this.equals((getComingSoonCatalogIds_result)that);
24418
      return false;
24419
    }
24420
 
24421
    public boolean equals(getComingSoonCatalogIds_result that) {
24422
      if (that == null)
24423
        return false;
24424
 
24425
      boolean this_present_success = true && this.isSetSuccess();
24426
      boolean that_present_success = true && that.isSetSuccess();
24427
      if (this_present_success || that_present_success) {
24428
        if (!(this_present_success && that_present_success))
24429
          return false;
24430
        if (!this.success.equals(that.success))
24431
          return false;
24432
      }
24433
 
24434
      boolean this_present_cex = true && this.isSetCex();
24435
      boolean that_present_cex = true && that.isSetCex();
24436
      if (this_present_cex || that_present_cex) {
24437
        if (!(this_present_cex && that_present_cex))
24438
          return false;
24439
        if (!this.cex.equals(that.cex))
24440
          return false;
24441
      }
24442
 
24443
      return true;
24444
    }
24445
 
24446
    @Override
24447
    public int hashCode() {
24448
      return 0;
24449
    }
24450
 
24451
    public int compareTo(getComingSoonCatalogIds_result other) {
24452
      if (!getClass().equals(other.getClass())) {
24453
        return getClass().getName().compareTo(other.getClass().getName());
24454
      }
24455
 
24456
      int lastComparison = 0;
24457
      getComingSoonCatalogIds_result typedOther = (getComingSoonCatalogIds_result)other;
24458
 
24459
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24460
      if (lastComparison != 0) {
24461
        return lastComparison;
24462
      }
24463
      if (isSetSuccess()) {
24464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24465
        if (lastComparison != 0) {
24466
          return lastComparison;
24467
        }
24468
      }
24469
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
24470
      if (lastComparison != 0) {
24471
        return lastComparison;
24472
      }
24473
      if (isSetCex()) {
24474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
24475
        if (lastComparison != 0) {
24476
          return lastComparison;
24477
        }
24478
      }
24479
      return 0;
24480
    }
24481
 
24482
    public _Fields fieldForId(int fieldId) {
24483
      return _Fields.findByThriftId(fieldId);
24484
    }
24485
 
24486
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24487
      org.apache.thrift.protocol.TField field;
24488
      iprot.readStructBegin();
24489
      while (true)
24490
      {
24491
        field = iprot.readFieldBegin();
24492
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24493
          break;
24494
        }
24495
        switch (field.id) {
24496
          case 0: // SUCCESS
24497
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24498
              {
24499
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
24500
                this.success = new ArrayList<Long>(_list53.size);
24501
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
24502
                {
24503
                  long _elem55; // required
24504
                  _elem55 = iprot.readI64();
24505
                  this.success.add(_elem55);
24506
                }
24507
                iprot.readListEnd();
24508
              }
24509
            } else { 
24510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24511
            }
24512
            break;
24513
          case 1: // CEX
24514
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24515
              this.cex = new CatalogServiceException();
24516
              this.cex.read(iprot);
24517
            } else { 
24518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24519
            }
24520
            break;
24521
          default:
24522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24523
        }
24524
        iprot.readFieldEnd();
24525
      }
24526
      iprot.readStructEnd();
24527
      validate();
24528
    }
24529
 
24530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24531
      oprot.writeStructBegin(STRUCT_DESC);
24532
 
24533
      if (this.isSetSuccess()) {
24534
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24535
        {
24536
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
24537
          for (long _iter56 : this.success)
24538
          {
24539
            oprot.writeI64(_iter56);
24540
          }
24541
          oprot.writeListEnd();
24542
        }
24543
        oprot.writeFieldEnd();
24544
      } else if (this.isSetCex()) {
24545
        oprot.writeFieldBegin(CEX_FIELD_DESC);
24546
        this.cex.write(oprot);
24547
        oprot.writeFieldEnd();
24548
      }
24549
      oprot.writeFieldStop();
24550
      oprot.writeStructEnd();
24551
    }
24552
 
24553
    @Override
24554
    public String toString() {
24555
      StringBuilder sb = new StringBuilder("getComingSoonCatalogIds_result(");
24556
      boolean first = true;
24557
 
24558
      sb.append("success:");
24559
      if (this.success == null) {
24560
        sb.append("null");
24561
      } else {
24562
        sb.append(this.success);
24563
      }
24564
      first = false;
24565
      if (!first) sb.append(", ");
24566
      sb.append("cex:");
24567
      if (this.cex == null) {
24568
        sb.append("null");
24569
      } else {
24570
        sb.append(this.cex);
24571
      }
24572
      first = false;
24573
      sb.append(")");
24574
      return sb.toString();
24575
    }
24576
 
24577
    public void validate() throws org.apache.thrift.TException {
24578
      // check for required fields
24579
    }
24580
 
24581
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24582
      try {
24583
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24584
      } catch (org.apache.thrift.TException te) {
24585
        throw new java.io.IOException(te);
24586
      }
24587
    }
24588
 
24589
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24590
      try {
24591
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24592
      } catch (org.apache.thrift.TException te) {
24593
        throw new java.io.IOException(te);
24594
      }
24595
    }
24596
 
24597
  }
24598
 
24599
  public static class getComingSoonCount_args implements org.apache.thrift.TBase<getComingSoonCount_args, getComingSoonCount_args._Fields>, java.io.Serializable, Cloneable   {
24600
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCount_args");
24601
 
24602
 
24603
 
24604
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24605
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24606
;
24607
 
24608
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24609
 
24610
      static {
24611
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24612
          byName.put(field.getFieldName(), field);
24613
        }
24614
      }
24615
 
24616
      /**
24617
       * Find the _Fields constant that matches fieldId, or null if its not found.
24618
       */
24619
      public static _Fields findByThriftId(int fieldId) {
24620
        switch(fieldId) {
24621
          default:
24622
            return null;
24623
        }
24624
      }
24625
 
24626
      /**
24627
       * Find the _Fields constant that matches fieldId, throwing an exception
24628
       * if it is not found.
24629
       */
24630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24631
        _Fields fields = findByThriftId(fieldId);
24632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24633
        return fields;
24634
      }
24635
 
24636
      /**
24637
       * Find the _Fields constant that matches name, or null if its not found.
24638
       */
24639
      public static _Fields findByName(String name) {
24640
        return byName.get(name);
24641
      }
24642
 
24643
      private final short _thriftId;
24644
      private final String _fieldName;
24645
 
24646
      _Fields(short thriftId, String fieldName) {
24647
        _thriftId = thriftId;
24648
        _fieldName = fieldName;
24649
      }
24650
 
24651
      public short getThriftFieldId() {
24652
        return _thriftId;
24653
      }
24654
 
24655
      public String getFieldName() {
24656
        return _fieldName;
24657
      }
24658
    }
24659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24660
    static {
24661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCount_args.class, metaDataMap);
24664
    }
24665
 
24666
    public getComingSoonCount_args() {
24667
    }
24668
 
24669
    /**
24670
     * Performs a deep copy on <i>other</i>.
24671
     */
24672
    public getComingSoonCount_args(getComingSoonCount_args other) {
24673
    }
24674
 
24675
    public getComingSoonCount_args deepCopy() {
24676
      return new getComingSoonCount_args(this);
24677
    }
24678
 
24679
    @Override
24680
    public void clear() {
24681
    }
24682
 
24683
    public void setFieldValue(_Fields field, Object value) {
24684
      switch (field) {
24685
      }
24686
    }
24687
 
24688
    public Object getFieldValue(_Fields field) {
24689
      switch (field) {
24690
      }
24691
      throw new IllegalStateException();
24692
    }
24693
 
24694
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24695
    public boolean isSet(_Fields field) {
24696
      if (field == null) {
24697
        throw new IllegalArgumentException();
24698
      }
24699
 
24700
      switch (field) {
24701
      }
24702
      throw new IllegalStateException();
24703
    }
24704
 
24705
    @Override
24706
    public boolean equals(Object that) {
24707
      if (that == null)
24708
        return false;
24709
      if (that instanceof getComingSoonCount_args)
24710
        return this.equals((getComingSoonCount_args)that);
24711
      return false;
24712
    }
24713
 
24714
    public boolean equals(getComingSoonCount_args that) {
24715
      if (that == null)
24716
        return false;
24717
 
24718
      return true;
24719
    }
24720
 
24721
    @Override
24722
    public int hashCode() {
24723
      return 0;
24724
    }
24725
 
24726
    public int compareTo(getComingSoonCount_args other) {
24727
      if (!getClass().equals(other.getClass())) {
24728
        return getClass().getName().compareTo(other.getClass().getName());
24729
      }
24730
 
24731
      int lastComparison = 0;
24732
      getComingSoonCount_args typedOther = (getComingSoonCount_args)other;
24733
 
24734
      return 0;
24735
    }
24736
 
24737
    public _Fields fieldForId(int fieldId) {
24738
      return _Fields.findByThriftId(fieldId);
24739
    }
24740
 
24741
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24742
      org.apache.thrift.protocol.TField field;
24743
      iprot.readStructBegin();
24744
      while (true)
24745
      {
24746
        field = iprot.readFieldBegin();
24747
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24748
          break;
24749
        }
24750
        switch (field.id) {
24751
          default:
24752
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24753
        }
24754
        iprot.readFieldEnd();
24755
      }
24756
      iprot.readStructEnd();
24757
      validate();
24758
    }
24759
 
24760
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24761
      validate();
24762
 
24763
      oprot.writeStructBegin(STRUCT_DESC);
24764
      oprot.writeFieldStop();
24765
      oprot.writeStructEnd();
24766
    }
24767
 
24768
    @Override
24769
    public String toString() {
24770
      StringBuilder sb = new StringBuilder("getComingSoonCount_args(");
24771
      boolean first = true;
24772
 
24773
      sb.append(")");
24774
      return sb.toString();
24775
    }
24776
 
24777
    public void validate() throws org.apache.thrift.TException {
24778
      // check for required fields
24779
    }
24780
 
24781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24782
      try {
24783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24784
      } catch (org.apache.thrift.TException te) {
24785
        throw new java.io.IOException(te);
24786
      }
24787
    }
24788
 
24789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24790
      try {
24791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24792
      } catch (org.apache.thrift.TException te) {
24793
        throw new java.io.IOException(te);
24794
      }
24795
    }
24796
 
24797
  }
24798
 
24799
  public static class getComingSoonCount_result implements org.apache.thrift.TBase<getComingSoonCount_result, getComingSoonCount_result._Fields>, java.io.Serializable, Cloneable   {
24800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCount_result");
24801
 
24802
    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);
24803
    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);
24804
 
24805
    private long success; // required
24806
    private CatalogServiceException cex; // required
24807
 
24808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24810
      SUCCESS((short)0, "success"),
24811
      CEX((short)1, "cex");
24812
 
24813
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24814
 
24815
      static {
24816
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24817
          byName.put(field.getFieldName(), field);
24818
        }
24819
      }
24820
 
24821
      /**
24822
       * Find the _Fields constant that matches fieldId, or null if its not found.
24823
       */
24824
      public static _Fields findByThriftId(int fieldId) {
24825
        switch(fieldId) {
24826
          case 0: // SUCCESS
24827
            return SUCCESS;
24828
          case 1: // CEX
24829
            return CEX;
24830
          default:
24831
            return null;
24832
        }
24833
      }
24834
 
24835
      /**
24836
       * Find the _Fields constant that matches fieldId, throwing an exception
24837
       * if it is not found.
24838
       */
24839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24840
        _Fields fields = findByThriftId(fieldId);
24841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24842
        return fields;
24843
      }
24844
 
24845
      /**
24846
       * Find the _Fields constant that matches name, or null if its not found.
24847
       */
24848
      public static _Fields findByName(String name) {
24849
        return byName.get(name);
24850
      }
24851
 
24852
      private final short _thriftId;
24853
      private final String _fieldName;
24854
 
24855
      _Fields(short thriftId, String fieldName) {
24856
        _thriftId = thriftId;
24857
        _fieldName = fieldName;
24858
      }
24859
 
24860
      public short getThriftFieldId() {
24861
        return _thriftId;
24862
      }
24863
 
24864
      public String getFieldName() {
24865
        return _fieldName;
24866
      }
24867
    }
24868
 
24869
    // isset id assignments
24870
    private static final int __SUCCESS_ISSET_ID = 0;
24871
    private BitSet __isset_bit_vector = new BitSet(1);
24872
 
24873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24874
    static {
24875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24876
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24877
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24878
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCount_result.class, metaDataMap);
24882
    }
24883
 
24884
    public getComingSoonCount_result() {
24885
    }
24886
 
24887
    public getComingSoonCount_result(
24888
      long success,
24889
      CatalogServiceException cex)
24890
    {
24891
      this();
24892
      this.success = success;
24893
      setSuccessIsSet(true);
24894
      this.cex = cex;
24895
    }
24896
 
24897
    /**
24898
     * Performs a deep copy on <i>other</i>.
24899
     */
24900
    public getComingSoonCount_result(getComingSoonCount_result other) {
24901
      __isset_bit_vector.clear();
24902
      __isset_bit_vector.or(other.__isset_bit_vector);
24903
      this.success = other.success;
24904
      if (other.isSetCex()) {
24905
        this.cex = new CatalogServiceException(other.cex);
24906
      }
24907
    }
24908
 
24909
    public getComingSoonCount_result deepCopy() {
24910
      return new getComingSoonCount_result(this);
24911
    }
24912
 
24913
    @Override
24914
    public void clear() {
24915
      setSuccessIsSet(false);
24916
      this.success = 0;
24917
      this.cex = null;
24918
    }
24919
 
24920
    public long getSuccess() {
24921
      return this.success;
24922
    }
24923
 
24924
    public void setSuccess(long success) {
24925
      this.success = success;
24926
      setSuccessIsSet(true);
24927
    }
24928
 
24929
    public void unsetSuccess() {
24930
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
24931
    }
24932
 
24933
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24934
    public boolean isSetSuccess() {
24935
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
24936
    }
24937
 
24938
    public void setSuccessIsSet(boolean value) {
24939
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
24940
    }
24941
 
24942
    public CatalogServiceException getCex() {
24943
      return this.cex;
24944
    }
24945
 
24946
    public void setCex(CatalogServiceException cex) {
24947
      this.cex = cex;
24948
    }
24949
 
24950
    public void unsetCex() {
24951
      this.cex = null;
24952
    }
24953
 
24954
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
24955
    public boolean isSetCex() {
24956
      return this.cex != null;
24957
    }
24958
 
24959
    public void setCexIsSet(boolean value) {
24960
      if (!value) {
24961
        this.cex = null;
24962
      }
24963
    }
24964
 
24965
    public void setFieldValue(_Fields field, Object value) {
24966
      switch (field) {
24967
      case SUCCESS:
24968
        if (value == null) {
24969
          unsetSuccess();
24970
        } else {
24971
          setSuccess((Long)value);
24972
        }
24973
        break;
24974
 
24975
      case CEX:
24976
        if (value == null) {
24977
          unsetCex();
24978
        } else {
24979
          setCex((CatalogServiceException)value);
24980
        }
24981
        break;
24982
 
24983
      }
24984
    }
24985
 
24986
    public Object getFieldValue(_Fields field) {
24987
      switch (field) {
24988
      case SUCCESS:
24989
        return Long.valueOf(getSuccess());
24990
 
24991
      case CEX:
24992
        return getCex();
24993
 
24994
      }
24995
      throw new IllegalStateException();
24996
    }
24997
 
24998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24999
    public boolean isSet(_Fields field) {
25000
      if (field == null) {
25001
        throw new IllegalArgumentException();
25002
      }
25003
 
25004
      switch (field) {
25005
      case SUCCESS:
25006
        return isSetSuccess();
25007
      case CEX:
25008
        return isSetCex();
25009
      }
25010
      throw new IllegalStateException();
25011
    }
25012
 
25013
    @Override
25014
    public boolean equals(Object that) {
25015
      if (that == null)
25016
        return false;
25017
      if (that instanceof getComingSoonCount_result)
25018
        return this.equals((getComingSoonCount_result)that);
25019
      return false;
25020
    }
25021
 
25022
    public boolean equals(getComingSoonCount_result that) {
25023
      if (that == null)
25024
        return false;
25025
 
25026
      boolean this_present_success = true;
25027
      boolean that_present_success = true;
25028
      if (this_present_success || that_present_success) {
25029
        if (!(this_present_success && that_present_success))
25030
          return false;
25031
        if (this.success != that.success)
25032
          return false;
25033
      }
25034
 
25035
      boolean this_present_cex = true && this.isSetCex();
25036
      boolean that_present_cex = true && that.isSetCex();
25037
      if (this_present_cex || that_present_cex) {
25038
        if (!(this_present_cex && that_present_cex))
25039
          return false;
25040
        if (!this.cex.equals(that.cex))
25041
          return false;
25042
      }
25043
 
25044
      return true;
25045
    }
25046
 
25047
    @Override
25048
    public int hashCode() {
25049
      return 0;
25050
    }
25051
 
25052
    public int compareTo(getComingSoonCount_result other) {
25053
      if (!getClass().equals(other.getClass())) {
25054
        return getClass().getName().compareTo(other.getClass().getName());
25055
      }
25056
 
25057
      int lastComparison = 0;
25058
      getComingSoonCount_result typedOther = (getComingSoonCount_result)other;
25059
 
25060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25061
      if (lastComparison != 0) {
25062
        return lastComparison;
25063
      }
25064
      if (isSetSuccess()) {
25065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25066
        if (lastComparison != 0) {
25067
          return lastComparison;
25068
        }
25069
      }
25070
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
25071
      if (lastComparison != 0) {
25072
        return lastComparison;
25073
      }
25074
      if (isSetCex()) {
25075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
25076
        if (lastComparison != 0) {
25077
          return lastComparison;
25078
        }
25079
      }
25080
      return 0;
25081
    }
25082
 
25083
    public _Fields fieldForId(int fieldId) {
25084
      return _Fields.findByThriftId(fieldId);
25085
    }
25086
 
25087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25088
      org.apache.thrift.protocol.TField field;
25089
      iprot.readStructBegin();
25090
      while (true)
25091
      {
25092
        field = iprot.readFieldBegin();
25093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25094
          break;
25095
        }
25096
        switch (field.id) {
25097
          case 0: // SUCCESS
25098
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25099
              this.success = iprot.readI64();
25100
              setSuccessIsSet(true);
25101
            } else { 
25102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25103
            }
25104
            break;
25105
          case 1: // CEX
25106
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25107
              this.cex = new CatalogServiceException();
25108
              this.cex.read(iprot);
25109
            } else { 
25110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25111
            }
25112
            break;
25113
          default:
25114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25115
        }
25116
        iprot.readFieldEnd();
25117
      }
25118
      iprot.readStructEnd();
25119
      validate();
25120
    }
25121
 
25122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25123
      oprot.writeStructBegin(STRUCT_DESC);
25124
 
25125
      if (this.isSetSuccess()) {
25126
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25127
        oprot.writeI64(this.success);
25128
        oprot.writeFieldEnd();
25129
      } else if (this.isSetCex()) {
25130
        oprot.writeFieldBegin(CEX_FIELD_DESC);
25131
        this.cex.write(oprot);
25132
        oprot.writeFieldEnd();
25133
      }
25134
      oprot.writeFieldStop();
25135
      oprot.writeStructEnd();
25136
    }
25137
 
25138
    @Override
25139
    public String toString() {
25140
      StringBuilder sb = new StringBuilder("getComingSoonCount_result(");
25141
      boolean first = true;
25142
 
25143
      sb.append("success:");
25144
      sb.append(this.success);
25145
      first = false;
25146
      if (!first) sb.append(", ");
25147
      sb.append("cex:");
25148
      if (this.cex == null) {
25149
        sb.append("null");
25150
      } else {
25151
        sb.append(this.cex);
25152
      }
25153
      first = false;
25154
      sb.append(")");
25155
      return sb.toString();
25156
    }
25157
 
25158
    public void validate() throws org.apache.thrift.TException {
25159
      // check for required fields
25160
    }
25161
 
25162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25163
      try {
25164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25165
      } catch (org.apache.thrift.TException te) {
25166
        throw new java.io.IOException(te);
25167
      }
25168
    }
25169
 
25170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25171
      try {
25172
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25173
      } catch (org.apache.thrift.TException te) {
25174
        throw new java.io.IOException(te);
25175
      }
25176
    }
25177
 
25178
  }
25179
 
25180
  public static class getLatestArrivals_args implements org.apache.thrift.TBase<getLatestArrivals_args, getLatestArrivals_args._Fields>, java.io.Serializable, Cloneable   {
25181
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivals_args");
25182
 
25183
 
25184
 
25185
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25186
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25187
;
25188
 
25189
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25190
 
25191
      static {
25192
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25193
          byName.put(field.getFieldName(), field);
25194
        }
25195
      }
25196
 
25197
      /**
25198
       * Find the _Fields constant that matches fieldId, or null if its not found.
25199
       */
25200
      public static _Fields findByThriftId(int fieldId) {
25201
        switch(fieldId) {
25202
          default:
25203
            return null;
25204
        }
25205
      }
25206
 
25207
      /**
25208
       * Find the _Fields constant that matches fieldId, throwing an exception
25209
       * if it is not found.
25210
       */
25211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25212
        _Fields fields = findByThriftId(fieldId);
25213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25214
        return fields;
25215
      }
25216
 
25217
      /**
25218
       * Find the _Fields constant that matches name, or null if its not found.
25219
       */
25220
      public static _Fields findByName(String name) {
25221
        return byName.get(name);
25222
      }
25223
 
25224
      private final short _thriftId;
25225
      private final String _fieldName;
25226
 
25227
      _Fields(short thriftId, String fieldName) {
25228
        _thriftId = thriftId;
25229
        _fieldName = fieldName;
25230
      }
25231
 
25232
      public short getThriftFieldId() {
25233
        return _thriftId;
25234
      }
25235
 
25236
      public String getFieldName() {
25237
        return _fieldName;
25238
      }
25239
    }
25240
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25241
    static {
25242
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivals_args.class, metaDataMap);
25245
    }
25246
 
25247
    public getLatestArrivals_args() {
25248
    }
25249
 
25250
    /**
25251
     * Performs a deep copy on <i>other</i>.
25252
     */
25253
    public getLatestArrivals_args(getLatestArrivals_args other) {
25254
    }
25255
 
25256
    public getLatestArrivals_args deepCopy() {
25257
      return new getLatestArrivals_args(this);
25258
    }
25259
 
25260
    @Override
25261
    public void clear() {
25262
    }
25263
 
25264
    public void setFieldValue(_Fields field, Object value) {
25265
      switch (field) {
25266
      }
25267
    }
25268
 
25269
    public Object getFieldValue(_Fields field) {
25270
      switch (field) {
25271
      }
25272
      throw new IllegalStateException();
25273
    }
25274
 
25275
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25276
    public boolean isSet(_Fields field) {
25277
      if (field == null) {
25278
        throw new IllegalArgumentException();
25279
      }
25280
 
25281
      switch (field) {
25282
      }
25283
      throw new IllegalStateException();
25284
    }
25285
 
25286
    @Override
25287
    public boolean equals(Object that) {
25288
      if (that == null)
25289
        return false;
25290
      if (that instanceof getLatestArrivals_args)
25291
        return this.equals((getLatestArrivals_args)that);
25292
      return false;
25293
    }
25294
 
25295
    public boolean equals(getLatestArrivals_args that) {
25296
      if (that == null)
25297
        return false;
25298
 
25299
      return true;
25300
    }
25301
 
25302
    @Override
25303
    public int hashCode() {
25304
      return 0;
25305
    }
25306
 
25307
    public int compareTo(getLatestArrivals_args other) {
25308
      if (!getClass().equals(other.getClass())) {
25309
        return getClass().getName().compareTo(other.getClass().getName());
25310
      }
25311
 
25312
      int lastComparison = 0;
25313
      getLatestArrivals_args typedOther = (getLatestArrivals_args)other;
25314
 
25315
      return 0;
25316
    }
25317
 
25318
    public _Fields fieldForId(int fieldId) {
25319
      return _Fields.findByThriftId(fieldId);
25320
    }
25321
 
25322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25323
      org.apache.thrift.protocol.TField field;
25324
      iprot.readStructBegin();
25325
      while (true)
25326
      {
25327
        field = iprot.readFieldBegin();
25328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25329
          break;
25330
        }
25331
        switch (field.id) {
25332
          default:
25333
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25334
        }
25335
        iprot.readFieldEnd();
25336
      }
25337
      iprot.readStructEnd();
25338
      validate();
25339
    }
25340
 
25341
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25342
      validate();
25343
 
25344
      oprot.writeStructBegin(STRUCT_DESC);
25345
      oprot.writeFieldStop();
25346
      oprot.writeStructEnd();
25347
    }
25348
 
25349
    @Override
25350
    public String toString() {
25351
      StringBuilder sb = new StringBuilder("getLatestArrivals_args(");
25352
      boolean first = true;
25353
 
25354
      sb.append(")");
25355
      return sb.toString();
25356
    }
25357
 
25358
    public void validate() throws org.apache.thrift.TException {
25359
      // check for required fields
25360
    }
25361
 
25362
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25363
      try {
25364
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25365
      } catch (org.apache.thrift.TException te) {
25366
        throw new java.io.IOException(te);
25367
      }
25368
    }
25369
 
25370
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25371
      try {
25372
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25373
      } catch (org.apache.thrift.TException te) {
25374
        throw new java.io.IOException(te);
25375
      }
25376
    }
25377
 
25378
  }
25379
 
25380
  public static class getLatestArrivals_result implements org.apache.thrift.TBase<getLatestArrivals_result, getLatestArrivals_result._Fields>, java.io.Serializable, Cloneable   {
25381
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivals_result");
25382
 
25383
    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);
25384
    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);
25385
 
25386
    private List<Item> success; // required
25387
    private CatalogServiceException isex; // required
25388
 
25389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25391
      SUCCESS((short)0, "success"),
25392
      ISEX((short)1, "isex");
25393
 
25394
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25395
 
25396
      static {
25397
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25398
          byName.put(field.getFieldName(), field);
25399
        }
25400
      }
25401
 
25402
      /**
25403
       * Find the _Fields constant that matches fieldId, or null if its not found.
25404
       */
25405
      public static _Fields findByThriftId(int fieldId) {
25406
        switch(fieldId) {
25407
          case 0: // SUCCESS
25408
            return SUCCESS;
25409
          case 1: // ISEX
25410
            return ISEX;
25411
          default:
25412
            return null;
25413
        }
25414
      }
25415
 
25416
      /**
25417
       * Find the _Fields constant that matches fieldId, throwing an exception
25418
       * if it is not found.
25419
       */
25420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25421
        _Fields fields = findByThriftId(fieldId);
25422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25423
        return fields;
25424
      }
25425
 
25426
      /**
25427
       * Find the _Fields constant that matches name, or null if its not found.
25428
       */
25429
      public static _Fields findByName(String name) {
25430
        return byName.get(name);
25431
      }
25432
 
25433
      private final short _thriftId;
25434
      private final String _fieldName;
25435
 
25436
      _Fields(short thriftId, String fieldName) {
25437
        _thriftId = thriftId;
25438
        _fieldName = fieldName;
25439
      }
25440
 
25441
      public short getThriftFieldId() {
25442
        return _thriftId;
25443
      }
25444
 
25445
      public String getFieldName() {
25446
        return _fieldName;
25447
      }
25448
    }
25449
 
25450
    // isset id assignments
25451
 
25452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25453
    static {
25454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25455
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25456
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25457
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
25458
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25460
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25461
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivals_result.class, metaDataMap);
25462
    }
25463
 
25464
    public getLatestArrivals_result() {
25465
    }
25466
 
25467
    public getLatestArrivals_result(
25468
      List<Item> success,
25469
      CatalogServiceException isex)
25470
    {
25471
      this();
25472
      this.success = success;
25473
      this.isex = isex;
25474
    }
25475
 
25476
    /**
25477
     * Performs a deep copy on <i>other</i>.
25478
     */
25479
    public getLatestArrivals_result(getLatestArrivals_result other) {
25480
      if (other.isSetSuccess()) {
25481
        List<Item> __this__success = new ArrayList<Item>();
25482
        for (Item other_element : other.success) {
25483
          __this__success.add(new Item(other_element));
25484
        }
25485
        this.success = __this__success;
25486
      }
25487
      if (other.isSetIsex()) {
25488
        this.isex = new CatalogServiceException(other.isex);
25489
      }
25490
    }
25491
 
25492
    public getLatestArrivals_result deepCopy() {
25493
      return new getLatestArrivals_result(this);
25494
    }
25495
 
25496
    @Override
25497
    public void clear() {
25498
      this.success = null;
25499
      this.isex = null;
25500
    }
25501
 
25502
    public int getSuccessSize() {
25503
      return (this.success == null) ? 0 : this.success.size();
25504
    }
25505
 
25506
    public java.util.Iterator<Item> getSuccessIterator() {
25507
      return (this.success == null) ? null : this.success.iterator();
25508
    }
25509
 
25510
    public void addToSuccess(Item elem) {
25511
      if (this.success == null) {
25512
        this.success = new ArrayList<Item>();
25513
      }
25514
      this.success.add(elem);
25515
    }
25516
 
25517
    public List<Item> getSuccess() {
25518
      return this.success;
25519
    }
25520
 
25521
    public void setSuccess(List<Item> success) {
25522
      this.success = success;
25523
    }
25524
 
25525
    public void unsetSuccess() {
25526
      this.success = null;
25527
    }
25528
 
25529
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25530
    public boolean isSetSuccess() {
25531
      return this.success != null;
25532
    }
25533
 
25534
    public void setSuccessIsSet(boolean value) {
25535
      if (!value) {
25536
        this.success = null;
25537
      }
25538
    }
25539
 
25540
    public CatalogServiceException getIsex() {
25541
      return this.isex;
25542
    }
25543
 
25544
    public void setIsex(CatalogServiceException isex) {
25545
      this.isex = isex;
25546
    }
25547
 
25548
    public void unsetIsex() {
25549
      this.isex = null;
25550
    }
25551
 
25552
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
25553
    public boolean isSetIsex() {
25554
      return this.isex != null;
25555
    }
25556
 
25557
    public void setIsexIsSet(boolean value) {
25558
      if (!value) {
25559
        this.isex = null;
25560
      }
25561
    }
25562
 
25563
    public void setFieldValue(_Fields field, Object value) {
25564
      switch (field) {
25565
      case SUCCESS:
25566
        if (value == null) {
25567
          unsetSuccess();
25568
        } else {
25569
          setSuccess((List<Item>)value);
25570
        }
25571
        break;
25572
 
25573
      case ISEX:
25574
        if (value == null) {
25575
          unsetIsex();
25576
        } else {
25577
          setIsex((CatalogServiceException)value);
25578
        }
25579
        break;
25580
 
25581
      }
25582
    }
25583
 
25584
    public Object getFieldValue(_Fields field) {
25585
      switch (field) {
25586
      case SUCCESS:
25587
        return getSuccess();
25588
 
25589
      case ISEX:
25590
        return getIsex();
25591
 
25592
      }
25593
      throw new IllegalStateException();
25594
    }
25595
 
25596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25597
    public boolean isSet(_Fields field) {
25598
      if (field == null) {
25599
        throw new IllegalArgumentException();
25600
      }
25601
 
25602
      switch (field) {
25603
      case SUCCESS:
25604
        return isSetSuccess();
25605
      case ISEX:
25606
        return isSetIsex();
25607
      }
25608
      throw new IllegalStateException();
25609
    }
25610
 
25611
    @Override
25612
    public boolean equals(Object that) {
25613
      if (that == null)
25614
        return false;
25615
      if (that instanceof getLatestArrivals_result)
25616
        return this.equals((getLatestArrivals_result)that);
25617
      return false;
25618
    }
25619
 
25620
    public boolean equals(getLatestArrivals_result that) {
25621
      if (that == null)
25622
        return false;
25623
 
25624
      boolean this_present_success = true && this.isSetSuccess();
25625
      boolean that_present_success = true && that.isSetSuccess();
25626
      if (this_present_success || that_present_success) {
25627
        if (!(this_present_success && that_present_success))
25628
          return false;
25629
        if (!this.success.equals(that.success))
25630
          return false;
25631
      }
25632
 
25633
      boolean this_present_isex = true && this.isSetIsex();
25634
      boolean that_present_isex = true && that.isSetIsex();
25635
      if (this_present_isex || that_present_isex) {
25636
        if (!(this_present_isex && that_present_isex))
25637
          return false;
25638
        if (!this.isex.equals(that.isex))
25639
          return false;
25640
      }
25641
 
25642
      return true;
25643
    }
25644
 
25645
    @Override
25646
    public int hashCode() {
25647
      return 0;
25648
    }
25649
 
25650
    public int compareTo(getLatestArrivals_result other) {
25651
      if (!getClass().equals(other.getClass())) {
25652
        return getClass().getName().compareTo(other.getClass().getName());
25653
      }
25654
 
25655
      int lastComparison = 0;
25656
      getLatestArrivals_result typedOther = (getLatestArrivals_result)other;
25657
 
25658
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25659
      if (lastComparison != 0) {
25660
        return lastComparison;
25661
      }
25662
      if (isSetSuccess()) {
25663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25664
        if (lastComparison != 0) {
25665
          return lastComparison;
25666
        }
25667
      }
25668
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
25669
      if (lastComparison != 0) {
25670
        return lastComparison;
25671
      }
25672
      if (isSetIsex()) {
25673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
25674
        if (lastComparison != 0) {
25675
          return lastComparison;
25676
        }
25677
      }
25678
      return 0;
25679
    }
25680
 
25681
    public _Fields fieldForId(int fieldId) {
25682
      return _Fields.findByThriftId(fieldId);
25683
    }
25684
 
25685
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25686
      org.apache.thrift.protocol.TField field;
25687
      iprot.readStructBegin();
25688
      while (true)
25689
      {
25690
        field = iprot.readFieldBegin();
25691
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25692
          break;
25693
        }
25694
        switch (field.id) {
25695
          case 0: // SUCCESS
25696
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25697
              {
25698
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
25699
                this.success = new ArrayList<Item>(_list57.size);
25700
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
25701
                {
25702
                  Item _elem59; // required
25703
                  _elem59 = new Item();
25704
                  _elem59.read(iprot);
25705
                  this.success.add(_elem59);
25706
                }
25707
                iprot.readListEnd();
25708
              }
25709
            } else { 
25710
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25711
            }
25712
            break;
25713
          case 1: // ISEX
25714
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25715
              this.isex = new CatalogServiceException();
25716
              this.isex.read(iprot);
25717
            } else { 
25718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25719
            }
25720
            break;
25721
          default:
25722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25723
        }
25724
        iprot.readFieldEnd();
25725
      }
25726
      iprot.readStructEnd();
25727
      validate();
25728
    }
25729
 
25730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25731
      oprot.writeStructBegin(STRUCT_DESC);
25732
 
25733
      if (this.isSetSuccess()) {
25734
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25735
        {
25736
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25737
          for (Item _iter60 : this.success)
25738
          {
25739
            _iter60.write(oprot);
25740
          }
25741
          oprot.writeListEnd();
25742
        }
25743
        oprot.writeFieldEnd();
25744
      } else if (this.isSetIsex()) {
25745
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
25746
        this.isex.write(oprot);
25747
        oprot.writeFieldEnd();
25748
      }
25749
      oprot.writeFieldStop();
25750
      oprot.writeStructEnd();
25751
    }
25752
 
25753
    @Override
25754
    public String toString() {
25755
      StringBuilder sb = new StringBuilder("getLatestArrivals_result(");
25756
      boolean first = true;
25757
 
25758
      sb.append("success:");
25759
      if (this.success == null) {
25760
        sb.append("null");
25761
      } else {
25762
        sb.append(this.success);
25763
      }
25764
      first = false;
25765
      if (!first) sb.append(", ");
25766
      sb.append("isex:");
25767
      if (this.isex == null) {
25768
        sb.append("null");
25769
      } else {
25770
        sb.append(this.isex);
25771
      }
25772
      first = false;
25773
      sb.append(")");
25774
      return sb.toString();
25775
    }
25776
 
25777
    public void validate() throws org.apache.thrift.TException {
25778
      // check for required fields
25779
    }
25780
 
25781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25782
      try {
25783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25784
      } catch (org.apache.thrift.TException te) {
25785
        throw new java.io.IOException(te);
25786
      }
25787
    }
25788
 
25789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25790
      try {
25791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25792
      } catch (org.apache.thrift.TException te) {
25793
        throw new java.io.IOException(te);
25794
      }
25795
    }
25796
 
25797
  }
25798
 
25799
  public static class getLatestArrivalsCatalogIds_args implements org.apache.thrift.TBase<getLatestArrivalsCatalogIds_args, getLatestArrivalsCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
25800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCatalogIds_args");
25801
 
25802
    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);
25803
    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);
25804
    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);
25805
    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);
25806
 
25807
    private long beginIndex; // required
25808
    private long totalItems; // required
25809
    private String brand; // required
25810
    private List<Long> categories; // required
25811
 
25812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25814
      BEGIN_INDEX((short)1, "beginIndex"),
25815
      TOTAL_ITEMS((short)2, "totalItems"),
25816
      BRAND((short)3, "brand"),
25817
      CATEGORIES((short)4, "categories");
25818
 
25819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25820
 
25821
      static {
25822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25823
          byName.put(field.getFieldName(), field);
25824
        }
25825
      }
25826
 
25827
      /**
25828
       * Find the _Fields constant that matches fieldId, or null if its not found.
25829
       */
25830
      public static _Fields findByThriftId(int fieldId) {
25831
        switch(fieldId) {
25832
          case 1: // BEGIN_INDEX
25833
            return BEGIN_INDEX;
25834
          case 2: // TOTAL_ITEMS
25835
            return TOTAL_ITEMS;
25836
          case 3: // BRAND
25837
            return BRAND;
25838
          case 4: // CATEGORIES
25839
            return CATEGORIES;
25840
          default:
25841
            return null;
25842
        }
25843
      }
25844
 
25845
      /**
25846
       * Find the _Fields constant that matches fieldId, throwing an exception
25847
       * if it is not found.
25848
       */
25849
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25850
        _Fields fields = findByThriftId(fieldId);
25851
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25852
        return fields;
25853
      }
25854
 
25855
      /**
25856
       * Find the _Fields constant that matches name, or null if its not found.
25857
       */
25858
      public static _Fields findByName(String name) {
25859
        return byName.get(name);
25860
      }
25861
 
25862
      private final short _thriftId;
25863
      private final String _fieldName;
25864
 
25865
      _Fields(short thriftId, String fieldName) {
25866
        _thriftId = thriftId;
25867
        _fieldName = fieldName;
25868
      }
25869
 
25870
      public short getThriftFieldId() {
25871
        return _thriftId;
25872
      }
25873
 
25874
      public String getFieldName() {
25875
        return _fieldName;
25876
      }
25877
    }
25878
 
25879
    // isset id assignments
25880
    private static final int __BEGININDEX_ISSET_ID = 0;
25881
    private static final int __TOTALITEMS_ISSET_ID = 1;
25882
    private BitSet __isset_bit_vector = new BitSet(2);
25883
 
25884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25885
    static {
25886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25887
      tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25888
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25889
      tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25891
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25893
      tmpMap.put(_Fields.CATEGORIES, new org.apache.thrift.meta_data.FieldMetaData("categories", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25894
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25895
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
25896
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25897
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCatalogIds_args.class, metaDataMap);
25898
    }
25899
 
25900
    public getLatestArrivalsCatalogIds_args() {
25901
    }
25902
 
25903
    public getLatestArrivalsCatalogIds_args(
25904
      long beginIndex,
25905
      long totalItems,
25906
      String brand,
25907
      List<Long> categories)
25908
    {
25909
      this();
25910
      this.beginIndex = beginIndex;
25911
      setBeginIndexIsSet(true);
25912
      this.totalItems = totalItems;
25913
      setTotalItemsIsSet(true);
25914
      this.brand = brand;
25915
      this.categories = categories;
25916
    }
25917
 
25918
    /**
25919
     * Performs a deep copy on <i>other</i>.
25920
     */
25921
    public getLatestArrivalsCatalogIds_args(getLatestArrivalsCatalogIds_args other) {
25922
      __isset_bit_vector.clear();
25923
      __isset_bit_vector.or(other.__isset_bit_vector);
25924
      this.beginIndex = other.beginIndex;
25925
      this.totalItems = other.totalItems;
25926
      if (other.isSetBrand()) {
25927
        this.brand = other.brand;
25928
      }
25929
      if (other.isSetCategories()) {
25930
        List<Long> __this__categories = new ArrayList<Long>();
25931
        for (Long other_element : other.categories) {
25932
          __this__categories.add(other_element);
25933
        }
25934
        this.categories = __this__categories;
25935
      }
25936
    }
25937
 
25938
    public getLatestArrivalsCatalogIds_args deepCopy() {
25939
      return new getLatestArrivalsCatalogIds_args(this);
25940
    }
25941
 
25942
    @Override
25943
    public void clear() {
25944
      setBeginIndexIsSet(false);
25945
      this.beginIndex = 0;
25946
      setTotalItemsIsSet(false);
25947
      this.totalItems = 0;
25948
      this.brand = null;
25949
      this.categories = null;
25950
    }
25951
 
25952
    public long getBeginIndex() {
25953
      return this.beginIndex;
25954
    }
25955
 
25956
    public void setBeginIndex(long beginIndex) {
25957
      this.beginIndex = beginIndex;
25958
      setBeginIndexIsSet(true);
25959
    }
25960
 
25961
    public void unsetBeginIndex() {
25962
      __isset_bit_vector.clear(__BEGININDEX_ISSET_ID);
25963
    }
25964
 
25965
    /** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */
25966
    public boolean isSetBeginIndex() {
25967
      return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);
25968
    }
25969
 
25970
    public void setBeginIndexIsSet(boolean value) {
25971
      __isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);
25972
    }
25973
 
25974
    public long getTotalItems() {
25975
      return this.totalItems;
25976
    }
25977
 
25978
    public void setTotalItems(long totalItems) {
25979
      this.totalItems = totalItems;
25980
      setTotalItemsIsSet(true);
25981
    }
25982
 
25983
    public void unsetTotalItems() {
25984
      __isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);
25985
    }
25986
 
25987
    /** Returns true if field totalItems is set (has been assigned a value) and false otherwise */
25988
    public boolean isSetTotalItems() {
25989
      return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);
25990
    }
25991
 
25992
    public void setTotalItemsIsSet(boolean value) {
25993
      __isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);
25994
    }
25995
 
25996
    public String getBrand() {
25997
      return this.brand;
25998
    }
25999
 
26000
    public void setBrand(String brand) {
26001
      this.brand = brand;
26002
    }
26003
 
26004
    public void unsetBrand() {
26005
      this.brand = null;
26006
    }
26007
 
26008
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
26009
    public boolean isSetBrand() {
26010
      return this.brand != null;
26011
    }
26012
 
26013
    public void setBrandIsSet(boolean value) {
26014
      if (!value) {
26015
        this.brand = null;
26016
      }
26017
    }
26018
 
26019
    public int getCategoriesSize() {
26020
      return (this.categories == null) ? 0 : this.categories.size();
26021
    }
26022
 
26023
    public java.util.Iterator<Long> getCategoriesIterator() {
26024
      return (this.categories == null) ? null : this.categories.iterator();
26025
    }
26026
 
26027
    public void addToCategories(long elem) {
26028
      if (this.categories == null) {
26029
        this.categories = new ArrayList<Long>();
26030
      }
26031
      this.categories.add(elem);
26032
    }
26033
 
26034
    public List<Long> getCategories() {
26035
      return this.categories;
26036
    }
26037
 
26038
    public void setCategories(List<Long> categories) {
26039
      this.categories = categories;
26040
    }
26041
 
26042
    public void unsetCategories() {
26043
      this.categories = null;
26044
    }
26045
 
26046
    /** Returns true if field categories is set (has been assigned a value) and false otherwise */
26047
    public boolean isSetCategories() {
26048
      return this.categories != null;
26049
    }
26050
 
26051
    public void setCategoriesIsSet(boolean value) {
26052
      if (!value) {
26053
        this.categories = null;
26054
      }
26055
    }
26056
 
26057
    public void setFieldValue(_Fields field, Object value) {
26058
      switch (field) {
26059
      case BEGIN_INDEX:
26060
        if (value == null) {
26061
          unsetBeginIndex();
26062
        } else {
26063
          setBeginIndex((Long)value);
26064
        }
26065
        break;
26066
 
26067
      case TOTAL_ITEMS:
26068
        if (value == null) {
26069
          unsetTotalItems();
26070
        } else {
26071
          setTotalItems((Long)value);
26072
        }
26073
        break;
26074
 
26075
      case BRAND:
26076
        if (value == null) {
26077
          unsetBrand();
26078
        } else {
26079
          setBrand((String)value);
26080
        }
26081
        break;
26082
 
26083
      case CATEGORIES:
26084
        if (value == null) {
26085
          unsetCategories();
26086
        } else {
26087
          setCategories((List<Long>)value);
26088
        }
26089
        break;
26090
 
26091
      }
26092
    }
26093
 
26094
    public Object getFieldValue(_Fields field) {
26095
      switch (field) {
26096
      case BEGIN_INDEX:
26097
        return Long.valueOf(getBeginIndex());
26098
 
26099
      case TOTAL_ITEMS:
26100
        return Long.valueOf(getTotalItems());
26101
 
26102
      case BRAND:
26103
        return getBrand();
26104
 
26105
      case CATEGORIES:
26106
        return getCategories();
26107
 
26108
      }
26109
      throw new IllegalStateException();
26110
    }
26111
 
26112
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26113
    public boolean isSet(_Fields field) {
26114
      if (field == null) {
26115
        throw new IllegalArgumentException();
26116
      }
26117
 
26118
      switch (field) {
26119
      case BEGIN_INDEX:
26120
        return isSetBeginIndex();
26121
      case TOTAL_ITEMS:
26122
        return isSetTotalItems();
26123
      case BRAND:
26124
        return isSetBrand();
26125
      case CATEGORIES:
26126
        return isSetCategories();
26127
      }
26128
      throw new IllegalStateException();
26129
    }
26130
 
26131
    @Override
26132
    public boolean equals(Object that) {
26133
      if (that == null)
26134
        return false;
26135
      if (that instanceof getLatestArrivalsCatalogIds_args)
26136
        return this.equals((getLatestArrivalsCatalogIds_args)that);
26137
      return false;
26138
    }
26139
 
26140
    public boolean equals(getLatestArrivalsCatalogIds_args that) {
26141
      if (that == null)
26142
        return false;
26143
 
26144
      boolean this_present_beginIndex = true;
26145
      boolean that_present_beginIndex = true;
26146
      if (this_present_beginIndex || that_present_beginIndex) {
26147
        if (!(this_present_beginIndex && that_present_beginIndex))
26148
          return false;
26149
        if (this.beginIndex != that.beginIndex)
26150
          return false;
26151
      }
26152
 
26153
      boolean this_present_totalItems = true;
26154
      boolean that_present_totalItems = true;
26155
      if (this_present_totalItems || that_present_totalItems) {
26156
        if (!(this_present_totalItems && that_present_totalItems))
26157
          return false;
26158
        if (this.totalItems != that.totalItems)
26159
          return false;
26160
      }
26161
 
26162
      boolean this_present_brand = true && this.isSetBrand();
26163
      boolean that_present_brand = true && that.isSetBrand();
26164
      if (this_present_brand || that_present_brand) {
26165
        if (!(this_present_brand && that_present_brand))
26166
          return false;
26167
        if (!this.brand.equals(that.brand))
26168
          return false;
26169
      }
26170
 
26171
      boolean this_present_categories = true && this.isSetCategories();
26172
      boolean that_present_categories = true && that.isSetCategories();
26173
      if (this_present_categories || that_present_categories) {
26174
        if (!(this_present_categories && that_present_categories))
26175
          return false;
26176
        if (!this.categories.equals(that.categories))
26177
          return false;
26178
      }
26179
 
26180
      return true;
26181
    }
26182
 
26183
    @Override
26184
    public int hashCode() {
26185
      return 0;
26186
    }
26187
 
26188
    public int compareTo(getLatestArrivalsCatalogIds_args other) {
26189
      if (!getClass().equals(other.getClass())) {
26190
        return getClass().getName().compareTo(other.getClass().getName());
26191
      }
26192
 
26193
      int lastComparison = 0;
26194
      getLatestArrivalsCatalogIds_args typedOther = (getLatestArrivalsCatalogIds_args)other;
26195
 
26196
      lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());
26197
      if (lastComparison != 0) {
26198
        return lastComparison;
26199
      }
26200
      if (isSetBeginIndex()) {
26201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);
26202
        if (lastComparison != 0) {
26203
          return lastComparison;
26204
        }
26205
      }
26206
      lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());
26207
      if (lastComparison != 0) {
26208
        return lastComparison;
26209
      }
26210
      if (isSetTotalItems()) {
26211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);
26212
        if (lastComparison != 0) {
26213
          return lastComparison;
26214
        }
26215
      }
26216
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
26217
      if (lastComparison != 0) {
26218
        return lastComparison;
26219
      }
26220
      if (isSetBrand()) {
26221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
26222
        if (lastComparison != 0) {
26223
          return lastComparison;
26224
        }
26225
      }
26226
      lastComparison = Boolean.valueOf(isSetCategories()).compareTo(typedOther.isSetCategories());
26227
      if (lastComparison != 0) {
26228
        return lastComparison;
26229
      }
26230
      if (isSetCategories()) {
26231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categories, typedOther.categories);
26232
        if (lastComparison != 0) {
26233
          return lastComparison;
26234
        }
26235
      }
26236
      return 0;
26237
    }
26238
 
26239
    public _Fields fieldForId(int fieldId) {
26240
      return _Fields.findByThriftId(fieldId);
26241
    }
26242
 
26243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26244
      org.apache.thrift.protocol.TField field;
26245
      iprot.readStructBegin();
26246
      while (true)
26247
      {
26248
        field = iprot.readFieldBegin();
26249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26250
          break;
26251
        }
26252
        switch (field.id) {
26253
          case 1: // BEGIN_INDEX
26254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26255
              this.beginIndex = iprot.readI64();
26256
              setBeginIndexIsSet(true);
26257
            } else { 
26258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26259
            }
26260
            break;
26261
          case 2: // TOTAL_ITEMS
26262
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26263
              this.totalItems = iprot.readI64();
26264
              setTotalItemsIsSet(true);
26265
            } else { 
26266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26267
            }
26268
            break;
26269
          case 3: // BRAND
26270
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26271
              this.brand = iprot.readString();
26272
            } else { 
26273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26274
            }
26275
            break;
26276
          case 4: // CATEGORIES
26277
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26278
              {
26279
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
26280
                this.categories = new ArrayList<Long>(_list61.size);
26281
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
26282
                {
26283
                  long _elem63; // required
26284
                  _elem63 = iprot.readI64();
26285
                  this.categories.add(_elem63);
26286
                }
26287
                iprot.readListEnd();
26288
              }
26289
            } else { 
26290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26291
            }
26292
            break;
26293
          default:
26294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26295
        }
26296
        iprot.readFieldEnd();
26297
      }
26298
      iprot.readStructEnd();
26299
      validate();
26300
    }
26301
 
26302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26303
      validate();
26304
 
26305
      oprot.writeStructBegin(STRUCT_DESC);
26306
      oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);
26307
      oprot.writeI64(this.beginIndex);
26308
      oprot.writeFieldEnd();
26309
      oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);
26310
      oprot.writeI64(this.totalItems);
26311
      oprot.writeFieldEnd();
26312
      if (this.brand != null) {
26313
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
26314
        oprot.writeString(this.brand);
26315
        oprot.writeFieldEnd();
26316
      }
26317
      if (this.categories != null) {
26318
        oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);
26319
        {
26320
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));
26321
          for (long _iter64 : this.categories)
26322
          {
26323
            oprot.writeI64(_iter64);
26324
          }
26325
          oprot.writeListEnd();
26326
        }
26327
        oprot.writeFieldEnd();
26328
      }
26329
      oprot.writeFieldStop();
26330
      oprot.writeStructEnd();
26331
    }
26332
 
26333
    @Override
26334
    public String toString() {
26335
      StringBuilder sb = new StringBuilder("getLatestArrivalsCatalogIds_args(");
26336
      boolean first = true;
26337
 
26338
      sb.append("beginIndex:");
26339
      sb.append(this.beginIndex);
26340
      first = false;
26341
      if (!first) sb.append(", ");
26342
      sb.append("totalItems:");
26343
      sb.append(this.totalItems);
26344
      first = false;
26345
      if (!first) sb.append(", ");
26346
      sb.append("brand:");
26347
      if (this.brand == null) {
26348
        sb.append("null");
26349
      } else {
26350
        sb.append(this.brand);
26351
      }
26352
      first = false;
26353
      if (!first) sb.append(", ");
26354
      sb.append("categories:");
26355
      if (this.categories == null) {
26356
        sb.append("null");
26357
      } else {
26358
        sb.append(this.categories);
26359
      }
26360
      first = false;
26361
      sb.append(")");
26362
      return sb.toString();
26363
    }
26364
 
26365
    public void validate() throws org.apache.thrift.TException {
26366
      // check for required fields
26367
    }
26368
 
26369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26370
      try {
26371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26372
      } catch (org.apache.thrift.TException te) {
26373
        throw new java.io.IOException(te);
26374
      }
26375
    }
26376
 
26377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26378
      try {
26379
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26380
      } catch (org.apache.thrift.TException te) {
26381
        throw new java.io.IOException(te);
26382
      }
26383
    }
26384
 
26385
  }
26386
 
26387
  public static class getLatestArrivalsCatalogIds_result implements org.apache.thrift.TBase<getLatestArrivalsCatalogIds_result, getLatestArrivalsCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
26388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCatalogIds_result");
26389
 
26390
    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);
26391
    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);
26392
 
26393
    private List<Long> success; // required
26394
    private CatalogServiceException cex; // required
26395
 
26396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26398
      SUCCESS((short)0, "success"),
26399
      CEX((short)1, "cex");
26400
 
26401
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26402
 
26403
      static {
26404
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26405
          byName.put(field.getFieldName(), field);
26406
        }
26407
      }
26408
 
26409
      /**
26410
       * Find the _Fields constant that matches fieldId, or null if its not found.
26411
       */
26412
      public static _Fields findByThriftId(int fieldId) {
26413
        switch(fieldId) {
26414
          case 0: // SUCCESS
26415
            return SUCCESS;
26416
          case 1: // CEX
26417
            return CEX;
26418
          default:
26419
            return null;
26420
        }
26421
      }
26422
 
26423
      /**
26424
       * Find the _Fields constant that matches fieldId, throwing an exception
26425
       * if it is not found.
26426
       */
26427
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26428
        _Fields fields = findByThriftId(fieldId);
26429
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26430
        return fields;
26431
      }
26432
 
26433
      /**
26434
       * Find the _Fields constant that matches name, or null if its not found.
26435
       */
26436
      public static _Fields findByName(String name) {
26437
        return byName.get(name);
26438
      }
26439
 
26440
      private final short _thriftId;
26441
      private final String _fieldName;
26442
 
26443
      _Fields(short thriftId, String fieldName) {
26444
        _thriftId = thriftId;
26445
        _fieldName = fieldName;
26446
      }
26447
 
26448
      public short getThriftFieldId() {
26449
        return _thriftId;
26450
      }
26451
 
26452
      public String getFieldName() {
26453
        return _fieldName;
26454
      }
26455
    }
26456
 
26457
    // isset id assignments
26458
 
26459
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26460
    static {
26461
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26462
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26463
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26464
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
26465
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26466
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26467
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26468
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCatalogIds_result.class, metaDataMap);
26469
    }
26470
 
26471
    public getLatestArrivalsCatalogIds_result() {
26472
    }
26473
 
26474
    public getLatestArrivalsCatalogIds_result(
26475
      List<Long> success,
26476
      CatalogServiceException cex)
26477
    {
26478
      this();
26479
      this.success = success;
26480
      this.cex = cex;
26481
    }
26482
 
26483
    /**
26484
     * Performs a deep copy on <i>other</i>.
26485
     */
26486
    public getLatestArrivalsCatalogIds_result(getLatestArrivalsCatalogIds_result other) {
26487
      if (other.isSetSuccess()) {
26488
        List<Long> __this__success = new ArrayList<Long>();
26489
        for (Long other_element : other.success) {
26490
          __this__success.add(other_element);
26491
        }
26492
        this.success = __this__success;
26493
      }
26494
      if (other.isSetCex()) {
26495
        this.cex = new CatalogServiceException(other.cex);
26496
      }
26497
    }
26498
 
26499
    public getLatestArrivalsCatalogIds_result deepCopy() {
26500
      return new getLatestArrivalsCatalogIds_result(this);
26501
    }
26502
 
26503
    @Override
26504
    public void clear() {
26505
      this.success = null;
26506
      this.cex = null;
26507
    }
26508
 
26509
    public int getSuccessSize() {
26510
      return (this.success == null) ? 0 : this.success.size();
26511
    }
26512
 
26513
    public java.util.Iterator<Long> getSuccessIterator() {
26514
      return (this.success == null) ? null : this.success.iterator();
26515
    }
26516
 
26517
    public void addToSuccess(long elem) {
26518
      if (this.success == null) {
26519
        this.success = new ArrayList<Long>();
26520
      }
26521
      this.success.add(elem);
26522
    }
26523
 
26524
    public List<Long> getSuccess() {
26525
      return this.success;
26526
    }
26527
 
26528
    public void setSuccess(List<Long> success) {
26529
      this.success = success;
26530
    }
26531
 
26532
    public void unsetSuccess() {
26533
      this.success = null;
26534
    }
26535
 
26536
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26537
    public boolean isSetSuccess() {
26538
      return this.success != null;
26539
    }
26540
 
26541
    public void setSuccessIsSet(boolean value) {
26542
      if (!value) {
26543
        this.success = null;
26544
      }
26545
    }
26546
 
26547
    public CatalogServiceException getCex() {
26548
      return this.cex;
26549
    }
26550
 
26551
    public void setCex(CatalogServiceException cex) {
26552
      this.cex = cex;
26553
    }
26554
 
26555
    public void unsetCex() {
26556
      this.cex = null;
26557
    }
26558
 
26559
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
26560
    public boolean isSetCex() {
26561
      return this.cex != null;
26562
    }
26563
 
26564
    public void setCexIsSet(boolean value) {
26565
      if (!value) {
26566
        this.cex = null;
26567
      }
26568
    }
26569
 
26570
    public void setFieldValue(_Fields field, Object value) {
26571
      switch (field) {
26572
      case SUCCESS:
26573
        if (value == null) {
26574
          unsetSuccess();
26575
        } else {
26576
          setSuccess((List<Long>)value);
26577
        }
26578
        break;
26579
 
26580
      case CEX:
26581
        if (value == null) {
26582
          unsetCex();
26583
        } else {
26584
          setCex((CatalogServiceException)value);
26585
        }
26586
        break;
26587
 
26588
      }
26589
    }
26590
 
26591
    public Object getFieldValue(_Fields field) {
26592
      switch (field) {
26593
      case SUCCESS:
26594
        return getSuccess();
26595
 
26596
      case CEX:
26597
        return getCex();
26598
 
26599
      }
26600
      throw new IllegalStateException();
26601
    }
26602
 
26603
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26604
    public boolean isSet(_Fields field) {
26605
      if (field == null) {
26606
        throw new IllegalArgumentException();
26607
      }
26608
 
26609
      switch (field) {
26610
      case SUCCESS:
26611
        return isSetSuccess();
26612
      case CEX:
26613
        return isSetCex();
26614
      }
26615
      throw new IllegalStateException();
26616
    }
26617
 
26618
    @Override
26619
    public boolean equals(Object that) {
26620
      if (that == null)
26621
        return false;
26622
      if (that instanceof getLatestArrivalsCatalogIds_result)
26623
        return this.equals((getLatestArrivalsCatalogIds_result)that);
26624
      return false;
26625
    }
26626
 
26627
    public boolean equals(getLatestArrivalsCatalogIds_result that) {
26628
      if (that == null)
26629
        return false;
26630
 
26631
      boolean this_present_success = true && this.isSetSuccess();
26632
      boolean that_present_success = true && that.isSetSuccess();
26633
      if (this_present_success || that_present_success) {
26634
        if (!(this_present_success && that_present_success))
26635
          return false;
26636
        if (!this.success.equals(that.success))
26637
          return false;
26638
      }
26639
 
26640
      boolean this_present_cex = true && this.isSetCex();
26641
      boolean that_present_cex = true && that.isSetCex();
26642
      if (this_present_cex || that_present_cex) {
26643
        if (!(this_present_cex && that_present_cex))
26644
          return false;
26645
        if (!this.cex.equals(that.cex))
26646
          return false;
26647
      }
26648
 
26649
      return true;
26650
    }
26651
 
26652
    @Override
26653
    public int hashCode() {
26654
      return 0;
26655
    }
26656
 
26657
    public int compareTo(getLatestArrivalsCatalogIds_result other) {
26658
      if (!getClass().equals(other.getClass())) {
26659
        return getClass().getName().compareTo(other.getClass().getName());
26660
      }
26661
 
26662
      int lastComparison = 0;
26663
      getLatestArrivalsCatalogIds_result typedOther = (getLatestArrivalsCatalogIds_result)other;
26664
 
26665
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26666
      if (lastComparison != 0) {
26667
        return lastComparison;
26668
      }
26669
      if (isSetSuccess()) {
26670
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26671
        if (lastComparison != 0) {
26672
          return lastComparison;
26673
        }
26674
      }
26675
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
26676
      if (lastComparison != 0) {
26677
        return lastComparison;
26678
      }
26679
      if (isSetCex()) {
26680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
26681
        if (lastComparison != 0) {
26682
          return lastComparison;
26683
        }
26684
      }
26685
      return 0;
26686
    }
26687
 
26688
    public _Fields fieldForId(int fieldId) {
26689
      return _Fields.findByThriftId(fieldId);
26690
    }
26691
 
26692
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26693
      org.apache.thrift.protocol.TField field;
26694
      iprot.readStructBegin();
26695
      while (true)
26696
      {
26697
        field = iprot.readFieldBegin();
26698
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26699
          break;
26700
        }
26701
        switch (field.id) {
26702
          case 0: // SUCCESS
26703
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26704
              {
26705
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
26706
                this.success = new ArrayList<Long>(_list65.size);
26707
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
26708
                {
26709
                  long _elem67; // required
26710
                  _elem67 = iprot.readI64();
26711
                  this.success.add(_elem67);
26712
                }
26713
                iprot.readListEnd();
26714
              }
26715
            } else { 
26716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26717
            }
26718
            break;
26719
          case 1: // CEX
26720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26721
              this.cex = new CatalogServiceException();
26722
              this.cex.read(iprot);
26723
            } else { 
26724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26725
            }
26726
            break;
26727
          default:
26728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26729
        }
26730
        iprot.readFieldEnd();
26731
      }
26732
      iprot.readStructEnd();
26733
      validate();
26734
    }
26735
 
26736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26737
      oprot.writeStructBegin(STRUCT_DESC);
26738
 
26739
      if (this.isSetSuccess()) {
26740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26741
        {
26742
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
26743
          for (long _iter68 : this.success)
26744
          {
26745
            oprot.writeI64(_iter68);
26746
          }
26747
          oprot.writeListEnd();
26748
        }
26749
        oprot.writeFieldEnd();
26750
      } else if (this.isSetCex()) {
26751
        oprot.writeFieldBegin(CEX_FIELD_DESC);
26752
        this.cex.write(oprot);
26753
        oprot.writeFieldEnd();
26754
      }
26755
      oprot.writeFieldStop();
26756
      oprot.writeStructEnd();
26757
    }
26758
 
26759
    @Override
26760
    public String toString() {
26761
      StringBuilder sb = new StringBuilder("getLatestArrivalsCatalogIds_result(");
26762
      boolean first = true;
26763
 
26764
      sb.append("success:");
26765
      if (this.success == null) {
26766
        sb.append("null");
26767
      } else {
26768
        sb.append(this.success);
26769
      }
26770
      first = false;
26771
      if (!first) sb.append(", ");
26772
      sb.append("cex:");
26773
      if (this.cex == null) {
26774
        sb.append("null");
26775
      } else {
26776
        sb.append(this.cex);
26777
      }
26778
      first = false;
26779
      sb.append(")");
26780
      return sb.toString();
26781
    }
26782
 
26783
    public void validate() throws org.apache.thrift.TException {
26784
      // check for required fields
26785
    }
26786
 
26787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26788
      try {
26789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26790
      } catch (org.apache.thrift.TException te) {
26791
        throw new java.io.IOException(te);
26792
      }
26793
    }
26794
 
26795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26796
      try {
26797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26798
      } catch (org.apache.thrift.TException te) {
26799
        throw new java.io.IOException(te);
26800
      }
26801
    }
26802
 
26803
  }
26804
 
26805
  public static class getLatestArrivalsCount_args implements org.apache.thrift.TBase<getLatestArrivalsCount_args, getLatestArrivalsCount_args._Fields>, java.io.Serializable, Cloneable   {
26806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCount_args");
26807
 
26808
 
26809
 
26810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26812
;
26813
 
26814
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26815
 
26816
      static {
26817
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26818
          byName.put(field.getFieldName(), field);
26819
        }
26820
      }
26821
 
26822
      /**
26823
       * Find the _Fields constant that matches fieldId, or null if its not found.
26824
       */
26825
      public static _Fields findByThriftId(int fieldId) {
26826
        switch(fieldId) {
26827
          default:
26828
            return null;
26829
        }
26830
      }
26831
 
26832
      /**
26833
       * Find the _Fields constant that matches fieldId, throwing an exception
26834
       * if it is not found.
26835
       */
26836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26837
        _Fields fields = findByThriftId(fieldId);
26838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26839
        return fields;
26840
      }
26841
 
26842
      /**
26843
       * Find the _Fields constant that matches name, or null if its not found.
26844
       */
26845
      public static _Fields findByName(String name) {
26846
        return byName.get(name);
26847
      }
26848
 
26849
      private final short _thriftId;
26850
      private final String _fieldName;
26851
 
26852
      _Fields(short thriftId, String fieldName) {
26853
        _thriftId = thriftId;
26854
        _fieldName = fieldName;
26855
      }
26856
 
26857
      public short getThriftFieldId() {
26858
        return _thriftId;
26859
      }
26860
 
26861
      public String getFieldName() {
26862
        return _fieldName;
26863
      }
26864
    }
26865
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26866
    static {
26867
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCount_args.class, metaDataMap);
26870
    }
26871
 
26872
    public getLatestArrivalsCount_args() {
26873
    }
26874
 
26875
    /**
26876
     * Performs a deep copy on <i>other</i>.
26877
     */
26878
    public getLatestArrivalsCount_args(getLatestArrivalsCount_args other) {
26879
    }
26880
 
26881
    public getLatestArrivalsCount_args deepCopy() {
26882
      return new getLatestArrivalsCount_args(this);
26883
    }
26884
 
26885
    @Override
26886
    public void clear() {
26887
    }
26888
 
26889
    public void setFieldValue(_Fields field, Object value) {
26890
      switch (field) {
26891
      }
26892
    }
26893
 
26894
    public Object getFieldValue(_Fields field) {
26895
      switch (field) {
26896
      }
26897
      throw new IllegalStateException();
26898
    }
26899
 
26900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26901
    public boolean isSet(_Fields field) {
26902
      if (field == null) {
26903
        throw new IllegalArgumentException();
26904
      }
26905
 
26906
      switch (field) {
26907
      }
26908
      throw new IllegalStateException();
26909
    }
26910
 
26911
    @Override
26912
    public boolean equals(Object that) {
26913
      if (that == null)
26914
        return false;
26915
      if (that instanceof getLatestArrivalsCount_args)
26916
        return this.equals((getLatestArrivalsCount_args)that);
26917
      return false;
26918
    }
26919
 
26920
    public boolean equals(getLatestArrivalsCount_args that) {
26921
      if (that == null)
26922
        return false;
26923
 
26924
      return true;
26925
    }
26926
 
26927
    @Override
26928
    public int hashCode() {
26929
      return 0;
26930
    }
26931
 
26932
    public int compareTo(getLatestArrivalsCount_args other) {
26933
      if (!getClass().equals(other.getClass())) {
26934
        return getClass().getName().compareTo(other.getClass().getName());
26935
      }
26936
 
26937
      int lastComparison = 0;
26938
      getLatestArrivalsCount_args typedOther = (getLatestArrivalsCount_args)other;
26939
 
26940
      return 0;
26941
    }
26942
 
26943
    public _Fields fieldForId(int fieldId) {
26944
      return _Fields.findByThriftId(fieldId);
26945
    }
26946
 
26947
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26948
      org.apache.thrift.protocol.TField field;
26949
      iprot.readStructBegin();
26950
      while (true)
26951
      {
26952
        field = iprot.readFieldBegin();
26953
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26954
          break;
26955
        }
26956
        switch (field.id) {
26957
          default:
26958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26959
        }
26960
        iprot.readFieldEnd();
26961
      }
26962
      iprot.readStructEnd();
26963
      validate();
26964
    }
26965
 
26966
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26967
      validate();
26968
 
26969
      oprot.writeStructBegin(STRUCT_DESC);
26970
      oprot.writeFieldStop();
26971
      oprot.writeStructEnd();
26972
    }
26973
 
26974
    @Override
26975
    public String toString() {
26976
      StringBuilder sb = new StringBuilder("getLatestArrivalsCount_args(");
26977
      boolean first = true;
26978
 
26979
      sb.append(")");
26980
      return sb.toString();
26981
    }
26982
 
26983
    public void validate() throws org.apache.thrift.TException {
26984
      // check for required fields
26985
    }
26986
 
26987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26988
      try {
26989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26990
      } catch (org.apache.thrift.TException te) {
26991
        throw new java.io.IOException(te);
26992
      }
26993
    }
26994
 
26995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26996
      try {
26997
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26998
      } catch (org.apache.thrift.TException te) {
26999
        throw new java.io.IOException(te);
27000
      }
27001
    }
27002
 
27003
  }
27004
 
27005
  public static class getLatestArrivalsCount_result implements org.apache.thrift.TBase<getLatestArrivalsCount_result, getLatestArrivalsCount_result._Fields>, java.io.Serializable, Cloneable   {
27006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCount_result");
27007
 
27008
    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);
27009
    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);
27010
 
27011
    private long success; // required
27012
    private CatalogServiceException cex; // required
27013
 
27014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27016
      SUCCESS((short)0, "success"),
27017
      CEX((short)1, "cex");
27018
 
27019
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27020
 
27021
      static {
27022
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27023
          byName.put(field.getFieldName(), field);
27024
        }
27025
      }
27026
 
27027
      /**
27028
       * Find the _Fields constant that matches fieldId, or null if its not found.
27029
       */
27030
      public static _Fields findByThriftId(int fieldId) {
27031
        switch(fieldId) {
27032
          case 0: // SUCCESS
27033
            return SUCCESS;
27034
          case 1: // CEX
27035
            return CEX;
27036
          default:
27037
            return null;
27038
        }
27039
      }
27040
 
27041
      /**
27042
       * Find the _Fields constant that matches fieldId, throwing an exception
27043
       * if it is not found.
27044
       */
27045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27046
        _Fields fields = findByThriftId(fieldId);
27047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27048
        return fields;
27049
      }
27050
 
27051
      /**
27052
       * Find the _Fields constant that matches name, or null if its not found.
27053
       */
27054
      public static _Fields findByName(String name) {
27055
        return byName.get(name);
27056
      }
27057
 
27058
      private final short _thriftId;
27059
      private final String _fieldName;
27060
 
27061
      _Fields(short thriftId, String fieldName) {
27062
        _thriftId = thriftId;
27063
        _fieldName = fieldName;
27064
      }
27065
 
27066
      public short getThriftFieldId() {
27067
        return _thriftId;
27068
      }
27069
 
27070
      public String getFieldName() {
27071
        return _fieldName;
27072
      }
27073
    }
27074
 
27075
    // isset id assignments
27076
    private static final int __SUCCESS_ISSET_ID = 0;
27077
    private BitSet __isset_bit_vector = new BitSet(1);
27078
 
27079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27080
    static {
27081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27082
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27084
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27086
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27087
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCount_result.class, metaDataMap);
27088
    }
27089
 
27090
    public getLatestArrivalsCount_result() {
27091
    }
27092
 
27093
    public getLatestArrivalsCount_result(
27094
      long success,
27095
      CatalogServiceException cex)
27096
    {
27097
      this();
27098
      this.success = success;
27099
      setSuccessIsSet(true);
27100
      this.cex = cex;
27101
    }
27102
 
27103
    /**
27104
     * Performs a deep copy on <i>other</i>.
27105
     */
27106
    public getLatestArrivalsCount_result(getLatestArrivalsCount_result other) {
27107
      __isset_bit_vector.clear();
27108
      __isset_bit_vector.or(other.__isset_bit_vector);
27109
      this.success = other.success;
27110
      if (other.isSetCex()) {
27111
        this.cex = new CatalogServiceException(other.cex);
27112
      }
27113
    }
27114
 
27115
    public getLatestArrivalsCount_result deepCopy() {
27116
      return new getLatestArrivalsCount_result(this);
27117
    }
27118
 
27119
    @Override
27120
    public void clear() {
27121
      setSuccessIsSet(false);
27122
      this.success = 0;
27123
      this.cex = null;
27124
    }
27125
 
27126
    public long getSuccess() {
27127
      return this.success;
27128
    }
27129
 
27130
    public void setSuccess(long success) {
27131
      this.success = success;
27132
      setSuccessIsSet(true);
27133
    }
27134
 
27135
    public void unsetSuccess() {
27136
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27137
    }
27138
 
27139
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27140
    public boolean isSetSuccess() {
27141
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27142
    }
27143
 
27144
    public void setSuccessIsSet(boolean value) {
27145
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27146
    }
27147
 
27148
    public CatalogServiceException getCex() {
27149
      return this.cex;
27150
    }
27151
 
27152
    public void setCex(CatalogServiceException cex) {
27153
      this.cex = cex;
27154
    }
27155
 
27156
    public void unsetCex() {
27157
      this.cex = null;
27158
    }
27159
 
27160
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
27161
    public boolean isSetCex() {
27162
      return this.cex != null;
27163
    }
27164
 
27165
    public void setCexIsSet(boolean value) {
27166
      if (!value) {
27167
        this.cex = null;
27168
      }
27169
    }
27170
 
27171
    public void setFieldValue(_Fields field, Object value) {
27172
      switch (field) {
27173
      case SUCCESS:
27174
        if (value == null) {
27175
          unsetSuccess();
27176
        } else {
27177
          setSuccess((Long)value);
27178
        }
27179
        break;
27180
 
27181
      case CEX:
27182
        if (value == null) {
27183
          unsetCex();
27184
        } else {
27185
          setCex((CatalogServiceException)value);
27186
        }
27187
        break;
27188
 
27189
      }
27190
    }
27191
 
27192
    public Object getFieldValue(_Fields field) {
27193
      switch (field) {
27194
      case SUCCESS:
27195
        return Long.valueOf(getSuccess());
27196
 
27197
      case CEX:
27198
        return getCex();
27199
 
27200
      }
27201
      throw new IllegalStateException();
27202
    }
27203
 
27204
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27205
    public boolean isSet(_Fields field) {
27206
      if (field == null) {
27207
        throw new IllegalArgumentException();
27208
      }
27209
 
27210
      switch (field) {
27211
      case SUCCESS:
27212
        return isSetSuccess();
27213
      case CEX:
27214
        return isSetCex();
27215
      }
27216
      throw new IllegalStateException();
27217
    }
27218
 
27219
    @Override
27220
    public boolean equals(Object that) {
27221
      if (that == null)
27222
        return false;
27223
      if (that instanceof getLatestArrivalsCount_result)
27224
        return this.equals((getLatestArrivalsCount_result)that);
27225
      return false;
27226
    }
27227
 
27228
    public boolean equals(getLatestArrivalsCount_result that) {
27229
      if (that == null)
27230
        return false;
27231
 
27232
      boolean this_present_success = true;
27233
      boolean that_present_success = true;
27234
      if (this_present_success || that_present_success) {
27235
        if (!(this_present_success && that_present_success))
27236
          return false;
27237
        if (this.success != that.success)
27238
          return false;
27239
      }
27240
 
27241
      boolean this_present_cex = true && this.isSetCex();
27242
      boolean that_present_cex = true && that.isSetCex();
27243
      if (this_present_cex || that_present_cex) {
27244
        if (!(this_present_cex && that_present_cex))
27245
          return false;
27246
        if (!this.cex.equals(that.cex))
27247
          return false;
27248
      }
27249
 
27250
      return true;
27251
    }
27252
 
27253
    @Override
27254
    public int hashCode() {
27255
      return 0;
27256
    }
27257
 
27258
    public int compareTo(getLatestArrivalsCount_result other) {
27259
      if (!getClass().equals(other.getClass())) {
27260
        return getClass().getName().compareTo(other.getClass().getName());
27261
      }
27262
 
27263
      int lastComparison = 0;
27264
      getLatestArrivalsCount_result typedOther = (getLatestArrivalsCount_result)other;
27265
 
27266
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27267
      if (lastComparison != 0) {
27268
        return lastComparison;
27269
      }
27270
      if (isSetSuccess()) {
27271
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27272
        if (lastComparison != 0) {
27273
          return lastComparison;
27274
        }
27275
      }
27276
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
27277
      if (lastComparison != 0) {
27278
        return lastComparison;
27279
      }
27280
      if (isSetCex()) {
27281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
27282
        if (lastComparison != 0) {
27283
          return lastComparison;
27284
        }
27285
      }
27286
      return 0;
27287
    }
27288
 
27289
    public _Fields fieldForId(int fieldId) {
27290
      return _Fields.findByThriftId(fieldId);
27291
    }
27292
 
27293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27294
      org.apache.thrift.protocol.TField field;
27295
      iprot.readStructBegin();
27296
      while (true)
27297
      {
27298
        field = iprot.readFieldBegin();
27299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27300
          break;
27301
        }
27302
        switch (field.id) {
27303
          case 0: // SUCCESS
27304
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27305
              this.success = iprot.readI64();
27306
              setSuccessIsSet(true);
27307
            } else { 
27308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27309
            }
27310
            break;
27311
          case 1: // CEX
27312
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27313
              this.cex = new CatalogServiceException();
27314
              this.cex.read(iprot);
27315
            } else { 
27316
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27317
            }
27318
            break;
27319
          default:
27320
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27321
        }
27322
        iprot.readFieldEnd();
27323
      }
27324
      iprot.readStructEnd();
27325
      validate();
27326
    }
27327
 
27328
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27329
      oprot.writeStructBegin(STRUCT_DESC);
27330
 
27331
      if (this.isSetSuccess()) {
27332
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27333
        oprot.writeI64(this.success);
27334
        oprot.writeFieldEnd();
27335
      } else if (this.isSetCex()) {
27336
        oprot.writeFieldBegin(CEX_FIELD_DESC);
27337
        this.cex.write(oprot);
27338
        oprot.writeFieldEnd();
27339
      }
27340
      oprot.writeFieldStop();
27341
      oprot.writeStructEnd();
27342
    }
27343
 
27344
    @Override
27345
    public String toString() {
27346
      StringBuilder sb = new StringBuilder("getLatestArrivalsCount_result(");
27347
      boolean first = true;
27348
 
27349
      sb.append("success:");
27350
      sb.append(this.success);
27351
      first = false;
27352
      if (!first) sb.append(", ");
27353
      sb.append("cex:");
27354
      if (this.cex == null) {
27355
        sb.append("null");
27356
      } else {
27357
        sb.append(this.cex);
27358
      }
27359
      first = false;
27360
      sb.append(")");
27361
      return sb.toString();
27362
    }
27363
 
27364
    public void validate() throws org.apache.thrift.TException {
27365
      // check for required fields
27366
    }
27367
 
27368
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27369
      try {
27370
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27371
      } catch (org.apache.thrift.TException te) {
27372
        throw new java.io.IOException(te);
27373
      }
27374
    }
27375
 
27376
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27377
      try {
27378
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27379
      } catch (org.apache.thrift.TException te) {
27380
        throw new java.io.IOException(te);
27381
      }
27382
    }
27383
 
27384
  }
27385
 
27386
  public static class generateNewEntityID_args implements org.apache.thrift.TBase<generateNewEntityID_args, generateNewEntityID_args._Fields>, java.io.Serializable, Cloneable   {
27387
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateNewEntityID_args");
27388
 
27389
 
27390
 
27391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27393
;
27394
 
27395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27396
 
27397
      static {
27398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27399
          byName.put(field.getFieldName(), field);
27400
        }
27401
      }
27402
 
27403
      /**
27404
       * Find the _Fields constant that matches fieldId, or null if its not found.
27405
       */
27406
      public static _Fields findByThriftId(int fieldId) {
27407
        switch(fieldId) {
27408
          default:
27409
            return null;
27410
        }
27411
      }
27412
 
27413
      /**
27414
       * Find the _Fields constant that matches fieldId, throwing an exception
27415
       * if it is not found.
27416
       */
27417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27418
        _Fields fields = findByThriftId(fieldId);
27419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27420
        return fields;
27421
      }
27422
 
27423
      /**
27424
       * Find the _Fields constant that matches name, or null if its not found.
27425
       */
27426
      public static _Fields findByName(String name) {
27427
        return byName.get(name);
27428
      }
27429
 
27430
      private final short _thriftId;
27431
      private final String _fieldName;
27432
 
27433
      _Fields(short thriftId, String fieldName) {
27434
        _thriftId = thriftId;
27435
        _fieldName = fieldName;
27436
      }
27437
 
27438
      public short getThriftFieldId() {
27439
        return _thriftId;
27440
      }
27441
 
27442
      public String getFieldName() {
27443
        return _fieldName;
27444
      }
27445
    }
27446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27447
    static {
27448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(generateNewEntityID_args.class, metaDataMap);
27451
    }
27452
 
27453
    public generateNewEntityID_args() {
27454
    }
27455
 
27456
    /**
27457
     * Performs a deep copy on <i>other</i>.
27458
     */
27459
    public generateNewEntityID_args(generateNewEntityID_args other) {
27460
    }
27461
 
27462
    public generateNewEntityID_args deepCopy() {
27463
      return new generateNewEntityID_args(this);
27464
    }
27465
 
27466
    @Override
27467
    public void clear() {
27468
    }
27469
 
27470
    public void setFieldValue(_Fields field, Object value) {
27471
      switch (field) {
27472
      }
27473
    }
27474
 
27475
    public Object getFieldValue(_Fields field) {
27476
      switch (field) {
27477
      }
27478
      throw new IllegalStateException();
27479
    }
27480
 
27481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27482
    public boolean isSet(_Fields field) {
27483
      if (field == null) {
27484
        throw new IllegalArgumentException();
27485
      }
27486
 
27487
      switch (field) {
27488
      }
27489
      throw new IllegalStateException();
27490
    }
27491
 
27492
    @Override
27493
    public boolean equals(Object that) {
27494
      if (that == null)
27495
        return false;
27496
      if (that instanceof generateNewEntityID_args)
27497
        return this.equals((generateNewEntityID_args)that);
27498
      return false;
27499
    }
27500
 
27501
    public boolean equals(generateNewEntityID_args that) {
27502
      if (that == null)
27503
        return false;
27504
 
27505
      return true;
27506
    }
27507
 
27508
    @Override
27509
    public int hashCode() {
27510
      return 0;
27511
    }
27512
 
27513
    public int compareTo(generateNewEntityID_args other) {
27514
      if (!getClass().equals(other.getClass())) {
27515
        return getClass().getName().compareTo(other.getClass().getName());
27516
      }
27517
 
27518
      int lastComparison = 0;
27519
      generateNewEntityID_args typedOther = (generateNewEntityID_args)other;
27520
 
27521
      return 0;
27522
    }
27523
 
27524
    public _Fields fieldForId(int fieldId) {
27525
      return _Fields.findByThriftId(fieldId);
27526
    }
27527
 
27528
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27529
      org.apache.thrift.protocol.TField field;
27530
      iprot.readStructBegin();
27531
      while (true)
27532
      {
27533
        field = iprot.readFieldBegin();
27534
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27535
          break;
27536
        }
27537
        switch (field.id) {
27538
          default:
27539
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27540
        }
27541
        iprot.readFieldEnd();
27542
      }
27543
      iprot.readStructEnd();
27544
      validate();
27545
    }
27546
 
27547
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27548
      validate();
27549
 
27550
      oprot.writeStructBegin(STRUCT_DESC);
27551
      oprot.writeFieldStop();
27552
      oprot.writeStructEnd();
27553
    }
27554
 
27555
    @Override
27556
    public String toString() {
27557
      StringBuilder sb = new StringBuilder("generateNewEntityID_args(");
27558
      boolean first = true;
27559
 
27560
      sb.append(")");
27561
      return sb.toString();
27562
    }
27563
 
27564
    public void validate() throws org.apache.thrift.TException {
27565
      // check for required fields
27566
    }
27567
 
27568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27569
      try {
27570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27571
      } catch (org.apache.thrift.TException te) {
27572
        throw new java.io.IOException(te);
27573
      }
27574
    }
27575
 
27576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27577
      try {
27578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27579
      } catch (org.apache.thrift.TException te) {
27580
        throw new java.io.IOException(te);
27581
      }
27582
    }
27583
 
27584
  }
27585
 
27586
  public static class generateNewEntityID_result implements org.apache.thrift.TBase<generateNewEntityID_result, generateNewEntityID_result._Fields>, java.io.Serializable, Cloneable   {
27587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateNewEntityID_result");
27588
 
27589
    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);
27590
 
27591
    private long success; // required
27592
 
27593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27595
      SUCCESS((short)0, "success");
27596
 
27597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27598
 
27599
      static {
27600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27601
          byName.put(field.getFieldName(), field);
27602
        }
27603
      }
27604
 
27605
      /**
27606
       * Find the _Fields constant that matches fieldId, or null if its not found.
27607
       */
27608
      public static _Fields findByThriftId(int fieldId) {
27609
        switch(fieldId) {
27610
          case 0: // SUCCESS
27611
            return SUCCESS;
27612
          default:
27613
            return null;
27614
        }
27615
      }
27616
 
27617
      /**
27618
       * Find the _Fields constant that matches fieldId, throwing an exception
27619
       * if it is not found.
27620
       */
27621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27622
        _Fields fields = findByThriftId(fieldId);
27623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27624
        return fields;
27625
      }
27626
 
27627
      /**
27628
       * Find the _Fields constant that matches name, or null if its not found.
27629
       */
27630
      public static _Fields findByName(String name) {
27631
        return byName.get(name);
27632
      }
27633
 
27634
      private final short _thriftId;
27635
      private final String _fieldName;
27636
 
27637
      _Fields(short thriftId, String fieldName) {
27638
        _thriftId = thriftId;
27639
        _fieldName = fieldName;
27640
      }
27641
 
27642
      public short getThriftFieldId() {
27643
        return _thriftId;
27644
      }
27645
 
27646
      public String getFieldName() {
27647
        return _fieldName;
27648
      }
27649
    }
27650
 
27651
    // isset id assignments
27652
    private static final int __SUCCESS_ISSET_ID = 0;
27653
    private BitSet __isset_bit_vector = new BitSet(1);
27654
 
27655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27656
    static {
27657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27658
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(generateNewEntityID_result.class, metaDataMap);
27662
    }
27663
 
27664
    public generateNewEntityID_result() {
27665
    }
27666
 
27667
    public generateNewEntityID_result(
27668
      long success)
27669
    {
27670
      this();
27671
      this.success = success;
27672
      setSuccessIsSet(true);
27673
    }
27674
 
27675
    /**
27676
     * Performs a deep copy on <i>other</i>.
27677
     */
27678
    public generateNewEntityID_result(generateNewEntityID_result other) {
27679
      __isset_bit_vector.clear();
27680
      __isset_bit_vector.or(other.__isset_bit_vector);
27681
      this.success = other.success;
27682
    }
27683
 
27684
    public generateNewEntityID_result deepCopy() {
27685
      return new generateNewEntityID_result(this);
27686
    }
27687
 
27688
    @Override
27689
    public void clear() {
27690
      setSuccessIsSet(false);
27691
      this.success = 0;
27692
    }
27693
 
27694
    public long getSuccess() {
27695
      return this.success;
27696
    }
27697
 
27698
    public void setSuccess(long success) {
27699
      this.success = success;
27700
      setSuccessIsSet(true);
27701
    }
27702
 
27703
    public void unsetSuccess() {
27704
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27705
    }
27706
 
27707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27708
    public boolean isSetSuccess() {
27709
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27710
    }
27711
 
27712
    public void setSuccessIsSet(boolean value) {
27713
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27714
    }
27715
 
27716
    public void setFieldValue(_Fields field, Object value) {
27717
      switch (field) {
27718
      case SUCCESS:
27719
        if (value == null) {
27720
          unsetSuccess();
27721
        } else {
27722
          setSuccess((Long)value);
27723
        }
27724
        break;
27725
 
27726
      }
27727
    }
27728
 
27729
    public Object getFieldValue(_Fields field) {
27730
      switch (field) {
27731
      case SUCCESS:
27732
        return Long.valueOf(getSuccess());
27733
 
27734
      }
27735
      throw new IllegalStateException();
27736
    }
27737
 
27738
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27739
    public boolean isSet(_Fields field) {
27740
      if (field == null) {
27741
        throw new IllegalArgumentException();
27742
      }
27743
 
27744
      switch (field) {
27745
      case SUCCESS:
27746
        return isSetSuccess();
27747
      }
27748
      throw new IllegalStateException();
27749
    }
27750
 
27751
    @Override
27752
    public boolean equals(Object that) {
27753
      if (that == null)
27754
        return false;
27755
      if (that instanceof generateNewEntityID_result)
27756
        return this.equals((generateNewEntityID_result)that);
27757
      return false;
27758
    }
27759
 
27760
    public boolean equals(generateNewEntityID_result that) {
27761
      if (that == null)
27762
        return false;
27763
 
27764
      boolean this_present_success = true;
27765
      boolean that_present_success = true;
27766
      if (this_present_success || that_present_success) {
27767
        if (!(this_present_success && that_present_success))
27768
          return false;
27769
        if (this.success != that.success)
27770
          return false;
27771
      }
27772
 
27773
      return true;
27774
    }
27775
 
27776
    @Override
27777
    public int hashCode() {
27778
      return 0;
27779
    }
27780
 
27781
    public int compareTo(generateNewEntityID_result other) {
27782
      if (!getClass().equals(other.getClass())) {
27783
        return getClass().getName().compareTo(other.getClass().getName());
27784
      }
27785
 
27786
      int lastComparison = 0;
27787
      generateNewEntityID_result typedOther = (generateNewEntityID_result)other;
27788
 
27789
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27790
      if (lastComparison != 0) {
27791
        return lastComparison;
27792
      }
27793
      if (isSetSuccess()) {
27794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27795
        if (lastComparison != 0) {
27796
          return lastComparison;
27797
        }
27798
      }
27799
      return 0;
27800
    }
27801
 
27802
    public _Fields fieldForId(int fieldId) {
27803
      return _Fields.findByThriftId(fieldId);
27804
    }
27805
 
27806
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27807
      org.apache.thrift.protocol.TField field;
27808
      iprot.readStructBegin();
27809
      while (true)
27810
      {
27811
        field = iprot.readFieldBegin();
27812
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27813
          break;
27814
        }
27815
        switch (field.id) {
27816
          case 0: // SUCCESS
27817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27818
              this.success = iprot.readI64();
27819
              setSuccessIsSet(true);
27820
            } else { 
27821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27822
            }
27823
            break;
27824
          default:
27825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27826
        }
27827
        iprot.readFieldEnd();
27828
      }
27829
      iprot.readStructEnd();
27830
      validate();
27831
    }
27832
 
27833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27834
      oprot.writeStructBegin(STRUCT_DESC);
27835
 
27836
      if (this.isSetSuccess()) {
27837
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27838
        oprot.writeI64(this.success);
27839
        oprot.writeFieldEnd();
27840
      }
27841
      oprot.writeFieldStop();
27842
      oprot.writeStructEnd();
27843
    }
27844
 
27845
    @Override
27846
    public String toString() {
27847
      StringBuilder sb = new StringBuilder("generateNewEntityID_result(");
27848
      boolean first = true;
27849
 
27850
      sb.append("success:");
27851
      sb.append(this.success);
27852
      first = false;
27853
      sb.append(")");
27854
      return sb.toString();
27855
    }
27856
 
27857
    public void validate() throws org.apache.thrift.TException {
27858
      // check for required fields
27859
    }
27860
 
27861
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27862
      try {
27863
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27864
      } catch (org.apache.thrift.TException te) {
27865
        throw new java.io.IOException(te);
27866
      }
27867
    }
27868
 
27869
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27870
      try {
27871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27872
      } catch (org.apache.thrift.TException te) {
27873
        throw new java.io.IOException(te);
27874
      }
27875
    }
27876
 
27877
  }
27878
 
27879
  public static class addCategory_args implements org.apache.thrift.TBase<addCategory_args, addCategory_args._Fields>, java.io.Serializable, Cloneable   {
27880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCategory_args");
27881
 
27882
    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);
27883
 
27884
    private Category category; // required
27885
 
27886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27888
      CATEGORY((short)1, "category");
27889
 
27890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27891
 
27892
      static {
27893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27894
          byName.put(field.getFieldName(), field);
27895
        }
27896
      }
27897
 
27898
      /**
27899
       * Find the _Fields constant that matches fieldId, or null if its not found.
27900
       */
27901
      public static _Fields findByThriftId(int fieldId) {
27902
        switch(fieldId) {
27903
          case 1: // CATEGORY
27904
            return CATEGORY;
27905
          default:
27906
            return null;
27907
        }
27908
      }
27909
 
27910
      /**
27911
       * Find the _Fields constant that matches fieldId, throwing an exception
27912
       * if it is not found.
27913
       */
27914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27915
        _Fields fields = findByThriftId(fieldId);
27916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27917
        return fields;
27918
      }
27919
 
27920
      /**
27921
       * Find the _Fields constant that matches name, or null if its not found.
27922
       */
27923
      public static _Fields findByName(String name) {
27924
        return byName.get(name);
27925
      }
27926
 
27927
      private final short _thriftId;
27928
      private final String _fieldName;
27929
 
27930
      _Fields(short thriftId, String fieldName) {
27931
        _thriftId = thriftId;
27932
        _fieldName = fieldName;
27933
      }
27934
 
27935
      public short getThriftFieldId() {
27936
        return _thriftId;
27937
      }
27938
 
27939
      public String getFieldName() {
27940
        return _fieldName;
27941
      }
27942
    }
27943
 
27944
    // isset id assignments
27945
 
27946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27947
    static {
27948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27949
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27950
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class)));
27951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCategory_args.class, metaDataMap);
27953
    }
27954
 
27955
    public addCategory_args() {
27956
    }
27957
 
27958
    public addCategory_args(
27959
      Category category)
27960
    {
27961
      this();
27962
      this.category = category;
27963
    }
27964
 
27965
    /**
27966
     * Performs a deep copy on <i>other</i>.
27967
     */
27968
    public addCategory_args(addCategory_args other) {
27969
      if (other.isSetCategory()) {
27970
        this.category = new Category(other.category);
27971
      }
27972
    }
27973
 
27974
    public addCategory_args deepCopy() {
27975
      return new addCategory_args(this);
27976
    }
27977
 
27978
    @Override
27979
    public void clear() {
27980
      this.category = null;
27981
    }
27982
 
27983
    public Category getCategory() {
27984
      return this.category;
27985
    }
27986
 
27987
    public void setCategory(Category category) {
27988
      this.category = category;
27989
    }
27990
 
27991
    public void unsetCategory() {
27992
      this.category = null;
27993
    }
27994
 
27995
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
27996
    public boolean isSetCategory() {
27997
      return this.category != null;
27998
    }
27999
 
28000
    public void setCategoryIsSet(boolean value) {
28001
      if (!value) {
28002
        this.category = null;
28003
      }
28004
    }
28005
 
28006
    public void setFieldValue(_Fields field, Object value) {
28007
      switch (field) {
28008
      case CATEGORY:
28009
        if (value == null) {
28010
          unsetCategory();
28011
        } else {
28012
          setCategory((Category)value);
28013
        }
28014
        break;
28015
 
28016
      }
28017
    }
28018
 
28019
    public Object getFieldValue(_Fields field) {
28020
      switch (field) {
28021
      case CATEGORY:
28022
        return getCategory();
28023
 
28024
      }
28025
      throw new IllegalStateException();
28026
    }
28027
 
28028
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28029
    public boolean isSet(_Fields field) {
28030
      if (field == null) {
28031
        throw new IllegalArgumentException();
28032
      }
28033
 
28034
      switch (field) {
28035
      case CATEGORY:
28036
        return isSetCategory();
28037
      }
28038
      throw new IllegalStateException();
28039
    }
28040
 
28041
    @Override
28042
    public boolean equals(Object that) {
28043
      if (that == null)
28044
        return false;
28045
      if (that instanceof addCategory_args)
28046
        return this.equals((addCategory_args)that);
28047
      return false;
28048
    }
28049
 
28050
    public boolean equals(addCategory_args that) {
28051
      if (that == null)
28052
        return false;
28053
 
28054
      boolean this_present_category = true && this.isSetCategory();
28055
      boolean that_present_category = true && that.isSetCategory();
28056
      if (this_present_category || that_present_category) {
28057
        if (!(this_present_category && that_present_category))
28058
          return false;
28059
        if (!this.category.equals(that.category))
28060
          return false;
28061
      }
28062
 
28063
      return true;
28064
    }
28065
 
28066
    @Override
28067
    public int hashCode() {
28068
      return 0;
28069
    }
28070
 
28071
    public int compareTo(addCategory_args other) {
28072
      if (!getClass().equals(other.getClass())) {
28073
        return getClass().getName().compareTo(other.getClass().getName());
28074
      }
28075
 
28076
      int lastComparison = 0;
28077
      addCategory_args typedOther = (addCategory_args)other;
28078
 
28079
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
28080
      if (lastComparison != 0) {
28081
        return lastComparison;
28082
      }
28083
      if (isSetCategory()) {
28084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
28085
        if (lastComparison != 0) {
28086
          return lastComparison;
28087
        }
28088
      }
28089
      return 0;
28090
    }
28091
 
28092
    public _Fields fieldForId(int fieldId) {
28093
      return _Fields.findByThriftId(fieldId);
28094
    }
28095
 
28096
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28097
      org.apache.thrift.protocol.TField field;
28098
      iprot.readStructBegin();
28099
      while (true)
28100
      {
28101
        field = iprot.readFieldBegin();
28102
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28103
          break;
28104
        }
28105
        switch (field.id) {
28106
          case 1: // CATEGORY
28107
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28108
              this.category = new Category();
28109
              this.category.read(iprot);
28110
            } else { 
28111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28112
            }
28113
            break;
28114
          default:
28115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28116
        }
28117
        iprot.readFieldEnd();
28118
      }
28119
      iprot.readStructEnd();
28120
      validate();
28121
    }
28122
 
28123
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28124
      validate();
28125
 
28126
      oprot.writeStructBegin(STRUCT_DESC);
28127
      if (this.category != null) {
28128
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
28129
        this.category.write(oprot);
28130
        oprot.writeFieldEnd();
28131
      }
28132
      oprot.writeFieldStop();
28133
      oprot.writeStructEnd();
28134
    }
28135
 
28136
    @Override
28137
    public String toString() {
28138
      StringBuilder sb = new StringBuilder("addCategory_args(");
28139
      boolean first = true;
28140
 
28141
      sb.append("category:");
28142
      if (this.category == null) {
28143
        sb.append("null");
28144
      } else {
28145
        sb.append(this.category);
28146
      }
28147
      first = false;
28148
      sb.append(")");
28149
      return sb.toString();
28150
    }
28151
 
28152
    public void validate() throws org.apache.thrift.TException {
28153
      // check for required fields
28154
    }
28155
 
28156
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28157
      try {
28158
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28159
      } catch (org.apache.thrift.TException te) {
28160
        throw new java.io.IOException(te);
28161
      }
28162
    }
28163
 
28164
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28165
      try {
28166
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28167
      } catch (org.apache.thrift.TException te) {
28168
        throw new java.io.IOException(te);
28169
      }
28170
    }
28171
 
28172
  }
28173
 
28174
  public static class addCategory_result implements org.apache.thrift.TBase<addCategory_result, addCategory_result._Fields>, java.io.Serializable, Cloneable   {
28175
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCategory_result");
28176
 
28177
    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);
28178
 
28179
    private boolean success; // required
28180
 
28181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28182
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28183
      SUCCESS((short)0, "success");
28184
 
28185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28186
 
28187
      static {
28188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28189
          byName.put(field.getFieldName(), field);
28190
        }
28191
      }
28192
 
28193
      /**
28194
       * Find the _Fields constant that matches fieldId, or null if its not found.
28195
       */
28196
      public static _Fields findByThriftId(int fieldId) {
28197
        switch(fieldId) {
28198
          case 0: // SUCCESS
28199
            return SUCCESS;
28200
          default:
28201
            return null;
28202
        }
28203
      }
28204
 
28205
      /**
28206
       * Find the _Fields constant that matches fieldId, throwing an exception
28207
       * if it is not found.
28208
       */
28209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28210
        _Fields fields = findByThriftId(fieldId);
28211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28212
        return fields;
28213
      }
28214
 
28215
      /**
28216
       * Find the _Fields constant that matches name, or null if its not found.
28217
       */
28218
      public static _Fields findByName(String name) {
28219
        return byName.get(name);
28220
      }
28221
 
28222
      private final short _thriftId;
28223
      private final String _fieldName;
28224
 
28225
      _Fields(short thriftId, String fieldName) {
28226
        _thriftId = thriftId;
28227
        _fieldName = fieldName;
28228
      }
28229
 
28230
      public short getThriftFieldId() {
28231
        return _thriftId;
28232
      }
28233
 
28234
      public String getFieldName() {
28235
        return _fieldName;
28236
      }
28237
    }
28238
 
28239
    // isset id assignments
28240
    private static final int __SUCCESS_ISSET_ID = 0;
28241
    private BitSet __isset_bit_vector = new BitSet(1);
28242
 
28243
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28244
    static {
28245
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28246
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28248
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28249
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCategory_result.class, metaDataMap);
28250
    }
28251
 
28252
    public addCategory_result() {
28253
    }
28254
 
28255
    public addCategory_result(
28256
      boolean success)
28257
    {
28258
      this();
28259
      this.success = success;
28260
      setSuccessIsSet(true);
28261
    }
28262
 
28263
    /**
28264
     * Performs a deep copy on <i>other</i>.
28265
     */
28266
    public addCategory_result(addCategory_result other) {
28267
      __isset_bit_vector.clear();
28268
      __isset_bit_vector.or(other.__isset_bit_vector);
28269
      this.success = other.success;
28270
    }
28271
 
28272
    public addCategory_result deepCopy() {
28273
      return new addCategory_result(this);
28274
    }
28275
 
28276
    @Override
28277
    public void clear() {
28278
      setSuccessIsSet(false);
28279
      this.success = false;
28280
    }
28281
 
28282
    public boolean isSuccess() {
28283
      return this.success;
28284
    }
28285
 
28286
    public void setSuccess(boolean success) {
28287
      this.success = success;
28288
      setSuccessIsSet(true);
28289
    }
28290
 
28291
    public void unsetSuccess() {
28292
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28293
    }
28294
 
28295
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28296
    public boolean isSetSuccess() {
28297
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28298
    }
28299
 
28300
    public void setSuccessIsSet(boolean value) {
28301
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28302
    }
28303
 
28304
    public void setFieldValue(_Fields field, Object value) {
28305
      switch (field) {
28306
      case SUCCESS:
28307
        if (value == null) {
28308
          unsetSuccess();
28309
        } else {
28310
          setSuccess((Boolean)value);
28311
        }
28312
        break;
28313
 
28314
      }
28315
    }
28316
 
28317
    public Object getFieldValue(_Fields field) {
28318
      switch (field) {
28319
      case SUCCESS:
28320
        return Boolean.valueOf(isSuccess());
28321
 
28322
      }
28323
      throw new IllegalStateException();
28324
    }
28325
 
28326
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28327
    public boolean isSet(_Fields field) {
28328
      if (field == null) {
28329
        throw new IllegalArgumentException();
28330
      }
28331
 
28332
      switch (field) {
28333
      case SUCCESS:
28334
        return isSetSuccess();
28335
      }
28336
      throw new IllegalStateException();
28337
    }
28338
 
28339
    @Override
28340
    public boolean equals(Object that) {
28341
      if (that == null)
28342
        return false;
28343
      if (that instanceof addCategory_result)
28344
        return this.equals((addCategory_result)that);
28345
      return false;
28346
    }
28347
 
28348
    public boolean equals(addCategory_result that) {
28349
      if (that == null)
28350
        return false;
28351
 
28352
      boolean this_present_success = true;
28353
      boolean that_present_success = true;
28354
      if (this_present_success || that_present_success) {
28355
        if (!(this_present_success && that_present_success))
28356
          return false;
28357
        if (this.success != that.success)
28358
          return false;
28359
      }
28360
 
28361
      return true;
28362
    }
28363
 
28364
    @Override
28365
    public int hashCode() {
28366
      return 0;
28367
    }
28368
 
28369
    public int compareTo(addCategory_result other) {
28370
      if (!getClass().equals(other.getClass())) {
28371
        return getClass().getName().compareTo(other.getClass().getName());
28372
      }
28373
 
28374
      int lastComparison = 0;
28375
      addCategory_result typedOther = (addCategory_result)other;
28376
 
28377
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28378
      if (lastComparison != 0) {
28379
        return lastComparison;
28380
      }
28381
      if (isSetSuccess()) {
28382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28383
        if (lastComparison != 0) {
28384
          return lastComparison;
28385
        }
28386
      }
28387
      return 0;
28388
    }
28389
 
28390
    public _Fields fieldForId(int fieldId) {
28391
      return _Fields.findByThriftId(fieldId);
28392
    }
28393
 
28394
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28395
      org.apache.thrift.protocol.TField field;
28396
      iprot.readStructBegin();
28397
      while (true)
28398
      {
28399
        field = iprot.readFieldBegin();
28400
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28401
          break;
28402
        }
28403
        switch (field.id) {
28404
          case 0: // SUCCESS
28405
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28406
              this.success = iprot.readBool();
28407
              setSuccessIsSet(true);
28408
            } else { 
28409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28410
            }
28411
            break;
28412
          default:
28413
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28414
        }
28415
        iprot.readFieldEnd();
28416
      }
28417
      iprot.readStructEnd();
28418
      validate();
28419
    }
28420
 
28421
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28422
      oprot.writeStructBegin(STRUCT_DESC);
28423
 
28424
      if (this.isSetSuccess()) {
28425
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28426
        oprot.writeBool(this.success);
28427
        oprot.writeFieldEnd();
28428
      }
28429
      oprot.writeFieldStop();
28430
      oprot.writeStructEnd();
28431
    }
28432
 
28433
    @Override
28434
    public String toString() {
28435
      StringBuilder sb = new StringBuilder("addCategory_result(");
28436
      boolean first = true;
28437
 
28438
      sb.append("success:");
28439
      sb.append(this.success);
28440
      first = false;
28441
      sb.append(")");
28442
      return sb.toString();
28443
    }
28444
 
28445
    public void validate() throws org.apache.thrift.TException {
28446
      // check for required fields
28447
    }
28448
 
28449
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28450
      try {
28451
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28452
      } catch (org.apache.thrift.TException te) {
28453
        throw new java.io.IOException(te);
28454
      }
28455
    }
28456
 
28457
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28458
      try {
28459
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28460
      } catch (org.apache.thrift.TException te) {
28461
        throw new java.io.IOException(te);
28462
      }
28463
    }
28464
 
28465
  }
28466
 
28467
  public static class getCategory_args implements org.apache.thrift.TBase<getCategory_args, getCategory_args._Fields>, java.io.Serializable, Cloneable   {
28468
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCategory_args");
28469
 
28470
    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);
28471
 
28472
    private long id; // required
28473
 
28474
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28475
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28476
      ID((short)1, "id");
28477
 
28478
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28479
 
28480
      static {
28481
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28482
          byName.put(field.getFieldName(), field);
28483
        }
28484
      }
28485
 
28486
      /**
28487
       * Find the _Fields constant that matches fieldId, or null if its not found.
28488
       */
28489
      public static _Fields findByThriftId(int fieldId) {
28490
        switch(fieldId) {
28491
          case 1: // ID
28492
            return ID;
28493
          default:
28494
            return null;
28495
        }
28496
      }
28497
 
28498
      /**
28499
       * Find the _Fields constant that matches fieldId, throwing an exception
28500
       * if it is not found.
28501
       */
28502
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28503
        _Fields fields = findByThriftId(fieldId);
28504
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28505
        return fields;
28506
      }
28507
 
28508
      /**
28509
       * Find the _Fields constant that matches name, or null if its not found.
28510
       */
28511
      public static _Fields findByName(String name) {
28512
        return byName.get(name);
28513
      }
28514
 
28515
      private final short _thriftId;
28516
      private final String _fieldName;
28517
 
28518
      _Fields(short thriftId, String fieldName) {
28519
        _thriftId = thriftId;
28520
        _fieldName = fieldName;
28521
      }
28522
 
28523
      public short getThriftFieldId() {
28524
        return _thriftId;
28525
      }
28526
 
28527
      public String getFieldName() {
28528
        return _fieldName;
28529
      }
28530
    }
28531
 
28532
    // isset id assignments
28533
    private static final int __ID_ISSET_ID = 0;
28534
    private BitSet __isset_bit_vector = new BitSet(1);
28535
 
28536
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28537
    static {
28538
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28539
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28541
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28542
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCategory_args.class, metaDataMap);
28543
    }
28544
 
28545
    public getCategory_args() {
28546
    }
28547
 
28548
    public getCategory_args(
28549
      long id)
28550
    {
28551
      this();
28552
      this.id = id;
28553
      setIdIsSet(true);
28554
    }
28555
 
28556
    /**
28557
     * Performs a deep copy on <i>other</i>.
28558
     */
28559
    public getCategory_args(getCategory_args other) {
28560
      __isset_bit_vector.clear();
28561
      __isset_bit_vector.or(other.__isset_bit_vector);
28562
      this.id = other.id;
28563
    }
28564
 
28565
    public getCategory_args deepCopy() {
28566
      return new getCategory_args(this);
28567
    }
28568
 
28569
    @Override
28570
    public void clear() {
28571
      setIdIsSet(false);
28572
      this.id = 0;
28573
    }
28574
 
28575
    public long getId() {
28576
      return this.id;
28577
    }
28578
 
28579
    public void setId(long id) {
28580
      this.id = id;
28581
      setIdIsSet(true);
28582
    }
28583
 
28584
    public void unsetId() {
28585
      __isset_bit_vector.clear(__ID_ISSET_ID);
28586
    }
28587
 
28588
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
28589
    public boolean isSetId() {
28590
      return __isset_bit_vector.get(__ID_ISSET_ID);
28591
    }
28592
 
28593
    public void setIdIsSet(boolean value) {
28594
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28595
    }
28596
 
28597
    public void setFieldValue(_Fields field, Object value) {
28598
      switch (field) {
28599
      case ID:
28600
        if (value == null) {
28601
          unsetId();
28602
        } else {
28603
          setId((Long)value);
28604
        }
28605
        break;
28606
 
28607
      }
28608
    }
28609
 
28610
    public Object getFieldValue(_Fields field) {
28611
      switch (field) {
28612
      case ID:
28613
        return Long.valueOf(getId());
28614
 
28615
      }
28616
      throw new IllegalStateException();
28617
    }
28618
 
28619
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28620
    public boolean isSet(_Fields field) {
28621
      if (field == null) {
28622
        throw new IllegalArgumentException();
28623
      }
28624
 
28625
      switch (field) {
28626
      case ID:
28627
        return isSetId();
28628
      }
28629
      throw new IllegalStateException();
28630
    }
28631
 
28632
    @Override
28633
    public boolean equals(Object that) {
28634
      if (that == null)
28635
        return false;
28636
      if (that instanceof getCategory_args)
28637
        return this.equals((getCategory_args)that);
28638
      return false;
28639
    }
28640
 
28641
    public boolean equals(getCategory_args that) {
28642
      if (that == null)
28643
        return false;
28644
 
28645
      boolean this_present_id = true;
28646
      boolean that_present_id = true;
28647
      if (this_present_id || that_present_id) {
28648
        if (!(this_present_id && that_present_id))
28649
          return false;
28650
        if (this.id != that.id)
28651
          return false;
28652
      }
28653
 
28654
      return true;
28655
    }
28656
 
28657
    @Override
28658
    public int hashCode() {
28659
      return 0;
28660
    }
28661
 
28662
    public int compareTo(getCategory_args other) {
28663
      if (!getClass().equals(other.getClass())) {
28664
        return getClass().getName().compareTo(other.getClass().getName());
28665
      }
28666
 
28667
      int lastComparison = 0;
28668
      getCategory_args typedOther = (getCategory_args)other;
28669
 
28670
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
28671
      if (lastComparison != 0) {
28672
        return lastComparison;
28673
      }
28674
      if (isSetId()) {
28675
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
28676
        if (lastComparison != 0) {
28677
          return lastComparison;
28678
        }
28679
      }
28680
      return 0;
28681
    }
28682
 
28683
    public _Fields fieldForId(int fieldId) {
28684
      return _Fields.findByThriftId(fieldId);
28685
    }
28686
 
28687
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28688
      org.apache.thrift.protocol.TField field;
28689
      iprot.readStructBegin();
28690
      while (true)
28691
      {
28692
        field = iprot.readFieldBegin();
28693
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28694
          break;
28695
        }
28696
        switch (field.id) {
28697
          case 1: // ID
28698
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28699
              this.id = iprot.readI64();
28700
              setIdIsSet(true);
28701
            } else { 
28702
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28703
            }
28704
            break;
28705
          default:
28706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28707
        }
28708
        iprot.readFieldEnd();
28709
      }
28710
      iprot.readStructEnd();
28711
      validate();
28712
    }
28713
 
28714
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28715
      validate();
28716
 
28717
      oprot.writeStructBegin(STRUCT_DESC);
28718
      oprot.writeFieldBegin(ID_FIELD_DESC);
28719
      oprot.writeI64(this.id);
28720
      oprot.writeFieldEnd();
28721
      oprot.writeFieldStop();
28722
      oprot.writeStructEnd();
28723
    }
28724
 
28725
    @Override
28726
    public String toString() {
28727
      StringBuilder sb = new StringBuilder("getCategory_args(");
28728
      boolean first = true;
28729
 
28730
      sb.append("id:");
28731
      sb.append(this.id);
28732
      first = false;
28733
      sb.append(")");
28734
      return sb.toString();
28735
    }
28736
 
28737
    public void validate() throws org.apache.thrift.TException {
28738
      // check for required fields
28739
    }
28740
 
28741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28742
      try {
28743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28744
      } catch (org.apache.thrift.TException te) {
28745
        throw new java.io.IOException(te);
28746
      }
28747
    }
28748
 
28749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28750
      try {
28751
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28752
        __isset_bit_vector = new BitSet(1);
28753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28754
      } catch (org.apache.thrift.TException te) {
28755
        throw new java.io.IOException(te);
28756
      }
28757
    }
28758
 
28759
  }
28760
 
28761
  public static class getCategory_result implements org.apache.thrift.TBase<getCategory_result, getCategory_result._Fields>, java.io.Serializable, Cloneable   {
28762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCategory_result");
28763
 
28764
    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);
28765
 
28766
    private Category success; // required
28767
 
28768
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28769
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28770
      SUCCESS((short)0, "success");
28771
 
28772
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28773
 
28774
      static {
28775
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28776
          byName.put(field.getFieldName(), field);
28777
        }
28778
      }
28779
 
28780
      /**
28781
       * Find the _Fields constant that matches fieldId, or null if its not found.
28782
       */
28783
      public static _Fields findByThriftId(int fieldId) {
28784
        switch(fieldId) {
28785
          case 0: // SUCCESS
28786
            return SUCCESS;
28787
          default:
28788
            return null;
28789
        }
28790
      }
28791
 
28792
      /**
28793
       * Find the _Fields constant that matches fieldId, throwing an exception
28794
       * if it is not found.
28795
       */
28796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28797
        _Fields fields = findByThriftId(fieldId);
28798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28799
        return fields;
28800
      }
28801
 
28802
      /**
28803
       * Find the _Fields constant that matches name, or null if its not found.
28804
       */
28805
      public static _Fields findByName(String name) {
28806
        return byName.get(name);
28807
      }
28808
 
28809
      private final short _thriftId;
28810
      private final String _fieldName;
28811
 
28812
      _Fields(short thriftId, String fieldName) {
28813
        _thriftId = thriftId;
28814
        _fieldName = fieldName;
28815
      }
28816
 
28817
      public short getThriftFieldId() {
28818
        return _thriftId;
28819
      }
28820
 
28821
      public String getFieldName() {
28822
        return _fieldName;
28823
      }
28824
    }
28825
 
28826
    // isset id assignments
28827
 
28828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28829
    static {
28830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28831
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28832
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class)));
28833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCategory_result.class, metaDataMap);
28835
    }
28836
 
28837
    public getCategory_result() {
28838
    }
28839
 
28840
    public getCategory_result(
28841
      Category success)
28842
    {
28843
      this();
28844
      this.success = success;
28845
    }
28846
 
28847
    /**
28848
     * Performs a deep copy on <i>other</i>.
28849
     */
28850
    public getCategory_result(getCategory_result other) {
28851
      if (other.isSetSuccess()) {
28852
        this.success = new Category(other.success);
28853
      }
28854
    }
28855
 
28856
    public getCategory_result deepCopy() {
28857
      return new getCategory_result(this);
28858
    }
28859
 
28860
    @Override
28861
    public void clear() {
28862
      this.success = null;
28863
    }
28864
 
28865
    public Category getSuccess() {
28866
      return this.success;
28867
    }
28868
 
28869
    public void setSuccess(Category success) {
28870
      this.success = success;
28871
    }
28872
 
28873
    public void unsetSuccess() {
28874
      this.success = null;
28875
    }
28876
 
28877
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28878
    public boolean isSetSuccess() {
28879
      return this.success != null;
28880
    }
28881
 
28882
    public void setSuccessIsSet(boolean value) {
28883
      if (!value) {
28884
        this.success = null;
28885
      }
28886
    }
28887
 
28888
    public void setFieldValue(_Fields field, Object value) {
28889
      switch (field) {
28890
      case SUCCESS:
28891
        if (value == null) {
28892
          unsetSuccess();
28893
        } else {
28894
          setSuccess((Category)value);
28895
        }
28896
        break;
28897
 
28898
      }
28899
    }
28900
 
28901
    public Object getFieldValue(_Fields field) {
28902
      switch (field) {
28903
      case SUCCESS:
28904
        return getSuccess();
28905
 
28906
      }
28907
      throw new IllegalStateException();
28908
    }
28909
 
28910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28911
    public boolean isSet(_Fields field) {
28912
      if (field == null) {
28913
        throw new IllegalArgumentException();
28914
      }
28915
 
28916
      switch (field) {
28917
      case SUCCESS:
28918
        return isSetSuccess();
28919
      }
28920
      throw new IllegalStateException();
28921
    }
28922
 
28923
    @Override
28924
    public boolean equals(Object that) {
28925
      if (that == null)
28926
        return false;
28927
      if (that instanceof getCategory_result)
28928
        return this.equals((getCategory_result)that);
28929
      return false;
28930
    }
28931
 
28932
    public boolean equals(getCategory_result that) {
28933
      if (that == null)
28934
        return false;
28935
 
28936
      boolean this_present_success = true && this.isSetSuccess();
28937
      boolean that_present_success = true && that.isSetSuccess();
28938
      if (this_present_success || that_present_success) {
28939
        if (!(this_present_success && that_present_success))
28940
          return false;
28941
        if (!this.success.equals(that.success))
28942
          return false;
28943
      }
28944
 
28945
      return true;
28946
    }
28947
 
28948
    @Override
28949
    public int hashCode() {
28950
      return 0;
28951
    }
28952
 
28953
    public int compareTo(getCategory_result other) {
28954
      if (!getClass().equals(other.getClass())) {
28955
        return getClass().getName().compareTo(other.getClass().getName());
28956
      }
28957
 
28958
      int lastComparison = 0;
28959
      getCategory_result typedOther = (getCategory_result)other;
28960
 
28961
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28962
      if (lastComparison != 0) {
28963
        return lastComparison;
28964
      }
28965
      if (isSetSuccess()) {
28966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28967
        if (lastComparison != 0) {
28968
          return lastComparison;
28969
        }
28970
      }
28971
      return 0;
28972
    }
28973
 
28974
    public _Fields fieldForId(int fieldId) {
28975
      return _Fields.findByThriftId(fieldId);
28976
    }
28977
 
28978
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28979
      org.apache.thrift.protocol.TField field;
28980
      iprot.readStructBegin();
28981
      while (true)
28982
      {
28983
        field = iprot.readFieldBegin();
28984
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28985
          break;
28986
        }
28987
        switch (field.id) {
28988
          case 0: // SUCCESS
28989
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28990
              this.success = new Category();
28991
              this.success.read(iprot);
28992
            } else { 
28993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28994
            }
28995
            break;
28996
          default:
28997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28998
        }
28999
        iprot.readFieldEnd();
29000
      }
29001
      iprot.readStructEnd();
29002
      validate();
29003
    }
29004
 
29005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29006
      oprot.writeStructBegin(STRUCT_DESC);
29007
 
29008
      if (this.isSetSuccess()) {
29009
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29010
        this.success.write(oprot);
29011
        oprot.writeFieldEnd();
29012
      }
29013
      oprot.writeFieldStop();
29014
      oprot.writeStructEnd();
29015
    }
29016
 
29017
    @Override
29018
    public String toString() {
29019
      StringBuilder sb = new StringBuilder("getCategory_result(");
29020
      boolean first = true;
29021
 
29022
      sb.append("success:");
29023
      if (this.success == null) {
29024
        sb.append("null");
29025
      } else {
29026
        sb.append(this.success);
29027
      }
29028
      first = false;
29029
      sb.append(")");
29030
      return sb.toString();
29031
    }
29032
 
29033
    public void validate() throws org.apache.thrift.TException {
29034
      // check for required fields
29035
    }
29036
 
29037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29038
      try {
29039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29040
      } catch (org.apache.thrift.TException te) {
29041
        throw new java.io.IOException(te);
29042
      }
29043
    }
29044
 
29045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29046
      try {
29047
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29048
      } catch (org.apache.thrift.TException te) {
29049
        throw new java.io.IOException(te);
29050
      }
29051
    }
29052
 
29053
  }
29054
 
29055
  public static class getAllCategories_args implements org.apache.thrift.TBase<getAllCategories_args, getAllCategories_args._Fields>, java.io.Serializable, Cloneable   {
29056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCategories_args");
29057
 
29058
 
29059
 
29060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29061
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29062
;
29063
 
29064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29065
 
29066
      static {
29067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29068
          byName.put(field.getFieldName(), field);
29069
        }
29070
      }
29071
 
29072
      /**
29073
       * Find the _Fields constant that matches fieldId, or null if its not found.
29074
       */
29075
      public static _Fields findByThriftId(int fieldId) {
29076
        switch(fieldId) {
29077
          default:
29078
            return null;
29079
        }
29080
      }
29081
 
29082
      /**
29083
       * Find the _Fields constant that matches fieldId, throwing an exception
29084
       * if it is not found.
29085
       */
29086
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29087
        _Fields fields = findByThriftId(fieldId);
29088
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29089
        return fields;
29090
      }
29091
 
29092
      /**
29093
       * Find the _Fields constant that matches name, or null if its not found.
29094
       */
29095
      public static _Fields findByName(String name) {
29096
        return byName.get(name);
29097
      }
29098
 
29099
      private final short _thriftId;
29100
      private final String _fieldName;
29101
 
29102
      _Fields(short thriftId, String fieldName) {
29103
        _thriftId = thriftId;
29104
        _fieldName = fieldName;
29105
      }
29106
 
29107
      public short getThriftFieldId() {
29108
        return _thriftId;
29109
      }
29110
 
29111
      public String getFieldName() {
29112
        return _fieldName;
29113
      }
29114
    }
29115
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29116
    static {
29117
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCategories_args.class, metaDataMap);
29120
    }
29121
 
29122
    public getAllCategories_args() {
29123
    }
29124
 
29125
    /**
29126
     * Performs a deep copy on <i>other</i>.
29127
     */
29128
    public getAllCategories_args(getAllCategories_args other) {
29129
    }
29130
 
29131
    public getAllCategories_args deepCopy() {
29132
      return new getAllCategories_args(this);
29133
    }
29134
 
29135
    @Override
29136
    public void clear() {
29137
    }
29138
 
29139
    public void setFieldValue(_Fields field, Object value) {
29140
      switch (field) {
29141
      }
29142
    }
29143
 
29144
    public Object getFieldValue(_Fields field) {
29145
      switch (field) {
29146
      }
29147
      throw new IllegalStateException();
29148
    }
29149
 
29150
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29151
    public boolean isSet(_Fields field) {
29152
      if (field == null) {
29153
        throw new IllegalArgumentException();
29154
      }
29155
 
29156
      switch (field) {
29157
      }
29158
      throw new IllegalStateException();
29159
    }
29160
 
29161
    @Override
29162
    public boolean equals(Object that) {
29163
      if (that == null)
29164
        return false;
29165
      if (that instanceof getAllCategories_args)
29166
        return this.equals((getAllCategories_args)that);
29167
      return false;
29168
    }
29169
 
29170
    public boolean equals(getAllCategories_args that) {
29171
      if (that == null)
29172
        return false;
29173
 
29174
      return true;
29175
    }
29176
 
29177
    @Override
29178
    public int hashCode() {
29179
      return 0;
29180
    }
29181
 
29182
    public int compareTo(getAllCategories_args other) {
29183
      if (!getClass().equals(other.getClass())) {
29184
        return getClass().getName().compareTo(other.getClass().getName());
29185
      }
29186
 
29187
      int lastComparison = 0;
29188
      getAllCategories_args typedOther = (getAllCategories_args)other;
29189
 
29190
      return 0;
29191
    }
29192
 
29193
    public _Fields fieldForId(int fieldId) {
29194
      return _Fields.findByThriftId(fieldId);
29195
    }
29196
 
29197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29198
      org.apache.thrift.protocol.TField field;
29199
      iprot.readStructBegin();
29200
      while (true)
29201
      {
29202
        field = iprot.readFieldBegin();
29203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29204
          break;
29205
        }
29206
        switch (field.id) {
29207
          default:
29208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29209
        }
29210
        iprot.readFieldEnd();
29211
      }
29212
      iprot.readStructEnd();
29213
      validate();
29214
    }
29215
 
29216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29217
      validate();
29218
 
29219
      oprot.writeStructBegin(STRUCT_DESC);
29220
      oprot.writeFieldStop();
29221
      oprot.writeStructEnd();
29222
    }
29223
 
29224
    @Override
29225
    public String toString() {
29226
      StringBuilder sb = new StringBuilder("getAllCategories_args(");
29227
      boolean first = true;
29228
 
29229
      sb.append(")");
29230
      return sb.toString();
29231
    }
29232
 
29233
    public void validate() throws org.apache.thrift.TException {
29234
      // check for required fields
29235
    }
29236
 
29237
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29238
      try {
29239
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29240
      } catch (org.apache.thrift.TException te) {
29241
        throw new java.io.IOException(te);
29242
      }
29243
    }
29244
 
29245
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29246
      try {
29247
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29248
      } catch (org.apache.thrift.TException te) {
29249
        throw new java.io.IOException(te);
29250
      }
29251
    }
29252
 
29253
  }
29254
 
29255
  public static class getAllCategories_result implements org.apache.thrift.TBase<getAllCategories_result, getAllCategories_result._Fields>, java.io.Serializable, Cloneable   {
29256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCategories_result");
29257
 
29258
    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);
29259
 
29260
    private List<Category> success; // required
29261
 
29262
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29263
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29264
      SUCCESS((short)0, "success");
29265
 
29266
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29267
 
29268
      static {
29269
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29270
          byName.put(field.getFieldName(), field);
29271
        }
29272
      }
29273
 
29274
      /**
29275
       * Find the _Fields constant that matches fieldId, or null if its not found.
29276
       */
29277
      public static _Fields findByThriftId(int fieldId) {
29278
        switch(fieldId) {
29279
          case 0: // SUCCESS
29280
            return SUCCESS;
29281
          default:
29282
            return null;
29283
        }
29284
      }
29285
 
29286
      /**
29287
       * Find the _Fields constant that matches fieldId, throwing an exception
29288
       * if it is not found.
29289
       */
29290
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29291
        _Fields fields = findByThriftId(fieldId);
29292
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29293
        return fields;
29294
      }
29295
 
29296
      /**
29297
       * Find the _Fields constant that matches name, or null if its not found.
29298
       */
29299
      public static _Fields findByName(String name) {
29300
        return byName.get(name);
29301
      }
29302
 
29303
      private final short _thriftId;
29304
      private final String _fieldName;
29305
 
29306
      _Fields(short thriftId, String fieldName) {
29307
        _thriftId = thriftId;
29308
        _fieldName = fieldName;
29309
      }
29310
 
29311
      public short getThriftFieldId() {
29312
        return _thriftId;
29313
      }
29314
 
29315
      public String getFieldName() {
29316
        return _fieldName;
29317
      }
29318
    }
29319
 
29320
    // isset id assignments
29321
 
29322
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29323
    static {
29324
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29325
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29326
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29327
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class))));
29328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCategories_result.class, metaDataMap);
29330
    }
29331
 
29332
    public getAllCategories_result() {
29333
    }
29334
 
29335
    public getAllCategories_result(
29336
      List<Category> success)
29337
    {
29338
      this();
29339
      this.success = success;
29340
    }
29341
 
29342
    /**
29343
     * Performs a deep copy on <i>other</i>.
29344
     */
29345
    public getAllCategories_result(getAllCategories_result other) {
29346
      if (other.isSetSuccess()) {
29347
        List<Category> __this__success = new ArrayList<Category>();
29348
        for (Category other_element : other.success) {
29349
          __this__success.add(new Category(other_element));
29350
        }
29351
        this.success = __this__success;
29352
      }
29353
    }
29354
 
29355
    public getAllCategories_result deepCopy() {
29356
      return new getAllCategories_result(this);
29357
    }
29358
 
29359
    @Override
29360
    public void clear() {
29361
      this.success = null;
29362
    }
29363
 
29364
    public int getSuccessSize() {
29365
      return (this.success == null) ? 0 : this.success.size();
29366
    }
29367
 
29368
    public java.util.Iterator<Category> getSuccessIterator() {
29369
      return (this.success == null) ? null : this.success.iterator();
29370
    }
29371
 
29372
    public void addToSuccess(Category elem) {
29373
      if (this.success == null) {
29374
        this.success = new ArrayList<Category>();
29375
      }
29376
      this.success.add(elem);
29377
    }
29378
 
29379
    public List<Category> getSuccess() {
29380
      return this.success;
29381
    }
29382
 
29383
    public void setSuccess(List<Category> success) {
29384
      this.success = success;
29385
    }
29386
 
29387
    public void unsetSuccess() {
29388
      this.success = null;
29389
    }
29390
 
29391
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29392
    public boolean isSetSuccess() {
29393
      return this.success != null;
29394
    }
29395
 
29396
    public void setSuccessIsSet(boolean value) {
29397
      if (!value) {
29398
        this.success = null;
29399
      }
29400
    }
29401
 
29402
    public void setFieldValue(_Fields field, Object value) {
29403
      switch (field) {
29404
      case SUCCESS:
29405
        if (value == null) {
29406
          unsetSuccess();
29407
        } else {
29408
          setSuccess((List<Category>)value);
29409
        }
29410
        break;
29411
 
29412
      }
29413
    }
29414
 
29415
    public Object getFieldValue(_Fields field) {
29416
      switch (field) {
29417
      case SUCCESS:
29418
        return getSuccess();
29419
 
29420
      }
29421
      throw new IllegalStateException();
29422
    }
29423
 
29424
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29425
    public boolean isSet(_Fields field) {
29426
      if (field == null) {
29427
        throw new IllegalArgumentException();
29428
      }
29429
 
29430
      switch (field) {
29431
      case SUCCESS:
29432
        return isSetSuccess();
29433
      }
29434
      throw new IllegalStateException();
29435
    }
29436
 
29437
    @Override
29438
    public boolean equals(Object that) {
29439
      if (that == null)
29440
        return false;
29441
      if (that instanceof getAllCategories_result)
29442
        return this.equals((getAllCategories_result)that);
29443
      return false;
29444
    }
29445
 
29446
    public boolean equals(getAllCategories_result that) {
29447
      if (that == null)
29448
        return false;
29449
 
29450
      boolean this_present_success = true && this.isSetSuccess();
29451
      boolean that_present_success = true && that.isSetSuccess();
29452
      if (this_present_success || that_present_success) {
29453
        if (!(this_present_success && that_present_success))
29454
          return false;
29455
        if (!this.success.equals(that.success))
29456
          return false;
29457
      }
29458
 
29459
      return true;
29460
    }
29461
 
29462
    @Override
29463
    public int hashCode() {
29464
      return 0;
29465
    }
29466
 
29467
    public int compareTo(getAllCategories_result other) {
29468
      if (!getClass().equals(other.getClass())) {
29469
        return getClass().getName().compareTo(other.getClass().getName());
29470
      }
29471
 
29472
      int lastComparison = 0;
29473
      getAllCategories_result typedOther = (getAllCategories_result)other;
29474
 
29475
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29476
      if (lastComparison != 0) {
29477
        return lastComparison;
29478
      }
29479
      if (isSetSuccess()) {
29480
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29481
        if (lastComparison != 0) {
29482
          return lastComparison;
29483
        }
29484
      }
29485
      return 0;
29486
    }
29487
 
29488
    public _Fields fieldForId(int fieldId) {
29489
      return _Fields.findByThriftId(fieldId);
29490
    }
29491
 
29492
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29493
      org.apache.thrift.protocol.TField field;
29494
      iprot.readStructBegin();
29495
      while (true)
29496
      {
29497
        field = iprot.readFieldBegin();
29498
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29499
          break;
29500
        }
29501
        switch (field.id) {
29502
          case 0: // SUCCESS
29503
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29504
              {
29505
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
29506
                this.success = new ArrayList<Category>(_list69.size);
29507
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
29508
                {
29509
                  Category _elem71; // required
29510
                  _elem71 = new Category();
29511
                  _elem71.read(iprot);
29512
                  this.success.add(_elem71);
29513
                }
29514
                iprot.readListEnd();
29515
              }
29516
            } else { 
29517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29518
            }
29519
            break;
29520
          default:
29521
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29522
        }
29523
        iprot.readFieldEnd();
29524
      }
29525
      iprot.readStructEnd();
29526
      validate();
29527
    }
29528
 
29529
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29530
      oprot.writeStructBegin(STRUCT_DESC);
29531
 
29532
      if (this.isSetSuccess()) {
29533
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29534
        {
29535
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29536
          for (Category _iter72 : this.success)
29537
          {
29538
            _iter72.write(oprot);
29539
          }
29540
          oprot.writeListEnd();
29541
        }
29542
        oprot.writeFieldEnd();
29543
      }
29544
      oprot.writeFieldStop();
29545
      oprot.writeStructEnd();
29546
    }
29547
 
29548
    @Override
29549
    public String toString() {
29550
      StringBuilder sb = new StringBuilder("getAllCategories_result(");
29551
      boolean first = true;
29552
 
29553
      sb.append("success:");
29554
      if (this.success == null) {
29555
        sb.append("null");
29556
      } else {
29557
        sb.append(this.success);
29558
      }
29559
      first = false;
29560
      sb.append(")");
29561
      return sb.toString();
29562
    }
29563
 
29564
    public void validate() throws org.apache.thrift.TException {
29565
      // check for required fields
29566
    }
29567
 
29568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29569
      try {
29570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29571
      } catch (org.apache.thrift.TException te) {
29572
        throw new java.io.IOException(te);
29573
      }
29574
    }
29575
 
29576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29577
      try {
29578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29579
      } catch (org.apache.thrift.TException te) {
29580
        throw new java.io.IOException(te);
29581
      }
29582
    }
29583
 
29584
  }
29585
 
29586
  public static class getAllSimilarItems_args implements org.apache.thrift.TBase<getAllSimilarItems_args, getAllSimilarItems_args._Fields>, java.io.Serializable, Cloneable   {
29587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_args");
29588
 
29589
    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);
29590
 
29591
    private long itemId; // required
29592
 
29593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29595
      ITEM_ID((short)1, "itemId");
29596
 
29597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29598
 
29599
      static {
29600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29601
          byName.put(field.getFieldName(), field);
29602
        }
29603
      }
29604
 
29605
      /**
29606
       * Find the _Fields constant that matches fieldId, or null if its not found.
29607
       */
29608
      public static _Fields findByThriftId(int fieldId) {
29609
        switch(fieldId) {
29610
          case 1: // ITEM_ID
29611
            return ITEM_ID;
29612
          default:
29613
            return null;
29614
        }
29615
      }
29616
 
29617
      /**
29618
       * Find the _Fields constant that matches fieldId, throwing an exception
29619
       * if it is not found.
29620
       */
29621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29622
        _Fields fields = findByThriftId(fieldId);
29623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29624
        return fields;
29625
      }
29626
 
29627
      /**
29628
       * Find the _Fields constant that matches name, or null if its not found.
29629
       */
29630
      public static _Fields findByName(String name) {
29631
        return byName.get(name);
29632
      }
29633
 
29634
      private final short _thriftId;
29635
      private final String _fieldName;
29636
 
29637
      _Fields(short thriftId, String fieldName) {
29638
        _thriftId = thriftId;
29639
        _fieldName = fieldName;
29640
      }
29641
 
29642
      public short getThriftFieldId() {
29643
        return _thriftId;
29644
      }
29645
 
29646
      public String getFieldName() {
29647
        return _fieldName;
29648
      }
29649
    }
29650
 
29651
    // isset id assignments
29652
    private static final int __ITEMID_ISSET_ID = 0;
29653
    private BitSet __isset_bit_vector = new BitSet(1);
29654
 
29655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29656
    static {
29657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29658
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_args.class, metaDataMap);
29662
    }
29663
 
29664
    public getAllSimilarItems_args() {
29665
    }
29666
 
29667
    public getAllSimilarItems_args(
29668
      long itemId)
29669
    {
29670
      this();
29671
      this.itemId = itemId;
29672
      setItemIdIsSet(true);
29673
    }
29674
 
29675
    /**
29676
     * Performs a deep copy on <i>other</i>.
29677
     */
29678
    public getAllSimilarItems_args(getAllSimilarItems_args other) {
29679
      __isset_bit_vector.clear();
29680
      __isset_bit_vector.or(other.__isset_bit_vector);
29681
      this.itemId = other.itemId;
29682
    }
29683
 
29684
    public getAllSimilarItems_args deepCopy() {
29685
      return new getAllSimilarItems_args(this);
29686
    }
29687
 
29688
    @Override
29689
    public void clear() {
29690
      setItemIdIsSet(false);
29691
      this.itemId = 0;
29692
    }
29693
 
29694
    public long getItemId() {
29695
      return this.itemId;
29696
    }
29697
 
29698
    public void setItemId(long itemId) {
29699
      this.itemId = itemId;
29700
      setItemIdIsSet(true);
29701
    }
29702
 
29703
    public void unsetItemId() {
29704
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
29705
    }
29706
 
29707
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
29708
    public boolean isSetItemId() {
29709
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
29710
    }
29711
 
29712
    public void setItemIdIsSet(boolean value) {
29713
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
29714
    }
29715
 
29716
    public void setFieldValue(_Fields field, Object value) {
29717
      switch (field) {
29718
      case ITEM_ID:
29719
        if (value == null) {
29720
          unsetItemId();
29721
        } else {
29722
          setItemId((Long)value);
29723
        }
29724
        break;
29725
 
29726
      }
29727
    }
29728
 
29729
    public Object getFieldValue(_Fields field) {
29730
      switch (field) {
29731
      case ITEM_ID:
29732
        return Long.valueOf(getItemId());
29733
 
29734
      }
29735
      throw new IllegalStateException();
29736
    }
29737
 
29738
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29739
    public boolean isSet(_Fields field) {
29740
      if (field == null) {
29741
        throw new IllegalArgumentException();
29742
      }
29743
 
29744
      switch (field) {
29745
      case ITEM_ID:
29746
        return isSetItemId();
29747
      }
29748
      throw new IllegalStateException();
29749
    }
29750
 
29751
    @Override
29752
    public boolean equals(Object that) {
29753
      if (that == null)
29754
        return false;
29755
      if (that instanceof getAllSimilarItems_args)
29756
        return this.equals((getAllSimilarItems_args)that);
29757
      return false;
29758
    }
29759
 
29760
    public boolean equals(getAllSimilarItems_args that) {
29761
      if (that == null)
29762
        return false;
29763
 
29764
      boolean this_present_itemId = true;
29765
      boolean that_present_itemId = true;
29766
      if (this_present_itemId || that_present_itemId) {
29767
        if (!(this_present_itemId && that_present_itemId))
29768
          return false;
29769
        if (this.itemId != that.itemId)
29770
          return false;
29771
      }
29772
 
29773
      return true;
29774
    }
29775
 
29776
    @Override
29777
    public int hashCode() {
29778
      return 0;
29779
    }
29780
 
29781
    public int compareTo(getAllSimilarItems_args other) {
29782
      if (!getClass().equals(other.getClass())) {
29783
        return getClass().getName().compareTo(other.getClass().getName());
29784
      }
29785
 
29786
      int lastComparison = 0;
29787
      getAllSimilarItems_args typedOther = (getAllSimilarItems_args)other;
29788
 
29789
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
29790
      if (lastComparison != 0) {
29791
        return lastComparison;
29792
      }
29793
      if (isSetItemId()) {
29794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
29795
        if (lastComparison != 0) {
29796
          return lastComparison;
29797
        }
29798
      }
29799
      return 0;
29800
    }
29801
 
29802
    public _Fields fieldForId(int fieldId) {
29803
      return _Fields.findByThriftId(fieldId);
29804
    }
29805
 
29806
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29807
      org.apache.thrift.protocol.TField field;
29808
      iprot.readStructBegin();
29809
      while (true)
29810
      {
29811
        field = iprot.readFieldBegin();
29812
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29813
          break;
29814
        }
29815
        switch (field.id) {
29816
          case 1: // ITEM_ID
29817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29818
              this.itemId = iprot.readI64();
29819
              setItemIdIsSet(true);
29820
            } else { 
29821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29822
            }
29823
            break;
29824
          default:
29825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29826
        }
29827
        iprot.readFieldEnd();
29828
      }
29829
      iprot.readStructEnd();
29830
      validate();
29831
    }
29832
 
29833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29834
      validate();
29835
 
29836
      oprot.writeStructBegin(STRUCT_DESC);
29837
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
29838
      oprot.writeI64(this.itemId);
29839
      oprot.writeFieldEnd();
29840
      oprot.writeFieldStop();
29841
      oprot.writeStructEnd();
29842
    }
29843
 
29844
    @Override
29845
    public String toString() {
29846
      StringBuilder sb = new StringBuilder("getAllSimilarItems_args(");
29847
      boolean first = true;
29848
 
29849
      sb.append("itemId:");
29850
      sb.append(this.itemId);
29851
      first = false;
29852
      sb.append(")");
29853
      return sb.toString();
29854
    }
29855
 
29856
    public void validate() throws org.apache.thrift.TException {
29857
      // check for required fields
29858
    }
29859
 
29860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29861
      try {
29862
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29863
      } catch (org.apache.thrift.TException te) {
29864
        throw new java.io.IOException(te);
29865
      }
29866
    }
29867
 
29868
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29869
      try {
29870
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29871
        __isset_bit_vector = new BitSet(1);
29872
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29873
      } catch (org.apache.thrift.TException te) {
29874
        throw new java.io.IOException(te);
29875
      }
29876
    }
29877
 
29878
  }
29879
 
29880
  public static class getAllSimilarItems_result implements org.apache.thrift.TBase<getAllSimilarItems_result, getAllSimilarItems_result._Fields>, java.io.Serializable, Cloneable   {
29881
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_result");
29882
 
29883
    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);
29884
 
29885
    private List<Item> success; // required
29886
 
29887
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29888
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29889
      SUCCESS((short)0, "success");
29890
 
29891
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29892
 
29893
      static {
29894
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29895
          byName.put(field.getFieldName(), field);
29896
        }
29897
      }
29898
 
29899
      /**
29900
       * Find the _Fields constant that matches fieldId, or null if its not found.
29901
       */
29902
      public static _Fields findByThriftId(int fieldId) {
29903
        switch(fieldId) {
29904
          case 0: // SUCCESS
29905
            return SUCCESS;
29906
          default:
29907
            return null;
29908
        }
29909
      }
29910
 
29911
      /**
29912
       * Find the _Fields constant that matches fieldId, throwing an exception
29913
       * if it is not found.
29914
       */
29915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29916
        _Fields fields = findByThriftId(fieldId);
29917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29918
        return fields;
29919
      }
29920
 
29921
      /**
29922
       * Find the _Fields constant that matches name, or null if its not found.
29923
       */
29924
      public static _Fields findByName(String name) {
29925
        return byName.get(name);
29926
      }
29927
 
29928
      private final short _thriftId;
29929
      private final String _fieldName;
29930
 
29931
      _Fields(short thriftId, String fieldName) {
29932
        _thriftId = thriftId;
29933
        _fieldName = fieldName;
29934
      }
29935
 
29936
      public short getThriftFieldId() {
29937
        return _thriftId;
29938
      }
29939
 
29940
      public String getFieldName() {
29941
        return _fieldName;
29942
      }
29943
    }
29944
 
29945
    // isset id assignments
29946
 
29947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29948
    static {
29949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29950
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29951
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29952
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
29953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_result.class, metaDataMap);
29955
    }
29956
 
29957
    public getAllSimilarItems_result() {
29958
    }
29959
 
29960
    public getAllSimilarItems_result(
29961
      List<Item> success)
29962
    {
29963
      this();
29964
      this.success = success;
29965
    }
29966
 
29967
    /**
29968
     * Performs a deep copy on <i>other</i>.
29969
     */
29970
    public getAllSimilarItems_result(getAllSimilarItems_result other) {
29971
      if (other.isSetSuccess()) {
29972
        List<Item> __this__success = new ArrayList<Item>();
29973
        for (Item other_element : other.success) {
29974
          __this__success.add(new Item(other_element));
29975
        }
29976
        this.success = __this__success;
29977
      }
29978
    }
29979
 
29980
    public getAllSimilarItems_result deepCopy() {
29981
      return new getAllSimilarItems_result(this);
29982
    }
29983
 
29984
    @Override
29985
    public void clear() {
29986
      this.success = null;
29987
    }
29988
 
29989
    public int getSuccessSize() {
29990
      return (this.success == null) ? 0 : this.success.size();
29991
    }
29992
 
29993
    public java.util.Iterator<Item> getSuccessIterator() {
29994
      return (this.success == null) ? null : this.success.iterator();
29995
    }
29996
 
29997
    public void addToSuccess(Item elem) {
29998
      if (this.success == null) {
29999
        this.success = new ArrayList<Item>();
30000
      }
30001
      this.success.add(elem);
30002
    }
30003
 
30004
    public List<Item> getSuccess() {
30005
      return this.success;
30006
    }
30007
 
30008
    public void setSuccess(List<Item> success) {
30009
      this.success = success;
30010
    }
30011
 
30012
    public void unsetSuccess() {
30013
      this.success = null;
30014
    }
30015
 
30016
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30017
    public boolean isSetSuccess() {
30018
      return this.success != null;
30019
    }
30020
 
30021
    public void setSuccessIsSet(boolean value) {
30022
      if (!value) {
30023
        this.success = null;
30024
      }
30025
    }
30026
 
30027
    public void setFieldValue(_Fields field, Object value) {
30028
      switch (field) {
30029
      case SUCCESS:
30030
        if (value == null) {
30031
          unsetSuccess();
30032
        } else {
30033
          setSuccess((List<Item>)value);
30034
        }
30035
        break;
30036
 
30037
      }
30038
    }
30039
 
30040
    public Object getFieldValue(_Fields field) {
30041
      switch (field) {
30042
      case SUCCESS:
30043
        return getSuccess();
30044
 
30045
      }
30046
      throw new IllegalStateException();
30047
    }
30048
 
30049
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30050
    public boolean isSet(_Fields field) {
30051
      if (field == null) {
30052
        throw new IllegalArgumentException();
30053
      }
30054
 
30055
      switch (field) {
30056
      case SUCCESS:
30057
        return isSetSuccess();
30058
      }
30059
      throw new IllegalStateException();
30060
    }
30061
 
30062
    @Override
30063
    public boolean equals(Object that) {
30064
      if (that == null)
30065
        return false;
30066
      if (that instanceof getAllSimilarItems_result)
30067
        return this.equals((getAllSimilarItems_result)that);
30068
      return false;
30069
    }
30070
 
30071
    public boolean equals(getAllSimilarItems_result that) {
30072
      if (that == null)
30073
        return false;
30074
 
30075
      boolean this_present_success = true && this.isSetSuccess();
30076
      boolean that_present_success = true && that.isSetSuccess();
30077
      if (this_present_success || that_present_success) {
30078
        if (!(this_present_success && that_present_success))
30079
          return false;
30080
        if (!this.success.equals(that.success))
30081
          return false;
30082
      }
30083
 
30084
      return true;
30085
    }
30086
 
30087
    @Override
30088
    public int hashCode() {
30089
      return 0;
30090
    }
30091
 
30092
    public int compareTo(getAllSimilarItems_result other) {
30093
      if (!getClass().equals(other.getClass())) {
30094
        return getClass().getName().compareTo(other.getClass().getName());
30095
      }
30096
 
30097
      int lastComparison = 0;
30098
      getAllSimilarItems_result typedOther = (getAllSimilarItems_result)other;
30099
 
30100
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30101
      if (lastComparison != 0) {
30102
        return lastComparison;
30103
      }
30104
      if (isSetSuccess()) {
30105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30106
        if (lastComparison != 0) {
30107
          return lastComparison;
30108
        }
30109
      }
30110
      return 0;
30111
    }
30112
 
30113
    public _Fields fieldForId(int fieldId) {
30114
      return _Fields.findByThriftId(fieldId);
30115
    }
30116
 
30117
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30118
      org.apache.thrift.protocol.TField field;
30119
      iprot.readStructBegin();
30120
      while (true)
30121
      {
30122
        field = iprot.readFieldBegin();
30123
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30124
          break;
30125
        }
30126
        switch (field.id) {
30127
          case 0: // SUCCESS
30128
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30129
              {
30130
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
30131
                this.success = new ArrayList<Item>(_list73.size);
30132
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
30133
                {
30134
                  Item _elem75; // required
30135
                  _elem75 = new Item();
30136
                  _elem75.read(iprot);
30137
                  this.success.add(_elem75);
30138
                }
30139
                iprot.readListEnd();
30140
              }
30141
            } else { 
30142
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30143
            }
30144
            break;
30145
          default:
30146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30147
        }
30148
        iprot.readFieldEnd();
30149
      }
30150
      iprot.readStructEnd();
30151
      validate();
30152
    }
30153
 
30154
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30155
      oprot.writeStructBegin(STRUCT_DESC);
30156
 
30157
      if (this.isSetSuccess()) {
30158
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30159
        {
30160
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30161
          for (Item _iter76 : this.success)
30162
          {
30163
            _iter76.write(oprot);
30164
          }
30165
          oprot.writeListEnd();
30166
        }
30167
        oprot.writeFieldEnd();
30168
      }
30169
      oprot.writeFieldStop();
30170
      oprot.writeStructEnd();
30171
    }
30172
 
30173
    @Override
30174
    public String toString() {
30175
      StringBuilder sb = new StringBuilder("getAllSimilarItems_result(");
30176
      boolean first = true;
30177
 
30178
      sb.append("success:");
30179
      if (this.success == null) {
30180
        sb.append("null");
30181
      } else {
30182
        sb.append(this.success);
30183
      }
30184
      first = false;
30185
      sb.append(")");
30186
      return sb.toString();
30187
    }
30188
 
30189
    public void validate() throws org.apache.thrift.TException {
30190
      // check for required fields
30191
    }
30192
 
30193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30194
      try {
30195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30196
      } catch (org.apache.thrift.TException te) {
30197
        throw new java.io.IOException(te);
30198
      }
30199
    }
30200
 
30201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30202
      try {
30203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30204
      } catch (org.apache.thrift.TException te) {
30205
        throw new java.io.IOException(te);
30206
      }
30207
    }
30208
 
30209
  }
30210
 
30211
  public static class addSimilarItem_args implements org.apache.thrift.TBase<addSimilarItem_args, addSimilarItem_args._Fields>, java.io.Serializable, Cloneable   {
30212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_args");
30213
 
30214
    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);
30215
    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);
30216
 
30217
    private long itemId; // required
30218
    private long catalogItemId; // required
30219
 
30220
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30221
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30222
      ITEM_ID((short)1, "itemId"),
30223
      CATALOG_ITEM_ID((short)2, "catalogItemId");
30224
 
30225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30226
 
30227
      static {
30228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30229
          byName.put(field.getFieldName(), field);
30230
        }
30231
      }
30232
 
30233
      /**
30234
       * Find the _Fields constant that matches fieldId, or null if its not found.
30235
       */
30236
      public static _Fields findByThriftId(int fieldId) {
30237
        switch(fieldId) {
30238
          case 1: // ITEM_ID
30239
            return ITEM_ID;
30240
          case 2: // CATALOG_ITEM_ID
30241
            return CATALOG_ITEM_ID;
30242
          default:
30243
            return null;
30244
        }
30245
      }
30246
 
30247
      /**
30248
       * Find the _Fields constant that matches fieldId, throwing an exception
30249
       * if it is not found.
30250
       */
30251
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30252
        _Fields fields = findByThriftId(fieldId);
30253
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30254
        return fields;
30255
      }
30256
 
30257
      /**
30258
       * Find the _Fields constant that matches name, or null if its not found.
30259
       */
30260
      public static _Fields findByName(String name) {
30261
        return byName.get(name);
30262
      }
30263
 
30264
      private final short _thriftId;
30265
      private final String _fieldName;
30266
 
30267
      _Fields(short thriftId, String fieldName) {
30268
        _thriftId = thriftId;
30269
        _fieldName = fieldName;
30270
      }
30271
 
30272
      public short getThriftFieldId() {
30273
        return _thriftId;
30274
      }
30275
 
30276
      public String getFieldName() {
30277
        return _fieldName;
30278
      }
30279
    }
30280
 
30281
    // isset id assignments
30282
    private static final int __ITEMID_ISSET_ID = 0;
30283
    private static final int __CATALOGITEMID_ISSET_ID = 1;
30284
    private BitSet __isset_bit_vector = new BitSet(2);
30285
 
30286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30287
    static {
30288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30289
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30291
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30292
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30293
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30294
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_args.class, metaDataMap);
30295
    }
30296
 
30297
    public addSimilarItem_args() {
30298
    }
30299
 
30300
    public addSimilarItem_args(
30301
      long itemId,
30302
      long catalogItemId)
30303
    {
30304
      this();
30305
      this.itemId = itemId;
30306
      setItemIdIsSet(true);
30307
      this.catalogItemId = catalogItemId;
30308
      setCatalogItemIdIsSet(true);
30309
    }
30310
 
30311
    /**
30312
     * Performs a deep copy on <i>other</i>.
30313
     */
30314
    public addSimilarItem_args(addSimilarItem_args other) {
30315
      __isset_bit_vector.clear();
30316
      __isset_bit_vector.or(other.__isset_bit_vector);
30317
      this.itemId = other.itemId;
30318
      this.catalogItemId = other.catalogItemId;
30319
    }
30320
 
30321
    public addSimilarItem_args deepCopy() {
30322
      return new addSimilarItem_args(this);
30323
    }
30324
 
30325
    @Override
30326
    public void clear() {
30327
      setItemIdIsSet(false);
30328
      this.itemId = 0;
30329
      setCatalogItemIdIsSet(false);
30330
      this.catalogItemId = 0;
30331
    }
30332
 
30333
    public long getItemId() {
30334
      return this.itemId;
30335
    }
30336
 
30337
    public void setItemId(long itemId) {
30338
      this.itemId = itemId;
30339
      setItemIdIsSet(true);
30340
    }
30341
 
30342
    public void unsetItemId() {
30343
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
30344
    }
30345
 
30346
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
30347
    public boolean isSetItemId() {
30348
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
30349
    }
30350
 
30351
    public void setItemIdIsSet(boolean value) {
30352
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
30353
    }
30354
 
30355
    public long getCatalogItemId() {
30356
      return this.catalogItemId;
30357
    }
30358
 
30359
    public void setCatalogItemId(long catalogItemId) {
30360
      this.catalogItemId = catalogItemId;
30361
      setCatalogItemIdIsSet(true);
30362
    }
30363
 
30364
    public void unsetCatalogItemId() {
30365
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
30366
    }
30367
 
30368
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
30369
    public boolean isSetCatalogItemId() {
30370
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
30371
    }
30372
 
30373
    public void setCatalogItemIdIsSet(boolean value) {
30374
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
30375
    }
30376
 
30377
    public void setFieldValue(_Fields field, Object value) {
30378
      switch (field) {
30379
      case ITEM_ID:
30380
        if (value == null) {
30381
          unsetItemId();
30382
        } else {
30383
          setItemId((Long)value);
30384
        }
30385
        break;
30386
 
30387
      case CATALOG_ITEM_ID:
30388
        if (value == null) {
30389
          unsetCatalogItemId();
30390
        } else {
30391
          setCatalogItemId((Long)value);
30392
        }
30393
        break;
30394
 
30395
      }
30396
    }
30397
 
30398
    public Object getFieldValue(_Fields field) {
30399
      switch (field) {
30400
      case ITEM_ID:
30401
        return Long.valueOf(getItemId());
30402
 
30403
      case CATALOG_ITEM_ID:
30404
        return Long.valueOf(getCatalogItemId());
30405
 
30406
      }
30407
      throw new IllegalStateException();
30408
    }
30409
 
30410
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30411
    public boolean isSet(_Fields field) {
30412
      if (field == null) {
30413
        throw new IllegalArgumentException();
30414
      }
30415
 
30416
      switch (field) {
30417
      case ITEM_ID:
30418
        return isSetItemId();
30419
      case CATALOG_ITEM_ID:
30420
        return isSetCatalogItemId();
30421
      }
30422
      throw new IllegalStateException();
30423
    }
30424
 
30425
    @Override
30426
    public boolean equals(Object that) {
30427
      if (that == null)
30428
        return false;
30429
      if (that instanceof addSimilarItem_args)
30430
        return this.equals((addSimilarItem_args)that);
30431
      return false;
30432
    }
30433
 
30434
    public boolean equals(addSimilarItem_args that) {
30435
      if (that == null)
30436
        return false;
30437
 
30438
      boolean this_present_itemId = true;
30439
      boolean that_present_itemId = true;
30440
      if (this_present_itemId || that_present_itemId) {
30441
        if (!(this_present_itemId && that_present_itemId))
30442
          return false;
30443
        if (this.itemId != that.itemId)
30444
          return false;
30445
      }
30446
 
30447
      boolean this_present_catalogItemId = true;
30448
      boolean that_present_catalogItemId = true;
30449
      if (this_present_catalogItemId || that_present_catalogItemId) {
30450
        if (!(this_present_catalogItemId && that_present_catalogItemId))
30451
          return false;
30452
        if (this.catalogItemId != that.catalogItemId)
30453
          return false;
30454
      }
30455
 
30456
      return true;
30457
    }
30458
 
30459
    @Override
30460
    public int hashCode() {
30461
      return 0;
30462
    }
30463
 
30464
    public int compareTo(addSimilarItem_args other) {
30465
      if (!getClass().equals(other.getClass())) {
30466
        return getClass().getName().compareTo(other.getClass().getName());
30467
      }
30468
 
30469
      int lastComparison = 0;
30470
      addSimilarItem_args typedOther = (addSimilarItem_args)other;
30471
 
30472
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
30473
      if (lastComparison != 0) {
30474
        return lastComparison;
30475
      }
30476
      if (isSetItemId()) {
30477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
30478
        if (lastComparison != 0) {
30479
          return lastComparison;
30480
        }
30481
      }
30482
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
30483
      if (lastComparison != 0) {
30484
        return lastComparison;
30485
      }
30486
      if (isSetCatalogItemId()) {
30487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
30488
        if (lastComparison != 0) {
30489
          return lastComparison;
30490
        }
30491
      }
30492
      return 0;
30493
    }
30494
 
30495
    public _Fields fieldForId(int fieldId) {
30496
      return _Fields.findByThriftId(fieldId);
30497
    }
30498
 
30499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30500
      org.apache.thrift.protocol.TField field;
30501
      iprot.readStructBegin();
30502
      while (true)
30503
      {
30504
        field = iprot.readFieldBegin();
30505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30506
          break;
30507
        }
30508
        switch (field.id) {
30509
          case 1: // ITEM_ID
30510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30511
              this.itemId = iprot.readI64();
30512
              setItemIdIsSet(true);
30513
            } else { 
30514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30515
            }
30516
            break;
30517
          case 2: // CATALOG_ITEM_ID
30518
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30519
              this.catalogItemId = iprot.readI64();
30520
              setCatalogItemIdIsSet(true);
30521
            } else { 
30522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30523
            }
30524
            break;
30525
          default:
30526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30527
        }
30528
        iprot.readFieldEnd();
30529
      }
30530
      iprot.readStructEnd();
30531
      validate();
30532
    }
30533
 
30534
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30535
      validate();
30536
 
30537
      oprot.writeStructBegin(STRUCT_DESC);
30538
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
30539
      oprot.writeI64(this.itemId);
30540
      oprot.writeFieldEnd();
30541
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
30542
      oprot.writeI64(this.catalogItemId);
30543
      oprot.writeFieldEnd();
30544
      oprot.writeFieldStop();
30545
      oprot.writeStructEnd();
30546
    }
30547
 
30548
    @Override
30549
    public String toString() {
30550
      StringBuilder sb = new StringBuilder("addSimilarItem_args(");
30551
      boolean first = true;
30552
 
30553
      sb.append("itemId:");
30554
      sb.append(this.itemId);
30555
      first = false;
30556
      if (!first) sb.append(", ");
30557
      sb.append("catalogItemId:");
30558
      sb.append(this.catalogItemId);
30559
      first = false;
30560
      sb.append(")");
30561
      return sb.toString();
30562
    }
30563
 
30564
    public void validate() throws org.apache.thrift.TException {
30565
      // check for required fields
30566
    }
30567
 
30568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30569
      try {
30570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30571
      } catch (org.apache.thrift.TException te) {
30572
        throw new java.io.IOException(te);
30573
      }
30574
    }
30575
 
30576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30577
      try {
30578
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30579
        __isset_bit_vector = new BitSet(1);
30580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30581
      } catch (org.apache.thrift.TException te) {
30582
        throw new java.io.IOException(te);
30583
      }
30584
    }
30585
 
30586
  }
30587
 
30588
  public static class addSimilarItem_result implements org.apache.thrift.TBase<addSimilarItem_result, addSimilarItem_result._Fields>, java.io.Serializable, Cloneable   {
30589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_result");
30590
 
30591
    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);
30592
    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);
30593
 
30594
    private Item success; // required
30595
    private CatalogServiceException cex; // required
30596
 
30597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30599
      SUCCESS((short)0, "success"),
30600
      CEX((short)1, "cex");
30601
 
30602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30603
 
30604
      static {
30605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30606
          byName.put(field.getFieldName(), field);
30607
        }
30608
      }
30609
 
30610
      /**
30611
       * Find the _Fields constant that matches fieldId, or null if its not found.
30612
       */
30613
      public static _Fields findByThriftId(int fieldId) {
30614
        switch(fieldId) {
30615
          case 0: // SUCCESS
30616
            return SUCCESS;
30617
          case 1: // CEX
30618
            return CEX;
30619
          default:
30620
            return null;
30621
        }
30622
      }
30623
 
30624
      /**
30625
       * Find the _Fields constant that matches fieldId, throwing an exception
30626
       * if it is not found.
30627
       */
30628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30629
        _Fields fields = findByThriftId(fieldId);
30630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30631
        return fields;
30632
      }
30633
 
30634
      /**
30635
       * Find the _Fields constant that matches name, or null if its not found.
30636
       */
30637
      public static _Fields findByName(String name) {
30638
        return byName.get(name);
30639
      }
30640
 
30641
      private final short _thriftId;
30642
      private final String _fieldName;
30643
 
30644
      _Fields(short thriftId, String fieldName) {
30645
        _thriftId = thriftId;
30646
        _fieldName = fieldName;
30647
      }
30648
 
30649
      public short getThriftFieldId() {
30650
        return _thriftId;
30651
      }
30652
 
30653
      public String getFieldName() {
30654
        return _fieldName;
30655
      }
30656
    }
30657
 
30658
    // isset id assignments
30659
 
30660
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30661
    static {
30662
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30663
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30664
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
30665
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30666
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30667
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30668
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_result.class, metaDataMap);
30669
    }
30670
 
30671
    public addSimilarItem_result() {
30672
    }
30673
 
30674
    public addSimilarItem_result(
30675
      Item success,
30676
      CatalogServiceException cex)
30677
    {
30678
      this();
30679
      this.success = success;
30680
      this.cex = cex;
30681
    }
30682
 
30683
    /**
30684
     * Performs a deep copy on <i>other</i>.
30685
     */
30686
    public addSimilarItem_result(addSimilarItem_result other) {
30687
      if (other.isSetSuccess()) {
30688
        this.success = new Item(other.success);
30689
      }
30690
      if (other.isSetCex()) {
30691
        this.cex = new CatalogServiceException(other.cex);
30692
      }
30693
    }
30694
 
30695
    public addSimilarItem_result deepCopy() {
30696
      return new addSimilarItem_result(this);
30697
    }
30698
 
30699
    @Override
30700
    public void clear() {
30701
      this.success = null;
30702
      this.cex = null;
30703
    }
30704
 
30705
    public Item getSuccess() {
30706
      return this.success;
30707
    }
30708
 
30709
    public void setSuccess(Item success) {
30710
      this.success = success;
30711
    }
30712
 
30713
    public void unsetSuccess() {
30714
      this.success = null;
30715
    }
30716
 
30717
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30718
    public boolean isSetSuccess() {
30719
      return this.success != null;
30720
    }
30721
 
30722
    public void setSuccessIsSet(boolean value) {
30723
      if (!value) {
30724
        this.success = null;
30725
      }
30726
    }
30727
 
30728
    public CatalogServiceException getCex() {
30729
      return this.cex;
30730
    }
30731
 
30732
    public void setCex(CatalogServiceException cex) {
30733
      this.cex = cex;
30734
    }
30735
 
30736
    public void unsetCex() {
30737
      this.cex = null;
30738
    }
30739
 
30740
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
30741
    public boolean isSetCex() {
30742
      return this.cex != null;
30743
    }
30744
 
30745
    public void setCexIsSet(boolean value) {
30746
      if (!value) {
30747
        this.cex = null;
30748
      }
30749
    }
30750
 
30751
    public void setFieldValue(_Fields field, Object value) {
30752
      switch (field) {
30753
      case SUCCESS:
30754
        if (value == null) {
30755
          unsetSuccess();
30756
        } else {
30757
          setSuccess((Item)value);
30758
        }
30759
        break;
30760
 
30761
      case CEX:
30762
        if (value == null) {
30763
          unsetCex();
30764
        } else {
30765
          setCex((CatalogServiceException)value);
30766
        }
30767
        break;
30768
 
30769
      }
30770
    }
30771
 
30772
    public Object getFieldValue(_Fields field) {
30773
      switch (field) {
30774
      case SUCCESS:
30775
        return getSuccess();
30776
 
30777
      case CEX:
30778
        return getCex();
30779
 
30780
      }
30781
      throw new IllegalStateException();
30782
    }
30783
 
30784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30785
    public boolean isSet(_Fields field) {
30786
      if (field == null) {
30787
        throw new IllegalArgumentException();
30788
      }
30789
 
30790
      switch (field) {
30791
      case SUCCESS:
30792
        return isSetSuccess();
30793
      case CEX:
30794
        return isSetCex();
30795
      }
30796
      throw new IllegalStateException();
30797
    }
30798
 
30799
    @Override
30800
    public boolean equals(Object that) {
30801
      if (that == null)
30802
        return false;
30803
      if (that instanceof addSimilarItem_result)
30804
        return this.equals((addSimilarItem_result)that);
30805
      return false;
30806
    }
30807
 
30808
    public boolean equals(addSimilarItem_result that) {
30809
      if (that == null)
30810
        return false;
30811
 
30812
      boolean this_present_success = true && this.isSetSuccess();
30813
      boolean that_present_success = true && that.isSetSuccess();
30814
      if (this_present_success || that_present_success) {
30815
        if (!(this_present_success && that_present_success))
30816
          return false;
30817
        if (!this.success.equals(that.success))
30818
          return false;
30819
      }
30820
 
30821
      boolean this_present_cex = true && this.isSetCex();
30822
      boolean that_present_cex = true && that.isSetCex();
30823
      if (this_present_cex || that_present_cex) {
30824
        if (!(this_present_cex && that_present_cex))
30825
          return false;
30826
        if (!this.cex.equals(that.cex))
30827
          return false;
30828
      }
30829
 
30830
      return true;
30831
    }
30832
 
30833
    @Override
30834
    public int hashCode() {
30835
      return 0;
30836
    }
30837
 
30838
    public int compareTo(addSimilarItem_result other) {
30839
      if (!getClass().equals(other.getClass())) {
30840
        return getClass().getName().compareTo(other.getClass().getName());
30841
      }
30842
 
30843
      int lastComparison = 0;
30844
      addSimilarItem_result typedOther = (addSimilarItem_result)other;
30845
 
30846
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30847
      if (lastComparison != 0) {
30848
        return lastComparison;
30849
      }
30850
      if (isSetSuccess()) {
30851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30852
        if (lastComparison != 0) {
30853
          return lastComparison;
30854
        }
30855
      }
30856
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
30857
      if (lastComparison != 0) {
30858
        return lastComparison;
30859
      }
30860
      if (isSetCex()) {
30861
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
30862
        if (lastComparison != 0) {
30863
          return lastComparison;
30864
        }
30865
      }
30866
      return 0;
30867
    }
30868
 
30869
    public _Fields fieldForId(int fieldId) {
30870
      return _Fields.findByThriftId(fieldId);
30871
    }
30872
 
30873
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30874
      org.apache.thrift.protocol.TField field;
30875
      iprot.readStructBegin();
30876
      while (true)
30877
      {
30878
        field = iprot.readFieldBegin();
30879
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30880
          break;
30881
        }
30882
        switch (field.id) {
30883
          case 0: // SUCCESS
30884
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30885
              this.success = new Item();
30886
              this.success.read(iprot);
30887
            } else { 
30888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30889
            }
30890
            break;
30891
          case 1: // CEX
30892
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30893
              this.cex = new CatalogServiceException();
30894
              this.cex.read(iprot);
30895
            } else { 
30896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30897
            }
30898
            break;
30899
          default:
30900
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30901
        }
30902
        iprot.readFieldEnd();
30903
      }
30904
      iprot.readStructEnd();
30905
      validate();
30906
    }
30907
 
30908
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30909
      oprot.writeStructBegin(STRUCT_DESC);
30910
 
30911
      if (this.isSetSuccess()) {
30912
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30913
        this.success.write(oprot);
30914
        oprot.writeFieldEnd();
30915
      } else if (this.isSetCex()) {
30916
        oprot.writeFieldBegin(CEX_FIELD_DESC);
30917
        this.cex.write(oprot);
30918
        oprot.writeFieldEnd();
30919
      }
30920
      oprot.writeFieldStop();
30921
      oprot.writeStructEnd();
30922
    }
30923
 
30924
    @Override
30925
    public String toString() {
30926
      StringBuilder sb = new StringBuilder("addSimilarItem_result(");
30927
      boolean first = true;
30928
 
30929
      sb.append("success:");
30930
      if (this.success == null) {
30931
        sb.append("null");
30932
      } else {
30933
        sb.append(this.success);
30934
      }
30935
      first = false;
30936
      if (!first) sb.append(", ");
30937
      sb.append("cex:");
30938
      if (this.cex == null) {
30939
        sb.append("null");
30940
      } else {
30941
        sb.append(this.cex);
30942
      }
30943
      first = false;
30944
      sb.append(")");
30945
      return sb.toString();
30946
    }
30947
 
30948
    public void validate() throws org.apache.thrift.TException {
30949
      // check for required fields
30950
    }
30951
 
30952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30953
      try {
30954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30955
      } catch (org.apache.thrift.TException te) {
30956
        throw new java.io.IOException(te);
30957
      }
30958
    }
30959
 
30960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30961
      try {
30962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30963
      } catch (org.apache.thrift.TException te) {
30964
        throw new java.io.IOException(te);
30965
      }
30966
    }
30967
 
30968
  }
30969
 
6511 kshitij.so 30970
  public static class addTag_args implements org.apache.thrift.TBase<addTag_args, addTag_args._Fields>, java.io.Serializable, Cloneable   {
30971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTag_args");
30972
 
30973
    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);
30974
    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);
30975
 
30976
    private String displayName; // required
30977
    private long itemId; // required
30978
 
30979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30981
      DISPLAY_NAME((short)1, "displayName"),
30982
      ITEM_ID((short)2, "itemId");
30983
 
30984
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30985
 
30986
      static {
30987
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30988
          byName.put(field.getFieldName(), field);
30989
        }
30990
      }
30991
 
30992
      /**
30993
       * Find the _Fields constant that matches fieldId, or null if its not found.
30994
       */
30995
      public static _Fields findByThriftId(int fieldId) {
30996
        switch(fieldId) {
30997
          case 1: // DISPLAY_NAME
30998
            return DISPLAY_NAME;
30999
          case 2: // ITEM_ID
31000
            return ITEM_ID;
31001
          default:
31002
            return null;
31003
        }
31004
      }
31005
 
31006
      /**
31007
       * Find the _Fields constant that matches fieldId, throwing an exception
31008
       * if it is not found.
31009
       */
31010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31011
        _Fields fields = findByThriftId(fieldId);
31012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31013
        return fields;
31014
      }
31015
 
31016
      /**
31017
       * Find the _Fields constant that matches name, or null if its not found.
31018
       */
31019
      public static _Fields findByName(String name) {
31020
        return byName.get(name);
31021
      }
31022
 
31023
      private final short _thriftId;
31024
      private final String _fieldName;
31025
 
31026
      _Fields(short thriftId, String fieldName) {
31027
        _thriftId = thriftId;
31028
        _fieldName = fieldName;
31029
      }
31030
 
31031
      public short getThriftFieldId() {
31032
        return _thriftId;
31033
      }
31034
 
31035
      public String getFieldName() {
31036
        return _fieldName;
31037
      }
31038
    }
31039
 
31040
    // isset id assignments
31041
    private static final int __ITEMID_ISSET_ID = 0;
31042
    private BitSet __isset_bit_vector = new BitSet(1);
31043
 
31044
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31045
    static {
31046
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31047
      tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31048
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31049
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31050
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTag_args.class, metaDataMap);
31053
    }
31054
 
31055
    public addTag_args() {
31056
    }
31057
 
31058
    public addTag_args(
31059
      String displayName,
31060
      long itemId)
31061
    {
31062
      this();
31063
      this.displayName = displayName;
31064
      this.itemId = itemId;
31065
      setItemIdIsSet(true);
31066
    }
31067
 
31068
    /**
31069
     * Performs a deep copy on <i>other</i>.
31070
     */
31071
    public addTag_args(addTag_args other) {
31072
      __isset_bit_vector.clear();
31073
      __isset_bit_vector.or(other.__isset_bit_vector);
31074
      if (other.isSetDisplayName()) {
31075
        this.displayName = other.displayName;
31076
      }
31077
      this.itemId = other.itemId;
31078
    }
31079
 
31080
    public addTag_args deepCopy() {
31081
      return new addTag_args(this);
31082
    }
31083
 
31084
    @Override
31085
    public void clear() {
31086
      this.displayName = null;
31087
      setItemIdIsSet(false);
31088
      this.itemId = 0;
31089
    }
31090
 
31091
    public String getDisplayName() {
31092
      return this.displayName;
31093
    }
31094
 
31095
    public void setDisplayName(String displayName) {
31096
      this.displayName = displayName;
31097
    }
31098
 
31099
    public void unsetDisplayName() {
31100
      this.displayName = null;
31101
    }
31102
 
31103
    /** Returns true if field displayName is set (has been assigned a value) and false otherwise */
31104
    public boolean isSetDisplayName() {
31105
      return this.displayName != null;
31106
    }
31107
 
31108
    public void setDisplayNameIsSet(boolean value) {
31109
      if (!value) {
31110
        this.displayName = null;
31111
      }
31112
    }
31113
 
31114
    public long getItemId() {
31115
      return this.itemId;
31116
    }
31117
 
31118
    public void setItemId(long itemId) {
31119
      this.itemId = itemId;
31120
      setItemIdIsSet(true);
31121
    }
31122
 
31123
    public void unsetItemId() {
31124
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
31125
    }
31126
 
31127
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
31128
    public boolean isSetItemId() {
31129
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
31130
    }
31131
 
31132
    public void setItemIdIsSet(boolean value) {
31133
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
31134
    }
31135
 
31136
    public void setFieldValue(_Fields field, Object value) {
31137
      switch (field) {
31138
      case DISPLAY_NAME:
31139
        if (value == null) {
31140
          unsetDisplayName();
31141
        } else {
31142
          setDisplayName((String)value);
31143
        }
31144
        break;
31145
 
31146
      case ITEM_ID:
31147
        if (value == null) {
31148
          unsetItemId();
31149
        } else {
31150
          setItemId((Long)value);
31151
        }
31152
        break;
31153
 
31154
      }
31155
    }
31156
 
31157
    public Object getFieldValue(_Fields field) {
31158
      switch (field) {
31159
      case DISPLAY_NAME:
31160
        return getDisplayName();
31161
 
31162
      case ITEM_ID:
31163
        return Long.valueOf(getItemId());
31164
 
31165
      }
31166
      throw new IllegalStateException();
31167
    }
31168
 
31169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31170
    public boolean isSet(_Fields field) {
31171
      if (field == null) {
31172
        throw new IllegalArgumentException();
31173
      }
31174
 
31175
      switch (field) {
31176
      case DISPLAY_NAME:
31177
        return isSetDisplayName();
31178
      case ITEM_ID:
31179
        return isSetItemId();
31180
      }
31181
      throw new IllegalStateException();
31182
    }
31183
 
31184
    @Override
31185
    public boolean equals(Object that) {
31186
      if (that == null)
31187
        return false;
31188
      if (that instanceof addTag_args)
31189
        return this.equals((addTag_args)that);
31190
      return false;
31191
    }
31192
 
31193
    public boolean equals(addTag_args that) {
31194
      if (that == null)
31195
        return false;
31196
 
31197
      boolean this_present_displayName = true && this.isSetDisplayName();
31198
      boolean that_present_displayName = true && that.isSetDisplayName();
31199
      if (this_present_displayName || that_present_displayName) {
31200
        if (!(this_present_displayName && that_present_displayName))
31201
          return false;
31202
        if (!this.displayName.equals(that.displayName))
31203
          return false;
31204
      }
31205
 
31206
      boolean this_present_itemId = true;
31207
      boolean that_present_itemId = true;
31208
      if (this_present_itemId || that_present_itemId) {
31209
        if (!(this_present_itemId && that_present_itemId))
31210
          return false;
31211
        if (this.itemId != that.itemId)
31212
          return false;
31213
      }
31214
 
31215
      return true;
31216
    }
31217
 
31218
    @Override
31219
    public int hashCode() {
31220
      return 0;
31221
    }
31222
 
31223
    public int compareTo(addTag_args other) {
31224
      if (!getClass().equals(other.getClass())) {
31225
        return getClass().getName().compareTo(other.getClass().getName());
31226
      }
31227
 
31228
      int lastComparison = 0;
31229
      addTag_args typedOther = (addTag_args)other;
31230
 
31231
      lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
31232
      if (lastComparison != 0) {
31233
        return lastComparison;
31234
      }
31235
      if (isSetDisplayName()) {
31236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
31237
        if (lastComparison != 0) {
31238
          return lastComparison;
31239
        }
31240
      }
31241
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
31242
      if (lastComparison != 0) {
31243
        return lastComparison;
31244
      }
31245
      if (isSetItemId()) {
31246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
31247
        if (lastComparison != 0) {
31248
          return lastComparison;
31249
        }
31250
      }
31251
      return 0;
31252
    }
31253
 
31254
    public _Fields fieldForId(int fieldId) {
31255
      return _Fields.findByThriftId(fieldId);
31256
    }
31257
 
31258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31259
      org.apache.thrift.protocol.TField field;
31260
      iprot.readStructBegin();
31261
      while (true)
31262
      {
31263
        field = iprot.readFieldBegin();
31264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31265
          break;
31266
        }
31267
        switch (field.id) {
31268
          case 1: // DISPLAY_NAME
31269
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31270
              this.displayName = iprot.readString();
31271
            } else { 
31272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31273
            }
31274
            break;
31275
          case 2: // ITEM_ID
31276
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31277
              this.itemId = iprot.readI64();
31278
              setItemIdIsSet(true);
31279
            } else { 
31280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31281
            }
31282
            break;
31283
          default:
31284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31285
        }
31286
        iprot.readFieldEnd();
31287
      }
31288
      iprot.readStructEnd();
31289
      validate();
31290
    }
31291
 
31292
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31293
      validate();
31294
 
31295
      oprot.writeStructBegin(STRUCT_DESC);
31296
      if (this.displayName != null) {
31297
        oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);
31298
        oprot.writeString(this.displayName);
31299
        oprot.writeFieldEnd();
31300
      }
31301
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
31302
      oprot.writeI64(this.itemId);
31303
      oprot.writeFieldEnd();
31304
      oprot.writeFieldStop();
31305
      oprot.writeStructEnd();
31306
    }
31307
 
31308
    @Override
31309
    public String toString() {
31310
      StringBuilder sb = new StringBuilder("addTag_args(");
31311
      boolean first = true;
31312
 
31313
      sb.append("displayName:");
31314
      if (this.displayName == null) {
31315
        sb.append("null");
31316
      } else {
31317
        sb.append(this.displayName);
31318
      }
31319
      first = false;
31320
      if (!first) sb.append(", ");
31321
      sb.append("itemId:");
31322
      sb.append(this.itemId);
31323
      first = false;
31324
      sb.append(")");
31325
      return sb.toString();
31326
    }
31327
 
31328
    public void validate() throws org.apache.thrift.TException {
31329
      // check for required fields
31330
    }
31331
 
31332
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31333
      try {
31334
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31335
      } catch (org.apache.thrift.TException te) {
31336
        throw new java.io.IOException(te);
31337
      }
31338
    }
31339
 
31340
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31341
      try {
31342
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31343
        __isset_bit_vector = new BitSet(1);
31344
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31345
      } catch (org.apache.thrift.TException te) {
31346
        throw new java.io.IOException(te);
31347
      }
31348
    }
31349
 
31350
  }
31351
 
31352
  public static class addTag_result implements org.apache.thrift.TBase<addTag_result, addTag_result._Fields>, java.io.Serializable, Cloneable   {
31353
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTag_result");
31354
 
31355
    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);
31356
 
31357
    private boolean success; // required
31358
 
31359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31360
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31361
      SUCCESS((short)0, "success");
31362
 
31363
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31364
 
31365
      static {
31366
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31367
          byName.put(field.getFieldName(), field);
31368
        }
31369
      }
31370
 
31371
      /**
31372
       * Find the _Fields constant that matches fieldId, or null if its not found.
31373
       */
31374
      public static _Fields findByThriftId(int fieldId) {
31375
        switch(fieldId) {
31376
          case 0: // SUCCESS
31377
            return SUCCESS;
31378
          default:
31379
            return null;
31380
        }
31381
      }
31382
 
31383
      /**
31384
       * Find the _Fields constant that matches fieldId, throwing an exception
31385
       * if it is not found.
31386
       */
31387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31388
        _Fields fields = findByThriftId(fieldId);
31389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31390
        return fields;
31391
      }
31392
 
31393
      /**
31394
       * Find the _Fields constant that matches name, or null if its not found.
31395
       */
31396
      public static _Fields findByName(String name) {
31397
        return byName.get(name);
31398
      }
31399
 
31400
      private final short _thriftId;
31401
      private final String _fieldName;
31402
 
31403
      _Fields(short thriftId, String fieldName) {
31404
        _thriftId = thriftId;
31405
        _fieldName = fieldName;
31406
      }
31407
 
31408
      public short getThriftFieldId() {
31409
        return _thriftId;
31410
      }
31411
 
31412
      public String getFieldName() {
31413
        return _fieldName;
31414
      }
31415
    }
31416
 
31417
    // isset id assignments
31418
    private static final int __SUCCESS_ISSET_ID = 0;
31419
    private BitSet __isset_bit_vector = new BitSet(1);
31420
 
31421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31422
    static {
31423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31424
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTag_result.class, metaDataMap);
31428
    }
31429
 
31430
    public addTag_result() {
31431
    }
31432
 
31433
    public addTag_result(
31434
      boolean success)
31435
    {
31436
      this();
31437
      this.success = success;
31438
      setSuccessIsSet(true);
31439
    }
31440
 
31441
    /**
31442
     * Performs a deep copy on <i>other</i>.
31443
     */
31444
    public addTag_result(addTag_result other) {
31445
      __isset_bit_vector.clear();
31446
      __isset_bit_vector.or(other.__isset_bit_vector);
31447
      this.success = other.success;
31448
    }
31449
 
31450
    public addTag_result deepCopy() {
31451
      return new addTag_result(this);
31452
    }
31453
 
31454
    @Override
31455
    public void clear() {
31456
      setSuccessIsSet(false);
31457
      this.success = false;
31458
    }
31459
 
31460
    public boolean isSuccess() {
31461
      return this.success;
31462
    }
31463
 
31464
    public void setSuccess(boolean success) {
31465
      this.success = success;
31466
      setSuccessIsSet(true);
31467
    }
31468
 
31469
    public void unsetSuccess() {
31470
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31471
    }
31472
 
31473
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31474
    public boolean isSetSuccess() {
31475
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31476
    }
31477
 
31478
    public void setSuccessIsSet(boolean value) {
31479
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31480
    }
31481
 
31482
    public void setFieldValue(_Fields field, Object value) {
31483
      switch (field) {
31484
      case SUCCESS:
31485
        if (value == null) {
31486
          unsetSuccess();
31487
        } else {
31488
          setSuccess((Boolean)value);
31489
        }
31490
        break;
31491
 
31492
      }
31493
    }
31494
 
31495
    public Object getFieldValue(_Fields field) {
31496
      switch (field) {
31497
      case SUCCESS:
31498
        return Boolean.valueOf(isSuccess());
31499
 
31500
      }
31501
      throw new IllegalStateException();
31502
    }
31503
 
31504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31505
    public boolean isSet(_Fields field) {
31506
      if (field == null) {
31507
        throw new IllegalArgumentException();
31508
      }
31509
 
31510
      switch (field) {
31511
      case SUCCESS:
31512
        return isSetSuccess();
31513
      }
31514
      throw new IllegalStateException();
31515
    }
31516
 
31517
    @Override
31518
    public boolean equals(Object that) {
31519
      if (that == null)
31520
        return false;
31521
      if (that instanceof addTag_result)
31522
        return this.equals((addTag_result)that);
31523
      return false;
31524
    }
31525
 
31526
    public boolean equals(addTag_result that) {
31527
      if (that == null)
31528
        return false;
31529
 
31530
      boolean this_present_success = true;
31531
      boolean that_present_success = true;
31532
      if (this_present_success || that_present_success) {
31533
        if (!(this_present_success && that_present_success))
31534
          return false;
31535
        if (this.success != that.success)
31536
          return false;
31537
      }
31538
 
31539
      return true;
31540
    }
31541
 
31542
    @Override
31543
    public int hashCode() {
31544
      return 0;
31545
    }
31546
 
31547
    public int compareTo(addTag_result other) {
31548
      if (!getClass().equals(other.getClass())) {
31549
        return getClass().getName().compareTo(other.getClass().getName());
31550
      }
31551
 
31552
      int lastComparison = 0;
31553
      addTag_result typedOther = (addTag_result)other;
31554
 
31555
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31556
      if (lastComparison != 0) {
31557
        return lastComparison;
31558
      }
31559
      if (isSetSuccess()) {
31560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31561
        if (lastComparison != 0) {
31562
          return lastComparison;
31563
        }
31564
      }
31565
      return 0;
31566
    }
31567
 
31568
    public _Fields fieldForId(int fieldId) {
31569
      return _Fields.findByThriftId(fieldId);
31570
    }
31571
 
31572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31573
      org.apache.thrift.protocol.TField field;
31574
      iprot.readStructBegin();
31575
      while (true)
31576
      {
31577
        field = iprot.readFieldBegin();
31578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31579
          break;
31580
        }
31581
        switch (field.id) {
31582
          case 0: // SUCCESS
31583
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31584
              this.success = iprot.readBool();
31585
              setSuccessIsSet(true);
31586
            } else { 
31587
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31588
            }
31589
            break;
31590
          default:
31591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31592
        }
31593
        iprot.readFieldEnd();
31594
      }
31595
      iprot.readStructEnd();
31596
      validate();
31597
    }
31598
 
31599
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31600
      oprot.writeStructBegin(STRUCT_DESC);
31601
 
31602
      if (this.isSetSuccess()) {
31603
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31604
        oprot.writeBool(this.success);
31605
        oprot.writeFieldEnd();
31606
      }
31607
      oprot.writeFieldStop();
31608
      oprot.writeStructEnd();
31609
    }
31610
 
31611
    @Override
31612
    public String toString() {
31613
      StringBuilder sb = new StringBuilder("addTag_result(");
31614
      boolean first = true;
31615
 
31616
      sb.append("success:");
31617
      sb.append(this.success);
31618
      first = false;
31619
      sb.append(")");
31620
      return sb.toString();
31621
    }
31622
 
31623
    public void validate() throws org.apache.thrift.TException {
31624
      // check for required fields
31625
    }
31626
 
31627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31628
      try {
31629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31630
      } catch (org.apache.thrift.TException te) {
31631
        throw new java.io.IOException(te);
31632
      }
31633
    }
31634
 
31635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31636
      try {
31637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31638
      } catch (org.apache.thrift.TException te) {
31639
        throw new java.io.IOException(te);
31640
      }
31641
    }
31642
 
31643
  }
31644
 
31645
  public static class deleteEntityTag_args implements org.apache.thrift.TBase<deleteEntityTag_args, deleteEntityTag_args._Fields>, java.io.Serializable, Cloneable   {
31646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteEntityTag_args");
31647
 
31648
    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);
31649
    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);
31650
 
31651
    private String displayName; // required
31652
    private long itemId; // required
31653
 
31654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31656
      DISPLAY_NAME((short)1, "displayName"),
31657
      ITEM_ID((short)2, "itemId");
31658
 
31659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31660
 
31661
      static {
31662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31663
          byName.put(field.getFieldName(), field);
31664
        }
31665
      }
31666
 
31667
      /**
31668
       * Find the _Fields constant that matches fieldId, or null if its not found.
31669
       */
31670
      public static _Fields findByThriftId(int fieldId) {
31671
        switch(fieldId) {
31672
          case 1: // DISPLAY_NAME
31673
            return DISPLAY_NAME;
31674
          case 2: // ITEM_ID
31675
            return ITEM_ID;
31676
          default:
31677
            return null;
31678
        }
31679
      }
31680
 
31681
      /**
31682
       * Find the _Fields constant that matches fieldId, throwing an exception
31683
       * if it is not found.
31684
       */
31685
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31686
        _Fields fields = findByThriftId(fieldId);
31687
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31688
        return fields;
31689
      }
31690
 
31691
      /**
31692
       * Find the _Fields constant that matches name, or null if its not found.
31693
       */
31694
      public static _Fields findByName(String name) {
31695
        return byName.get(name);
31696
      }
31697
 
31698
      private final short _thriftId;
31699
      private final String _fieldName;
31700
 
31701
      _Fields(short thriftId, String fieldName) {
31702
        _thriftId = thriftId;
31703
        _fieldName = fieldName;
31704
      }
31705
 
31706
      public short getThriftFieldId() {
31707
        return _thriftId;
31708
      }
31709
 
31710
      public String getFieldName() {
31711
        return _fieldName;
31712
      }
31713
    }
31714
 
31715
    // isset id assignments
31716
    private static final int __ITEMID_ISSET_ID = 0;
31717
    private BitSet __isset_bit_vector = new BitSet(1);
31718
 
31719
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31720
    static {
31721
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31722
      tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31724
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31725
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31726
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31727
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteEntityTag_args.class, metaDataMap);
31728
    }
31729
 
31730
    public deleteEntityTag_args() {
31731
    }
31732
 
31733
    public deleteEntityTag_args(
31734
      String displayName,
31735
      long itemId)
31736
    {
31737
      this();
31738
      this.displayName = displayName;
31739
      this.itemId = itemId;
31740
      setItemIdIsSet(true);
31741
    }
31742
 
31743
    /**
31744
     * Performs a deep copy on <i>other</i>.
31745
     */
31746
    public deleteEntityTag_args(deleteEntityTag_args other) {
31747
      __isset_bit_vector.clear();
31748
      __isset_bit_vector.or(other.__isset_bit_vector);
31749
      if (other.isSetDisplayName()) {
31750
        this.displayName = other.displayName;
31751
      }
31752
      this.itemId = other.itemId;
31753
    }
31754
 
31755
    public deleteEntityTag_args deepCopy() {
31756
      return new deleteEntityTag_args(this);
31757
    }
31758
 
31759
    @Override
31760
    public void clear() {
31761
      this.displayName = null;
31762
      setItemIdIsSet(false);
31763
      this.itemId = 0;
31764
    }
31765
 
31766
    public String getDisplayName() {
31767
      return this.displayName;
31768
    }
31769
 
31770
    public void setDisplayName(String displayName) {
31771
      this.displayName = displayName;
31772
    }
31773
 
31774
    public void unsetDisplayName() {
31775
      this.displayName = null;
31776
    }
31777
 
31778
    /** Returns true if field displayName is set (has been assigned a value) and false otherwise */
31779
    public boolean isSetDisplayName() {
31780
      return this.displayName != null;
31781
    }
31782
 
31783
    public void setDisplayNameIsSet(boolean value) {
31784
      if (!value) {
31785
        this.displayName = null;
31786
      }
31787
    }
31788
 
31789
    public long getItemId() {
31790
      return this.itemId;
31791
    }
31792
 
31793
    public void setItemId(long itemId) {
31794
      this.itemId = itemId;
31795
      setItemIdIsSet(true);
31796
    }
31797
 
31798
    public void unsetItemId() {
31799
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
31800
    }
31801
 
31802
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
31803
    public boolean isSetItemId() {
31804
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
31805
    }
31806
 
31807
    public void setItemIdIsSet(boolean value) {
31808
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
31809
    }
31810
 
31811
    public void setFieldValue(_Fields field, Object value) {
31812
      switch (field) {
31813
      case DISPLAY_NAME:
31814
        if (value == null) {
31815
          unsetDisplayName();
31816
        } else {
31817
          setDisplayName((String)value);
31818
        }
31819
        break;
31820
 
31821
      case ITEM_ID:
31822
        if (value == null) {
31823
          unsetItemId();
31824
        } else {
31825
          setItemId((Long)value);
31826
        }
31827
        break;
31828
 
31829
      }
31830
    }
31831
 
31832
    public Object getFieldValue(_Fields field) {
31833
      switch (field) {
31834
      case DISPLAY_NAME:
31835
        return getDisplayName();
31836
 
31837
      case ITEM_ID:
31838
        return Long.valueOf(getItemId());
31839
 
31840
      }
31841
      throw new IllegalStateException();
31842
    }
31843
 
31844
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31845
    public boolean isSet(_Fields field) {
31846
      if (field == null) {
31847
        throw new IllegalArgumentException();
31848
      }
31849
 
31850
      switch (field) {
31851
      case DISPLAY_NAME:
31852
        return isSetDisplayName();
31853
      case ITEM_ID:
31854
        return isSetItemId();
31855
      }
31856
      throw new IllegalStateException();
31857
    }
31858
 
31859
    @Override
31860
    public boolean equals(Object that) {
31861
      if (that == null)
31862
        return false;
31863
      if (that instanceof deleteEntityTag_args)
31864
        return this.equals((deleteEntityTag_args)that);
31865
      return false;
31866
    }
31867
 
31868
    public boolean equals(deleteEntityTag_args that) {
31869
      if (that == null)
31870
        return false;
31871
 
31872
      boolean this_present_displayName = true && this.isSetDisplayName();
31873
      boolean that_present_displayName = true && that.isSetDisplayName();
31874
      if (this_present_displayName || that_present_displayName) {
31875
        if (!(this_present_displayName && that_present_displayName))
31876
          return false;
31877
        if (!this.displayName.equals(that.displayName))
31878
          return false;
31879
      }
31880
 
31881
      boolean this_present_itemId = true;
31882
      boolean that_present_itemId = true;
31883
      if (this_present_itemId || that_present_itemId) {
31884
        if (!(this_present_itemId && that_present_itemId))
31885
          return false;
31886
        if (this.itemId != that.itemId)
31887
          return false;
31888
      }
31889
 
31890
      return true;
31891
    }
31892
 
31893
    @Override
31894
    public int hashCode() {
31895
      return 0;
31896
    }
31897
 
31898
    public int compareTo(deleteEntityTag_args other) {
31899
      if (!getClass().equals(other.getClass())) {
31900
        return getClass().getName().compareTo(other.getClass().getName());
31901
      }
31902
 
31903
      int lastComparison = 0;
31904
      deleteEntityTag_args typedOther = (deleteEntityTag_args)other;
31905
 
31906
      lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
31907
      if (lastComparison != 0) {
31908
        return lastComparison;
31909
      }
31910
      if (isSetDisplayName()) {
31911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
31912
        if (lastComparison != 0) {
31913
          return lastComparison;
31914
        }
31915
      }
31916
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
31917
      if (lastComparison != 0) {
31918
        return lastComparison;
31919
      }
31920
      if (isSetItemId()) {
31921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
31922
        if (lastComparison != 0) {
31923
          return lastComparison;
31924
        }
31925
      }
31926
      return 0;
31927
    }
31928
 
31929
    public _Fields fieldForId(int fieldId) {
31930
      return _Fields.findByThriftId(fieldId);
31931
    }
31932
 
31933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31934
      org.apache.thrift.protocol.TField field;
31935
      iprot.readStructBegin();
31936
      while (true)
31937
      {
31938
        field = iprot.readFieldBegin();
31939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31940
          break;
31941
        }
31942
        switch (field.id) {
31943
          case 1: // DISPLAY_NAME
31944
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31945
              this.displayName = iprot.readString();
31946
            } else { 
31947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31948
            }
31949
            break;
31950
          case 2: // ITEM_ID
31951
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31952
              this.itemId = iprot.readI64();
31953
              setItemIdIsSet(true);
31954
            } else { 
31955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31956
            }
31957
            break;
31958
          default:
31959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31960
        }
31961
        iprot.readFieldEnd();
31962
      }
31963
      iprot.readStructEnd();
31964
      validate();
31965
    }
31966
 
31967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31968
      validate();
31969
 
31970
      oprot.writeStructBegin(STRUCT_DESC);
31971
      if (this.displayName != null) {
31972
        oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);
31973
        oprot.writeString(this.displayName);
31974
        oprot.writeFieldEnd();
31975
      }
31976
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
31977
      oprot.writeI64(this.itemId);
31978
      oprot.writeFieldEnd();
31979
      oprot.writeFieldStop();
31980
      oprot.writeStructEnd();
31981
    }
31982
 
31983
    @Override
31984
    public String toString() {
31985
      StringBuilder sb = new StringBuilder("deleteEntityTag_args(");
31986
      boolean first = true;
31987
 
31988
      sb.append("displayName:");
31989
      if (this.displayName == null) {
31990
        sb.append("null");
31991
      } else {
31992
        sb.append(this.displayName);
31993
      }
31994
      first = false;
31995
      if (!first) sb.append(", ");
31996
      sb.append("itemId:");
31997
      sb.append(this.itemId);
31998
      first = false;
31999
      sb.append(")");
32000
      return sb.toString();
32001
    }
32002
 
32003
    public void validate() throws org.apache.thrift.TException {
32004
      // check for required fields
32005
    }
32006
 
32007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32008
      try {
32009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32010
      } catch (org.apache.thrift.TException te) {
32011
        throw new java.io.IOException(te);
32012
      }
32013
    }
32014
 
32015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32016
      try {
32017
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32018
        __isset_bit_vector = new BitSet(1);
32019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32020
      } catch (org.apache.thrift.TException te) {
32021
        throw new java.io.IOException(te);
32022
      }
32023
    }
32024
 
32025
  }
32026
 
32027
  public static class deleteEntityTag_result implements org.apache.thrift.TBase<deleteEntityTag_result, deleteEntityTag_result._Fields>, java.io.Serializable, Cloneable   {
32028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteEntityTag_result");
32029
 
32030
    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);
32031
 
32032
    private boolean success; // required
32033
 
32034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32036
      SUCCESS((short)0, "success");
32037
 
32038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32039
 
32040
      static {
32041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32042
          byName.put(field.getFieldName(), field);
32043
        }
32044
      }
32045
 
32046
      /**
32047
       * Find the _Fields constant that matches fieldId, or null if its not found.
32048
       */
32049
      public static _Fields findByThriftId(int fieldId) {
32050
        switch(fieldId) {
32051
          case 0: // SUCCESS
32052
            return SUCCESS;
32053
          default:
32054
            return null;
32055
        }
32056
      }
32057
 
32058
      /**
32059
       * Find the _Fields constant that matches fieldId, throwing an exception
32060
       * if it is not found.
32061
       */
32062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32063
        _Fields fields = findByThriftId(fieldId);
32064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32065
        return fields;
32066
      }
32067
 
32068
      /**
32069
       * Find the _Fields constant that matches name, or null if its not found.
32070
       */
32071
      public static _Fields findByName(String name) {
32072
        return byName.get(name);
32073
      }
32074
 
32075
      private final short _thriftId;
32076
      private final String _fieldName;
32077
 
32078
      _Fields(short thriftId, String fieldName) {
32079
        _thriftId = thriftId;
32080
        _fieldName = fieldName;
32081
      }
32082
 
32083
      public short getThriftFieldId() {
32084
        return _thriftId;
32085
      }
32086
 
32087
      public String getFieldName() {
32088
        return _fieldName;
32089
      }
32090
    }
32091
 
32092
    // isset id assignments
32093
    private static final int __SUCCESS_ISSET_ID = 0;
32094
    private BitSet __isset_bit_vector = new BitSet(1);
32095
 
32096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32097
    static {
32098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32099
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32100
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteEntityTag_result.class, metaDataMap);
32103
    }
32104
 
32105
    public deleteEntityTag_result() {
32106
    }
32107
 
32108
    public deleteEntityTag_result(
32109
      boolean success)
32110
    {
32111
      this();
32112
      this.success = success;
32113
      setSuccessIsSet(true);
32114
    }
32115
 
32116
    /**
32117
     * Performs a deep copy on <i>other</i>.
32118
     */
32119
    public deleteEntityTag_result(deleteEntityTag_result other) {
32120
      __isset_bit_vector.clear();
32121
      __isset_bit_vector.or(other.__isset_bit_vector);
32122
      this.success = other.success;
32123
    }
32124
 
32125
    public deleteEntityTag_result deepCopy() {
32126
      return new deleteEntityTag_result(this);
32127
    }
32128
 
32129
    @Override
32130
    public void clear() {
32131
      setSuccessIsSet(false);
32132
      this.success = false;
32133
    }
32134
 
32135
    public boolean isSuccess() {
32136
      return this.success;
32137
    }
32138
 
32139
    public void setSuccess(boolean success) {
32140
      this.success = success;
32141
      setSuccessIsSet(true);
32142
    }
32143
 
32144
    public void unsetSuccess() {
32145
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32146
    }
32147
 
32148
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32149
    public boolean isSetSuccess() {
32150
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32151
    }
32152
 
32153
    public void setSuccessIsSet(boolean value) {
32154
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32155
    }
32156
 
32157
    public void setFieldValue(_Fields field, Object value) {
32158
      switch (field) {
32159
      case SUCCESS:
32160
        if (value == null) {
32161
          unsetSuccess();
32162
        } else {
32163
          setSuccess((Boolean)value);
32164
        }
32165
        break;
32166
 
32167
      }
32168
    }
32169
 
32170
    public Object getFieldValue(_Fields field) {
32171
      switch (field) {
32172
      case SUCCESS:
32173
        return Boolean.valueOf(isSuccess());
32174
 
32175
      }
32176
      throw new IllegalStateException();
32177
    }
32178
 
32179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32180
    public boolean isSet(_Fields field) {
32181
      if (field == null) {
32182
        throw new IllegalArgumentException();
32183
      }
32184
 
32185
      switch (field) {
32186
      case SUCCESS:
32187
        return isSetSuccess();
32188
      }
32189
      throw new IllegalStateException();
32190
    }
32191
 
32192
    @Override
32193
    public boolean equals(Object that) {
32194
      if (that == null)
32195
        return false;
32196
      if (that instanceof deleteEntityTag_result)
32197
        return this.equals((deleteEntityTag_result)that);
32198
      return false;
32199
    }
32200
 
32201
    public boolean equals(deleteEntityTag_result that) {
32202
      if (that == null)
32203
        return false;
32204
 
32205
      boolean this_present_success = true;
32206
      boolean that_present_success = true;
32207
      if (this_present_success || that_present_success) {
32208
        if (!(this_present_success && that_present_success))
32209
          return false;
32210
        if (this.success != that.success)
32211
          return false;
32212
      }
32213
 
32214
      return true;
32215
    }
32216
 
32217
    @Override
32218
    public int hashCode() {
32219
      return 0;
32220
    }
32221
 
32222
    public int compareTo(deleteEntityTag_result other) {
32223
      if (!getClass().equals(other.getClass())) {
32224
        return getClass().getName().compareTo(other.getClass().getName());
32225
      }
32226
 
32227
      int lastComparison = 0;
32228
      deleteEntityTag_result typedOther = (deleteEntityTag_result)other;
32229
 
32230
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32231
      if (lastComparison != 0) {
32232
        return lastComparison;
32233
      }
32234
      if (isSetSuccess()) {
32235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32236
        if (lastComparison != 0) {
32237
          return lastComparison;
32238
        }
32239
      }
32240
      return 0;
32241
    }
32242
 
32243
    public _Fields fieldForId(int fieldId) {
32244
      return _Fields.findByThriftId(fieldId);
32245
    }
32246
 
32247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32248
      org.apache.thrift.protocol.TField field;
32249
      iprot.readStructBegin();
32250
      while (true)
32251
      {
32252
        field = iprot.readFieldBegin();
32253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32254
          break;
32255
        }
32256
        switch (field.id) {
32257
          case 0: // SUCCESS
32258
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32259
              this.success = iprot.readBool();
32260
              setSuccessIsSet(true);
32261
            } else { 
32262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32263
            }
32264
            break;
32265
          default:
32266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32267
        }
32268
        iprot.readFieldEnd();
32269
      }
32270
      iprot.readStructEnd();
32271
      validate();
32272
    }
32273
 
32274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32275
      oprot.writeStructBegin(STRUCT_DESC);
32276
 
32277
      if (this.isSetSuccess()) {
32278
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32279
        oprot.writeBool(this.success);
32280
        oprot.writeFieldEnd();
32281
      }
32282
      oprot.writeFieldStop();
32283
      oprot.writeStructEnd();
32284
    }
32285
 
32286
    @Override
32287
    public String toString() {
32288
      StringBuilder sb = new StringBuilder("deleteEntityTag_result(");
32289
      boolean first = true;
32290
 
32291
      sb.append("success:");
32292
      sb.append(this.success);
32293
      first = false;
32294
      sb.append(")");
32295
      return sb.toString();
32296
    }
32297
 
32298
    public void validate() throws org.apache.thrift.TException {
32299
      // check for required fields
32300
    }
32301
 
32302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32303
      try {
32304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32305
      } catch (org.apache.thrift.TException te) {
32306
        throw new java.io.IOException(te);
32307
      }
32308
    }
32309
 
32310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32311
      try {
32312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32313
      } catch (org.apache.thrift.TException te) {
32314
        throw new java.io.IOException(te);
32315
      }
32316
    }
32317
 
32318
  }
32319
 
32320
  public static class deleteTag_args implements org.apache.thrift.TBase<deleteTag_args, deleteTag_args._Fields>, java.io.Serializable, Cloneable   {
32321
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTag_args");
32322
 
32323
    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);
32324
 
32325
    private String displayName; // required
32326
 
32327
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32328
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32329
      DISPLAY_NAME((short)1, "displayName");
32330
 
32331
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32332
 
32333
      static {
32334
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32335
          byName.put(field.getFieldName(), field);
32336
        }
32337
      }
32338
 
32339
      /**
32340
       * Find the _Fields constant that matches fieldId, or null if its not found.
32341
       */
32342
      public static _Fields findByThriftId(int fieldId) {
32343
        switch(fieldId) {
32344
          case 1: // DISPLAY_NAME
32345
            return DISPLAY_NAME;
32346
          default:
32347
            return null;
32348
        }
32349
      }
32350
 
32351
      /**
32352
       * Find the _Fields constant that matches fieldId, throwing an exception
32353
       * if it is not found.
32354
       */
32355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32356
        _Fields fields = findByThriftId(fieldId);
32357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32358
        return fields;
32359
      }
32360
 
32361
      /**
32362
       * Find the _Fields constant that matches name, or null if its not found.
32363
       */
32364
      public static _Fields findByName(String name) {
32365
        return byName.get(name);
32366
      }
32367
 
32368
      private final short _thriftId;
32369
      private final String _fieldName;
32370
 
32371
      _Fields(short thriftId, String fieldName) {
32372
        _thriftId = thriftId;
32373
        _fieldName = fieldName;
32374
      }
32375
 
32376
      public short getThriftFieldId() {
32377
        return _thriftId;
32378
      }
32379
 
32380
      public String getFieldName() {
32381
        return _fieldName;
32382
      }
32383
    }
32384
 
32385
    // isset id assignments
32386
 
32387
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32388
    static {
32389
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32390
      tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32391
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
32392
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32393
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTag_args.class, metaDataMap);
32394
    }
32395
 
32396
    public deleteTag_args() {
32397
    }
32398
 
32399
    public deleteTag_args(
32400
      String displayName)
32401
    {
32402
      this();
32403
      this.displayName = displayName;
32404
    }
32405
 
32406
    /**
32407
     * Performs a deep copy on <i>other</i>.
32408
     */
32409
    public deleteTag_args(deleteTag_args other) {
32410
      if (other.isSetDisplayName()) {
32411
        this.displayName = other.displayName;
32412
      }
32413
    }
32414
 
32415
    public deleteTag_args deepCopy() {
32416
      return new deleteTag_args(this);
32417
    }
32418
 
32419
    @Override
32420
    public void clear() {
32421
      this.displayName = null;
32422
    }
32423
 
32424
    public String getDisplayName() {
32425
      return this.displayName;
32426
    }
32427
 
32428
    public void setDisplayName(String displayName) {
32429
      this.displayName = displayName;
32430
    }
32431
 
32432
    public void unsetDisplayName() {
32433
      this.displayName = null;
32434
    }
32435
 
32436
    /** Returns true if field displayName is set (has been assigned a value) and false otherwise */
32437
    public boolean isSetDisplayName() {
32438
      return this.displayName != null;
32439
    }
32440
 
32441
    public void setDisplayNameIsSet(boolean value) {
32442
      if (!value) {
32443
        this.displayName = null;
32444
      }
32445
    }
32446
 
32447
    public void setFieldValue(_Fields field, Object value) {
32448
      switch (field) {
32449
      case DISPLAY_NAME:
32450
        if (value == null) {
32451
          unsetDisplayName();
32452
        } else {
32453
          setDisplayName((String)value);
32454
        }
32455
        break;
32456
 
32457
      }
32458
    }
32459
 
32460
    public Object getFieldValue(_Fields field) {
32461
      switch (field) {
32462
      case DISPLAY_NAME:
32463
        return getDisplayName();
32464
 
32465
      }
32466
      throw new IllegalStateException();
32467
    }
32468
 
32469
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32470
    public boolean isSet(_Fields field) {
32471
      if (field == null) {
32472
        throw new IllegalArgumentException();
32473
      }
32474
 
32475
      switch (field) {
32476
      case DISPLAY_NAME:
32477
        return isSetDisplayName();
32478
      }
32479
      throw new IllegalStateException();
32480
    }
32481
 
32482
    @Override
32483
    public boolean equals(Object that) {
32484
      if (that == null)
32485
        return false;
32486
      if (that instanceof deleteTag_args)
32487
        return this.equals((deleteTag_args)that);
32488
      return false;
32489
    }
32490
 
32491
    public boolean equals(deleteTag_args that) {
32492
      if (that == null)
32493
        return false;
32494
 
32495
      boolean this_present_displayName = true && this.isSetDisplayName();
32496
      boolean that_present_displayName = true && that.isSetDisplayName();
32497
      if (this_present_displayName || that_present_displayName) {
32498
        if (!(this_present_displayName && that_present_displayName))
32499
          return false;
32500
        if (!this.displayName.equals(that.displayName))
32501
          return false;
32502
      }
32503
 
32504
      return true;
32505
    }
32506
 
32507
    @Override
32508
    public int hashCode() {
32509
      return 0;
32510
    }
32511
 
32512
    public int compareTo(deleteTag_args other) {
32513
      if (!getClass().equals(other.getClass())) {
32514
        return getClass().getName().compareTo(other.getClass().getName());
32515
      }
32516
 
32517
      int lastComparison = 0;
32518
      deleteTag_args typedOther = (deleteTag_args)other;
32519
 
32520
      lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
32521
      if (lastComparison != 0) {
32522
        return lastComparison;
32523
      }
32524
      if (isSetDisplayName()) {
32525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
32526
        if (lastComparison != 0) {
32527
          return lastComparison;
32528
        }
32529
      }
32530
      return 0;
32531
    }
32532
 
32533
    public _Fields fieldForId(int fieldId) {
32534
      return _Fields.findByThriftId(fieldId);
32535
    }
32536
 
32537
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32538
      org.apache.thrift.protocol.TField field;
32539
      iprot.readStructBegin();
32540
      while (true)
32541
      {
32542
        field = iprot.readFieldBegin();
32543
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32544
          break;
32545
        }
32546
        switch (field.id) {
32547
          case 1: // DISPLAY_NAME
32548
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
32549
              this.displayName = iprot.readString();
32550
            } else { 
32551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32552
            }
32553
            break;
32554
          default:
32555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32556
        }
32557
        iprot.readFieldEnd();
32558
      }
32559
      iprot.readStructEnd();
32560
      validate();
32561
    }
32562
 
32563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32564
      validate();
32565
 
32566
      oprot.writeStructBegin(STRUCT_DESC);
32567
      if (this.displayName != null) {
32568
        oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);
32569
        oprot.writeString(this.displayName);
32570
        oprot.writeFieldEnd();
32571
      }
32572
      oprot.writeFieldStop();
32573
      oprot.writeStructEnd();
32574
    }
32575
 
32576
    @Override
32577
    public String toString() {
32578
      StringBuilder sb = new StringBuilder("deleteTag_args(");
32579
      boolean first = true;
32580
 
32581
      sb.append("displayName:");
32582
      if (this.displayName == null) {
32583
        sb.append("null");
32584
      } else {
32585
        sb.append(this.displayName);
32586
      }
32587
      first = false;
32588
      sb.append(")");
32589
      return sb.toString();
32590
    }
32591
 
32592
    public void validate() throws org.apache.thrift.TException {
32593
      // check for required fields
32594
    }
32595
 
32596
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32597
      try {
32598
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32599
      } catch (org.apache.thrift.TException te) {
32600
        throw new java.io.IOException(te);
32601
      }
32602
    }
32603
 
32604
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32605
      try {
32606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32607
      } catch (org.apache.thrift.TException te) {
32608
        throw new java.io.IOException(te);
32609
      }
32610
    }
32611
 
32612
  }
32613
 
32614
  public static class deleteTag_result implements org.apache.thrift.TBase<deleteTag_result, deleteTag_result._Fields>, java.io.Serializable, Cloneable   {
32615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTag_result");
32616
 
32617
    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);
32618
 
32619
    private boolean success; // required
32620
 
32621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32623
      SUCCESS((short)0, "success");
32624
 
32625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32626
 
32627
      static {
32628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32629
          byName.put(field.getFieldName(), field);
32630
        }
32631
      }
32632
 
32633
      /**
32634
       * Find the _Fields constant that matches fieldId, or null if its not found.
32635
       */
32636
      public static _Fields findByThriftId(int fieldId) {
32637
        switch(fieldId) {
32638
          case 0: // SUCCESS
32639
            return SUCCESS;
32640
          default:
32641
            return null;
32642
        }
32643
      }
32644
 
32645
      /**
32646
       * Find the _Fields constant that matches fieldId, throwing an exception
32647
       * if it is not found.
32648
       */
32649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32650
        _Fields fields = findByThriftId(fieldId);
32651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32652
        return fields;
32653
      }
32654
 
32655
      /**
32656
       * Find the _Fields constant that matches name, or null if its not found.
32657
       */
32658
      public static _Fields findByName(String name) {
32659
        return byName.get(name);
32660
      }
32661
 
32662
      private final short _thriftId;
32663
      private final String _fieldName;
32664
 
32665
      _Fields(short thriftId, String fieldName) {
32666
        _thriftId = thriftId;
32667
        _fieldName = fieldName;
32668
      }
32669
 
32670
      public short getThriftFieldId() {
32671
        return _thriftId;
32672
      }
32673
 
32674
      public String getFieldName() {
32675
        return _fieldName;
32676
      }
32677
    }
32678
 
32679
    // isset id assignments
32680
    private static final int __SUCCESS_ISSET_ID = 0;
32681
    private BitSet __isset_bit_vector = new BitSet(1);
32682
 
32683
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32684
    static {
32685
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32686
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32687
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32688
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32689
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTag_result.class, metaDataMap);
32690
    }
32691
 
32692
    public deleteTag_result() {
32693
    }
32694
 
32695
    public deleteTag_result(
32696
      boolean success)
32697
    {
32698
      this();
32699
      this.success = success;
32700
      setSuccessIsSet(true);
32701
    }
32702
 
32703
    /**
32704
     * Performs a deep copy on <i>other</i>.
32705
     */
32706
    public deleteTag_result(deleteTag_result other) {
32707
      __isset_bit_vector.clear();
32708
      __isset_bit_vector.or(other.__isset_bit_vector);
32709
      this.success = other.success;
32710
    }
32711
 
32712
    public deleteTag_result deepCopy() {
32713
      return new deleteTag_result(this);
32714
    }
32715
 
32716
    @Override
32717
    public void clear() {
32718
      setSuccessIsSet(false);
32719
      this.success = false;
32720
    }
32721
 
32722
    public boolean isSuccess() {
32723
      return this.success;
32724
    }
32725
 
32726
    public void setSuccess(boolean success) {
32727
      this.success = success;
32728
      setSuccessIsSet(true);
32729
    }
32730
 
32731
    public void unsetSuccess() {
32732
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32733
    }
32734
 
32735
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32736
    public boolean isSetSuccess() {
32737
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32738
    }
32739
 
32740
    public void setSuccessIsSet(boolean value) {
32741
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32742
    }
32743
 
32744
    public void setFieldValue(_Fields field, Object value) {
32745
      switch (field) {
32746
      case SUCCESS:
32747
        if (value == null) {
32748
          unsetSuccess();
32749
        } else {
32750
          setSuccess((Boolean)value);
32751
        }
32752
        break;
32753
 
32754
      }
32755
    }
32756
 
32757
    public Object getFieldValue(_Fields field) {
32758
      switch (field) {
32759
      case SUCCESS:
32760
        return Boolean.valueOf(isSuccess());
32761
 
32762
      }
32763
      throw new IllegalStateException();
32764
    }
32765
 
32766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32767
    public boolean isSet(_Fields field) {
32768
      if (field == null) {
32769
        throw new IllegalArgumentException();
32770
      }
32771
 
32772
      switch (field) {
32773
      case SUCCESS:
32774
        return isSetSuccess();
32775
      }
32776
      throw new IllegalStateException();
32777
    }
32778
 
32779
    @Override
32780
    public boolean equals(Object that) {
32781
      if (that == null)
32782
        return false;
32783
      if (that instanceof deleteTag_result)
32784
        return this.equals((deleteTag_result)that);
32785
      return false;
32786
    }
32787
 
32788
    public boolean equals(deleteTag_result that) {
32789
      if (that == null)
32790
        return false;
32791
 
32792
      boolean this_present_success = true;
32793
      boolean that_present_success = true;
32794
      if (this_present_success || that_present_success) {
32795
        if (!(this_present_success && that_present_success))
32796
          return false;
32797
        if (this.success != that.success)
32798
          return false;
32799
      }
32800
 
32801
      return true;
32802
    }
32803
 
32804
    @Override
32805
    public int hashCode() {
32806
      return 0;
32807
    }
32808
 
32809
    public int compareTo(deleteTag_result other) {
32810
      if (!getClass().equals(other.getClass())) {
32811
        return getClass().getName().compareTo(other.getClass().getName());
32812
      }
32813
 
32814
      int lastComparison = 0;
32815
      deleteTag_result typedOther = (deleteTag_result)other;
32816
 
32817
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32818
      if (lastComparison != 0) {
32819
        return lastComparison;
32820
      }
32821
      if (isSetSuccess()) {
32822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32823
        if (lastComparison != 0) {
32824
          return lastComparison;
32825
        }
32826
      }
32827
      return 0;
32828
    }
32829
 
32830
    public _Fields fieldForId(int fieldId) {
32831
      return _Fields.findByThriftId(fieldId);
32832
    }
32833
 
32834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32835
      org.apache.thrift.protocol.TField field;
32836
      iprot.readStructBegin();
32837
      while (true)
32838
      {
32839
        field = iprot.readFieldBegin();
32840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32841
          break;
32842
        }
32843
        switch (field.id) {
32844
          case 0: // SUCCESS
32845
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32846
              this.success = iprot.readBool();
32847
              setSuccessIsSet(true);
32848
            } else { 
32849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32850
            }
32851
            break;
32852
          default:
32853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32854
        }
32855
        iprot.readFieldEnd();
32856
      }
32857
      iprot.readStructEnd();
32858
      validate();
32859
    }
32860
 
32861
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32862
      oprot.writeStructBegin(STRUCT_DESC);
32863
 
32864
      if (this.isSetSuccess()) {
32865
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32866
        oprot.writeBool(this.success);
32867
        oprot.writeFieldEnd();
32868
      }
32869
      oprot.writeFieldStop();
32870
      oprot.writeStructEnd();
32871
    }
32872
 
32873
    @Override
32874
    public String toString() {
32875
      StringBuilder sb = new StringBuilder("deleteTag_result(");
32876
      boolean first = true;
32877
 
32878
      sb.append("success:");
32879
      sb.append(this.success);
32880
      first = false;
32881
      sb.append(")");
32882
      return sb.toString();
32883
    }
32884
 
32885
    public void validate() throws org.apache.thrift.TException {
32886
      // check for required fields
32887
    }
32888
 
32889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32890
      try {
32891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32892
      } catch (org.apache.thrift.TException te) {
32893
        throw new java.io.IOException(te);
32894
      }
32895
    }
32896
 
32897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32898
      try {
32899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32900
      } catch (org.apache.thrift.TException te) {
32901
        throw new java.io.IOException(te);
32902
      }
32903
    }
32904
 
32905
  }
32906
 
32907
  public static class getAllTags_args implements org.apache.thrift.TBase<getAllTags_args, getAllTags_args._Fields>, java.io.Serializable, Cloneable   {
32908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllTags_args");
32909
 
32910
 
32911
 
32912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32914
;
32915
 
32916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32917
 
32918
      static {
32919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32920
          byName.put(field.getFieldName(), field);
32921
        }
32922
      }
32923
 
32924
      /**
32925
       * Find the _Fields constant that matches fieldId, or null if its not found.
32926
       */
32927
      public static _Fields findByThriftId(int fieldId) {
32928
        switch(fieldId) {
32929
          default:
32930
            return null;
32931
        }
32932
      }
32933
 
32934
      /**
32935
       * Find the _Fields constant that matches fieldId, throwing an exception
32936
       * if it is not found.
32937
       */
32938
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32939
        _Fields fields = findByThriftId(fieldId);
32940
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32941
        return fields;
32942
      }
32943
 
32944
      /**
32945
       * Find the _Fields constant that matches name, or null if its not found.
32946
       */
32947
      public static _Fields findByName(String name) {
32948
        return byName.get(name);
32949
      }
32950
 
32951
      private final short _thriftId;
32952
      private final String _fieldName;
32953
 
32954
      _Fields(short thriftId, String fieldName) {
32955
        _thriftId = thriftId;
32956
        _fieldName = fieldName;
32957
      }
32958
 
32959
      public short getThriftFieldId() {
32960
        return _thriftId;
32961
      }
32962
 
32963
      public String getFieldName() {
32964
        return _fieldName;
32965
      }
32966
    }
32967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32968
    static {
32969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllTags_args.class, metaDataMap);
32972
    }
32973
 
32974
    public getAllTags_args() {
32975
    }
32976
 
32977
    /**
32978
     * Performs a deep copy on <i>other</i>.
32979
     */
32980
    public getAllTags_args(getAllTags_args other) {
32981
    }
32982
 
32983
    public getAllTags_args deepCopy() {
32984
      return new getAllTags_args(this);
32985
    }
32986
 
32987
    @Override
32988
    public void clear() {
32989
    }
32990
 
32991
    public void setFieldValue(_Fields field, Object value) {
32992
      switch (field) {
32993
      }
32994
    }
32995
 
32996
    public Object getFieldValue(_Fields field) {
32997
      switch (field) {
32998
      }
32999
      throw new IllegalStateException();
33000
    }
33001
 
33002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33003
    public boolean isSet(_Fields field) {
33004
      if (field == null) {
33005
        throw new IllegalArgumentException();
33006
      }
33007
 
33008
      switch (field) {
33009
      }
33010
      throw new IllegalStateException();
33011
    }
33012
 
33013
    @Override
33014
    public boolean equals(Object that) {
33015
      if (that == null)
33016
        return false;
33017
      if (that instanceof getAllTags_args)
33018
        return this.equals((getAllTags_args)that);
33019
      return false;
33020
    }
33021
 
33022
    public boolean equals(getAllTags_args that) {
33023
      if (that == null)
33024
        return false;
33025
 
33026
      return true;
33027
    }
33028
 
33029
    @Override
33030
    public int hashCode() {
33031
      return 0;
33032
    }
33033
 
33034
    public int compareTo(getAllTags_args other) {
33035
      if (!getClass().equals(other.getClass())) {
33036
        return getClass().getName().compareTo(other.getClass().getName());
33037
      }
33038
 
33039
      int lastComparison = 0;
33040
      getAllTags_args typedOther = (getAllTags_args)other;
33041
 
33042
      return 0;
33043
    }
33044
 
33045
    public _Fields fieldForId(int fieldId) {
33046
      return _Fields.findByThriftId(fieldId);
33047
    }
33048
 
33049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33050
      org.apache.thrift.protocol.TField field;
33051
      iprot.readStructBegin();
33052
      while (true)
33053
      {
33054
        field = iprot.readFieldBegin();
33055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33056
          break;
33057
        }
33058
        switch (field.id) {
33059
          default:
33060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33061
        }
33062
        iprot.readFieldEnd();
33063
      }
33064
      iprot.readStructEnd();
33065
      validate();
33066
    }
33067
 
33068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33069
      validate();
33070
 
33071
      oprot.writeStructBegin(STRUCT_DESC);
33072
      oprot.writeFieldStop();
33073
      oprot.writeStructEnd();
33074
    }
33075
 
33076
    @Override
33077
    public String toString() {
33078
      StringBuilder sb = new StringBuilder("getAllTags_args(");
33079
      boolean first = true;
33080
 
33081
      sb.append(")");
33082
      return sb.toString();
33083
    }
33084
 
33085
    public void validate() throws org.apache.thrift.TException {
33086
      // check for required fields
33087
    }
33088
 
33089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33090
      try {
33091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33092
      } catch (org.apache.thrift.TException te) {
33093
        throw new java.io.IOException(te);
33094
      }
33095
    }
33096
 
33097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33098
      try {
33099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33100
      } catch (org.apache.thrift.TException te) {
33101
        throw new java.io.IOException(te);
33102
      }
33103
    }
33104
 
33105
  }
33106
 
33107
  public static class getAllTags_result implements org.apache.thrift.TBase<getAllTags_result, getAllTags_result._Fields>, java.io.Serializable, Cloneable   {
33108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllTags_result");
33109
 
33110
    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);
33111
 
33112
    private List<String> success; // required
33113
 
33114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33116
      SUCCESS((short)0, "success");
33117
 
33118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33119
 
33120
      static {
33121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33122
          byName.put(field.getFieldName(), field);
33123
        }
33124
      }
33125
 
33126
      /**
33127
       * Find the _Fields constant that matches fieldId, or null if its not found.
33128
       */
33129
      public static _Fields findByThriftId(int fieldId) {
33130
        switch(fieldId) {
33131
          case 0: // SUCCESS
33132
            return SUCCESS;
33133
          default:
33134
            return null;
33135
        }
33136
      }
33137
 
33138
      /**
33139
       * Find the _Fields constant that matches fieldId, throwing an exception
33140
       * if it is not found.
33141
       */
33142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33143
        _Fields fields = findByThriftId(fieldId);
33144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33145
        return fields;
33146
      }
33147
 
33148
      /**
33149
       * Find the _Fields constant that matches name, or null if its not found.
33150
       */
33151
      public static _Fields findByName(String name) {
33152
        return byName.get(name);
33153
      }
33154
 
33155
      private final short _thriftId;
33156
      private final String _fieldName;
33157
 
33158
      _Fields(short thriftId, String fieldName) {
33159
        _thriftId = thriftId;
33160
        _fieldName = fieldName;
33161
      }
33162
 
33163
      public short getThriftFieldId() {
33164
        return _thriftId;
33165
      }
33166
 
33167
      public String getFieldName() {
33168
        return _fieldName;
33169
      }
33170
    }
33171
 
33172
    // isset id assignments
33173
 
33174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33175
    static {
33176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33177
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33178
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33179
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
33180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllTags_result.class, metaDataMap);
33182
    }
33183
 
33184
    public getAllTags_result() {
33185
    }
33186
 
33187
    public getAllTags_result(
33188
      List<String> success)
33189
    {
33190
      this();
33191
      this.success = success;
33192
    }
33193
 
33194
    /**
33195
     * Performs a deep copy on <i>other</i>.
33196
     */
33197
    public getAllTags_result(getAllTags_result other) {
33198
      if (other.isSetSuccess()) {
33199
        List<String> __this__success = new ArrayList<String>();
33200
        for (String other_element : other.success) {
33201
          __this__success.add(other_element);
33202
        }
33203
        this.success = __this__success;
33204
      }
33205
    }
33206
 
33207
    public getAllTags_result deepCopy() {
33208
      return new getAllTags_result(this);
33209
    }
33210
 
33211
    @Override
33212
    public void clear() {
33213
      this.success = null;
33214
    }
33215
 
33216
    public int getSuccessSize() {
33217
      return (this.success == null) ? 0 : this.success.size();
33218
    }
33219
 
33220
    public java.util.Iterator<String> getSuccessIterator() {
33221
      return (this.success == null) ? null : this.success.iterator();
33222
    }
33223
 
33224
    public void addToSuccess(String elem) {
33225
      if (this.success == null) {
33226
        this.success = new ArrayList<String>();
33227
      }
33228
      this.success.add(elem);
33229
    }
33230
 
33231
    public List<String> getSuccess() {
33232
      return this.success;
33233
    }
33234
 
33235
    public void setSuccess(List<String> success) {
33236
      this.success = success;
33237
    }
33238
 
33239
    public void unsetSuccess() {
33240
      this.success = null;
33241
    }
33242
 
33243
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33244
    public boolean isSetSuccess() {
33245
      return this.success != null;
33246
    }
33247
 
33248
    public void setSuccessIsSet(boolean value) {
33249
      if (!value) {
33250
        this.success = null;
33251
      }
33252
    }
33253
 
33254
    public void setFieldValue(_Fields field, Object value) {
33255
      switch (field) {
33256
      case SUCCESS:
33257
        if (value == null) {
33258
          unsetSuccess();
33259
        } else {
33260
          setSuccess((List<String>)value);
33261
        }
33262
        break;
33263
 
33264
      }
33265
    }
33266
 
33267
    public Object getFieldValue(_Fields field) {
33268
      switch (field) {
33269
      case SUCCESS:
33270
        return getSuccess();
33271
 
33272
      }
33273
      throw new IllegalStateException();
33274
    }
33275
 
33276
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33277
    public boolean isSet(_Fields field) {
33278
      if (field == null) {
33279
        throw new IllegalArgumentException();
33280
      }
33281
 
33282
      switch (field) {
33283
      case SUCCESS:
33284
        return isSetSuccess();
33285
      }
33286
      throw new IllegalStateException();
33287
    }
33288
 
33289
    @Override
33290
    public boolean equals(Object that) {
33291
      if (that == null)
33292
        return false;
33293
      if (that instanceof getAllTags_result)
33294
        return this.equals((getAllTags_result)that);
33295
      return false;
33296
    }
33297
 
33298
    public boolean equals(getAllTags_result that) {
33299
      if (that == null)
33300
        return false;
33301
 
33302
      boolean this_present_success = true && this.isSetSuccess();
33303
      boolean that_present_success = true && that.isSetSuccess();
33304
      if (this_present_success || that_present_success) {
33305
        if (!(this_present_success && that_present_success))
33306
          return false;
33307
        if (!this.success.equals(that.success))
33308
          return false;
33309
      }
33310
 
33311
      return true;
33312
    }
33313
 
33314
    @Override
33315
    public int hashCode() {
33316
      return 0;
33317
    }
33318
 
33319
    public int compareTo(getAllTags_result other) {
33320
      if (!getClass().equals(other.getClass())) {
33321
        return getClass().getName().compareTo(other.getClass().getName());
33322
      }
33323
 
33324
      int lastComparison = 0;
33325
      getAllTags_result typedOther = (getAllTags_result)other;
33326
 
33327
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33328
      if (lastComparison != 0) {
33329
        return lastComparison;
33330
      }
33331
      if (isSetSuccess()) {
33332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33333
        if (lastComparison != 0) {
33334
          return lastComparison;
33335
        }
33336
      }
33337
      return 0;
33338
    }
33339
 
33340
    public _Fields fieldForId(int fieldId) {
33341
      return _Fields.findByThriftId(fieldId);
33342
    }
33343
 
33344
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33345
      org.apache.thrift.protocol.TField field;
33346
      iprot.readStructBegin();
33347
      while (true)
33348
      {
33349
        field = iprot.readFieldBegin();
33350
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33351
          break;
33352
        }
33353
        switch (field.id) {
33354
          case 0: // SUCCESS
33355
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33356
              {
33357
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
33358
                this.success = new ArrayList<String>(_list77.size);
33359
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
33360
                {
33361
                  String _elem79; // required
33362
                  _elem79 = iprot.readString();
33363
                  this.success.add(_elem79);
33364
                }
33365
                iprot.readListEnd();
33366
              }
33367
            } else { 
33368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33369
            }
33370
            break;
33371
          default:
33372
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33373
        }
33374
        iprot.readFieldEnd();
33375
      }
33376
      iprot.readStructEnd();
33377
      validate();
33378
    }
33379
 
33380
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33381
      oprot.writeStructBegin(STRUCT_DESC);
33382
 
33383
      if (this.isSetSuccess()) {
33384
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33385
        {
33386
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
33387
          for (String _iter80 : this.success)
33388
          {
33389
            oprot.writeString(_iter80);
33390
          }
33391
          oprot.writeListEnd();
33392
        }
33393
        oprot.writeFieldEnd();
33394
      }
33395
      oprot.writeFieldStop();
33396
      oprot.writeStructEnd();
33397
    }
33398
 
33399
    @Override
33400
    public String toString() {
33401
      StringBuilder sb = new StringBuilder("getAllTags_result(");
33402
      boolean first = true;
33403
 
33404
      sb.append("success:");
33405
      if (this.success == null) {
33406
        sb.append("null");
33407
      } else {
33408
        sb.append(this.success);
33409
      }
33410
      first = false;
33411
      sb.append(")");
33412
      return sb.toString();
33413
    }
33414
 
33415
    public void validate() throws org.apache.thrift.TException {
33416
      // check for required fields
33417
    }
33418
 
33419
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33420
      try {
33421
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33422
      } catch (org.apache.thrift.TException te) {
33423
        throw new java.io.IOException(te);
33424
      }
33425
    }
33426
 
33427
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33428
      try {
33429
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33430
      } catch (org.apache.thrift.TException te) {
33431
        throw new java.io.IOException(te);
33432
      }
33433
    }
33434
 
33435
  }
33436
 
33437
  public static class getAllEntitiesByTagName_args implements org.apache.thrift.TBase<getAllEntitiesByTagName_args, getAllEntitiesByTagName_args._Fields>, java.io.Serializable, Cloneable   {
33438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntitiesByTagName_args");
33439
 
33440
    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);
33441
 
33442
    private String displayName; // required
33443
 
33444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33446
      DISPLAY_NAME((short)1, "displayName");
33447
 
33448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33449
 
33450
      static {
33451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33452
          byName.put(field.getFieldName(), field);
33453
        }
33454
      }
33455
 
33456
      /**
33457
       * Find the _Fields constant that matches fieldId, or null if its not found.
33458
       */
33459
      public static _Fields findByThriftId(int fieldId) {
33460
        switch(fieldId) {
33461
          case 1: // DISPLAY_NAME
33462
            return DISPLAY_NAME;
33463
          default:
33464
            return null;
33465
        }
33466
      }
33467
 
33468
      /**
33469
       * Find the _Fields constant that matches fieldId, throwing an exception
33470
       * if it is not found.
33471
       */
33472
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33473
        _Fields fields = findByThriftId(fieldId);
33474
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33475
        return fields;
33476
      }
33477
 
33478
      /**
33479
       * Find the _Fields constant that matches name, or null if its not found.
33480
       */
33481
      public static _Fields findByName(String name) {
33482
        return byName.get(name);
33483
      }
33484
 
33485
      private final short _thriftId;
33486
      private final String _fieldName;
33487
 
33488
      _Fields(short thriftId, String fieldName) {
33489
        _thriftId = thriftId;
33490
        _fieldName = fieldName;
33491
      }
33492
 
33493
      public short getThriftFieldId() {
33494
        return _thriftId;
33495
      }
33496
 
33497
      public String getFieldName() {
33498
        return _fieldName;
33499
      }
33500
    }
33501
 
33502
    // isset id assignments
33503
 
33504
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33505
    static {
33506
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33507
      tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
33509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntitiesByTagName_args.class, metaDataMap);
33511
    }
33512
 
33513
    public getAllEntitiesByTagName_args() {
33514
    }
33515
 
33516
    public getAllEntitiesByTagName_args(
33517
      String displayName)
33518
    {
33519
      this();
33520
      this.displayName = displayName;
33521
    }
33522
 
33523
    /**
33524
     * Performs a deep copy on <i>other</i>.
33525
     */
33526
    public getAllEntitiesByTagName_args(getAllEntitiesByTagName_args other) {
33527
      if (other.isSetDisplayName()) {
33528
        this.displayName = other.displayName;
33529
      }
33530
    }
33531
 
33532
    public getAllEntitiesByTagName_args deepCopy() {
33533
      return new getAllEntitiesByTagName_args(this);
33534
    }
33535
 
33536
    @Override
33537
    public void clear() {
33538
      this.displayName = null;
33539
    }
33540
 
33541
    public String getDisplayName() {
33542
      return this.displayName;
33543
    }
33544
 
33545
    public void setDisplayName(String displayName) {
33546
      this.displayName = displayName;
33547
    }
33548
 
33549
    public void unsetDisplayName() {
33550
      this.displayName = null;
33551
    }
33552
 
33553
    /** Returns true if field displayName is set (has been assigned a value) and false otherwise */
33554
    public boolean isSetDisplayName() {
33555
      return this.displayName != null;
33556
    }
33557
 
33558
    public void setDisplayNameIsSet(boolean value) {
33559
      if (!value) {
33560
        this.displayName = null;
33561
      }
33562
    }
33563
 
33564
    public void setFieldValue(_Fields field, Object value) {
33565
      switch (field) {
33566
      case DISPLAY_NAME:
33567
        if (value == null) {
33568
          unsetDisplayName();
33569
        } else {
33570
          setDisplayName((String)value);
33571
        }
33572
        break;
33573
 
33574
      }
33575
    }
33576
 
33577
    public Object getFieldValue(_Fields field) {
33578
      switch (field) {
33579
      case DISPLAY_NAME:
33580
        return getDisplayName();
33581
 
33582
      }
33583
      throw new IllegalStateException();
33584
    }
33585
 
33586
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33587
    public boolean isSet(_Fields field) {
33588
      if (field == null) {
33589
        throw new IllegalArgumentException();
33590
      }
33591
 
33592
      switch (field) {
33593
      case DISPLAY_NAME:
33594
        return isSetDisplayName();
33595
      }
33596
      throw new IllegalStateException();
33597
    }
33598
 
33599
    @Override
33600
    public boolean equals(Object that) {
33601
      if (that == null)
33602
        return false;
33603
      if (that instanceof getAllEntitiesByTagName_args)
33604
        return this.equals((getAllEntitiesByTagName_args)that);
33605
      return false;
33606
    }
33607
 
33608
    public boolean equals(getAllEntitiesByTagName_args that) {
33609
      if (that == null)
33610
        return false;
33611
 
33612
      boolean this_present_displayName = true && this.isSetDisplayName();
33613
      boolean that_present_displayName = true && that.isSetDisplayName();
33614
      if (this_present_displayName || that_present_displayName) {
33615
        if (!(this_present_displayName && that_present_displayName))
33616
          return false;
33617
        if (!this.displayName.equals(that.displayName))
33618
          return false;
33619
      }
33620
 
33621
      return true;
33622
    }
33623
 
33624
    @Override
33625
    public int hashCode() {
33626
      return 0;
33627
    }
33628
 
33629
    public int compareTo(getAllEntitiesByTagName_args other) {
33630
      if (!getClass().equals(other.getClass())) {
33631
        return getClass().getName().compareTo(other.getClass().getName());
33632
      }
33633
 
33634
      int lastComparison = 0;
33635
      getAllEntitiesByTagName_args typedOther = (getAllEntitiesByTagName_args)other;
33636
 
33637
      lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
33638
      if (lastComparison != 0) {
33639
        return lastComparison;
33640
      }
33641
      if (isSetDisplayName()) {
33642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
33643
        if (lastComparison != 0) {
33644
          return lastComparison;
33645
        }
33646
      }
33647
      return 0;
33648
    }
33649
 
33650
    public _Fields fieldForId(int fieldId) {
33651
      return _Fields.findByThriftId(fieldId);
33652
    }
33653
 
33654
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33655
      org.apache.thrift.protocol.TField field;
33656
      iprot.readStructBegin();
33657
      while (true)
33658
      {
33659
        field = iprot.readFieldBegin();
33660
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33661
          break;
33662
        }
33663
        switch (field.id) {
33664
          case 1: // DISPLAY_NAME
33665
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
33666
              this.displayName = iprot.readString();
33667
            } else { 
33668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33669
            }
33670
            break;
33671
          default:
33672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33673
        }
33674
        iprot.readFieldEnd();
33675
      }
33676
      iprot.readStructEnd();
33677
      validate();
33678
    }
33679
 
33680
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33681
      validate();
33682
 
33683
      oprot.writeStructBegin(STRUCT_DESC);
33684
      if (this.displayName != null) {
33685
        oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);
33686
        oprot.writeString(this.displayName);
33687
        oprot.writeFieldEnd();
33688
      }
33689
      oprot.writeFieldStop();
33690
      oprot.writeStructEnd();
33691
    }
33692
 
33693
    @Override
33694
    public String toString() {
33695
      StringBuilder sb = new StringBuilder("getAllEntitiesByTagName_args(");
33696
      boolean first = true;
33697
 
33698
      sb.append("displayName:");
33699
      if (this.displayName == null) {
33700
        sb.append("null");
33701
      } else {
33702
        sb.append(this.displayName);
33703
      }
33704
      first = false;
33705
      sb.append(")");
33706
      return sb.toString();
33707
    }
33708
 
33709
    public void validate() throws org.apache.thrift.TException {
33710
      // check for required fields
33711
    }
33712
 
33713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33714
      try {
33715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33716
      } catch (org.apache.thrift.TException te) {
33717
        throw new java.io.IOException(te);
33718
      }
33719
    }
33720
 
33721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33722
      try {
33723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33724
      } catch (org.apache.thrift.TException te) {
33725
        throw new java.io.IOException(te);
33726
      }
33727
    }
33728
 
33729
  }
33730
 
33731
  public static class getAllEntitiesByTagName_result implements org.apache.thrift.TBase<getAllEntitiesByTagName_result, getAllEntitiesByTagName_result._Fields>, java.io.Serializable, Cloneable   {
33732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntitiesByTagName_result");
33733
 
33734
    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);
33735
 
33736
    private List<Long> success; // required
33737
 
33738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33740
      SUCCESS((short)0, "success");
33741
 
33742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33743
 
33744
      static {
33745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33746
          byName.put(field.getFieldName(), field);
33747
        }
33748
      }
33749
 
33750
      /**
33751
       * Find the _Fields constant that matches fieldId, or null if its not found.
33752
       */
33753
      public static _Fields findByThriftId(int fieldId) {
33754
        switch(fieldId) {
33755
          case 0: // SUCCESS
33756
            return SUCCESS;
33757
          default:
33758
            return null;
33759
        }
33760
      }
33761
 
33762
      /**
33763
       * Find the _Fields constant that matches fieldId, throwing an exception
33764
       * if it is not found.
33765
       */
33766
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33767
        _Fields fields = findByThriftId(fieldId);
33768
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33769
        return fields;
33770
      }
33771
 
33772
      /**
33773
       * Find the _Fields constant that matches name, or null if its not found.
33774
       */
33775
      public static _Fields findByName(String name) {
33776
        return byName.get(name);
33777
      }
33778
 
33779
      private final short _thriftId;
33780
      private final String _fieldName;
33781
 
33782
      _Fields(short thriftId, String fieldName) {
33783
        _thriftId = thriftId;
33784
        _fieldName = fieldName;
33785
      }
33786
 
33787
      public short getThriftFieldId() {
33788
        return _thriftId;
33789
      }
33790
 
33791
      public String getFieldName() {
33792
        return _fieldName;
33793
      }
33794
    }
33795
 
33796
    // isset id assignments
33797
 
33798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33799
    static {
33800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33801
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33802
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33803
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33804
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33805
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntitiesByTagName_result.class, metaDataMap);
33806
    }
33807
 
33808
    public getAllEntitiesByTagName_result() {
33809
    }
33810
 
33811
    public getAllEntitiesByTagName_result(
33812
      List<Long> success)
33813
    {
33814
      this();
33815
      this.success = success;
33816
    }
33817
 
33818
    /**
33819
     * Performs a deep copy on <i>other</i>.
33820
     */
33821
    public getAllEntitiesByTagName_result(getAllEntitiesByTagName_result other) {
33822
      if (other.isSetSuccess()) {
33823
        List<Long> __this__success = new ArrayList<Long>();
33824
        for (Long other_element : other.success) {
33825
          __this__success.add(other_element);
33826
        }
33827
        this.success = __this__success;
33828
      }
33829
    }
33830
 
33831
    public getAllEntitiesByTagName_result deepCopy() {
33832
      return new getAllEntitiesByTagName_result(this);
33833
    }
33834
 
33835
    @Override
33836
    public void clear() {
33837
      this.success = null;
33838
    }
33839
 
33840
    public int getSuccessSize() {
33841
      return (this.success == null) ? 0 : this.success.size();
33842
    }
33843
 
33844
    public java.util.Iterator<Long> getSuccessIterator() {
33845
      return (this.success == null) ? null : this.success.iterator();
33846
    }
33847
 
33848
    public void addToSuccess(long elem) {
33849
      if (this.success == null) {
33850
        this.success = new ArrayList<Long>();
33851
      }
33852
      this.success.add(elem);
33853
    }
33854
 
33855
    public List<Long> getSuccess() {
33856
      return this.success;
33857
    }
33858
 
33859
    public void setSuccess(List<Long> success) {
33860
      this.success = success;
33861
    }
33862
 
33863
    public void unsetSuccess() {
33864
      this.success = null;
33865
    }
33866
 
33867
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33868
    public boolean isSetSuccess() {
33869
      return this.success != null;
33870
    }
33871
 
33872
    public void setSuccessIsSet(boolean value) {
33873
      if (!value) {
33874
        this.success = null;
33875
      }
33876
    }
33877
 
33878
    public void setFieldValue(_Fields field, Object value) {
33879
      switch (field) {
33880
      case SUCCESS:
33881
        if (value == null) {
33882
          unsetSuccess();
33883
        } else {
33884
          setSuccess((List<Long>)value);
33885
        }
33886
        break;
33887
 
33888
      }
33889
    }
33890
 
33891
    public Object getFieldValue(_Fields field) {
33892
      switch (field) {
33893
      case SUCCESS:
33894
        return getSuccess();
33895
 
33896
      }
33897
      throw new IllegalStateException();
33898
    }
33899
 
33900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33901
    public boolean isSet(_Fields field) {
33902
      if (field == null) {
33903
        throw new IllegalArgumentException();
33904
      }
33905
 
33906
      switch (field) {
33907
      case SUCCESS:
33908
        return isSetSuccess();
33909
      }
33910
      throw new IllegalStateException();
33911
    }
33912
 
33913
    @Override
33914
    public boolean equals(Object that) {
33915
      if (that == null)
33916
        return false;
33917
      if (that instanceof getAllEntitiesByTagName_result)
33918
        return this.equals((getAllEntitiesByTagName_result)that);
33919
      return false;
33920
    }
33921
 
33922
    public boolean equals(getAllEntitiesByTagName_result that) {
33923
      if (that == null)
33924
        return false;
33925
 
33926
      boolean this_present_success = true && this.isSetSuccess();
33927
      boolean that_present_success = true && that.isSetSuccess();
33928
      if (this_present_success || that_present_success) {
33929
        if (!(this_present_success && that_present_success))
33930
          return false;
33931
        if (!this.success.equals(that.success))
33932
          return false;
33933
      }
33934
 
33935
      return true;
33936
    }
33937
 
33938
    @Override
33939
    public int hashCode() {
33940
      return 0;
33941
    }
33942
 
33943
    public int compareTo(getAllEntitiesByTagName_result other) {
33944
      if (!getClass().equals(other.getClass())) {
33945
        return getClass().getName().compareTo(other.getClass().getName());
33946
      }
33947
 
33948
      int lastComparison = 0;
33949
      getAllEntitiesByTagName_result typedOther = (getAllEntitiesByTagName_result)other;
33950
 
33951
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33952
      if (lastComparison != 0) {
33953
        return lastComparison;
33954
      }
33955
      if (isSetSuccess()) {
33956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33957
        if (lastComparison != 0) {
33958
          return lastComparison;
33959
        }
33960
      }
33961
      return 0;
33962
    }
33963
 
33964
    public _Fields fieldForId(int fieldId) {
33965
      return _Fields.findByThriftId(fieldId);
33966
    }
33967
 
33968
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33969
      org.apache.thrift.protocol.TField field;
33970
      iprot.readStructBegin();
33971
      while (true)
33972
      {
33973
        field = iprot.readFieldBegin();
33974
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33975
          break;
33976
        }
33977
        switch (field.id) {
33978
          case 0: // SUCCESS
33979
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33980
              {
33981
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
33982
                this.success = new ArrayList<Long>(_list81.size);
33983
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
33984
                {
33985
                  long _elem83; // required
33986
                  _elem83 = iprot.readI64();
33987
                  this.success.add(_elem83);
33988
                }
33989
                iprot.readListEnd();
33990
              }
33991
            } else { 
33992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33993
            }
33994
            break;
33995
          default:
33996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33997
        }
33998
        iprot.readFieldEnd();
33999
      }
34000
      iprot.readStructEnd();
34001
      validate();
34002
    }
34003
 
34004
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34005
      oprot.writeStructBegin(STRUCT_DESC);
34006
 
34007
      if (this.isSetSuccess()) {
34008
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34009
        {
34010
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
34011
          for (long _iter84 : this.success)
34012
          {
34013
            oprot.writeI64(_iter84);
34014
          }
34015
          oprot.writeListEnd();
34016
        }
34017
        oprot.writeFieldEnd();
34018
      }
34019
      oprot.writeFieldStop();
34020
      oprot.writeStructEnd();
34021
    }
34022
 
34023
    @Override
34024
    public String toString() {
34025
      StringBuilder sb = new StringBuilder("getAllEntitiesByTagName_result(");
34026
      boolean first = true;
34027
 
34028
      sb.append("success:");
34029
      if (this.success == null) {
34030
        sb.append("null");
34031
      } else {
34032
        sb.append(this.success);
34033
      }
34034
      first = false;
34035
      sb.append(")");
34036
      return sb.toString();
34037
    }
34038
 
34039
    public void validate() throws org.apache.thrift.TException {
34040
      // check for required fields
34041
    }
34042
 
34043
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34044
      try {
34045
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34046
      } catch (org.apache.thrift.TException te) {
34047
        throw new java.io.IOException(te);
34048
      }
34049
    }
34050
 
34051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34052
      try {
34053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34054
      } catch (org.apache.thrift.TException te) {
34055
        throw new java.io.IOException(te);
34056
      }
34057
    }
34058
 
34059
  }
34060
 
6842 amit.gupta 34061
  public static class getAllEntityTags_args implements org.apache.thrift.TBase<getAllEntityTags_args, getAllEntityTags_args._Fields>, java.io.Serializable, Cloneable   {
34062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntityTags_args");
34063
 
34064
 
34065
 
34066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34067
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34068
;
34069
 
34070
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34071
 
34072
      static {
34073
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34074
          byName.put(field.getFieldName(), field);
34075
        }
34076
      }
34077
 
34078
      /**
34079
       * Find the _Fields constant that matches fieldId, or null if its not found.
34080
       */
34081
      public static _Fields findByThriftId(int fieldId) {
34082
        switch(fieldId) {
34083
          default:
34084
            return null;
34085
        }
34086
      }
34087
 
34088
      /**
34089
       * Find the _Fields constant that matches fieldId, throwing an exception
34090
       * if it is not found.
34091
       */
34092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34093
        _Fields fields = findByThriftId(fieldId);
34094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34095
        return fields;
34096
      }
34097
 
34098
      /**
34099
       * Find the _Fields constant that matches name, or null if its not found.
34100
       */
34101
      public static _Fields findByName(String name) {
34102
        return byName.get(name);
34103
      }
34104
 
34105
      private final short _thriftId;
34106
      private final String _fieldName;
34107
 
34108
      _Fields(short thriftId, String fieldName) {
34109
        _thriftId = thriftId;
34110
        _fieldName = fieldName;
34111
      }
34112
 
34113
      public short getThriftFieldId() {
34114
        return _thriftId;
34115
      }
34116
 
34117
      public String getFieldName() {
34118
        return _fieldName;
34119
      }
34120
    }
34121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34122
    static {
34123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34124
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34125
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntityTags_args.class, metaDataMap);
34126
    }
34127
 
34128
    public getAllEntityTags_args() {
34129
    }
34130
 
34131
    /**
34132
     * Performs a deep copy on <i>other</i>.
34133
     */
34134
    public getAllEntityTags_args(getAllEntityTags_args other) {
34135
    }
34136
 
34137
    public getAllEntityTags_args deepCopy() {
34138
      return new getAllEntityTags_args(this);
34139
    }
34140
 
34141
    @Override
34142
    public void clear() {
34143
    }
34144
 
34145
    public void setFieldValue(_Fields field, Object value) {
34146
      switch (field) {
34147
      }
34148
    }
34149
 
34150
    public Object getFieldValue(_Fields field) {
34151
      switch (field) {
34152
      }
34153
      throw new IllegalStateException();
34154
    }
34155
 
34156
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34157
    public boolean isSet(_Fields field) {
34158
      if (field == null) {
34159
        throw new IllegalArgumentException();
34160
      }
34161
 
34162
      switch (field) {
34163
      }
34164
      throw new IllegalStateException();
34165
    }
34166
 
34167
    @Override
34168
    public boolean equals(Object that) {
34169
      if (that == null)
34170
        return false;
34171
      if (that instanceof getAllEntityTags_args)
34172
        return this.equals((getAllEntityTags_args)that);
34173
      return false;
34174
    }
34175
 
34176
    public boolean equals(getAllEntityTags_args that) {
34177
      if (that == null)
34178
        return false;
34179
 
34180
      return true;
34181
    }
34182
 
34183
    @Override
34184
    public int hashCode() {
34185
      return 0;
34186
    }
34187
 
34188
    public int compareTo(getAllEntityTags_args other) {
34189
      if (!getClass().equals(other.getClass())) {
34190
        return getClass().getName().compareTo(other.getClass().getName());
34191
      }
34192
 
34193
      int lastComparison = 0;
34194
      getAllEntityTags_args typedOther = (getAllEntityTags_args)other;
34195
 
34196
      return 0;
34197
    }
34198
 
34199
    public _Fields fieldForId(int fieldId) {
34200
      return _Fields.findByThriftId(fieldId);
34201
    }
34202
 
34203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34204
      org.apache.thrift.protocol.TField field;
34205
      iprot.readStructBegin();
34206
      while (true)
34207
      {
34208
        field = iprot.readFieldBegin();
34209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34210
          break;
34211
        }
34212
        switch (field.id) {
34213
          default:
34214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34215
        }
34216
        iprot.readFieldEnd();
34217
      }
34218
      iprot.readStructEnd();
34219
      validate();
34220
    }
34221
 
34222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34223
      validate();
34224
 
34225
      oprot.writeStructBegin(STRUCT_DESC);
34226
      oprot.writeFieldStop();
34227
      oprot.writeStructEnd();
34228
    }
34229
 
34230
    @Override
34231
    public String toString() {
34232
      StringBuilder sb = new StringBuilder("getAllEntityTags_args(");
34233
      boolean first = true;
34234
 
34235
      sb.append(")");
34236
      return sb.toString();
34237
    }
34238
 
34239
    public void validate() throws org.apache.thrift.TException {
34240
      // check for required fields
34241
    }
34242
 
34243
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34244
      try {
34245
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34246
      } catch (org.apache.thrift.TException te) {
34247
        throw new java.io.IOException(te);
34248
      }
34249
    }
34250
 
34251
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34252
      try {
34253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34254
      } catch (org.apache.thrift.TException te) {
34255
        throw new java.io.IOException(te);
34256
      }
34257
    }
34258
 
34259
  }
34260
 
34261
  public static class getAllEntityTags_result implements org.apache.thrift.TBase<getAllEntityTags_result, getAllEntityTags_result._Fields>, java.io.Serializable, Cloneable   {
34262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllEntityTags_result");
34263
 
34264
    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);
34265
 
34266
    private Map<Long,List<String>> success; // required
34267
 
34268
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34269
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34270
      SUCCESS((short)0, "success");
34271
 
34272
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34273
 
34274
      static {
34275
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34276
          byName.put(field.getFieldName(), field);
34277
        }
34278
      }
34279
 
34280
      /**
34281
       * Find the _Fields constant that matches fieldId, or null if its not found.
34282
       */
34283
      public static _Fields findByThriftId(int fieldId) {
34284
        switch(fieldId) {
34285
          case 0: // SUCCESS
34286
            return SUCCESS;
34287
          default:
34288
            return null;
34289
        }
34290
      }
34291
 
34292
      /**
34293
       * Find the _Fields constant that matches fieldId, throwing an exception
34294
       * if it is not found.
34295
       */
34296
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34297
        _Fields fields = findByThriftId(fieldId);
34298
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34299
        return fields;
34300
      }
34301
 
34302
      /**
34303
       * Find the _Fields constant that matches name, or null if its not found.
34304
       */
34305
      public static _Fields findByName(String name) {
34306
        return byName.get(name);
34307
      }
34308
 
34309
      private final short _thriftId;
34310
      private final String _fieldName;
34311
 
34312
      _Fields(short thriftId, String fieldName) {
34313
        _thriftId = thriftId;
34314
        _fieldName = fieldName;
34315
      }
34316
 
34317
      public short getThriftFieldId() {
34318
        return _thriftId;
34319
      }
34320
 
34321
      public String getFieldName() {
34322
        return _fieldName;
34323
      }
34324
    }
34325
 
34326
    // isset id assignments
34327
 
34328
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34329
    static {
34330
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34331
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34332
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
34333
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
34334
              new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34335
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
34336
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34337
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllEntityTags_result.class, metaDataMap);
34338
    }
34339
 
34340
    public getAllEntityTags_result() {
34341
    }
34342
 
34343
    public getAllEntityTags_result(
34344
      Map<Long,List<String>> success)
34345
    {
34346
      this();
34347
      this.success = success;
34348
    }
34349
 
34350
    /**
34351
     * Performs a deep copy on <i>other</i>.
34352
     */
34353
    public getAllEntityTags_result(getAllEntityTags_result other) {
34354
      if (other.isSetSuccess()) {
34355
        Map<Long,List<String>> __this__success = new HashMap<Long,List<String>>();
34356
        for (Map.Entry<Long, List<String>> other_element : other.success.entrySet()) {
34357
 
34358
          Long other_element_key = other_element.getKey();
34359
          List<String> other_element_value = other_element.getValue();
34360
 
34361
          Long __this__success_copy_key = other_element_key;
34362
 
34363
          List<String> __this__success_copy_value = new ArrayList<String>();
34364
          for (String other_element_value_element : other_element_value) {
34365
            __this__success_copy_value.add(other_element_value_element);
34366
          }
34367
 
34368
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
34369
        }
34370
        this.success = __this__success;
34371
      }
34372
    }
34373
 
34374
    public getAllEntityTags_result deepCopy() {
34375
      return new getAllEntityTags_result(this);
34376
    }
34377
 
34378
    @Override
34379
    public void clear() {
34380
      this.success = null;
34381
    }
34382
 
34383
    public int getSuccessSize() {
34384
      return (this.success == null) ? 0 : this.success.size();
34385
    }
34386
 
34387
    public void putToSuccess(long key, List<String> val) {
34388
      if (this.success == null) {
34389
        this.success = new HashMap<Long,List<String>>();
34390
      }
34391
      this.success.put(key, val);
34392
    }
34393
 
34394
    public Map<Long,List<String>> getSuccess() {
34395
      return this.success;
34396
    }
34397
 
34398
    public void setSuccess(Map<Long,List<String>> success) {
34399
      this.success = success;
34400
    }
34401
 
34402
    public void unsetSuccess() {
34403
      this.success = null;
34404
    }
34405
 
34406
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34407
    public boolean isSetSuccess() {
34408
      return this.success != null;
34409
    }
34410
 
34411
    public void setSuccessIsSet(boolean value) {
34412
      if (!value) {
34413
        this.success = null;
34414
      }
34415
    }
34416
 
34417
    public void setFieldValue(_Fields field, Object value) {
34418
      switch (field) {
34419
      case SUCCESS:
34420
        if (value == null) {
34421
          unsetSuccess();
34422
        } else {
34423
          setSuccess((Map<Long,List<String>>)value);
34424
        }
34425
        break;
34426
 
34427
      }
34428
    }
34429
 
34430
    public Object getFieldValue(_Fields field) {
34431
      switch (field) {
34432
      case SUCCESS:
34433
        return getSuccess();
34434
 
34435
      }
34436
      throw new IllegalStateException();
34437
    }
34438
 
34439
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34440
    public boolean isSet(_Fields field) {
34441
      if (field == null) {
34442
        throw new IllegalArgumentException();
34443
      }
34444
 
34445
      switch (field) {
34446
      case SUCCESS:
34447
        return isSetSuccess();
34448
      }
34449
      throw new IllegalStateException();
34450
    }
34451
 
34452
    @Override
34453
    public boolean equals(Object that) {
34454
      if (that == null)
34455
        return false;
34456
      if (that instanceof getAllEntityTags_result)
34457
        return this.equals((getAllEntityTags_result)that);
34458
      return false;
34459
    }
34460
 
34461
    public boolean equals(getAllEntityTags_result that) {
34462
      if (that == null)
34463
        return false;
34464
 
34465
      boolean this_present_success = true && this.isSetSuccess();
34466
      boolean that_present_success = true && that.isSetSuccess();
34467
      if (this_present_success || that_present_success) {
34468
        if (!(this_present_success && that_present_success))
34469
          return false;
34470
        if (!this.success.equals(that.success))
34471
          return false;
34472
      }
34473
 
34474
      return true;
34475
    }
34476
 
34477
    @Override
34478
    public int hashCode() {
34479
      return 0;
34480
    }
34481
 
34482
    public int compareTo(getAllEntityTags_result other) {
34483
      if (!getClass().equals(other.getClass())) {
34484
        return getClass().getName().compareTo(other.getClass().getName());
34485
      }
34486
 
34487
      int lastComparison = 0;
34488
      getAllEntityTags_result typedOther = (getAllEntityTags_result)other;
34489
 
34490
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34491
      if (lastComparison != 0) {
34492
        return lastComparison;
34493
      }
34494
      if (isSetSuccess()) {
34495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34496
        if (lastComparison != 0) {
34497
          return lastComparison;
34498
        }
34499
      }
34500
      return 0;
34501
    }
34502
 
34503
    public _Fields fieldForId(int fieldId) {
34504
      return _Fields.findByThriftId(fieldId);
34505
    }
34506
 
34507
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34508
      org.apache.thrift.protocol.TField field;
34509
      iprot.readStructBegin();
34510
      while (true)
34511
      {
34512
        field = iprot.readFieldBegin();
34513
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34514
          break;
34515
        }
34516
        switch (field.id) {
34517
          case 0: // SUCCESS
34518
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
34519
              {
34520
                org.apache.thrift.protocol.TMap _map85 = iprot.readMapBegin();
34521
                this.success = new HashMap<Long,List<String>>(2*_map85.size);
34522
                for (int _i86 = 0; _i86 < _map85.size; ++_i86)
34523
                {
34524
                  long _key87; // required
34525
                  List<String> _val88; // required
34526
                  _key87 = iprot.readI64();
34527
                  {
34528
                    org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
34529
                    _val88 = new ArrayList<String>(_list89.size);
34530
                    for (int _i90 = 0; _i90 < _list89.size; ++_i90)
34531
                    {
34532
                      String _elem91; // required
34533
                      _elem91 = iprot.readString();
34534
                      _val88.add(_elem91);
34535
                    }
34536
                    iprot.readListEnd();
34537
                  }
34538
                  this.success.put(_key87, _val88);
34539
                }
34540
                iprot.readMapEnd();
34541
              }
34542
            } else { 
34543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34544
            }
34545
            break;
34546
          default:
34547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34548
        }
34549
        iprot.readFieldEnd();
34550
      }
34551
      iprot.readStructEnd();
34552
      validate();
34553
    }
34554
 
34555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34556
      oprot.writeStructBegin(STRUCT_DESC);
34557
 
34558
      if (this.isSetSuccess()) {
34559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34560
        {
34561
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
34562
          for (Map.Entry<Long, List<String>> _iter92 : this.success.entrySet())
34563
          {
34564
            oprot.writeI64(_iter92.getKey());
34565
            {
34566
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter92.getValue().size()));
34567
              for (String _iter93 : _iter92.getValue())
34568
              {
34569
                oprot.writeString(_iter93);
34570
              }
34571
              oprot.writeListEnd();
34572
            }
34573
          }
34574
          oprot.writeMapEnd();
34575
        }
34576
        oprot.writeFieldEnd();
34577
      }
34578
      oprot.writeFieldStop();
34579
      oprot.writeStructEnd();
34580
    }
34581
 
34582
    @Override
34583
    public String toString() {
34584
      StringBuilder sb = new StringBuilder("getAllEntityTags_result(");
34585
      boolean first = true;
34586
 
34587
      sb.append("success:");
34588
      if (this.success == null) {
34589
        sb.append("null");
34590
      } else {
34591
        sb.append(this.success);
34592
      }
34593
      first = false;
34594
      sb.append(")");
34595
      return sb.toString();
34596
    }
34597
 
34598
    public void validate() throws org.apache.thrift.TException {
34599
      // check for required fields
34600
    }
34601
 
34602
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34603
      try {
34604
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34605
      } catch (org.apache.thrift.TException te) {
34606
        throw new java.io.IOException(te);
34607
      }
34608
    }
34609
 
34610
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34611
      try {
34612
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34613
      } catch (org.apache.thrift.TException te) {
34614
        throw new java.io.IOException(te);
34615
      }
34616
    }
34617
 
34618
  }
34619
 
6850 kshitij.so 34620
  public static class addBanner_args implements org.apache.thrift.TBase<addBanner_args, addBanner_args._Fields>, java.io.Serializable, Cloneable   {
34621
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBanner_args");
34622
 
34623
    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);
34624
    private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)2);
34625
    private static final org.apache.thrift.protocol.TField LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("link", org.apache.thrift.protocol.TType.STRING, (short)3);
34626
    private static final org.apache.thrift.protocol.TField PRIORITY_FIELD_DESC = new org.apache.thrift.protocol.TField("priority", org.apache.thrift.protocol.TType.I64, (short)4);
34627
    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)5);
34628
    private static final org.apache.thrift.protocol.TField HAS_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("hasMap", org.apache.thrift.protocol.TType.BOOL, (short)6);
34629
 
34630
    private String bannerName; // required
34631
    private String imageName; // required
34632
    private String link; // required
34633
    private long priority; // required
34634
    private boolean isActive; // required
34635
    private boolean hasMap; // required
34636
 
34637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34639
      BANNER_NAME((short)1, "bannerName"),
34640
      IMAGE_NAME((short)2, "imageName"),
34641
      LINK((short)3, "link"),
34642
      PRIORITY((short)4, "priority"),
34643
      IS_ACTIVE((short)5, "isActive"),
34644
      HAS_MAP((short)6, "hasMap");
34645
 
34646
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34647
 
34648
      static {
34649
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34650
          byName.put(field.getFieldName(), field);
34651
        }
34652
      }
34653
 
34654
      /**
34655
       * Find the _Fields constant that matches fieldId, or null if its not found.
34656
       */
34657
      public static _Fields findByThriftId(int fieldId) {
34658
        switch(fieldId) {
34659
          case 1: // BANNER_NAME
34660
            return BANNER_NAME;
34661
          case 2: // IMAGE_NAME
34662
            return IMAGE_NAME;
34663
          case 3: // LINK
34664
            return LINK;
34665
          case 4: // PRIORITY
34666
            return PRIORITY;
34667
          case 5: // IS_ACTIVE
34668
            return IS_ACTIVE;
34669
          case 6: // HAS_MAP
34670
            return HAS_MAP;
34671
          default:
34672
            return null;
34673
        }
34674
      }
34675
 
34676
      /**
34677
       * Find the _Fields constant that matches fieldId, throwing an exception
34678
       * if it is not found.
34679
       */
34680
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34681
        _Fields fields = findByThriftId(fieldId);
34682
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34683
        return fields;
34684
      }
34685
 
34686
      /**
34687
       * Find the _Fields constant that matches name, or null if its not found.
34688
       */
34689
      public static _Fields findByName(String name) {
34690
        return byName.get(name);
34691
      }
34692
 
34693
      private final short _thriftId;
34694
      private final String _fieldName;
34695
 
34696
      _Fields(short thriftId, String fieldName) {
34697
        _thriftId = thriftId;
34698
        _fieldName = fieldName;
34699
      }
34700
 
34701
      public short getThriftFieldId() {
34702
        return _thriftId;
34703
      }
34704
 
34705
      public String getFieldName() {
34706
        return _fieldName;
34707
      }
34708
    }
34709
 
34710
    // isset id assignments
34711
    private static final int __PRIORITY_ISSET_ID = 0;
34712
    private static final int __ISACTIVE_ISSET_ID = 1;
34713
    private static final int __HASMAP_ISSET_ID = 2;
34714
    private BitSet __isset_bit_vector = new BitSet(3);
34715
 
34716
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34717
    static {
34718
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34719
      tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34720
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34721
      tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34723
      tmpMap.put(_Fields.LINK, new org.apache.thrift.meta_data.FieldMetaData("link", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34725
      tmpMap.put(_Fields.PRIORITY, new org.apache.thrift.meta_data.FieldMetaData("priority", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34726
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34727
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
34729
      tmpMap.put(_Fields.HAS_MAP, new org.apache.thrift.meta_data.FieldMetaData("hasMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
34731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBanner_args.class, metaDataMap);
34733
    }
34734
 
34735
    public addBanner_args() {
34736
    }
34737
 
34738
    public addBanner_args(
34739
      String bannerName,
34740
      String imageName,
34741
      String link,
34742
      long priority,
34743
      boolean isActive,
34744
      boolean hasMap)
34745
    {
34746
      this();
34747
      this.bannerName = bannerName;
34748
      this.imageName = imageName;
34749
      this.link = link;
34750
      this.priority = priority;
34751
      setPriorityIsSet(true);
34752
      this.isActive = isActive;
34753
      setIsActiveIsSet(true);
34754
      this.hasMap = hasMap;
34755
      setHasMapIsSet(true);
34756
    }
34757
 
34758
    /**
34759
     * Performs a deep copy on <i>other</i>.
34760
     */
34761
    public addBanner_args(addBanner_args other) {
34762
      __isset_bit_vector.clear();
34763
      __isset_bit_vector.or(other.__isset_bit_vector);
34764
      if (other.isSetBannerName()) {
34765
        this.bannerName = other.bannerName;
34766
      }
34767
      if (other.isSetImageName()) {
34768
        this.imageName = other.imageName;
34769
      }
34770
      if (other.isSetLink()) {
34771
        this.link = other.link;
34772
      }
34773
      this.priority = other.priority;
34774
      this.isActive = other.isActive;
34775
      this.hasMap = other.hasMap;
34776
    }
34777
 
34778
    public addBanner_args deepCopy() {
34779
      return new addBanner_args(this);
34780
    }
34781
 
34782
    @Override
34783
    public void clear() {
34784
      this.bannerName = null;
34785
      this.imageName = null;
34786
      this.link = null;
34787
      setPriorityIsSet(false);
34788
      this.priority = 0;
34789
      setIsActiveIsSet(false);
34790
      this.isActive = false;
34791
      setHasMapIsSet(false);
34792
      this.hasMap = false;
34793
    }
34794
 
34795
    public String getBannerName() {
34796
      return this.bannerName;
34797
    }
34798
 
34799
    public void setBannerName(String bannerName) {
34800
      this.bannerName = bannerName;
34801
    }
34802
 
34803
    public void unsetBannerName() {
34804
      this.bannerName = null;
34805
    }
34806
 
34807
    /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
34808
    public boolean isSetBannerName() {
34809
      return this.bannerName != null;
34810
    }
34811
 
34812
    public void setBannerNameIsSet(boolean value) {
34813
      if (!value) {
34814
        this.bannerName = null;
34815
      }
34816
    }
34817
 
34818
    public String getImageName() {
34819
      return this.imageName;
34820
    }
34821
 
34822
    public void setImageName(String imageName) {
34823
      this.imageName = imageName;
34824
    }
34825
 
34826
    public void unsetImageName() {
34827
      this.imageName = null;
34828
    }
34829
 
34830
    /** Returns true if field imageName is set (has been assigned a value) and false otherwise */
34831
    public boolean isSetImageName() {
34832
      return this.imageName != null;
34833
    }
34834
 
34835
    public void setImageNameIsSet(boolean value) {
34836
      if (!value) {
34837
        this.imageName = null;
34838
      }
34839
    }
34840
 
34841
    public String getLink() {
34842
      return this.link;
34843
    }
34844
 
34845
    public void setLink(String link) {
34846
      this.link = link;
34847
    }
34848
 
34849
    public void unsetLink() {
34850
      this.link = null;
34851
    }
34852
 
34853
    /** Returns true if field link is set (has been assigned a value) and false otherwise */
34854
    public boolean isSetLink() {
34855
      return this.link != null;
34856
    }
34857
 
34858
    public void setLinkIsSet(boolean value) {
34859
      if (!value) {
34860
        this.link = null;
34861
      }
34862
    }
34863
 
34864
    public long getPriority() {
34865
      return this.priority;
34866
    }
34867
 
34868
    public void setPriority(long priority) {
34869
      this.priority = priority;
34870
      setPriorityIsSet(true);
34871
    }
34872
 
34873
    public void unsetPriority() {
34874
      __isset_bit_vector.clear(__PRIORITY_ISSET_ID);
34875
    }
34876
 
34877
    /** Returns true if field priority is set (has been assigned a value) and false otherwise */
34878
    public boolean isSetPriority() {
34879
      return __isset_bit_vector.get(__PRIORITY_ISSET_ID);
34880
    }
34881
 
34882
    public void setPriorityIsSet(boolean value) {
34883
      __isset_bit_vector.set(__PRIORITY_ISSET_ID, value);
34884
    }
34885
 
34886
    public boolean isIsActive() {
34887
      return this.isActive;
34888
    }
34889
 
34890
    public void setIsActive(boolean isActive) {
34891
      this.isActive = isActive;
34892
      setIsActiveIsSet(true);
34893
    }
34894
 
34895
    public void unsetIsActive() {
34896
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
34897
    }
34898
 
34899
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
34900
    public boolean isSetIsActive() {
34901
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
34902
    }
34903
 
34904
    public void setIsActiveIsSet(boolean value) {
34905
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
34906
    }
34907
 
34908
    public boolean isHasMap() {
34909
      return this.hasMap;
34910
    }
34911
 
34912
    public void setHasMap(boolean hasMap) {
34913
      this.hasMap = hasMap;
34914
      setHasMapIsSet(true);
34915
    }
34916
 
34917
    public void unsetHasMap() {
34918
      __isset_bit_vector.clear(__HASMAP_ISSET_ID);
34919
    }
34920
 
34921
    /** Returns true if field hasMap is set (has been assigned a value) and false otherwise */
34922
    public boolean isSetHasMap() {
34923
      return __isset_bit_vector.get(__HASMAP_ISSET_ID);
34924
    }
34925
 
34926
    public void setHasMapIsSet(boolean value) {
34927
      __isset_bit_vector.set(__HASMAP_ISSET_ID, value);
34928
    }
34929
 
34930
    public void setFieldValue(_Fields field, Object value) {
34931
      switch (field) {
34932
      case BANNER_NAME:
34933
        if (value == null) {
34934
          unsetBannerName();
34935
        } else {
34936
          setBannerName((String)value);
34937
        }
34938
        break;
34939
 
34940
      case IMAGE_NAME:
34941
        if (value == null) {
34942
          unsetImageName();
34943
        } else {
34944
          setImageName((String)value);
34945
        }
34946
        break;
34947
 
34948
      case LINK:
34949
        if (value == null) {
34950
          unsetLink();
34951
        } else {
34952
          setLink((String)value);
34953
        }
34954
        break;
34955
 
34956
      case PRIORITY:
34957
        if (value == null) {
34958
          unsetPriority();
34959
        } else {
34960
          setPriority((Long)value);
34961
        }
34962
        break;
34963
 
34964
      case IS_ACTIVE:
34965
        if (value == null) {
34966
          unsetIsActive();
34967
        } else {
34968
          setIsActive((Boolean)value);
34969
        }
34970
        break;
34971
 
34972
      case HAS_MAP:
34973
        if (value == null) {
34974
          unsetHasMap();
34975
        } else {
34976
          setHasMap((Boolean)value);
34977
        }
34978
        break;
34979
 
34980
      }
34981
    }
34982
 
34983
    public Object getFieldValue(_Fields field) {
34984
      switch (field) {
34985
      case BANNER_NAME:
34986
        return getBannerName();
34987
 
34988
      case IMAGE_NAME:
34989
        return getImageName();
34990
 
34991
      case LINK:
34992
        return getLink();
34993
 
34994
      case PRIORITY:
34995
        return Long.valueOf(getPriority());
34996
 
34997
      case IS_ACTIVE:
34998
        return Boolean.valueOf(isIsActive());
34999
 
35000
      case HAS_MAP:
35001
        return Boolean.valueOf(isHasMap());
35002
 
35003
      }
35004
      throw new IllegalStateException();
35005
    }
35006
 
35007
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35008
    public boolean isSet(_Fields field) {
35009
      if (field == null) {
35010
        throw new IllegalArgumentException();
35011
      }
35012
 
35013
      switch (field) {
35014
      case BANNER_NAME:
35015
        return isSetBannerName();
35016
      case IMAGE_NAME:
35017
        return isSetImageName();
35018
      case LINK:
35019
        return isSetLink();
35020
      case PRIORITY:
35021
        return isSetPriority();
35022
      case IS_ACTIVE:
35023
        return isSetIsActive();
35024
      case HAS_MAP:
35025
        return isSetHasMap();
35026
      }
35027
      throw new IllegalStateException();
35028
    }
35029
 
35030
    @Override
35031
    public boolean equals(Object that) {
35032
      if (that == null)
35033
        return false;
35034
      if (that instanceof addBanner_args)
35035
        return this.equals((addBanner_args)that);
35036
      return false;
35037
    }
35038
 
35039
    public boolean equals(addBanner_args that) {
35040
      if (that == null)
35041
        return false;
35042
 
35043
      boolean this_present_bannerName = true && this.isSetBannerName();
35044
      boolean that_present_bannerName = true && that.isSetBannerName();
35045
      if (this_present_bannerName || that_present_bannerName) {
35046
        if (!(this_present_bannerName && that_present_bannerName))
35047
          return false;
35048
        if (!this.bannerName.equals(that.bannerName))
35049
          return false;
35050
      }
35051
 
35052
      boolean this_present_imageName = true && this.isSetImageName();
35053
      boolean that_present_imageName = true && that.isSetImageName();
35054
      if (this_present_imageName || that_present_imageName) {
35055
        if (!(this_present_imageName && that_present_imageName))
35056
          return false;
35057
        if (!this.imageName.equals(that.imageName))
35058
          return false;
35059
      }
35060
 
35061
      boolean this_present_link = true && this.isSetLink();
35062
      boolean that_present_link = true && that.isSetLink();
35063
      if (this_present_link || that_present_link) {
35064
        if (!(this_present_link && that_present_link))
35065
          return false;
35066
        if (!this.link.equals(that.link))
35067
          return false;
35068
      }
35069
 
35070
      boolean this_present_priority = true;
35071
      boolean that_present_priority = true;
35072
      if (this_present_priority || that_present_priority) {
35073
        if (!(this_present_priority && that_present_priority))
35074
          return false;
35075
        if (this.priority != that.priority)
35076
          return false;
35077
      }
35078
 
35079
      boolean this_present_isActive = true;
35080
      boolean that_present_isActive = true;
35081
      if (this_present_isActive || that_present_isActive) {
35082
        if (!(this_present_isActive && that_present_isActive))
35083
          return false;
35084
        if (this.isActive != that.isActive)
35085
          return false;
35086
      }
35087
 
35088
      boolean this_present_hasMap = true;
35089
      boolean that_present_hasMap = true;
35090
      if (this_present_hasMap || that_present_hasMap) {
35091
        if (!(this_present_hasMap && that_present_hasMap))
35092
          return false;
35093
        if (this.hasMap != that.hasMap)
35094
          return false;
35095
      }
35096
 
35097
      return true;
35098
    }
35099
 
35100
    @Override
35101
    public int hashCode() {
35102
      return 0;
35103
    }
35104
 
35105
    public int compareTo(addBanner_args other) {
35106
      if (!getClass().equals(other.getClass())) {
35107
        return getClass().getName().compareTo(other.getClass().getName());
35108
      }
35109
 
35110
      int lastComparison = 0;
35111
      addBanner_args typedOther = (addBanner_args)other;
35112
 
35113
      lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
35114
      if (lastComparison != 0) {
35115
        return lastComparison;
35116
      }
35117
      if (isSetBannerName()) {
35118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
35119
        if (lastComparison != 0) {
35120
          return lastComparison;
35121
        }
35122
      }
35123
      lastComparison = Boolean.valueOf(isSetImageName()).compareTo(typedOther.isSetImageName());
35124
      if (lastComparison != 0) {
35125
        return lastComparison;
35126
      }
35127
      if (isSetImageName()) {
35128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, typedOther.imageName);
35129
        if (lastComparison != 0) {
35130
          return lastComparison;
35131
        }
35132
      }
35133
      lastComparison = Boolean.valueOf(isSetLink()).compareTo(typedOther.isSetLink());
35134
      if (lastComparison != 0) {
35135
        return lastComparison;
35136
      }
35137
      if (isSetLink()) {
35138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.link, typedOther.link);
35139
        if (lastComparison != 0) {
35140
          return lastComparison;
35141
        }
35142
      }
35143
      lastComparison = Boolean.valueOf(isSetPriority()).compareTo(typedOther.isSetPriority());
35144
      if (lastComparison != 0) {
35145
        return lastComparison;
35146
      }
35147
      if (isSetPriority()) {
35148
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.priority, typedOther.priority);
35149
        if (lastComparison != 0) {
35150
          return lastComparison;
35151
        }
35152
      }
35153
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
35154
      if (lastComparison != 0) {
35155
        return lastComparison;
35156
      }
35157
      if (isSetIsActive()) {
35158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
35159
        if (lastComparison != 0) {
35160
          return lastComparison;
35161
        }
35162
      }
35163
      lastComparison = Boolean.valueOf(isSetHasMap()).compareTo(typedOther.isSetHasMap());
35164
      if (lastComparison != 0) {
35165
        return lastComparison;
35166
      }
35167
      if (isSetHasMap()) {
35168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMap, typedOther.hasMap);
35169
        if (lastComparison != 0) {
35170
          return lastComparison;
35171
        }
35172
      }
35173
      return 0;
35174
    }
35175
 
35176
    public _Fields fieldForId(int fieldId) {
35177
      return _Fields.findByThriftId(fieldId);
35178
    }
35179
 
35180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35181
      org.apache.thrift.protocol.TField field;
35182
      iprot.readStructBegin();
35183
      while (true)
35184
      {
35185
        field = iprot.readFieldBegin();
35186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35187
          break;
35188
        }
35189
        switch (field.id) {
35190
          case 1: // BANNER_NAME
35191
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
35192
              this.bannerName = iprot.readString();
35193
            } else { 
35194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35195
            }
35196
            break;
35197
          case 2: // IMAGE_NAME
35198
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
35199
              this.imageName = iprot.readString();
35200
            } else { 
35201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35202
            }
35203
            break;
35204
          case 3: // LINK
35205
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
35206
              this.link = iprot.readString();
35207
            } else { 
35208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35209
            }
35210
            break;
35211
          case 4: // PRIORITY
35212
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35213
              this.priority = iprot.readI64();
35214
              setPriorityIsSet(true);
35215
            } else { 
35216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35217
            }
35218
            break;
35219
          case 5: // IS_ACTIVE
35220
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35221
              this.isActive = iprot.readBool();
35222
              setIsActiveIsSet(true);
35223
            } else { 
35224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35225
            }
35226
            break;
35227
          case 6: // HAS_MAP
35228
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35229
              this.hasMap = iprot.readBool();
35230
              setHasMapIsSet(true);
35231
            } else { 
35232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35233
            }
35234
            break;
35235
          default:
35236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35237
        }
35238
        iprot.readFieldEnd();
35239
      }
35240
      iprot.readStructEnd();
35241
      validate();
35242
    }
35243
 
35244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35245
      validate();
35246
 
35247
      oprot.writeStructBegin(STRUCT_DESC);
35248
      if (this.bannerName != null) {
35249
        oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
35250
        oprot.writeString(this.bannerName);
35251
        oprot.writeFieldEnd();
35252
      }
35253
      if (this.imageName != null) {
35254
        oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC);
35255
        oprot.writeString(this.imageName);
35256
        oprot.writeFieldEnd();
35257
      }
35258
      if (this.link != null) {
35259
        oprot.writeFieldBegin(LINK_FIELD_DESC);
35260
        oprot.writeString(this.link);
35261
        oprot.writeFieldEnd();
35262
      }
35263
      oprot.writeFieldBegin(PRIORITY_FIELD_DESC);
35264
      oprot.writeI64(this.priority);
35265
      oprot.writeFieldEnd();
35266
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
35267
      oprot.writeBool(this.isActive);
35268
      oprot.writeFieldEnd();
35269
      oprot.writeFieldBegin(HAS_MAP_FIELD_DESC);
35270
      oprot.writeBool(this.hasMap);
35271
      oprot.writeFieldEnd();
35272
      oprot.writeFieldStop();
35273
      oprot.writeStructEnd();
35274
    }
35275
 
35276
    @Override
35277
    public String toString() {
35278
      StringBuilder sb = new StringBuilder("addBanner_args(");
35279
      boolean first = true;
35280
 
35281
      sb.append("bannerName:");
35282
      if (this.bannerName == null) {
35283
        sb.append("null");
35284
      } else {
35285
        sb.append(this.bannerName);
35286
      }
35287
      first = false;
35288
      if (!first) sb.append(", ");
35289
      sb.append("imageName:");
35290
      if (this.imageName == null) {
35291
        sb.append("null");
35292
      } else {
35293
        sb.append(this.imageName);
35294
      }
35295
      first = false;
35296
      if (!first) sb.append(", ");
35297
      sb.append("link:");
35298
      if (this.link == null) {
35299
        sb.append("null");
35300
      } else {
35301
        sb.append(this.link);
35302
      }
35303
      first = false;
35304
      if (!first) sb.append(", ");
35305
      sb.append("priority:");
35306
      sb.append(this.priority);
35307
      first = false;
35308
      if (!first) sb.append(", ");
35309
      sb.append("isActive:");
35310
      sb.append(this.isActive);
35311
      first = false;
35312
      if (!first) sb.append(", ");
35313
      sb.append("hasMap:");
35314
      sb.append(this.hasMap);
35315
      first = false;
35316
      sb.append(")");
35317
      return sb.toString();
35318
    }
35319
 
35320
    public void validate() throws org.apache.thrift.TException {
35321
      // check for required fields
35322
    }
35323
 
35324
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35325
      try {
35326
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35327
      } catch (org.apache.thrift.TException te) {
35328
        throw new java.io.IOException(te);
35329
      }
35330
    }
35331
 
35332
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35333
      try {
35334
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35335
        __isset_bit_vector = new BitSet(1);
35336
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35337
      } catch (org.apache.thrift.TException te) {
35338
        throw new java.io.IOException(te);
35339
      }
35340
    }
35341
 
35342
  }
35343
 
35344
  public static class addBanner_result implements org.apache.thrift.TBase<addBanner_result, addBanner_result._Fields>, java.io.Serializable, Cloneable   {
35345
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBanner_result");
35346
 
35347
    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);
35348
 
35349
    private boolean success; // required
35350
 
35351
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35352
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35353
      SUCCESS((short)0, "success");
35354
 
35355
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35356
 
35357
      static {
35358
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35359
          byName.put(field.getFieldName(), field);
35360
        }
35361
      }
35362
 
35363
      /**
35364
       * Find the _Fields constant that matches fieldId, or null if its not found.
35365
       */
35366
      public static _Fields findByThriftId(int fieldId) {
35367
        switch(fieldId) {
35368
          case 0: // SUCCESS
35369
            return SUCCESS;
35370
          default:
35371
            return null;
35372
        }
35373
      }
35374
 
35375
      /**
35376
       * Find the _Fields constant that matches fieldId, throwing an exception
35377
       * if it is not found.
35378
       */
35379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35380
        _Fields fields = findByThriftId(fieldId);
35381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35382
        return fields;
35383
      }
35384
 
35385
      /**
35386
       * Find the _Fields constant that matches name, or null if its not found.
35387
       */
35388
      public static _Fields findByName(String name) {
35389
        return byName.get(name);
35390
      }
35391
 
35392
      private final short _thriftId;
35393
      private final String _fieldName;
35394
 
35395
      _Fields(short thriftId, String fieldName) {
35396
        _thriftId = thriftId;
35397
        _fieldName = fieldName;
35398
      }
35399
 
35400
      public short getThriftFieldId() {
35401
        return _thriftId;
35402
      }
35403
 
35404
      public String getFieldName() {
35405
        return _fieldName;
35406
      }
35407
    }
35408
 
35409
    // isset id assignments
35410
    private static final int __SUCCESS_ISSET_ID = 0;
35411
    private BitSet __isset_bit_vector = new BitSet(1);
35412
 
35413
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35414
    static {
35415
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35416
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35417
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
35418
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35419
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBanner_result.class, metaDataMap);
35420
    }
35421
 
35422
    public addBanner_result() {
35423
    }
35424
 
35425
    public addBanner_result(
35426
      boolean success)
35427
    {
35428
      this();
35429
      this.success = success;
35430
      setSuccessIsSet(true);
35431
    }
35432
 
35433
    /**
35434
     * Performs a deep copy on <i>other</i>.
35435
     */
35436
    public addBanner_result(addBanner_result other) {
35437
      __isset_bit_vector.clear();
35438
      __isset_bit_vector.or(other.__isset_bit_vector);
35439
      this.success = other.success;
35440
    }
35441
 
35442
    public addBanner_result deepCopy() {
35443
      return new addBanner_result(this);
35444
    }
35445
 
35446
    @Override
35447
    public void clear() {
35448
      setSuccessIsSet(false);
35449
      this.success = false;
35450
    }
35451
 
35452
    public boolean isSuccess() {
35453
      return this.success;
35454
    }
35455
 
35456
    public void setSuccess(boolean success) {
35457
      this.success = success;
35458
      setSuccessIsSet(true);
35459
    }
35460
 
35461
    public void unsetSuccess() {
35462
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35463
    }
35464
 
35465
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35466
    public boolean isSetSuccess() {
35467
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35468
    }
35469
 
35470
    public void setSuccessIsSet(boolean value) {
35471
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35472
    }
35473
 
35474
    public void setFieldValue(_Fields field, Object value) {
35475
      switch (field) {
35476
      case SUCCESS:
35477
        if (value == null) {
35478
          unsetSuccess();
35479
        } else {
35480
          setSuccess((Boolean)value);
35481
        }
35482
        break;
35483
 
35484
      }
35485
    }
35486
 
35487
    public Object getFieldValue(_Fields field) {
35488
      switch (field) {
35489
      case SUCCESS:
35490
        return Boolean.valueOf(isSuccess());
35491
 
35492
      }
35493
      throw new IllegalStateException();
35494
    }
35495
 
35496
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35497
    public boolean isSet(_Fields field) {
35498
      if (field == null) {
35499
        throw new IllegalArgumentException();
35500
      }
35501
 
35502
      switch (field) {
35503
      case SUCCESS:
35504
        return isSetSuccess();
35505
      }
35506
      throw new IllegalStateException();
35507
    }
35508
 
35509
    @Override
35510
    public boolean equals(Object that) {
35511
      if (that == null)
35512
        return false;
35513
      if (that instanceof addBanner_result)
35514
        return this.equals((addBanner_result)that);
35515
      return false;
35516
    }
35517
 
35518
    public boolean equals(addBanner_result that) {
35519
      if (that == null)
35520
        return false;
35521
 
35522
      boolean this_present_success = true;
35523
      boolean that_present_success = true;
35524
      if (this_present_success || that_present_success) {
35525
        if (!(this_present_success && that_present_success))
35526
          return false;
35527
        if (this.success != that.success)
35528
          return false;
35529
      }
35530
 
35531
      return true;
35532
    }
35533
 
35534
    @Override
35535
    public int hashCode() {
35536
      return 0;
35537
    }
35538
 
35539
    public int compareTo(addBanner_result other) {
35540
      if (!getClass().equals(other.getClass())) {
35541
        return getClass().getName().compareTo(other.getClass().getName());
35542
      }
35543
 
35544
      int lastComparison = 0;
35545
      addBanner_result typedOther = (addBanner_result)other;
35546
 
35547
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35548
      if (lastComparison != 0) {
35549
        return lastComparison;
35550
      }
35551
      if (isSetSuccess()) {
35552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35553
        if (lastComparison != 0) {
35554
          return lastComparison;
35555
        }
35556
      }
35557
      return 0;
35558
    }
35559
 
35560
    public _Fields fieldForId(int fieldId) {
35561
      return _Fields.findByThriftId(fieldId);
35562
    }
35563
 
35564
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35565
      org.apache.thrift.protocol.TField field;
35566
      iprot.readStructBegin();
35567
      while (true)
35568
      {
35569
        field = iprot.readFieldBegin();
35570
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35571
          break;
35572
        }
35573
        switch (field.id) {
35574
          case 0: // SUCCESS
35575
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35576
              this.success = iprot.readBool();
35577
              setSuccessIsSet(true);
35578
            } else { 
35579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35580
            }
35581
            break;
35582
          default:
35583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35584
        }
35585
        iprot.readFieldEnd();
35586
      }
35587
      iprot.readStructEnd();
35588
      validate();
35589
    }
35590
 
35591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35592
      oprot.writeStructBegin(STRUCT_DESC);
35593
 
35594
      if (this.isSetSuccess()) {
35595
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35596
        oprot.writeBool(this.success);
35597
        oprot.writeFieldEnd();
35598
      }
35599
      oprot.writeFieldStop();
35600
      oprot.writeStructEnd();
35601
    }
35602
 
35603
    @Override
35604
    public String toString() {
35605
      StringBuilder sb = new StringBuilder("addBanner_result(");
35606
      boolean first = true;
35607
 
35608
      sb.append("success:");
35609
      sb.append(this.success);
35610
      first = false;
35611
      sb.append(")");
35612
      return sb.toString();
35613
    }
35614
 
35615
    public void validate() throws org.apache.thrift.TException {
35616
      // check for required fields
35617
    }
35618
 
35619
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35620
      try {
35621
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35622
      } catch (org.apache.thrift.TException te) {
35623
        throw new java.io.IOException(te);
35624
      }
35625
    }
35626
 
35627
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35628
      try {
35629
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35630
      } catch (org.apache.thrift.TException te) {
35631
        throw new java.io.IOException(te);
35632
      }
35633
    }
35634
 
35635
  }
35636
 
35637
  public static class getAllBanners_args implements org.apache.thrift.TBase<getAllBanners_args, getAllBanners_args._Fields>, java.io.Serializable, Cloneable   {
35638
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBanners_args");
35639
 
35640
 
35641
 
35642
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35643
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35644
;
35645
 
35646
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35647
 
35648
      static {
35649
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35650
          byName.put(field.getFieldName(), field);
35651
        }
35652
      }
35653
 
35654
      /**
35655
       * Find the _Fields constant that matches fieldId, or null if its not found.
35656
       */
35657
      public static _Fields findByThriftId(int fieldId) {
35658
        switch(fieldId) {
35659
          default:
35660
            return null;
35661
        }
35662
      }
35663
 
35664
      /**
35665
       * Find the _Fields constant that matches fieldId, throwing an exception
35666
       * if it is not found.
35667
       */
35668
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35669
        _Fields fields = findByThriftId(fieldId);
35670
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35671
        return fields;
35672
      }
35673
 
35674
      /**
35675
       * Find the _Fields constant that matches name, or null if its not found.
35676
       */
35677
      public static _Fields findByName(String name) {
35678
        return byName.get(name);
35679
      }
35680
 
35681
      private final short _thriftId;
35682
      private final String _fieldName;
35683
 
35684
      _Fields(short thriftId, String fieldName) {
35685
        _thriftId = thriftId;
35686
        _fieldName = fieldName;
35687
      }
35688
 
35689
      public short getThriftFieldId() {
35690
        return _thriftId;
35691
      }
35692
 
35693
      public String getFieldName() {
35694
        return _fieldName;
35695
      }
35696
    }
35697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35698
    static {
35699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBanners_args.class, metaDataMap);
35702
    }
35703
 
35704
    public getAllBanners_args() {
35705
    }
35706
 
35707
    /**
35708
     * Performs a deep copy on <i>other</i>.
35709
     */
35710
    public getAllBanners_args(getAllBanners_args other) {
35711
    }
35712
 
35713
    public getAllBanners_args deepCopy() {
35714
      return new getAllBanners_args(this);
35715
    }
35716
 
35717
    @Override
35718
    public void clear() {
35719
    }
35720
 
35721
    public void setFieldValue(_Fields field, Object value) {
35722
      switch (field) {
35723
      }
35724
    }
35725
 
35726
    public Object getFieldValue(_Fields field) {
35727
      switch (field) {
35728
      }
35729
      throw new IllegalStateException();
35730
    }
35731
 
35732
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35733
    public boolean isSet(_Fields field) {
35734
      if (field == null) {
35735
        throw new IllegalArgumentException();
35736
      }
35737
 
35738
      switch (field) {
35739
      }
35740
      throw new IllegalStateException();
35741
    }
35742
 
35743
    @Override
35744
    public boolean equals(Object that) {
35745
      if (that == null)
35746
        return false;
35747
      if (that instanceof getAllBanners_args)
35748
        return this.equals((getAllBanners_args)that);
35749
      return false;
35750
    }
35751
 
35752
    public boolean equals(getAllBanners_args that) {
35753
      if (that == null)
35754
        return false;
35755
 
35756
      return true;
35757
    }
35758
 
35759
    @Override
35760
    public int hashCode() {
35761
      return 0;
35762
    }
35763
 
35764
    public int compareTo(getAllBanners_args other) {
35765
      if (!getClass().equals(other.getClass())) {
35766
        return getClass().getName().compareTo(other.getClass().getName());
35767
      }
35768
 
35769
      int lastComparison = 0;
35770
      getAllBanners_args typedOther = (getAllBanners_args)other;
35771
 
35772
      return 0;
35773
    }
35774
 
35775
    public _Fields fieldForId(int fieldId) {
35776
      return _Fields.findByThriftId(fieldId);
35777
    }
35778
 
35779
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35780
      org.apache.thrift.protocol.TField field;
35781
      iprot.readStructBegin();
35782
      while (true)
35783
      {
35784
        field = iprot.readFieldBegin();
35785
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35786
          break;
35787
        }
35788
        switch (field.id) {
35789
          default:
35790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35791
        }
35792
        iprot.readFieldEnd();
35793
      }
35794
      iprot.readStructEnd();
35795
      validate();
35796
    }
35797
 
35798
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35799
      validate();
35800
 
35801
      oprot.writeStructBegin(STRUCT_DESC);
35802
      oprot.writeFieldStop();
35803
      oprot.writeStructEnd();
35804
    }
35805
 
35806
    @Override
35807
    public String toString() {
35808
      StringBuilder sb = new StringBuilder("getAllBanners_args(");
35809
      boolean first = true;
35810
 
35811
      sb.append(")");
35812
      return sb.toString();
35813
    }
35814
 
35815
    public void validate() throws org.apache.thrift.TException {
35816
      // check for required fields
35817
    }
35818
 
35819
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35820
      try {
35821
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35822
      } catch (org.apache.thrift.TException te) {
35823
        throw new java.io.IOException(te);
35824
      }
35825
    }
35826
 
35827
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35828
      try {
35829
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35830
      } catch (org.apache.thrift.TException te) {
35831
        throw new java.io.IOException(te);
35832
      }
35833
    }
35834
 
35835
  }
35836
 
35837
  public static class getAllBanners_result implements org.apache.thrift.TBase<getAllBanners_result, getAllBanners_result._Fields>, java.io.Serializable, Cloneable   {
35838
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBanners_result");
35839
 
35840
    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);
35841
 
35842
    private List<String> success; // required
35843
 
35844
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35845
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35846
      SUCCESS((short)0, "success");
35847
 
35848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35849
 
35850
      static {
35851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35852
          byName.put(field.getFieldName(), field);
35853
        }
35854
      }
35855
 
35856
      /**
35857
       * Find the _Fields constant that matches fieldId, or null if its not found.
35858
       */
35859
      public static _Fields findByThriftId(int fieldId) {
35860
        switch(fieldId) {
35861
          case 0: // SUCCESS
35862
            return SUCCESS;
35863
          default:
35864
            return null;
35865
        }
35866
      }
35867
 
35868
      /**
35869
       * Find the _Fields constant that matches fieldId, throwing an exception
35870
       * if it is not found.
35871
       */
35872
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35873
        _Fields fields = findByThriftId(fieldId);
35874
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35875
        return fields;
35876
      }
35877
 
35878
      /**
35879
       * Find the _Fields constant that matches name, or null if its not found.
35880
       */
35881
      public static _Fields findByName(String name) {
35882
        return byName.get(name);
35883
      }
35884
 
35885
      private final short _thriftId;
35886
      private final String _fieldName;
35887
 
35888
      _Fields(short thriftId, String fieldName) {
35889
        _thriftId = thriftId;
35890
        _fieldName = fieldName;
35891
      }
35892
 
35893
      public short getThriftFieldId() {
35894
        return _thriftId;
35895
      }
35896
 
35897
      public String getFieldName() {
35898
        return _fieldName;
35899
      }
35900
    }
35901
 
35902
    // isset id assignments
35903
 
35904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35905
    static {
35906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35907
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35908
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
35909
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
35910
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35911
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBanners_result.class, metaDataMap);
35912
    }
35913
 
35914
    public getAllBanners_result() {
35915
    }
35916
 
35917
    public getAllBanners_result(
35918
      List<String> success)
35919
    {
35920
      this();
35921
      this.success = success;
35922
    }
35923
 
35924
    /**
35925
     * Performs a deep copy on <i>other</i>.
35926
     */
35927
    public getAllBanners_result(getAllBanners_result other) {
35928
      if (other.isSetSuccess()) {
35929
        List<String> __this__success = new ArrayList<String>();
35930
        for (String other_element : other.success) {
35931
          __this__success.add(other_element);
35932
        }
35933
        this.success = __this__success;
35934
      }
35935
    }
35936
 
35937
    public getAllBanners_result deepCopy() {
35938
      return new getAllBanners_result(this);
35939
    }
35940
 
35941
    @Override
35942
    public void clear() {
35943
      this.success = null;
35944
    }
35945
 
35946
    public int getSuccessSize() {
35947
      return (this.success == null) ? 0 : this.success.size();
35948
    }
35949
 
35950
    public java.util.Iterator<String> getSuccessIterator() {
35951
      return (this.success == null) ? null : this.success.iterator();
35952
    }
35953
 
35954
    public void addToSuccess(String elem) {
35955
      if (this.success == null) {
35956
        this.success = new ArrayList<String>();
35957
      }
35958
      this.success.add(elem);
35959
    }
35960
 
35961
    public List<String> getSuccess() {
35962
      return this.success;
35963
    }
35964
 
35965
    public void setSuccess(List<String> success) {
35966
      this.success = success;
35967
    }
35968
 
35969
    public void unsetSuccess() {
35970
      this.success = null;
35971
    }
35972
 
35973
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35974
    public boolean isSetSuccess() {
35975
      return this.success != null;
35976
    }
35977
 
35978
    public void setSuccessIsSet(boolean value) {
35979
      if (!value) {
35980
        this.success = null;
35981
      }
35982
    }
35983
 
35984
    public void setFieldValue(_Fields field, Object value) {
35985
      switch (field) {
35986
      case SUCCESS:
35987
        if (value == null) {
35988
          unsetSuccess();
35989
        } else {
35990
          setSuccess((List<String>)value);
35991
        }
35992
        break;
35993
 
35994
      }
35995
    }
35996
 
35997
    public Object getFieldValue(_Fields field) {
35998
      switch (field) {
35999
      case SUCCESS:
36000
        return getSuccess();
36001
 
36002
      }
36003
      throw new IllegalStateException();
36004
    }
36005
 
36006
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36007
    public boolean isSet(_Fields field) {
36008
      if (field == null) {
36009
        throw new IllegalArgumentException();
36010
      }
36011
 
36012
      switch (field) {
36013
      case SUCCESS:
36014
        return isSetSuccess();
36015
      }
36016
      throw new IllegalStateException();
36017
    }
36018
 
36019
    @Override
36020
    public boolean equals(Object that) {
36021
      if (that == null)
36022
        return false;
36023
      if (that instanceof getAllBanners_result)
36024
        return this.equals((getAllBanners_result)that);
36025
      return false;
36026
    }
36027
 
36028
    public boolean equals(getAllBanners_result that) {
36029
      if (that == null)
36030
        return false;
36031
 
36032
      boolean this_present_success = true && this.isSetSuccess();
36033
      boolean that_present_success = true && that.isSetSuccess();
36034
      if (this_present_success || that_present_success) {
36035
        if (!(this_present_success && that_present_success))
36036
          return false;
36037
        if (!this.success.equals(that.success))
36038
          return false;
36039
      }
36040
 
36041
      return true;
36042
    }
36043
 
36044
    @Override
36045
    public int hashCode() {
36046
      return 0;
36047
    }
36048
 
36049
    public int compareTo(getAllBanners_result other) {
36050
      if (!getClass().equals(other.getClass())) {
36051
        return getClass().getName().compareTo(other.getClass().getName());
36052
      }
36053
 
36054
      int lastComparison = 0;
36055
      getAllBanners_result typedOther = (getAllBanners_result)other;
36056
 
36057
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36058
      if (lastComparison != 0) {
36059
        return lastComparison;
36060
      }
36061
      if (isSetSuccess()) {
36062
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36063
        if (lastComparison != 0) {
36064
          return lastComparison;
36065
        }
36066
      }
36067
      return 0;
36068
    }
36069
 
36070
    public _Fields fieldForId(int fieldId) {
36071
      return _Fields.findByThriftId(fieldId);
36072
    }
36073
 
36074
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36075
      org.apache.thrift.protocol.TField field;
36076
      iprot.readStructBegin();
36077
      while (true)
36078
      {
36079
        field = iprot.readFieldBegin();
36080
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36081
          break;
36082
        }
36083
        switch (field.id) {
36084
          case 0: // SUCCESS
36085
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36086
              {
36087
                org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
36088
                this.success = new ArrayList<String>(_list94.size);
36089
                for (int _i95 = 0; _i95 < _list94.size; ++_i95)
36090
                {
36091
                  String _elem96; // required
36092
                  _elem96 = iprot.readString();
36093
                  this.success.add(_elem96);
36094
                }
36095
                iprot.readListEnd();
36096
              }
36097
            } else { 
36098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36099
            }
36100
            break;
36101
          default:
36102
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36103
        }
36104
        iprot.readFieldEnd();
36105
      }
36106
      iprot.readStructEnd();
36107
      validate();
36108
    }
36109
 
36110
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36111
      oprot.writeStructBegin(STRUCT_DESC);
36112
 
36113
      if (this.isSetSuccess()) {
36114
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36115
        {
36116
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
36117
          for (String _iter97 : this.success)
36118
          {
36119
            oprot.writeString(_iter97);
36120
          }
36121
          oprot.writeListEnd();
36122
        }
36123
        oprot.writeFieldEnd();
36124
      }
36125
      oprot.writeFieldStop();
36126
      oprot.writeStructEnd();
36127
    }
36128
 
36129
    @Override
36130
    public String toString() {
36131
      StringBuilder sb = new StringBuilder("getAllBanners_result(");
36132
      boolean first = true;
36133
 
36134
      sb.append("success:");
36135
      if (this.success == null) {
36136
        sb.append("null");
36137
      } else {
36138
        sb.append(this.success);
36139
      }
36140
      first = false;
36141
      sb.append(")");
36142
      return sb.toString();
36143
    }
36144
 
36145
    public void validate() throws org.apache.thrift.TException {
36146
      // check for required fields
36147
    }
36148
 
36149
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36150
      try {
36151
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36152
      } catch (org.apache.thrift.TException te) {
36153
        throw new java.io.IOException(te);
36154
      }
36155
    }
36156
 
36157
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36158
      try {
36159
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36160
      } catch (org.apache.thrift.TException te) {
36161
        throw new java.io.IOException(te);
36162
      }
36163
    }
36164
 
36165
  }
36166
 
36167
  public static class deleteBanner_args implements org.apache.thrift.TBase<deleteBanner_args, deleteBanner_args._Fields>, java.io.Serializable, Cloneable   {
36168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBanner_args");
36169
 
36170
    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);
36171
 
36172
    private String bannerName; // required
36173
 
36174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36175
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36176
      BANNER_NAME((short)1, "bannerName");
36177
 
36178
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36179
 
36180
      static {
36181
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36182
          byName.put(field.getFieldName(), field);
36183
        }
36184
      }
36185
 
36186
      /**
36187
       * Find the _Fields constant that matches fieldId, or null if its not found.
36188
       */
36189
      public static _Fields findByThriftId(int fieldId) {
36190
        switch(fieldId) {
36191
          case 1: // BANNER_NAME
36192
            return BANNER_NAME;
36193
          default:
36194
            return null;
36195
        }
36196
      }
36197
 
36198
      /**
36199
       * Find the _Fields constant that matches fieldId, throwing an exception
36200
       * if it is not found.
36201
       */
36202
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36203
        _Fields fields = findByThriftId(fieldId);
36204
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36205
        return fields;
36206
      }
36207
 
36208
      /**
36209
       * Find the _Fields constant that matches name, or null if its not found.
36210
       */
36211
      public static _Fields findByName(String name) {
36212
        return byName.get(name);
36213
      }
36214
 
36215
      private final short _thriftId;
36216
      private final String _fieldName;
36217
 
36218
      _Fields(short thriftId, String fieldName) {
36219
        _thriftId = thriftId;
36220
        _fieldName = fieldName;
36221
      }
36222
 
36223
      public short getThriftFieldId() {
36224
        return _thriftId;
36225
      }
36226
 
36227
      public String getFieldName() {
36228
        return _fieldName;
36229
      }
36230
    }
36231
 
36232
    // isset id assignments
36233
 
36234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36235
    static {
36236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36237
      tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
36239
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36240
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBanner_args.class, metaDataMap);
36241
    }
36242
 
36243
    public deleteBanner_args() {
36244
    }
36245
 
36246
    public deleteBanner_args(
36247
      String bannerName)
36248
    {
36249
      this();
36250
      this.bannerName = bannerName;
36251
    }
36252
 
36253
    /**
36254
     * Performs a deep copy on <i>other</i>.
36255
     */
36256
    public deleteBanner_args(deleteBanner_args other) {
36257
      if (other.isSetBannerName()) {
36258
        this.bannerName = other.bannerName;
36259
      }
36260
    }
36261
 
36262
    public deleteBanner_args deepCopy() {
36263
      return new deleteBanner_args(this);
36264
    }
36265
 
36266
    @Override
36267
    public void clear() {
36268
      this.bannerName = null;
36269
    }
36270
 
36271
    public String getBannerName() {
36272
      return this.bannerName;
36273
    }
36274
 
36275
    public void setBannerName(String bannerName) {
36276
      this.bannerName = bannerName;
36277
    }
36278
 
36279
    public void unsetBannerName() {
36280
      this.bannerName = null;
36281
    }
36282
 
36283
    /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
36284
    public boolean isSetBannerName() {
36285
      return this.bannerName != null;
36286
    }
36287
 
36288
    public void setBannerNameIsSet(boolean value) {
36289
      if (!value) {
36290
        this.bannerName = null;
36291
      }
36292
    }
36293
 
36294
    public void setFieldValue(_Fields field, Object value) {
36295
      switch (field) {
36296
      case BANNER_NAME:
36297
        if (value == null) {
36298
          unsetBannerName();
36299
        } else {
36300
          setBannerName((String)value);
36301
        }
36302
        break;
36303
 
36304
      }
36305
    }
36306
 
36307
    public Object getFieldValue(_Fields field) {
36308
      switch (field) {
36309
      case BANNER_NAME:
36310
        return getBannerName();
36311
 
36312
      }
36313
      throw new IllegalStateException();
36314
    }
36315
 
36316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36317
    public boolean isSet(_Fields field) {
36318
      if (field == null) {
36319
        throw new IllegalArgumentException();
36320
      }
36321
 
36322
      switch (field) {
36323
      case BANNER_NAME:
36324
        return isSetBannerName();
36325
      }
36326
      throw new IllegalStateException();
36327
    }
36328
 
36329
    @Override
36330
    public boolean equals(Object that) {
36331
      if (that == null)
36332
        return false;
36333
      if (that instanceof deleteBanner_args)
36334
        return this.equals((deleteBanner_args)that);
36335
      return false;
36336
    }
36337
 
36338
    public boolean equals(deleteBanner_args that) {
36339
      if (that == null)
36340
        return false;
36341
 
36342
      boolean this_present_bannerName = true && this.isSetBannerName();
36343
      boolean that_present_bannerName = true && that.isSetBannerName();
36344
      if (this_present_bannerName || that_present_bannerName) {
36345
        if (!(this_present_bannerName && that_present_bannerName))
36346
          return false;
36347
        if (!this.bannerName.equals(that.bannerName))
36348
          return false;
36349
      }
36350
 
36351
      return true;
36352
    }
36353
 
36354
    @Override
36355
    public int hashCode() {
36356
      return 0;
36357
    }
36358
 
36359
    public int compareTo(deleteBanner_args other) {
36360
      if (!getClass().equals(other.getClass())) {
36361
        return getClass().getName().compareTo(other.getClass().getName());
36362
      }
36363
 
36364
      int lastComparison = 0;
36365
      deleteBanner_args typedOther = (deleteBanner_args)other;
36366
 
36367
      lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
36368
      if (lastComparison != 0) {
36369
        return lastComparison;
36370
      }
36371
      if (isSetBannerName()) {
36372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
36373
        if (lastComparison != 0) {
36374
          return lastComparison;
36375
        }
36376
      }
36377
      return 0;
36378
    }
36379
 
36380
    public _Fields fieldForId(int fieldId) {
36381
      return _Fields.findByThriftId(fieldId);
36382
    }
36383
 
36384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36385
      org.apache.thrift.protocol.TField field;
36386
      iprot.readStructBegin();
36387
      while (true)
36388
      {
36389
        field = iprot.readFieldBegin();
36390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36391
          break;
36392
        }
36393
        switch (field.id) {
36394
          case 1: // BANNER_NAME
36395
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
36396
              this.bannerName = iprot.readString();
36397
            } else { 
36398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36399
            }
36400
            break;
36401
          default:
36402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36403
        }
36404
        iprot.readFieldEnd();
36405
      }
36406
      iprot.readStructEnd();
36407
      validate();
36408
    }
36409
 
36410
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36411
      validate();
36412
 
36413
      oprot.writeStructBegin(STRUCT_DESC);
36414
      if (this.bannerName != null) {
36415
        oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
36416
        oprot.writeString(this.bannerName);
36417
        oprot.writeFieldEnd();
36418
      }
36419
      oprot.writeFieldStop();
36420
      oprot.writeStructEnd();
36421
    }
36422
 
36423
    @Override
36424
    public String toString() {
36425
      StringBuilder sb = new StringBuilder("deleteBanner_args(");
36426
      boolean first = true;
36427
 
36428
      sb.append("bannerName:");
36429
      if (this.bannerName == null) {
36430
        sb.append("null");
36431
      } else {
36432
        sb.append(this.bannerName);
36433
      }
36434
      first = false;
36435
      sb.append(")");
36436
      return sb.toString();
36437
    }
36438
 
36439
    public void validate() throws org.apache.thrift.TException {
36440
      // check for required fields
36441
    }
36442
 
36443
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36444
      try {
36445
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36446
      } catch (org.apache.thrift.TException te) {
36447
        throw new java.io.IOException(te);
36448
      }
36449
    }
36450
 
36451
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36452
      try {
36453
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36454
      } catch (org.apache.thrift.TException te) {
36455
        throw new java.io.IOException(te);
36456
      }
36457
    }
36458
 
36459
  }
36460
 
36461
  public static class deleteBanner_result implements org.apache.thrift.TBase<deleteBanner_result, deleteBanner_result._Fields>, java.io.Serializable, Cloneable   {
36462
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBanner_result");
36463
 
36464
    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);
36465
 
36466
    private boolean success; // required
36467
 
36468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36470
      SUCCESS((short)0, "success");
36471
 
36472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36473
 
36474
      static {
36475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36476
          byName.put(field.getFieldName(), field);
36477
        }
36478
      }
36479
 
36480
      /**
36481
       * Find the _Fields constant that matches fieldId, or null if its not found.
36482
       */
36483
      public static _Fields findByThriftId(int fieldId) {
36484
        switch(fieldId) {
36485
          case 0: // SUCCESS
36486
            return SUCCESS;
36487
          default:
36488
            return null;
36489
        }
36490
      }
36491
 
36492
      /**
36493
       * Find the _Fields constant that matches fieldId, throwing an exception
36494
       * if it is not found.
36495
       */
36496
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36497
        _Fields fields = findByThriftId(fieldId);
36498
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36499
        return fields;
36500
      }
36501
 
36502
      /**
36503
       * Find the _Fields constant that matches name, or null if its not found.
36504
       */
36505
      public static _Fields findByName(String name) {
36506
        return byName.get(name);
36507
      }
36508
 
36509
      private final short _thriftId;
36510
      private final String _fieldName;
36511
 
36512
      _Fields(short thriftId, String fieldName) {
36513
        _thriftId = thriftId;
36514
        _fieldName = fieldName;
36515
      }
36516
 
36517
      public short getThriftFieldId() {
36518
        return _thriftId;
36519
      }
36520
 
36521
      public String getFieldName() {
36522
        return _fieldName;
36523
      }
36524
    }
36525
 
36526
    // isset id assignments
36527
    private static final int __SUCCESS_ISSET_ID = 0;
36528
    private BitSet __isset_bit_vector = new BitSet(1);
36529
 
36530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36531
    static {
36532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36533
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36534
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
36535
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36536
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBanner_result.class, metaDataMap);
36537
    }
36538
 
36539
    public deleteBanner_result() {
36540
    }
36541
 
36542
    public deleteBanner_result(
36543
      boolean success)
36544
    {
36545
      this();
36546
      this.success = success;
36547
      setSuccessIsSet(true);
36548
    }
36549
 
36550
    /**
36551
     * Performs a deep copy on <i>other</i>.
36552
     */
36553
    public deleteBanner_result(deleteBanner_result other) {
36554
      __isset_bit_vector.clear();
36555
      __isset_bit_vector.or(other.__isset_bit_vector);
36556
      this.success = other.success;
36557
    }
36558
 
36559
    public deleteBanner_result deepCopy() {
36560
      return new deleteBanner_result(this);
36561
    }
36562
 
36563
    @Override
36564
    public void clear() {
36565
      setSuccessIsSet(false);
36566
      this.success = false;
36567
    }
36568
 
36569
    public boolean isSuccess() {
36570
      return this.success;
36571
    }
36572
 
36573
    public void setSuccess(boolean success) {
36574
      this.success = success;
36575
      setSuccessIsSet(true);
36576
    }
36577
 
36578
    public void unsetSuccess() {
36579
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36580
    }
36581
 
36582
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36583
    public boolean isSetSuccess() {
36584
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36585
    }
36586
 
36587
    public void setSuccessIsSet(boolean value) {
36588
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36589
    }
36590
 
36591
    public void setFieldValue(_Fields field, Object value) {
36592
      switch (field) {
36593
      case SUCCESS:
36594
        if (value == null) {
36595
          unsetSuccess();
36596
        } else {
36597
          setSuccess((Boolean)value);
36598
        }
36599
        break;
36600
 
36601
      }
36602
    }
36603
 
36604
    public Object getFieldValue(_Fields field) {
36605
      switch (field) {
36606
      case SUCCESS:
36607
        return Boolean.valueOf(isSuccess());
36608
 
36609
      }
36610
      throw new IllegalStateException();
36611
    }
36612
 
36613
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36614
    public boolean isSet(_Fields field) {
36615
      if (field == null) {
36616
        throw new IllegalArgumentException();
36617
      }
36618
 
36619
      switch (field) {
36620
      case SUCCESS:
36621
        return isSetSuccess();
36622
      }
36623
      throw new IllegalStateException();
36624
    }
36625
 
36626
    @Override
36627
    public boolean equals(Object that) {
36628
      if (that == null)
36629
        return false;
36630
      if (that instanceof deleteBanner_result)
36631
        return this.equals((deleteBanner_result)that);
36632
      return false;
36633
    }
36634
 
36635
    public boolean equals(deleteBanner_result that) {
36636
      if (that == null)
36637
        return false;
36638
 
36639
      boolean this_present_success = true;
36640
      boolean that_present_success = true;
36641
      if (this_present_success || that_present_success) {
36642
        if (!(this_present_success && that_present_success))
36643
          return false;
36644
        if (this.success != that.success)
36645
          return false;
36646
      }
36647
 
36648
      return true;
36649
    }
36650
 
36651
    @Override
36652
    public int hashCode() {
36653
      return 0;
36654
    }
36655
 
36656
    public int compareTo(deleteBanner_result other) {
36657
      if (!getClass().equals(other.getClass())) {
36658
        return getClass().getName().compareTo(other.getClass().getName());
36659
      }
36660
 
36661
      int lastComparison = 0;
36662
      deleteBanner_result typedOther = (deleteBanner_result)other;
36663
 
36664
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36665
      if (lastComparison != 0) {
36666
        return lastComparison;
36667
      }
36668
      if (isSetSuccess()) {
36669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36670
        if (lastComparison != 0) {
36671
          return lastComparison;
36672
        }
36673
      }
36674
      return 0;
36675
    }
36676
 
36677
    public _Fields fieldForId(int fieldId) {
36678
      return _Fields.findByThriftId(fieldId);
36679
    }
36680
 
36681
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36682
      org.apache.thrift.protocol.TField field;
36683
      iprot.readStructBegin();
36684
      while (true)
36685
      {
36686
        field = iprot.readFieldBegin();
36687
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36688
          break;
36689
        }
36690
        switch (field.id) {
36691
          case 0: // SUCCESS
36692
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
36693
              this.success = iprot.readBool();
36694
              setSuccessIsSet(true);
36695
            } else { 
36696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36697
            }
36698
            break;
36699
          default:
36700
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36701
        }
36702
        iprot.readFieldEnd();
36703
      }
36704
      iprot.readStructEnd();
36705
      validate();
36706
    }
36707
 
36708
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36709
      oprot.writeStructBegin(STRUCT_DESC);
36710
 
36711
      if (this.isSetSuccess()) {
36712
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36713
        oprot.writeBool(this.success);
36714
        oprot.writeFieldEnd();
36715
      }
36716
      oprot.writeFieldStop();
36717
      oprot.writeStructEnd();
36718
    }
36719
 
36720
    @Override
36721
    public String toString() {
36722
      StringBuilder sb = new StringBuilder("deleteBanner_result(");
36723
      boolean first = true;
36724
 
36725
      sb.append("success:");
36726
      sb.append(this.success);
36727
      first = false;
36728
      sb.append(")");
36729
      return sb.toString();
36730
    }
36731
 
36732
    public void validate() throws org.apache.thrift.TException {
36733
      // check for required fields
36734
    }
36735
 
36736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36737
      try {
36738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36739
      } catch (org.apache.thrift.TException te) {
36740
        throw new java.io.IOException(te);
36741
      }
36742
    }
36743
 
36744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36745
      try {
36746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36747
      } catch (org.apache.thrift.TException te) {
36748
        throw new java.io.IOException(te);
36749
      }
36750
    }
36751
 
36752
  }
36753
 
36754
  public static class getBannerDetails_args implements org.apache.thrift.TBase<getBannerDetails_args, getBannerDetails_args._Fields>, java.io.Serializable, Cloneable   {
36755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerDetails_args");
36756
 
36757
    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);
36758
 
36759
    private String bannerName; // required
36760
 
36761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36763
      BANNER_NAME((short)1, "bannerName");
36764
 
36765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36766
 
36767
      static {
36768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36769
          byName.put(field.getFieldName(), field);
36770
        }
36771
      }
36772
 
36773
      /**
36774
       * Find the _Fields constant that matches fieldId, or null if its not found.
36775
       */
36776
      public static _Fields findByThriftId(int fieldId) {
36777
        switch(fieldId) {
36778
          case 1: // BANNER_NAME
36779
            return BANNER_NAME;
36780
          default:
36781
            return null;
36782
        }
36783
      }
36784
 
36785
      /**
36786
       * Find the _Fields constant that matches fieldId, throwing an exception
36787
       * if it is not found.
36788
       */
36789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36790
        _Fields fields = findByThriftId(fieldId);
36791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36792
        return fields;
36793
      }
36794
 
36795
      /**
36796
       * Find the _Fields constant that matches name, or null if its not found.
36797
       */
36798
      public static _Fields findByName(String name) {
36799
        return byName.get(name);
36800
      }
36801
 
36802
      private final short _thriftId;
36803
      private final String _fieldName;
36804
 
36805
      _Fields(short thriftId, String fieldName) {
36806
        _thriftId = thriftId;
36807
        _fieldName = fieldName;
36808
      }
36809
 
36810
      public short getThriftFieldId() {
36811
        return _thriftId;
36812
      }
36813
 
36814
      public String getFieldName() {
36815
        return _fieldName;
36816
      }
36817
    }
36818
 
36819
    // isset id assignments
36820
 
36821
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36822
    static {
36823
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36824
      tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36825
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
36826
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36827
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerDetails_args.class, metaDataMap);
36828
    }
36829
 
36830
    public getBannerDetails_args() {
36831
    }
36832
 
36833
    public getBannerDetails_args(
36834
      String bannerName)
36835
    {
36836
      this();
36837
      this.bannerName = bannerName;
36838
    }
36839
 
36840
    /**
36841
     * Performs a deep copy on <i>other</i>.
36842
     */
36843
    public getBannerDetails_args(getBannerDetails_args other) {
36844
      if (other.isSetBannerName()) {
36845
        this.bannerName = other.bannerName;
36846
      }
36847
    }
36848
 
36849
    public getBannerDetails_args deepCopy() {
36850
      return new getBannerDetails_args(this);
36851
    }
36852
 
36853
    @Override
36854
    public void clear() {
36855
      this.bannerName = null;
36856
    }
36857
 
36858
    public String getBannerName() {
36859
      return this.bannerName;
36860
    }
36861
 
36862
    public void setBannerName(String bannerName) {
36863
      this.bannerName = bannerName;
36864
    }
36865
 
36866
    public void unsetBannerName() {
36867
      this.bannerName = null;
36868
    }
36869
 
36870
    /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
36871
    public boolean isSetBannerName() {
36872
      return this.bannerName != null;
36873
    }
36874
 
36875
    public void setBannerNameIsSet(boolean value) {
36876
      if (!value) {
36877
        this.bannerName = null;
36878
      }
36879
    }
36880
 
36881
    public void setFieldValue(_Fields field, Object value) {
36882
      switch (field) {
36883
      case BANNER_NAME:
36884
        if (value == null) {
36885
          unsetBannerName();
36886
        } else {
36887
          setBannerName((String)value);
36888
        }
36889
        break;
36890
 
36891
      }
36892
    }
36893
 
36894
    public Object getFieldValue(_Fields field) {
36895
      switch (field) {
36896
      case BANNER_NAME:
36897
        return getBannerName();
36898
 
36899
      }
36900
      throw new IllegalStateException();
36901
    }
36902
 
36903
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36904
    public boolean isSet(_Fields field) {
36905
      if (field == null) {
36906
        throw new IllegalArgumentException();
36907
      }
36908
 
36909
      switch (field) {
36910
      case BANNER_NAME:
36911
        return isSetBannerName();
36912
      }
36913
      throw new IllegalStateException();
36914
    }
36915
 
36916
    @Override
36917
    public boolean equals(Object that) {
36918
      if (that == null)
36919
        return false;
36920
      if (that instanceof getBannerDetails_args)
36921
        return this.equals((getBannerDetails_args)that);
36922
      return false;
36923
    }
36924
 
36925
    public boolean equals(getBannerDetails_args that) {
36926
      if (that == null)
36927
        return false;
36928
 
36929
      boolean this_present_bannerName = true && this.isSetBannerName();
36930
      boolean that_present_bannerName = true && that.isSetBannerName();
36931
      if (this_present_bannerName || that_present_bannerName) {
36932
        if (!(this_present_bannerName && that_present_bannerName))
36933
          return false;
36934
        if (!this.bannerName.equals(that.bannerName))
36935
          return false;
36936
      }
36937
 
36938
      return true;
36939
    }
36940
 
36941
    @Override
36942
    public int hashCode() {
36943
      return 0;
36944
    }
36945
 
36946
    public int compareTo(getBannerDetails_args other) {
36947
      if (!getClass().equals(other.getClass())) {
36948
        return getClass().getName().compareTo(other.getClass().getName());
36949
      }
36950
 
36951
      int lastComparison = 0;
36952
      getBannerDetails_args typedOther = (getBannerDetails_args)other;
36953
 
36954
      lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
36955
      if (lastComparison != 0) {
36956
        return lastComparison;
36957
      }
36958
      if (isSetBannerName()) {
36959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
36960
        if (lastComparison != 0) {
36961
          return lastComparison;
36962
        }
36963
      }
36964
      return 0;
36965
    }
36966
 
36967
    public _Fields fieldForId(int fieldId) {
36968
      return _Fields.findByThriftId(fieldId);
36969
    }
36970
 
36971
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36972
      org.apache.thrift.protocol.TField field;
36973
      iprot.readStructBegin();
36974
      while (true)
36975
      {
36976
        field = iprot.readFieldBegin();
36977
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36978
          break;
36979
        }
36980
        switch (field.id) {
36981
          case 1: // BANNER_NAME
36982
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
36983
              this.bannerName = iprot.readString();
36984
            } else { 
36985
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36986
            }
36987
            break;
36988
          default:
36989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36990
        }
36991
        iprot.readFieldEnd();
36992
      }
36993
      iprot.readStructEnd();
36994
      validate();
36995
    }
36996
 
36997
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36998
      validate();
36999
 
37000
      oprot.writeStructBegin(STRUCT_DESC);
37001
      if (this.bannerName != null) {
37002
        oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
37003
        oprot.writeString(this.bannerName);
37004
        oprot.writeFieldEnd();
37005
      }
37006
      oprot.writeFieldStop();
37007
      oprot.writeStructEnd();
37008
    }
37009
 
37010
    @Override
37011
    public String toString() {
37012
      StringBuilder sb = new StringBuilder("getBannerDetails_args(");
37013
      boolean first = true;
37014
 
37015
      sb.append("bannerName:");
37016
      if (this.bannerName == null) {
37017
        sb.append("null");
37018
      } else {
37019
        sb.append(this.bannerName);
37020
      }
37021
      first = false;
37022
      sb.append(")");
37023
      return sb.toString();
37024
    }
37025
 
37026
    public void validate() throws org.apache.thrift.TException {
37027
      // check for required fields
37028
    }
37029
 
37030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37031
      try {
37032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37033
      } catch (org.apache.thrift.TException te) {
37034
        throw new java.io.IOException(te);
37035
      }
37036
    }
37037
 
37038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37039
      try {
37040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37041
      } catch (org.apache.thrift.TException te) {
37042
        throw new java.io.IOException(te);
37043
      }
37044
    }
37045
 
37046
  }
37047
 
37048
  public static class getBannerDetails_result implements org.apache.thrift.TBase<getBannerDetails_result, getBannerDetails_result._Fields>, java.io.Serializable, Cloneable   {
37049
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerDetails_result");
37050
 
37051
    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);
37052
 
37053
    private Banner success; // required
37054
 
37055
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37056
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37057
      SUCCESS((short)0, "success");
37058
 
37059
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37060
 
37061
      static {
37062
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37063
          byName.put(field.getFieldName(), field);
37064
        }
37065
      }
37066
 
37067
      /**
37068
       * Find the _Fields constant that matches fieldId, or null if its not found.
37069
       */
37070
      public static _Fields findByThriftId(int fieldId) {
37071
        switch(fieldId) {
37072
          case 0: // SUCCESS
37073
            return SUCCESS;
37074
          default:
37075
            return null;
37076
        }
37077
      }
37078
 
37079
      /**
37080
       * Find the _Fields constant that matches fieldId, throwing an exception
37081
       * if it is not found.
37082
       */
37083
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37084
        _Fields fields = findByThriftId(fieldId);
37085
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37086
        return fields;
37087
      }
37088
 
37089
      /**
37090
       * Find the _Fields constant that matches name, or null if its not found.
37091
       */
37092
      public static _Fields findByName(String name) {
37093
        return byName.get(name);
37094
      }
37095
 
37096
      private final short _thriftId;
37097
      private final String _fieldName;
37098
 
37099
      _Fields(short thriftId, String fieldName) {
37100
        _thriftId = thriftId;
37101
        _fieldName = fieldName;
37102
      }
37103
 
37104
      public short getThriftFieldId() {
37105
        return _thriftId;
37106
      }
37107
 
37108
      public String getFieldName() {
37109
        return _fieldName;
37110
      }
37111
    }
37112
 
37113
    // isset id assignments
37114
 
37115
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37116
    static {
37117
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37118
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37119
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class)));
37120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerDetails_result.class, metaDataMap);
37122
    }
37123
 
37124
    public getBannerDetails_result() {
37125
    }
37126
 
37127
    public getBannerDetails_result(
37128
      Banner success)
37129
    {
37130
      this();
37131
      this.success = success;
37132
    }
37133
 
37134
    /**
37135
     * Performs a deep copy on <i>other</i>.
37136
     */
37137
    public getBannerDetails_result(getBannerDetails_result other) {
37138
      if (other.isSetSuccess()) {
37139
        this.success = new Banner(other.success);
37140
      }
37141
    }
37142
 
37143
    public getBannerDetails_result deepCopy() {
37144
      return new getBannerDetails_result(this);
37145
    }
37146
 
37147
    @Override
37148
    public void clear() {
37149
      this.success = null;
37150
    }
37151
 
37152
    public Banner getSuccess() {
37153
      return this.success;
37154
    }
37155
 
37156
    public void setSuccess(Banner success) {
37157
      this.success = success;
37158
    }
37159
 
37160
    public void unsetSuccess() {
37161
      this.success = null;
37162
    }
37163
 
37164
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37165
    public boolean isSetSuccess() {
37166
      return this.success != null;
37167
    }
37168
 
37169
    public void setSuccessIsSet(boolean value) {
37170
      if (!value) {
37171
        this.success = null;
37172
      }
37173
    }
37174
 
37175
    public void setFieldValue(_Fields field, Object value) {
37176
      switch (field) {
37177
      case SUCCESS:
37178
        if (value == null) {
37179
          unsetSuccess();
37180
        } else {
37181
          setSuccess((Banner)value);
37182
        }
37183
        break;
37184
 
37185
      }
37186
    }
37187
 
37188
    public Object getFieldValue(_Fields field) {
37189
      switch (field) {
37190
      case SUCCESS:
37191
        return getSuccess();
37192
 
37193
      }
37194
      throw new IllegalStateException();
37195
    }
37196
 
37197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37198
    public boolean isSet(_Fields field) {
37199
      if (field == null) {
37200
        throw new IllegalArgumentException();
37201
      }
37202
 
37203
      switch (field) {
37204
      case SUCCESS:
37205
        return isSetSuccess();
37206
      }
37207
      throw new IllegalStateException();
37208
    }
37209
 
37210
    @Override
37211
    public boolean equals(Object that) {
37212
      if (that == null)
37213
        return false;
37214
      if (that instanceof getBannerDetails_result)
37215
        return this.equals((getBannerDetails_result)that);
37216
      return false;
37217
    }
37218
 
37219
    public boolean equals(getBannerDetails_result that) {
37220
      if (that == null)
37221
        return false;
37222
 
37223
      boolean this_present_success = true && this.isSetSuccess();
37224
      boolean that_present_success = true && that.isSetSuccess();
37225
      if (this_present_success || that_present_success) {
37226
        if (!(this_present_success && that_present_success))
37227
          return false;
37228
        if (!this.success.equals(that.success))
37229
          return false;
37230
      }
37231
 
37232
      return true;
37233
    }
37234
 
37235
    @Override
37236
    public int hashCode() {
37237
      return 0;
37238
    }
37239
 
37240
    public int compareTo(getBannerDetails_result other) {
37241
      if (!getClass().equals(other.getClass())) {
37242
        return getClass().getName().compareTo(other.getClass().getName());
37243
      }
37244
 
37245
      int lastComparison = 0;
37246
      getBannerDetails_result typedOther = (getBannerDetails_result)other;
37247
 
37248
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37249
      if (lastComparison != 0) {
37250
        return lastComparison;
37251
      }
37252
      if (isSetSuccess()) {
37253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37254
        if (lastComparison != 0) {
37255
          return lastComparison;
37256
        }
37257
      }
37258
      return 0;
37259
    }
37260
 
37261
    public _Fields fieldForId(int fieldId) {
37262
      return _Fields.findByThriftId(fieldId);
37263
    }
37264
 
37265
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37266
      org.apache.thrift.protocol.TField field;
37267
      iprot.readStructBegin();
37268
      while (true)
37269
      {
37270
        field = iprot.readFieldBegin();
37271
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37272
          break;
37273
        }
37274
        switch (field.id) {
37275
          case 0: // SUCCESS
37276
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37277
              this.success = new Banner();
37278
              this.success.read(iprot);
37279
            } else { 
37280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37281
            }
37282
            break;
37283
          default:
37284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37285
        }
37286
        iprot.readFieldEnd();
37287
      }
37288
      iprot.readStructEnd();
37289
      validate();
37290
    }
37291
 
37292
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37293
      oprot.writeStructBegin(STRUCT_DESC);
37294
 
37295
      if (this.isSetSuccess()) {
37296
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37297
        this.success.write(oprot);
37298
        oprot.writeFieldEnd();
37299
      }
37300
      oprot.writeFieldStop();
37301
      oprot.writeStructEnd();
37302
    }
37303
 
37304
    @Override
37305
    public String toString() {
37306
      StringBuilder sb = new StringBuilder("getBannerDetails_result(");
37307
      boolean first = true;
37308
 
37309
      sb.append("success:");
37310
      if (this.success == null) {
37311
        sb.append("null");
37312
      } else {
37313
        sb.append(this.success);
37314
      }
37315
      first = false;
37316
      sb.append(")");
37317
      return sb.toString();
37318
    }
37319
 
37320
    public void validate() throws org.apache.thrift.TException {
37321
      // check for required fields
37322
    }
37323
 
37324
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37325
      try {
37326
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37327
      } catch (org.apache.thrift.TException te) {
37328
        throw new java.io.IOException(te);
37329
      }
37330
    }
37331
 
37332
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37333
      try {
37334
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37335
      } catch (org.apache.thrift.TException te) {
37336
        throw new java.io.IOException(te);
37337
      }
37338
    }
37339
 
37340
  }
37341
 
37342
  public static class getActiveBanners_args implements org.apache.thrift.TBase<getActiveBanners_args, getActiveBanners_args._Fields>, java.io.Serializable, Cloneable   {
37343
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveBanners_args");
37344
 
37345
 
37346
 
37347
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37348
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37349
;
37350
 
37351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37352
 
37353
      static {
37354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37355
          byName.put(field.getFieldName(), field);
37356
        }
37357
      }
37358
 
37359
      /**
37360
       * Find the _Fields constant that matches fieldId, or null if its not found.
37361
       */
37362
      public static _Fields findByThriftId(int fieldId) {
37363
        switch(fieldId) {
37364
          default:
37365
            return null;
37366
        }
37367
      }
37368
 
37369
      /**
37370
       * Find the _Fields constant that matches fieldId, throwing an exception
37371
       * if it is not found.
37372
       */
37373
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37374
        _Fields fields = findByThriftId(fieldId);
37375
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37376
        return fields;
37377
      }
37378
 
37379
      /**
37380
       * Find the _Fields constant that matches name, or null if its not found.
37381
       */
37382
      public static _Fields findByName(String name) {
37383
        return byName.get(name);
37384
      }
37385
 
37386
      private final short _thriftId;
37387
      private final String _fieldName;
37388
 
37389
      _Fields(short thriftId, String fieldName) {
37390
        _thriftId = thriftId;
37391
        _fieldName = fieldName;
37392
      }
37393
 
37394
      public short getThriftFieldId() {
37395
        return _thriftId;
37396
      }
37397
 
37398
      public String getFieldName() {
37399
        return _fieldName;
37400
      }
37401
    }
37402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37403
    static {
37404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37405
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37406
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveBanners_args.class, metaDataMap);
37407
    }
37408
 
37409
    public getActiveBanners_args() {
37410
    }
37411
 
37412
    /**
37413
     * Performs a deep copy on <i>other</i>.
37414
     */
37415
    public getActiveBanners_args(getActiveBanners_args other) {
37416
    }
37417
 
37418
    public getActiveBanners_args deepCopy() {
37419
      return new getActiveBanners_args(this);
37420
    }
37421
 
37422
    @Override
37423
    public void clear() {
37424
    }
37425
 
37426
    public void setFieldValue(_Fields field, Object value) {
37427
      switch (field) {
37428
      }
37429
    }
37430
 
37431
    public Object getFieldValue(_Fields field) {
37432
      switch (field) {
37433
      }
37434
      throw new IllegalStateException();
37435
    }
37436
 
37437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37438
    public boolean isSet(_Fields field) {
37439
      if (field == null) {
37440
        throw new IllegalArgumentException();
37441
      }
37442
 
37443
      switch (field) {
37444
      }
37445
      throw new IllegalStateException();
37446
    }
37447
 
37448
    @Override
37449
    public boolean equals(Object that) {
37450
      if (that == null)
37451
        return false;
37452
      if (that instanceof getActiveBanners_args)
37453
        return this.equals((getActiveBanners_args)that);
37454
      return false;
37455
    }
37456
 
37457
    public boolean equals(getActiveBanners_args that) {
37458
      if (that == null)
37459
        return false;
37460
 
37461
      return true;
37462
    }
37463
 
37464
    @Override
37465
    public int hashCode() {
37466
      return 0;
37467
    }
37468
 
37469
    public int compareTo(getActiveBanners_args other) {
37470
      if (!getClass().equals(other.getClass())) {
37471
        return getClass().getName().compareTo(other.getClass().getName());
37472
      }
37473
 
37474
      int lastComparison = 0;
37475
      getActiveBanners_args typedOther = (getActiveBanners_args)other;
37476
 
37477
      return 0;
37478
    }
37479
 
37480
    public _Fields fieldForId(int fieldId) {
37481
      return _Fields.findByThriftId(fieldId);
37482
    }
37483
 
37484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37485
      org.apache.thrift.protocol.TField field;
37486
      iprot.readStructBegin();
37487
      while (true)
37488
      {
37489
        field = iprot.readFieldBegin();
37490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37491
          break;
37492
        }
37493
        switch (field.id) {
37494
          default:
37495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37496
        }
37497
        iprot.readFieldEnd();
37498
      }
37499
      iprot.readStructEnd();
37500
      validate();
37501
    }
37502
 
37503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37504
      validate();
37505
 
37506
      oprot.writeStructBegin(STRUCT_DESC);
37507
      oprot.writeFieldStop();
37508
      oprot.writeStructEnd();
37509
    }
37510
 
37511
    @Override
37512
    public String toString() {
37513
      StringBuilder sb = new StringBuilder("getActiveBanners_args(");
37514
      boolean first = true;
37515
 
37516
      sb.append(")");
37517
      return sb.toString();
37518
    }
37519
 
37520
    public void validate() throws org.apache.thrift.TException {
37521
      // check for required fields
37522
    }
37523
 
37524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37525
      try {
37526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37527
      } catch (org.apache.thrift.TException te) {
37528
        throw new java.io.IOException(te);
37529
      }
37530
    }
37531
 
37532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37533
      try {
37534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37535
      } catch (org.apache.thrift.TException te) {
37536
        throw new java.io.IOException(te);
37537
      }
37538
    }
37539
 
37540
  }
37541
 
37542
  public static class getActiveBanners_result implements org.apache.thrift.TBase<getActiveBanners_result, getActiveBanners_result._Fields>, java.io.Serializable, Cloneable   {
37543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveBanners_result");
37544
 
37545
    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);
37546
 
37547
    private List<Banner> success; // required
37548
 
37549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37551
      SUCCESS((short)0, "success");
37552
 
37553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37554
 
37555
      static {
37556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37557
          byName.put(field.getFieldName(), field);
37558
        }
37559
      }
37560
 
37561
      /**
37562
       * Find the _Fields constant that matches fieldId, or null if its not found.
37563
       */
37564
      public static _Fields findByThriftId(int fieldId) {
37565
        switch(fieldId) {
37566
          case 0: // SUCCESS
37567
            return SUCCESS;
37568
          default:
37569
            return null;
37570
        }
37571
      }
37572
 
37573
      /**
37574
       * Find the _Fields constant that matches fieldId, throwing an exception
37575
       * if it is not found.
37576
       */
37577
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37578
        _Fields fields = findByThriftId(fieldId);
37579
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37580
        return fields;
37581
      }
37582
 
37583
      /**
37584
       * Find the _Fields constant that matches name, or null if its not found.
37585
       */
37586
      public static _Fields findByName(String name) {
37587
        return byName.get(name);
37588
      }
37589
 
37590
      private final short _thriftId;
37591
      private final String _fieldName;
37592
 
37593
      _Fields(short thriftId, String fieldName) {
37594
        _thriftId = thriftId;
37595
        _fieldName = fieldName;
37596
      }
37597
 
37598
      public short getThriftFieldId() {
37599
        return _thriftId;
37600
      }
37601
 
37602
      public String getFieldName() {
37603
        return _fieldName;
37604
      }
37605
    }
37606
 
37607
    // isset id assignments
37608
 
37609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37610
    static {
37611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37612
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37613
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37614
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class))));
37615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveBanners_result.class, metaDataMap);
37617
    }
37618
 
37619
    public getActiveBanners_result() {
37620
    }
37621
 
37622
    public getActiveBanners_result(
37623
      List<Banner> success)
37624
    {
37625
      this();
37626
      this.success = success;
37627
    }
37628
 
37629
    /**
37630
     * Performs a deep copy on <i>other</i>.
37631
     */
37632
    public getActiveBanners_result(getActiveBanners_result other) {
37633
      if (other.isSetSuccess()) {
37634
        List<Banner> __this__success = new ArrayList<Banner>();
37635
        for (Banner other_element : other.success) {
37636
          __this__success.add(new Banner(other_element));
37637
        }
37638
        this.success = __this__success;
37639
      }
37640
    }
37641
 
37642
    public getActiveBanners_result deepCopy() {
37643
      return new getActiveBanners_result(this);
37644
    }
37645
 
37646
    @Override
37647
    public void clear() {
37648
      this.success = null;
37649
    }
37650
 
37651
    public int getSuccessSize() {
37652
      return (this.success == null) ? 0 : this.success.size();
37653
    }
37654
 
37655
    public java.util.Iterator<Banner> getSuccessIterator() {
37656
      return (this.success == null) ? null : this.success.iterator();
37657
    }
37658
 
37659
    public void addToSuccess(Banner elem) {
37660
      if (this.success == null) {
37661
        this.success = new ArrayList<Banner>();
37662
      }
37663
      this.success.add(elem);
37664
    }
37665
 
37666
    public List<Banner> getSuccess() {
37667
      return this.success;
37668
    }
37669
 
37670
    public void setSuccess(List<Banner> success) {
37671
      this.success = success;
37672
    }
37673
 
37674
    public void unsetSuccess() {
37675
      this.success = null;
37676
    }
37677
 
37678
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37679
    public boolean isSetSuccess() {
37680
      return this.success != null;
37681
    }
37682
 
37683
    public void setSuccessIsSet(boolean value) {
37684
      if (!value) {
37685
        this.success = null;
37686
      }
37687
    }
37688
 
37689
    public void setFieldValue(_Fields field, Object value) {
37690
      switch (field) {
37691
      case SUCCESS:
37692
        if (value == null) {
37693
          unsetSuccess();
37694
        } else {
37695
          setSuccess((List<Banner>)value);
37696
        }
37697
        break;
37698
 
37699
      }
37700
    }
37701
 
37702
    public Object getFieldValue(_Fields field) {
37703
      switch (field) {
37704
      case SUCCESS:
37705
        return getSuccess();
37706
 
37707
      }
37708
      throw new IllegalStateException();
37709
    }
37710
 
37711
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37712
    public boolean isSet(_Fields field) {
37713
      if (field == null) {
37714
        throw new IllegalArgumentException();
37715
      }
37716
 
37717
      switch (field) {
37718
      case SUCCESS:
37719
        return isSetSuccess();
37720
      }
37721
      throw new IllegalStateException();
37722
    }
37723
 
37724
    @Override
37725
    public boolean equals(Object that) {
37726
      if (that == null)
37727
        return false;
37728
      if (that instanceof getActiveBanners_result)
37729
        return this.equals((getActiveBanners_result)that);
37730
      return false;
37731
    }
37732
 
37733
    public boolean equals(getActiveBanners_result that) {
37734
      if (that == null)
37735
        return false;
37736
 
37737
      boolean this_present_success = true && this.isSetSuccess();
37738
      boolean that_present_success = true && that.isSetSuccess();
37739
      if (this_present_success || that_present_success) {
37740
        if (!(this_present_success && that_present_success))
37741
          return false;
37742
        if (!this.success.equals(that.success))
37743
          return false;
37744
      }
37745
 
37746
      return true;
37747
    }
37748
 
37749
    @Override
37750
    public int hashCode() {
37751
      return 0;
37752
    }
37753
 
37754
    public int compareTo(getActiveBanners_result other) {
37755
      if (!getClass().equals(other.getClass())) {
37756
        return getClass().getName().compareTo(other.getClass().getName());
37757
      }
37758
 
37759
      int lastComparison = 0;
37760
      getActiveBanners_result typedOther = (getActiveBanners_result)other;
37761
 
37762
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37763
      if (lastComparison != 0) {
37764
        return lastComparison;
37765
      }
37766
      if (isSetSuccess()) {
37767
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37768
        if (lastComparison != 0) {
37769
          return lastComparison;
37770
        }
37771
      }
37772
      return 0;
37773
    }
37774
 
37775
    public _Fields fieldForId(int fieldId) {
37776
      return _Fields.findByThriftId(fieldId);
37777
    }
37778
 
37779
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37780
      org.apache.thrift.protocol.TField field;
37781
      iprot.readStructBegin();
37782
      while (true)
37783
      {
37784
        field = iprot.readFieldBegin();
37785
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37786
          break;
37787
        }
37788
        switch (field.id) {
37789
          case 0: // SUCCESS
37790
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37791
              {
37792
                org.apache.thrift.protocol.TList _list98 = iprot.readListBegin();
37793
                this.success = new ArrayList<Banner>(_list98.size);
37794
                for (int _i99 = 0; _i99 < _list98.size; ++_i99)
37795
                {
37796
                  Banner _elem100; // required
37797
                  _elem100 = new Banner();
37798
                  _elem100.read(iprot);
37799
                  this.success.add(_elem100);
37800
                }
37801
                iprot.readListEnd();
37802
              }
37803
            } else { 
37804
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37805
            }
37806
            break;
37807
          default:
37808
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37809
        }
37810
        iprot.readFieldEnd();
37811
      }
37812
      iprot.readStructEnd();
37813
      validate();
37814
    }
37815
 
37816
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37817
      oprot.writeStructBegin(STRUCT_DESC);
37818
 
37819
      if (this.isSetSuccess()) {
37820
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37821
        {
37822
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37823
          for (Banner _iter101 : this.success)
37824
          {
37825
            _iter101.write(oprot);
37826
          }
37827
          oprot.writeListEnd();
37828
        }
37829
        oprot.writeFieldEnd();
37830
      }
37831
      oprot.writeFieldStop();
37832
      oprot.writeStructEnd();
37833
    }
37834
 
37835
    @Override
37836
    public String toString() {
37837
      StringBuilder sb = new StringBuilder("getActiveBanners_result(");
37838
      boolean first = true;
37839
 
37840
      sb.append("success:");
37841
      if (this.success == null) {
37842
        sb.append("null");
37843
      } else {
37844
        sb.append(this.success);
37845
      }
37846
      first = false;
37847
      sb.append(")");
37848
      return sb.toString();
37849
    }
37850
 
37851
    public void validate() throws org.apache.thrift.TException {
37852
      // check for required fields
37853
    }
37854
 
37855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37856
      try {
37857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37858
      } catch (org.apache.thrift.TException te) {
37859
        throw new java.io.IOException(te);
37860
      }
37861
    }
37862
 
37863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37864
      try {
37865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37866
      } catch (org.apache.thrift.TException te) {
37867
        throw new java.io.IOException(te);
37868
      }
37869
    }
37870
 
37871
  }
37872
 
6849 kshitij.so 37873
  public static class addBannerMap_args implements org.apache.thrift.TBase<addBannerMap_args, addBannerMap_args._Fields>, java.io.Serializable, Cloneable   {
37874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBannerMap_args");
37875
 
37876
    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);
37877
    private static final org.apache.thrift.protocol.TField MAP_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("mapLink", org.apache.thrift.protocol.TType.STRING, (short)2);
37878
    private static final org.apache.thrift.protocol.TField COORDINATES_FIELD_DESC = new org.apache.thrift.protocol.TField("coordinates", org.apache.thrift.protocol.TType.STRING, (short)3);
37879
 
37880
    private String bannerName; // required
37881
    private String mapLink; // required
37882
    private String coordinates; // required
37883
 
37884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37886
      BANNER_NAME((short)1, "bannerName"),
37887
      MAP_LINK((short)2, "mapLink"),
37888
      COORDINATES((short)3, "coordinates");
37889
 
37890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37891
 
37892
      static {
37893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37894
          byName.put(field.getFieldName(), field);
37895
        }
37896
      }
37897
 
37898
      /**
37899
       * Find the _Fields constant that matches fieldId, or null if its not found.
37900
       */
37901
      public static _Fields findByThriftId(int fieldId) {
37902
        switch(fieldId) {
37903
          case 1: // BANNER_NAME
37904
            return BANNER_NAME;
37905
          case 2: // MAP_LINK
37906
            return MAP_LINK;
37907
          case 3: // COORDINATES
37908
            return COORDINATES;
37909
          default:
37910
            return null;
37911
        }
37912
      }
37913
 
37914
      /**
37915
       * Find the _Fields constant that matches fieldId, throwing an exception
37916
       * if it is not found.
37917
       */
37918
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37919
        _Fields fields = findByThriftId(fieldId);
37920
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37921
        return fields;
37922
      }
37923
 
37924
      /**
37925
       * Find the _Fields constant that matches name, or null if its not found.
37926
       */
37927
      public static _Fields findByName(String name) {
37928
        return byName.get(name);
37929
      }
37930
 
37931
      private final short _thriftId;
37932
      private final String _fieldName;
37933
 
37934
      _Fields(short thriftId, String fieldName) {
37935
        _thriftId = thriftId;
37936
        _fieldName = fieldName;
37937
      }
37938
 
37939
      public short getThriftFieldId() {
37940
        return _thriftId;
37941
      }
37942
 
37943
      public String getFieldName() {
37944
        return _fieldName;
37945
      }
37946
    }
37947
 
37948
    // isset id assignments
37949
 
37950
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37951
    static {
37952
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37953
      tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37955
      tmpMap.put(_Fields.MAP_LINK, new org.apache.thrift.meta_data.FieldMetaData("mapLink", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37957
      tmpMap.put(_Fields.COORDINATES, new org.apache.thrift.meta_data.FieldMetaData("coordinates", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBannerMap_args.class, metaDataMap);
37961
    }
37962
 
37963
    public addBannerMap_args() {
37964
    }
37965
 
37966
    public addBannerMap_args(
37967
      String bannerName,
37968
      String mapLink,
37969
      String coordinates)
37970
    {
37971
      this();
37972
      this.bannerName = bannerName;
37973
      this.mapLink = mapLink;
37974
      this.coordinates = coordinates;
37975
    }
37976
 
37977
    /**
37978
     * Performs a deep copy on <i>other</i>.
37979
     */
37980
    public addBannerMap_args(addBannerMap_args other) {
37981
      if (other.isSetBannerName()) {
37982
        this.bannerName = other.bannerName;
37983
      }
37984
      if (other.isSetMapLink()) {
37985
        this.mapLink = other.mapLink;
37986
      }
37987
      if (other.isSetCoordinates()) {
37988
        this.coordinates = other.coordinates;
37989
      }
37990
    }
37991
 
37992
    public addBannerMap_args deepCopy() {
37993
      return new addBannerMap_args(this);
37994
    }
37995
 
37996
    @Override
37997
    public void clear() {
37998
      this.bannerName = null;
37999
      this.mapLink = null;
38000
      this.coordinates = null;
38001
    }
38002
 
38003
    public String getBannerName() {
38004
      return this.bannerName;
38005
    }
38006
 
38007
    public void setBannerName(String bannerName) {
38008
      this.bannerName = bannerName;
38009
    }
38010
 
38011
    public void unsetBannerName() {
38012
      this.bannerName = null;
38013
    }
38014
 
38015
    /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
38016
    public boolean isSetBannerName() {
38017
      return this.bannerName != null;
38018
    }
38019
 
38020
    public void setBannerNameIsSet(boolean value) {
38021
      if (!value) {
38022
        this.bannerName = null;
38023
      }
38024
    }
38025
 
38026
    public String getMapLink() {
38027
      return this.mapLink;
38028
    }
38029
 
38030
    public void setMapLink(String mapLink) {
38031
      this.mapLink = mapLink;
38032
    }
38033
 
38034
    public void unsetMapLink() {
38035
      this.mapLink = null;
38036
    }
38037
 
38038
    /** Returns true if field mapLink is set (has been assigned a value) and false otherwise */
38039
    public boolean isSetMapLink() {
38040
      return this.mapLink != null;
38041
    }
38042
 
38043
    public void setMapLinkIsSet(boolean value) {
38044
      if (!value) {
38045
        this.mapLink = null;
38046
      }
38047
    }
38048
 
38049
    public String getCoordinates() {
38050
      return this.coordinates;
38051
    }
38052
 
38053
    public void setCoordinates(String coordinates) {
38054
      this.coordinates = coordinates;
38055
    }
38056
 
38057
    public void unsetCoordinates() {
38058
      this.coordinates = null;
38059
    }
38060
 
38061
    /** Returns true if field coordinates is set (has been assigned a value) and false otherwise */
38062
    public boolean isSetCoordinates() {
38063
      return this.coordinates != null;
38064
    }
38065
 
38066
    public void setCoordinatesIsSet(boolean value) {
38067
      if (!value) {
38068
        this.coordinates = null;
38069
      }
38070
    }
38071
 
38072
    public void setFieldValue(_Fields field, Object value) {
38073
      switch (field) {
38074
      case BANNER_NAME:
38075
        if (value == null) {
38076
          unsetBannerName();
38077
        } else {
38078
          setBannerName((String)value);
38079
        }
38080
        break;
38081
 
38082
      case MAP_LINK:
38083
        if (value == null) {
38084
          unsetMapLink();
38085
        } else {
38086
          setMapLink((String)value);
38087
        }
38088
        break;
38089
 
38090
      case COORDINATES:
38091
        if (value == null) {
38092
          unsetCoordinates();
38093
        } else {
38094
          setCoordinates((String)value);
38095
        }
38096
        break;
38097
 
38098
      }
38099
    }
38100
 
38101
    public Object getFieldValue(_Fields field) {
38102
      switch (field) {
38103
      case BANNER_NAME:
38104
        return getBannerName();
38105
 
38106
      case MAP_LINK:
38107
        return getMapLink();
38108
 
38109
      case COORDINATES:
38110
        return getCoordinates();
38111
 
38112
      }
38113
      throw new IllegalStateException();
38114
    }
38115
 
38116
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38117
    public boolean isSet(_Fields field) {
38118
      if (field == null) {
38119
        throw new IllegalArgumentException();
38120
      }
38121
 
38122
      switch (field) {
38123
      case BANNER_NAME:
38124
        return isSetBannerName();
38125
      case MAP_LINK:
38126
        return isSetMapLink();
38127
      case COORDINATES:
38128
        return isSetCoordinates();
38129
      }
38130
      throw new IllegalStateException();
38131
    }
38132
 
38133
    @Override
38134
    public boolean equals(Object that) {
38135
      if (that == null)
38136
        return false;
38137
      if (that instanceof addBannerMap_args)
38138
        return this.equals((addBannerMap_args)that);
38139
      return false;
38140
    }
38141
 
38142
    public boolean equals(addBannerMap_args that) {
38143
      if (that == null)
38144
        return false;
38145
 
38146
      boolean this_present_bannerName = true && this.isSetBannerName();
38147
      boolean that_present_bannerName = true && that.isSetBannerName();
38148
      if (this_present_bannerName || that_present_bannerName) {
38149
        if (!(this_present_bannerName && that_present_bannerName))
38150
          return false;
38151
        if (!this.bannerName.equals(that.bannerName))
38152
          return false;
38153
      }
38154
 
38155
      boolean this_present_mapLink = true && this.isSetMapLink();
38156
      boolean that_present_mapLink = true && that.isSetMapLink();
38157
      if (this_present_mapLink || that_present_mapLink) {
38158
        if (!(this_present_mapLink && that_present_mapLink))
38159
          return false;
38160
        if (!this.mapLink.equals(that.mapLink))
38161
          return false;
38162
      }
38163
 
38164
      boolean this_present_coordinates = true && this.isSetCoordinates();
38165
      boolean that_present_coordinates = true && that.isSetCoordinates();
38166
      if (this_present_coordinates || that_present_coordinates) {
38167
        if (!(this_present_coordinates && that_present_coordinates))
38168
          return false;
38169
        if (!this.coordinates.equals(that.coordinates))
38170
          return false;
38171
      }
38172
 
38173
      return true;
38174
    }
38175
 
38176
    @Override
38177
    public int hashCode() {
38178
      return 0;
38179
    }
38180
 
38181
    public int compareTo(addBannerMap_args other) {
38182
      if (!getClass().equals(other.getClass())) {
38183
        return getClass().getName().compareTo(other.getClass().getName());
38184
      }
38185
 
38186
      int lastComparison = 0;
38187
      addBannerMap_args typedOther = (addBannerMap_args)other;
38188
 
38189
      lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
38190
      if (lastComparison != 0) {
38191
        return lastComparison;
38192
      }
38193
      if (isSetBannerName()) {
38194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
38195
        if (lastComparison != 0) {
38196
          return lastComparison;
38197
        }
38198
      }
38199
      lastComparison = Boolean.valueOf(isSetMapLink()).compareTo(typedOther.isSetMapLink());
38200
      if (lastComparison != 0) {
38201
        return lastComparison;
38202
      }
38203
      if (isSetMapLink()) {
38204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapLink, typedOther.mapLink);
38205
        if (lastComparison != 0) {
38206
          return lastComparison;
38207
        }
38208
      }
38209
      lastComparison = Boolean.valueOf(isSetCoordinates()).compareTo(typedOther.isSetCoordinates());
38210
      if (lastComparison != 0) {
38211
        return lastComparison;
38212
      }
38213
      if (isSetCoordinates()) {
38214
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coordinates, typedOther.coordinates);
38215
        if (lastComparison != 0) {
38216
          return lastComparison;
38217
        }
38218
      }
38219
      return 0;
38220
    }
38221
 
38222
    public _Fields fieldForId(int fieldId) {
38223
      return _Fields.findByThriftId(fieldId);
38224
    }
38225
 
38226
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38227
      org.apache.thrift.protocol.TField field;
38228
      iprot.readStructBegin();
38229
      while (true)
38230
      {
38231
        field = iprot.readFieldBegin();
38232
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38233
          break;
38234
        }
38235
        switch (field.id) {
38236
          case 1: // BANNER_NAME
38237
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
38238
              this.bannerName = iprot.readString();
38239
            } else { 
38240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38241
            }
38242
            break;
38243
          case 2: // MAP_LINK
38244
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
38245
              this.mapLink = iprot.readString();
38246
            } else { 
38247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38248
            }
38249
            break;
38250
          case 3: // COORDINATES
38251
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
38252
              this.coordinates = iprot.readString();
38253
            } else { 
38254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38255
            }
38256
            break;
38257
          default:
38258
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38259
        }
38260
        iprot.readFieldEnd();
38261
      }
38262
      iprot.readStructEnd();
38263
      validate();
38264
    }
38265
 
38266
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38267
      validate();
38268
 
38269
      oprot.writeStructBegin(STRUCT_DESC);
38270
      if (this.bannerName != null) {
38271
        oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
38272
        oprot.writeString(this.bannerName);
38273
        oprot.writeFieldEnd();
38274
      }
38275
      if (this.mapLink != null) {
38276
        oprot.writeFieldBegin(MAP_LINK_FIELD_DESC);
38277
        oprot.writeString(this.mapLink);
38278
        oprot.writeFieldEnd();
38279
      }
38280
      if (this.coordinates != null) {
38281
        oprot.writeFieldBegin(COORDINATES_FIELD_DESC);
38282
        oprot.writeString(this.coordinates);
38283
        oprot.writeFieldEnd();
38284
      }
38285
      oprot.writeFieldStop();
38286
      oprot.writeStructEnd();
38287
    }
38288
 
38289
    @Override
38290
    public String toString() {
38291
      StringBuilder sb = new StringBuilder("addBannerMap_args(");
38292
      boolean first = true;
38293
 
38294
      sb.append("bannerName:");
38295
      if (this.bannerName == null) {
38296
        sb.append("null");
38297
      } else {
38298
        sb.append(this.bannerName);
38299
      }
38300
      first = false;
38301
      if (!first) sb.append(", ");
38302
      sb.append("mapLink:");
38303
      if (this.mapLink == null) {
38304
        sb.append("null");
38305
      } else {
38306
        sb.append(this.mapLink);
38307
      }
38308
      first = false;
38309
      if (!first) sb.append(", ");
38310
      sb.append("coordinates:");
38311
      if (this.coordinates == null) {
38312
        sb.append("null");
38313
      } else {
38314
        sb.append(this.coordinates);
38315
      }
38316
      first = false;
38317
      sb.append(")");
38318
      return sb.toString();
38319
    }
38320
 
38321
    public void validate() throws org.apache.thrift.TException {
38322
      // check for required fields
38323
    }
38324
 
38325
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38326
      try {
38327
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38328
      } catch (org.apache.thrift.TException te) {
38329
        throw new java.io.IOException(te);
38330
      }
38331
    }
38332
 
38333
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38334
      try {
38335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38336
      } catch (org.apache.thrift.TException te) {
38337
        throw new java.io.IOException(te);
38338
      }
38339
    }
38340
 
38341
  }
38342
 
38343
  public static class addBannerMap_result implements org.apache.thrift.TBase<addBannerMap_result, addBannerMap_result._Fields>, java.io.Serializable, Cloneable   {
38344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBannerMap_result");
38345
 
38346
    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);
38347
 
38348
    private boolean success; // required
38349
 
38350
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38351
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38352
      SUCCESS((short)0, "success");
38353
 
38354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38355
 
38356
      static {
38357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38358
          byName.put(field.getFieldName(), field);
38359
        }
38360
      }
38361
 
38362
      /**
38363
       * Find the _Fields constant that matches fieldId, or null if its not found.
38364
       */
38365
      public static _Fields findByThriftId(int fieldId) {
38366
        switch(fieldId) {
38367
          case 0: // SUCCESS
38368
            return SUCCESS;
38369
          default:
38370
            return null;
38371
        }
38372
      }
38373
 
38374
      /**
38375
       * Find the _Fields constant that matches fieldId, throwing an exception
38376
       * if it is not found.
38377
       */
38378
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38379
        _Fields fields = findByThriftId(fieldId);
38380
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38381
        return fields;
38382
      }
38383
 
38384
      /**
38385
       * Find the _Fields constant that matches name, or null if its not found.
38386
       */
38387
      public static _Fields findByName(String name) {
38388
        return byName.get(name);
38389
      }
38390
 
38391
      private final short _thriftId;
38392
      private final String _fieldName;
38393
 
38394
      _Fields(short thriftId, String fieldName) {
38395
        _thriftId = thriftId;
38396
        _fieldName = fieldName;
38397
      }
38398
 
38399
      public short getThriftFieldId() {
38400
        return _thriftId;
38401
      }
38402
 
38403
      public String getFieldName() {
38404
        return _fieldName;
38405
      }
38406
    }
38407
 
38408
    // isset id assignments
38409
    private static final int __SUCCESS_ISSET_ID = 0;
38410
    private BitSet __isset_bit_vector = new BitSet(1);
38411
 
38412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38413
    static {
38414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38415
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38416
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
38417
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38418
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBannerMap_result.class, metaDataMap);
38419
    }
38420
 
38421
    public addBannerMap_result() {
38422
    }
38423
 
38424
    public addBannerMap_result(
38425
      boolean success)
38426
    {
38427
      this();
38428
      this.success = success;
38429
      setSuccessIsSet(true);
38430
    }
38431
 
38432
    /**
38433
     * Performs a deep copy on <i>other</i>.
38434
     */
38435
    public addBannerMap_result(addBannerMap_result other) {
38436
      __isset_bit_vector.clear();
38437
      __isset_bit_vector.or(other.__isset_bit_vector);
38438
      this.success = other.success;
38439
    }
38440
 
38441
    public addBannerMap_result deepCopy() {
38442
      return new addBannerMap_result(this);
38443
    }
38444
 
38445
    @Override
38446
    public void clear() {
38447
      setSuccessIsSet(false);
38448
      this.success = false;
38449
    }
38450
 
38451
    public boolean isSuccess() {
38452
      return this.success;
38453
    }
38454
 
38455
    public void setSuccess(boolean success) {
38456
      this.success = success;
38457
      setSuccessIsSet(true);
38458
    }
38459
 
38460
    public void unsetSuccess() {
38461
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
38462
    }
38463
 
38464
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
38465
    public boolean isSetSuccess() {
38466
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
38467
    }
38468
 
38469
    public void setSuccessIsSet(boolean value) {
38470
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
38471
    }
38472
 
38473
    public void setFieldValue(_Fields field, Object value) {
38474
      switch (field) {
38475
      case SUCCESS:
38476
        if (value == null) {
38477
          unsetSuccess();
38478
        } else {
38479
          setSuccess((Boolean)value);
38480
        }
38481
        break;
38482
 
38483
      }
38484
    }
38485
 
38486
    public Object getFieldValue(_Fields field) {
38487
      switch (field) {
38488
      case SUCCESS:
38489
        return Boolean.valueOf(isSuccess());
38490
 
38491
      }
38492
      throw new IllegalStateException();
38493
    }
38494
 
38495
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38496
    public boolean isSet(_Fields field) {
38497
      if (field == null) {
38498
        throw new IllegalArgumentException();
38499
      }
38500
 
38501
      switch (field) {
38502
      case SUCCESS:
38503
        return isSetSuccess();
38504
      }
38505
      throw new IllegalStateException();
38506
    }
38507
 
38508
    @Override
38509
    public boolean equals(Object that) {
38510
      if (that == null)
38511
        return false;
38512
      if (that instanceof addBannerMap_result)
38513
        return this.equals((addBannerMap_result)that);
38514
      return false;
38515
    }
38516
 
38517
    public boolean equals(addBannerMap_result that) {
38518
      if (that == null)
38519
        return false;
38520
 
38521
      boolean this_present_success = true;
38522
      boolean that_present_success = true;
38523
      if (this_present_success || that_present_success) {
38524
        if (!(this_present_success && that_present_success))
38525
          return false;
38526
        if (this.success != that.success)
38527
          return false;
38528
      }
38529
 
38530
      return true;
38531
    }
38532
 
38533
    @Override
38534
    public int hashCode() {
38535
      return 0;
38536
    }
38537
 
38538
    public int compareTo(addBannerMap_result other) {
38539
      if (!getClass().equals(other.getClass())) {
38540
        return getClass().getName().compareTo(other.getClass().getName());
38541
      }
38542
 
38543
      int lastComparison = 0;
38544
      addBannerMap_result typedOther = (addBannerMap_result)other;
38545
 
38546
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
38547
      if (lastComparison != 0) {
38548
        return lastComparison;
38549
      }
38550
      if (isSetSuccess()) {
38551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38552
        if (lastComparison != 0) {
38553
          return lastComparison;
38554
        }
38555
      }
38556
      return 0;
38557
    }
38558
 
38559
    public _Fields fieldForId(int fieldId) {
38560
      return _Fields.findByThriftId(fieldId);
38561
    }
38562
 
38563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38564
      org.apache.thrift.protocol.TField field;
38565
      iprot.readStructBegin();
38566
      while (true)
38567
      {
38568
        field = iprot.readFieldBegin();
38569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38570
          break;
38571
        }
38572
        switch (field.id) {
38573
          case 0: // SUCCESS
38574
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
38575
              this.success = iprot.readBool();
38576
              setSuccessIsSet(true);
38577
            } else { 
38578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38579
            }
38580
            break;
38581
          default:
38582
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38583
        }
38584
        iprot.readFieldEnd();
38585
      }
38586
      iprot.readStructEnd();
38587
      validate();
38588
    }
38589
 
38590
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38591
      oprot.writeStructBegin(STRUCT_DESC);
38592
 
38593
      if (this.isSetSuccess()) {
38594
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38595
        oprot.writeBool(this.success);
38596
        oprot.writeFieldEnd();
38597
      }
38598
      oprot.writeFieldStop();
38599
      oprot.writeStructEnd();
38600
    }
38601
 
38602
    @Override
38603
    public String toString() {
38604
      StringBuilder sb = new StringBuilder("addBannerMap_result(");
38605
      boolean first = true;
38606
 
38607
      sb.append("success:");
38608
      sb.append(this.success);
38609
      first = false;
38610
      sb.append(")");
38611
      return sb.toString();
38612
    }
38613
 
38614
    public void validate() throws org.apache.thrift.TException {
38615
      // check for required fields
38616
    }
38617
 
38618
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38619
      try {
38620
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38621
      } catch (org.apache.thrift.TException te) {
38622
        throw new java.io.IOException(te);
38623
      }
38624
    }
38625
 
38626
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38627
      try {
38628
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38629
      } catch (org.apache.thrift.TException te) {
38630
        throw new java.io.IOException(te);
38631
      }
38632
    }
38633
 
38634
  }
38635
 
38636
  public static class deleteBannerMap_args implements org.apache.thrift.TBase<deleteBannerMap_args, deleteBannerMap_args._Fields>, java.io.Serializable, Cloneable   {
38637
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBannerMap_args");
38638
 
38639
    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);
38640
 
38641
    private String bannerName; // required
38642
 
38643
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38644
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38645
      BANNER_NAME((short)1, "bannerName");
38646
 
38647
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38648
 
38649
      static {
38650
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38651
          byName.put(field.getFieldName(), field);
38652
        }
38653
      }
38654
 
38655
      /**
38656
       * Find the _Fields constant that matches fieldId, or null if its not found.
38657
       */
38658
      public static _Fields findByThriftId(int fieldId) {
38659
        switch(fieldId) {
38660
          case 1: // BANNER_NAME
38661
            return BANNER_NAME;
38662
          default:
38663
            return null;
38664
        }
38665
      }
38666
 
38667
      /**
38668
       * Find the _Fields constant that matches fieldId, throwing an exception
38669
       * if it is not found.
38670
       */
38671
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38672
        _Fields fields = findByThriftId(fieldId);
38673
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38674
        return fields;
38675
      }
38676
 
38677
      /**
38678
       * Find the _Fields constant that matches name, or null if its not found.
38679
       */
38680
      public static _Fields findByName(String name) {
38681
        return byName.get(name);
38682
      }
38683
 
38684
      private final short _thriftId;
38685
      private final String _fieldName;
38686
 
38687
      _Fields(short thriftId, String fieldName) {
38688
        _thriftId = thriftId;
38689
        _fieldName = fieldName;
38690
      }
38691
 
38692
      public short getThriftFieldId() {
38693
        return _thriftId;
38694
      }
38695
 
38696
      public String getFieldName() {
38697
        return _fieldName;
38698
      }
38699
    }
38700
 
38701
    // isset id assignments
38702
 
38703
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38704
    static {
38705
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38706
      tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38707
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBannerMap_args.class, metaDataMap);
38710
    }
38711
 
38712
    public deleteBannerMap_args() {
38713
    }
38714
 
38715
    public deleteBannerMap_args(
38716
      String bannerName)
38717
    {
38718
      this();
38719
      this.bannerName = bannerName;
38720
    }
38721
 
38722
    /**
38723
     * Performs a deep copy on <i>other</i>.
38724
     */
38725
    public deleteBannerMap_args(deleteBannerMap_args other) {
38726
      if (other.isSetBannerName()) {
38727
        this.bannerName = other.bannerName;
38728
      }
38729
    }
38730
 
38731
    public deleteBannerMap_args deepCopy() {
38732
      return new deleteBannerMap_args(this);
38733
    }
38734
 
38735
    @Override
38736
    public void clear() {
38737
      this.bannerName = null;
38738
    }
38739
 
38740
    public String getBannerName() {
38741
      return this.bannerName;
38742
    }
38743
 
38744
    public void setBannerName(String bannerName) {
38745
      this.bannerName = bannerName;
38746
    }
38747
 
38748
    public void unsetBannerName() {
38749
      this.bannerName = null;
38750
    }
38751
 
38752
    /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
38753
    public boolean isSetBannerName() {
38754
      return this.bannerName != null;
38755
    }
38756
 
38757
    public void setBannerNameIsSet(boolean value) {
38758
      if (!value) {
38759
        this.bannerName = null;
38760
      }
38761
    }
38762
 
38763
    public void setFieldValue(_Fields field, Object value) {
38764
      switch (field) {
38765
      case BANNER_NAME:
38766
        if (value == null) {
38767
          unsetBannerName();
38768
        } else {
38769
          setBannerName((String)value);
38770
        }
38771
        break;
38772
 
38773
      }
38774
    }
38775
 
38776
    public Object getFieldValue(_Fields field) {
38777
      switch (field) {
38778
      case BANNER_NAME:
38779
        return getBannerName();
38780
 
38781
      }
38782
      throw new IllegalStateException();
38783
    }
38784
 
38785
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38786
    public boolean isSet(_Fields field) {
38787
      if (field == null) {
38788
        throw new IllegalArgumentException();
38789
      }
38790
 
38791
      switch (field) {
38792
      case BANNER_NAME:
38793
        return isSetBannerName();
38794
      }
38795
      throw new IllegalStateException();
38796
    }
38797
 
38798
    @Override
38799
    public boolean equals(Object that) {
38800
      if (that == null)
38801
        return false;
38802
      if (that instanceof deleteBannerMap_args)
38803
        return this.equals((deleteBannerMap_args)that);
38804
      return false;
38805
    }
38806
 
38807
    public boolean equals(deleteBannerMap_args that) {
38808
      if (that == null)
38809
        return false;
38810
 
38811
      boolean this_present_bannerName = true && this.isSetBannerName();
38812
      boolean that_present_bannerName = true && that.isSetBannerName();
38813
      if (this_present_bannerName || that_present_bannerName) {
38814
        if (!(this_present_bannerName && that_present_bannerName))
38815
          return false;
38816
        if (!this.bannerName.equals(that.bannerName))
38817
          return false;
38818
      }
38819
 
38820
      return true;
38821
    }
38822
 
38823
    @Override
38824
    public int hashCode() {
38825
      return 0;
38826
    }
38827
 
38828
    public int compareTo(deleteBannerMap_args other) {
38829
      if (!getClass().equals(other.getClass())) {
38830
        return getClass().getName().compareTo(other.getClass().getName());
38831
      }
38832
 
38833
      int lastComparison = 0;
38834
      deleteBannerMap_args typedOther = (deleteBannerMap_args)other;
38835
 
38836
      lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
38837
      if (lastComparison != 0) {
38838
        return lastComparison;
38839
      }
38840
      if (isSetBannerName()) {
38841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
38842
        if (lastComparison != 0) {
38843
          return lastComparison;
38844
        }
38845
      }
38846
      return 0;
38847
    }
38848
 
38849
    public _Fields fieldForId(int fieldId) {
38850
      return _Fields.findByThriftId(fieldId);
38851
    }
38852
 
38853
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38854
      org.apache.thrift.protocol.TField field;
38855
      iprot.readStructBegin();
38856
      while (true)
38857
      {
38858
        field = iprot.readFieldBegin();
38859
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38860
          break;
38861
        }
38862
        switch (field.id) {
38863
          case 1: // BANNER_NAME
38864
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
38865
              this.bannerName = iprot.readString();
38866
            } else { 
38867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38868
            }
38869
            break;
38870
          default:
38871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38872
        }
38873
        iprot.readFieldEnd();
38874
      }
38875
      iprot.readStructEnd();
38876
      validate();
38877
    }
38878
 
38879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38880
      validate();
38881
 
38882
      oprot.writeStructBegin(STRUCT_DESC);
38883
      if (this.bannerName != null) {
38884
        oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
38885
        oprot.writeString(this.bannerName);
38886
        oprot.writeFieldEnd();
38887
      }
38888
      oprot.writeFieldStop();
38889
      oprot.writeStructEnd();
38890
    }
38891
 
38892
    @Override
38893
    public String toString() {
38894
      StringBuilder sb = new StringBuilder("deleteBannerMap_args(");
38895
      boolean first = true;
38896
 
38897
      sb.append("bannerName:");
38898
      if (this.bannerName == null) {
38899
        sb.append("null");
38900
      } else {
38901
        sb.append(this.bannerName);
38902
      }
38903
      first = false;
38904
      sb.append(")");
38905
      return sb.toString();
38906
    }
38907
 
38908
    public void validate() throws org.apache.thrift.TException {
38909
      // check for required fields
38910
    }
38911
 
38912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38913
      try {
38914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38915
      } catch (org.apache.thrift.TException te) {
38916
        throw new java.io.IOException(te);
38917
      }
38918
    }
38919
 
38920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38921
      try {
38922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38923
      } catch (org.apache.thrift.TException te) {
38924
        throw new java.io.IOException(te);
38925
      }
38926
    }
38927
 
38928
  }
38929
 
38930
  public static class deleteBannerMap_result implements org.apache.thrift.TBase<deleteBannerMap_result, deleteBannerMap_result._Fields>, java.io.Serializable, Cloneable   {
38931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBannerMap_result");
38932
 
38933
    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);
38934
 
38935
    private boolean success; // required
38936
 
38937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38939
      SUCCESS((short)0, "success");
38940
 
38941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38942
 
38943
      static {
38944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38945
          byName.put(field.getFieldName(), field);
38946
        }
38947
      }
38948
 
38949
      /**
38950
       * Find the _Fields constant that matches fieldId, or null if its not found.
38951
       */
38952
      public static _Fields findByThriftId(int fieldId) {
38953
        switch(fieldId) {
38954
          case 0: // SUCCESS
38955
            return SUCCESS;
38956
          default:
38957
            return null;
38958
        }
38959
      }
38960
 
38961
      /**
38962
       * Find the _Fields constant that matches fieldId, throwing an exception
38963
       * if it is not found.
38964
       */
38965
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38966
        _Fields fields = findByThriftId(fieldId);
38967
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38968
        return fields;
38969
      }
38970
 
38971
      /**
38972
       * Find the _Fields constant that matches name, or null if its not found.
38973
       */
38974
      public static _Fields findByName(String name) {
38975
        return byName.get(name);
38976
      }
38977
 
38978
      private final short _thriftId;
38979
      private final String _fieldName;
38980
 
38981
      _Fields(short thriftId, String fieldName) {
38982
        _thriftId = thriftId;
38983
        _fieldName = fieldName;
38984
      }
38985
 
38986
      public short getThriftFieldId() {
38987
        return _thriftId;
38988
      }
38989
 
38990
      public String getFieldName() {
38991
        return _fieldName;
38992
      }
38993
    }
38994
 
38995
    // isset id assignments
38996
    private static final int __SUCCESS_ISSET_ID = 0;
38997
    private BitSet __isset_bit_vector = new BitSet(1);
38998
 
38999
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39000
    static {
39001
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39002
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39003
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
39004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBannerMap_result.class, metaDataMap);
39006
    }
39007
 
39008
    public deleteBannerMap_result() {
39009
    }
39010
 
39011
    public deleteBannerMap_result(
39012
      boolean success)
39013
    {
39014
      this();
39015
      this.success = success;
39016
      setSuccessIsSet(true);
39017
    }
39018
 
39019
    /**
39020
     * Performs a deep copy on <i>other</i>.
39021
     */
39022
    public deleteBannerMap_result(deleteBannerMap_result other) {
39023
      __isset_bit_vector.clear();
39024
      __isset_bit_vector.or(other.__isset_bit_vector);
39025
      this.success = other.success;
39026
    }
39027
 
39028
    public deleteBannerMap_result deepCopy() {
39029
      return new deleteBannerMap_result(this);
39030
    }
39031
 
39032
    @Override
39033
    public void clear() {
39034
      setSuccessIsSet(false);
39035
      this.success = false;
39036
    }
39037
 
39038
    public boolean isSuccess() {
39039
      return this.success;
39040
    }
39041
 
39042
    public void setSuccess(boolean success) {
39043
      this.success = success;
39044
      setSuccessIsSet(true);
39045
    }
39046
 
39047
    public void unsetSuccess() {
39048
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
39049
    }
39050
 
39051
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39052
    public boolean isSetSuccess() {
39053
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
39054
    }
39055
 
39056
    public void setSuccessIsSet(boolean value) {
39057
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
39058
    }
39059
 
39060
    public void setFieldValue(_Fields field, Object value) {
39061
      switch (field) {
39062
      case SUCCESS:
39063
        if (value == null) {
39064
          unsetSuccess();
39065
        } else {
39066
          setSuccess((Boolean)value);
39067
        }
39068
        break;
39069
 
39070
      }
39071
    }
39072
 
39073
    public Object getFieldValue(_Fields field) {
39074
      switch (field) {
39075
      case SUCCESS:
39076
        return Boolean.valueOf(isSuccess());
39077
 
39078
      }
39079
      throw new IllegalStateException();
39080
    }
39081
 
39082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39083
    public boolean isSet(_Fields field) {
39084
      if (field == null) {
39085
        throw new IllegalArgumentException();
39086
      }
39087
 
39088
      switch (field) {
39089
      case SUCCESS:
39090
        return isSetSuccess();
39091
      }
39092
      throw new IllegalStateException();
39093
    }
39094
 
39095
    @Override
39096
    public boolean equals(Object that) {
39097
      if (that == null)
39098
        return false;
39099
      if (that instanceof deleteBannerMap_result)
39100
        return this.equals((deleteBannerMap_result)that);
39101
      return false;
39102
    }
39103
 
39104
    public boolean equals(deleteBannerMap_result that) {
39105
      if (that == null)
39106
        return false;
39107
 
39108
      boolean this_present_success = true;
39109
      boolean that_present_success = true;
39110
      if (this_present_success || that_present_success) {
39111
        if (!(this_present_success && that_present_success))
39112
          return false;
39113
        if (this.success != that.success)
39114
          return false;
39115
      }
39116
 
39117
      return true;
39118
    }
39119
 
39120
    @Override
39121
    public int hashCode() {
39122
      return 0;
39123
    }
39124
 
39125
    public int compareTo(deleteBannerMap_result other) {
39126
      if (!getClass().equals(other.getClass())) {
39127
        return getClass().getName().compareTo(other.getClass().getName());
39128
      }
39129
 
39130
      int lastComparison = 0;
39131
      deleteBannerMap_result typedOther = (deleteBannerMap_result)other;
39132
 
39133
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39134
      if (lastComparison != 0) {
39135
        return lastComparison;
39136
      }
39137
      if (isSetSuccess()) {
39138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39139
        if (lastComparison != 0) {
39140
          return lastComparison;
39141
        }
39142
      }
39143
      return 0;
39144
    }
39145
 
39146
    public _Fields fieldForId(int fieldId) {
39147
      return _Fields.findByThriftId(fieldId);
39148
    }
39149
 
39150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39151
      org.apache.thrift.protocol.TField field;
39152
      iprot.readStructBegin();
39153
      while (true)
39154
      {
39155
        field = iprot.readFieldBegin();
39156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39157
          break;
39158
        }
39159
        switch (field.id) {
39160
          case 0: // SUCCESS
39161
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
39162
              this.success = iprot.readBool();
39163
              setSuccessIsSet(true);
39164
            } else { 
39165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39166
            }
39167
            break;
39168
          default:
39169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39170
        }
39171
        iprot.readFieldEnd();
39172
      }
39173
      iprot.readStructEnd();
39174
      validate();
39175
    }
39176
 
39177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39178
      oprot.writeStructBegin(STRUCT_DESC);
39179
 
39180
      if (this.isSetSuccess()) {
39181
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39182
        oprot.writeBool(this.success);
39183
        oprot.writeFieldEnd();
39184
      }
39185
      oprot.writeFieldStop();
39186
      oprot.writeStructEnd();
39187
    }
39188
 
39189
    @Override
39190
    public String toString() {
39191
      StringBuilder sb = new StringBuilder("deleteBannerMap_result(");
39192
      boolean first = true;
39193
 
39194
      sb.append("success:");
39195
      sb.append(this.success);
39196
      first = false;
39197
      sb.append(")");
39198
      return sb.toString();
39199
    }
39200
 
39201
    public void validate() throws org.apache.thrift.TException {
39202
      // check for required fields
39203
    }
39204
 
39205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39206
      try {
39207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39208
      } catch (org.apache.thrift.TException te) {
39209
        throw new java.io.IOException(te);
39210
      }
39211
    }
39212
 
39213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39214
      try {
39215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39216
      } catch (org.apache.thrift.TException te) {
39217
        throw new java.io.IOException(te);
39218
      }
39219
    }
39220
 
39221
  }
39222
 
39223
  public static class getBannerMapDetails_args implements org.apache.thrift.TBase<getBannerMapDetails_args, getBannerMapDetails_args._Fields>, java.io.Serializable, Cloneable   {
39224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerMapDetails_args");
39225
 
39226
    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);
39227
 
39228
    private String bannerName; // required
39229
 
39230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39232
      BANNER_NAME((short)1, "bannerName");
39233
 
39234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39235
 
39236
      static {
39237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39238
          byName.put(field.getFieldName(), field);
39239
        }
39240
      }
39241
 
39242
      /**
39243
       * Find the _Fields constant that matches fieldId, or null if its not found.
39244
       */
39245
      public static _Fields findByThriftId(int fieldId) {
39246
        switch(fieldId) {
39247
          case 1: // BANNER_NAME
39248
            return BANNER_NAME;
39249
          default:
39250
            return null;
39251
        }
39252
      }
39253
 
39254
      /**
39255
       * Find the _Fields constant that matches fieldId, throwing an exception
39256
       * if it is not found.
39257
       */
39258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39259
        _Fields fields = findByThriftId(fieldId);
39260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39261
        return fields;
39262
      }
39263
 
39264
      /**
39265
       * Find the _Fields constant that matches name, or null if its not found.
39266
       */
39267
      public static _Fields findByName(String name) {
39268
        return byName.get(name);
39269
      }
39270
 
39271
      private final short _thriftId;
39272
      private final String _fieldName;
39273
 
39274
      _Fields(short thriftId, String fieldName) {
39275
        _thriftId = thriftId;
39276
        _fieldName = fieldName;
39277
      }
39278
 
39279
      public short getThriftFieldId() {
39280
        return _thriftId;
39281
      }
39282
 
39283
      public String getFieldName() {
39284
        return _fieldName;
39285
      }
39286
    }
39287
 
39288
    // isset id assignments
39289
 
39290
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39291
    static {
39292
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39293
      tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39294
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
39295
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39296
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerMapDetails_args.class, metaDataMap);
39297
    }
39298
 
39299
    public getBannerMapDetails_args() {
39300
    }
39301
 
39302
    public getBannerMapDetails_args(
39303
      String bannerName)
39304
    {
39305
      this();
39306
      this.bannerName = bannerName;
39307
    }
39308
 
39309
    /**
39310
     * Performs a deep copy on <i>other</i>.
39311
     */
39312
    public getBannerMapDetails_args(getBannerMapDetails_args other) {
39313
      if (other.isSetBannerName()) {
39314
        this.bannerName = other.bannerName;
39315
      }
39316
    }
39317
 
39318
    public getBannerMapDetails_args deepCopy() {
39319
      return new getBannerMapDetails_args(this);
39320
    }
39321
 
39322
    @Override
39323
    public void clear() {
39324
      this.bannerName = null;
39325
    }
39326
 
39327
    public String getBannerName() {
39328
      return this.bannerName;
39329
    }
39330
 
39331
    public void setBannerName(String bannerName) {
39332
      this.bannerName = bannerName;
39333
    }
39334
 
39335
    public void unsetBannerName() {
39336
      this.bannerName = null;
39337
    }
39338
 
39339
    /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
39340
    public boolean isSetBannerName() {
39341
      return this.bannerName != null;
39342
    }
39343
 
39344
    public void setBannerNameIsSet(boolean value) {
39345
      if (!value) {
39346
        this.bannerName = null;
39347
      }
39348
    }
39349
 
39350
    public void setFieldValue(_Fields field, Object value) {
39351
      switch (field) {
39352
      case BANNER_NAME:
39353
        if (value == null) {
39354
          unsetBannerName();
39355
        } else {
39356
          setBannerName((String)value);
39357
        }
39358
        break;
39359
 
39360
      }
39361
    }
39362
 
39363
    public Object getFieldValue(_Fields field) {
39364
      switch (field) {
39365
      case BANNER_NAME:
39366
        return getBannerName();
39367
 
39368
      }
39369
      throw new IllegalStateException();
39370
    }
39371
 
39372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39373
    public boolean isSet(_Fields field) {
39374
      if (field == null) {
39375
        throw new IllegalArgumentException();
39376
      }
39377
 
39378
      switch (field) {
39379
      case BANNER_NAME:
39380
        return isSetBannerName();
39381
      }
39382
      throw new IllegalStateException();
39383
    }
39384
 
39385
    @Override
39386
    public boolean equals(Object that) {
39387
      if (that == null)
39388
        return false;
39389
      if (that instanceof getBannerMapDetails_args)
39390
        return this.equals((getBannerMapDetails_args)that);
39391
      return false;
39392
    }
39393
 
39394
    public boolean equals(getBannerMapDetails_args that) {
39395
      if (that == null)
39396
        return false;
39397
 
39398
      boolean this_present_bannerName = true && this.isSetBannerName();
39399
      boolean that_present_bannerName = true && that.isSetBannerName();
39400
      if (this_present_bannerName || that_present_bannerName) {
39401
        if (!(this_present_bannerName && that_present_bannerName))
39402
          return false;
39403
        if (!this.bannerName.equals(that.bannerName))
39404
          return false;
39405
      }
39406
 
39407
      return true;
39408
    }
39409
 
39410
    @Override
39411
    public int hashCode() {
39412
      return 0;
39413
    }
39414
 
39415
    public int compareTo(getBannerMapDetails_args other) {
39416
      if (!getClass().equals(other.getClass())) {
39417
        return getClass().getName().compareTo(other.getClass().getName());
39418
      }
39419
 
39420
      int lastComparison = 0;
39421
      getBannerMapDetails_args typedOther = (getBannerMapDetails_args)other;
39422
 
39423
      lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
39424
      if (lastComparison != 0) {
39425
        return lastComparison;
39426
      }
39427
      if (isSetBannerName()) {
39428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
39429
        if (lastComparison != 0) {
39430
          return lastComparison;
39431
        }
39432
      }
39433
      return 0;
39434
    }
39435
 
39436
    public _Fields fieldForId(int fieldId) {
39437
      return _Fields.findByThriftId(fieldId);
39438
    }
39439
 
39440
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39441
      org.apache.thrift.protocol.TField field;
39442
      iprot.readStructBegin();
39443
      while (true)
39444
      {
39445
        field = iprot.readFieldBegin();
39446
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39447
          break;
39448
        }
39449
        switch (field.id) {
39450
          case 1: // BANNER_NAME
39451
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
39452
              this.bannerName = iprot.readString();
39453
            } else { 
39454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39455
            }
39456
            break;
39457
          default:
39458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39459
        }
39460
        iprot.readFieldEnd();
39461
      }
39462
      iprot.readStructEnd();
39463
      validate();
39464
    }
39465
 
39466
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39467
      validate();
39468
 
39469
      oprot.writeStructBegin(STRUCT_DESC);
39470
      if (this.bannerName != null) {
39471
        oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
39472
        oprot.writeString(this.bannerName);
39473
        oprot.writeFieldEnd();
39474
      }
39475
      oprot.writeFieldStop();
39476
      oprot.writeStructEnd();
39477
    }
39478
 
39479
    @Override
39480
    public String toString() {
39481
      StringBuilder sb = new StringBuilder("getBannerMapDetails_args(");
39482
      boolean first = true;
39483
 
39484
      sb.append("bannerName:");
39485
      if (this.bannerName == null) {
39486
        sb.append("null");
39487
      } else {
39488
        sb.append(this.bannerName);
39489
      }
39490
      first = false;
39491
      sb.append(")");
39492
      return sb.toString();
39493
    }
39494
 
39495
    public void validate() throws org.apache.thrift.TException {
39496
      // check for required fields
39497
    }
39498
 
39499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39500
      try {
39501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39502
      } catch (org.apache.thrift.TException te) {
39503
        throw new java.io.IOException(te);
39504
      }
39505
    }
39506
 
39507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39508
      try {
39509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39510
      } catch (org.apache.thrift.TException te) {
39511
        throw new java.io.IOException(te);
39512
      }
39513
    }
39514
 
39515
  }
39516
 
39517
  public static class getBannerMapDetails_result implements org.apache.thrift.TBase<getBannerMapDetails_result, getBannerMapDetails_result._Fields>, java.io.Serializable, Cloneable   {
39518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBannerMapDetails_result");
39519
 
39520
    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);
39521
 
39522
    private List<BannerMap> success; // required
39523
 
39524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39526
      SUCCESS((short)0, "success");
39527
 
39528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39529
 
39530
      static {
39531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39532
          byName.put(field.getFieldName(), field);
39533
        }
39534
      }
39535
 
39536
      /**
39537
       * Find the _Fields constant that matches fieldId, or null if its not found.
39538
       */
39539
      public static _Fields findByThriftId(int fieldId) {
39540
        switch(fieldId) {
39541
          case 0: // SUCCESS
39542
            return SUCCESS;
39543
          default:
39544
            return null;
39545
        }
39546
      }
39547
 
39548
      /**
39549
       * Find the _Fields constant that matches fieldId, throwing an exception
39550
       * if it is not found.
39551
       */
39552
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39553
        _Fields fields = findByThriftId(fieldId);
39554
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39555
        return fields;
39556
      }
39557
 
39558
      /**
39559
       * Find the _Fields constant that matches name, or null if its not found.
39560
       */
39561
      public static _Fields findByName(String name) {
39562
        return byName.get(name);
39563
      }
39564
 
39565
      private final short _thriftId;
39566
      private final String _fieldName;
39567
 
39568
      _Fields(short thriftId, String fieldName) {
39569
        _thriftId = thriftId;
39570
        _fieldName = fieldName;
39571
      }
39572
 
39573
      public short getThriftFieldId() {
39574
        return _thriftId;
39575
      }
39576
 
39577
      public String getFieldName() {
39578
        return _fieldName;
39579
      }
39580
    }
39581
 
39582
    // isset id assignments
39583
 
39584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39585
    static {
39586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39587
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39588
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39589
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerMap.class))));
39590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBannerMapDetails_result.class, metaDataMap);
39592
    }
39593
 
39594
    public getBannerMapDetails_result() {
39595
    }
39596
 
39597
    public getBannerMapDetails_result(
39598
      List<BannerMap> success)
39599
    {
39600
      this();
39601
      this.success = success;
39602
    }
39603
 
39604
    /**
39605
     * Performs a deep copy on <i>other</i>.
39606
     */
39607
    public getBannerMapDetails_result(getBannerMapDetails_result other) {
39608
      if (other.isSetSuccess()) {
39609
        List<BannerMap> __this__success = new ArrayList<BannerMap>();
39610
        for (BannerMap other_element : other.success) {
39611
          __this__success.add(new BannerMap(other_element));
39612
        }
39613
        this.success = __this__success;
39614
      }
39615
    }
39616
 
39617
    public getBannerMapDetails_result deepCopy() {
39618
      return new getBannerMapDetails_result(this);
39619
    }
39620
 
39621
    @Override
39622
    public void clear() {
39623
      this.success = null;
39624
    }
39625
 
39626
    public int getSuccessSize() {
39627
      return (this.success == null) ? 0 : this.success.size();
39628
    }
39629
 
39630
    public java.util.Iterator<BannerMap> getSuccessIterator() {
39631
      return (this.success == null) ? null : this.success.iterator();
39632
    }
39633
 
39634
    public void addToSuccess(BannerMap elem) {
39635
      if (this.success == null) {
39636
        this.success = new ArrayList<BannerMap>();
39637
      }
39638
      this.success.add(elem);
39639
    }
39640
 
39641
    public List<BannerMap> getSuccess() {
39642
      return this.success;
39643
    }
39644
 
39645
    public void setSuccess(List<BannerMap> success) {
39646
      this.success = success;
39647
    }
39648
 
39649
    public void unsetSuccess() {
39650
      this.success = null;
39651
    }
39652
 
39653
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39654
    public boolean isSetSuccess() {
39655
      return this.success != null;
39656
    }
39657
 
39658
    public void setSuccessIsSet(boolean value) {
39659
      if (!value) {
39660
        this.success = null;
39661
      }
39662
    }
39663
 
39664
    public void setFieldValue(_Fields field, Object value) {
39665
      switch (field) {
39666
      case SUCCESS:
39667
        if (value == null) {
39668
          unsetSuccess();
39669
        } else {
39670
          setSuccess((List<BannerMap>)value);
39671
        }
39672
        break;
39673
 
39674
      }
39675
    }
39676
 
39677
    public Object getFieldValue(_Fields field) {
39678
      switch (field) {
39679
      case SUCCESS:
39680
        return getSuccess();
39681
 
39682
      }
39683
      throw new IllegalStateException();
39684
    }
39685
 
39686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39687
    public boolean isSet(_Fields field) {
39688
      if (field == null) {
39689
        throw new IllegalArgumentException();
39690
      }
39691
 
39692
      switch (field) {
39693
      case SUCCESS:
39694
        return isSetSuccess();
39695
      }
39696
      throw new IllegalStateException();
39697
    }
39698
 
39699
    @Override
39700
    public boolean equals(Object that) {
39701
      if (that == null)
39702
        return false;
39703
      if (that instanceof getBannerMapDetails_result)
39704
        return this.equals((getBannerMapDetails_result)that);
39705
      return false;
39706
    }
39707
 
39708
    public boolean equals(getBannerMapDetails_result that) {
39709
      if (that == null)
39710
        return false;
39711
 
39712
      boolean this_present_success = true && this.isSetSuccess();
39713
      boolean that_present_success = true && that.isSetSuccess();
39714
      if (this_present_success || that_present_success) {
39715
        if (!(this_present_success && that_present_success))
39716
          return false;
39717
        if (!this.success.equals(that.success))
39718
          return false;
39719
      }
39720
 
39721
      return true;
39722
    }
39723
 
39724
    @Override
39725
    public int hashCode() {
39726
      return 0;
39727
    }
39728
 
39729
    public int compareTo(getBannerMapDetails_result other) {
39730
      if (!getClass().equals(other.getClass())) {
39731
        return getClass().getName().compareTo(other.getClass().getName());
39732
      }
39733
 
39734
      int lastComparison = 0;
39735
      getBannerMapDetails_result typedOther = (getBannerMapDetails_result)other;
39736
 
39737
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39738
      if (lastComparison != 0) {
39739
        return lastComparison;
39740
      }
39741
      if (isSetSuccess()) {
39742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39743
        if (lastComparison != 0) {
39744
          return lastComparison;
39745
        }
39746
      }
39747
      return 0;
39748
    }
39749
 
39750
    public _Fields fieldForId(int fieldId) {
39751
      return _Fields.findByThriftId(fieldId);
39752
    }
39753
 
39754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39755
      org.apache.thrift.protocol.TField field;
39756
      iprot.readStructBegin();
39757
      while (true)
39758
      {
39759
        field = iprot.readFieldBegin();
39760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39761
          break;
39762
        }
39763
        switch (field.id) {
39764
          case 0: // SUCCESS
39765
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39766
              {
6850 kshitij.so 39767
                org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
39768
                this.success = new ArrayList<BannerMap>(_list102.size);
39769
                for (int _i103 = 0; _i103 < _list102.size; ++_i103)
6849 kshitij.so 39770
                {
6850 kshitij.so 39771
                  BannerMap _elem104; // required
39772
                  _elem104 = new BannerMap();
39773
                  _elem104.read(iprot);
39774
                  this.success.add(_elem104);
6849 kshitij.so 39775
                }
39776
                iprot.readListEnd();
39777
              }
39778
            } else { 
39779
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39780
            }
39781
            break;
39782
          default:
39783
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39784
        }
39785
        iprot.readFieldEnd();
39786
      }
39787
      iprot.readStructEnd();
39788
      validate();
39789
    }
39790
 
39791
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39792
      oprot.writeStructBegin(STRUCT_DESC);
39793
 
39794
      if (this.isSetSuccess()) {
39795
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39796
        {
39797
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 39798
          for (BannerMap _iter105 : this.success)
6849 kshitij.so 39799
          {
6850 kshitij.so 39800
            _iter105.write(oprot);
6849 kshitij.so 39801
          }
39802
          oprot.writeListEnd();
39803
        }
39804
        oprot.writeFieldEnd();
39805
      }
39806
      oprot.writeFieldStop();
39807
      oprot.writeStructEnd();
39808
    }
39809
 
39810
    @Override
39811
    public String toString() {
39812
      StringBuilder sb = new StringBuilder("getBannerMapDetails_result(");
39813
      boolean first = true;
39814
 
39815
      sb.append("success:");
39816
      if (this.success == null) {
39817
        sb.append("null");
39818
      } else {
39819
        sb.append(this.success);
39820
      }
39821
      first = false;
39822
      sb.append(")");
39823
      return sb.toString();
39824
    }
39825
 
39826
    public void validate() throws org.apache.thrift.TException {
39827
      // check for required fields
39828
    }
39829
 
39830
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39831
      try {
39832
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39833
      } catch (org.apache.thrift.TException te) {
39834
        throw new java.io.IOException(te);
39835
      }
39836
    }
39837
 
39838
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39839
      try {
39840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39841
      } catch (org.apache.thrift.TException te) {
39842
        throw new java.io.IOException(te);
39843
      }
39844
    }
39845
 
39846
  }
39847
 
5945 mandeep.dh 39848
  public static class deleteSimilarItem_args implements org.apache.thrift.TBase<deleteSimilarItem_args, deleteSimilarItem_args._Fields>, java.io.Serializable, Cloneable   {
39849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_args");
39850
 
39851
    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);
39852
    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);
39853
 
39854
    private long itemId; // required
39855
    private long catalogItemId; // required
39856
 
39857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39859
      ITEM_ID((short)1, "itemId"),
39860
      CATALOG_ITEM_ID((short)2, "catalogItemId");
39861
 
39862
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39863
 
39864
      static {
39865
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39866
          byName.put(field.getFieldName(), field);
39867
        }
39868
      }
39869
 
39870
      /**
39871
       * Find the _Fields constant that matches fieldId, or null if its not found.
39872
       */
39873
      public static _Fields findByThriftId(int fieldId) {
39874
        switch(fieldId) {
39875
          case 1: // ITEM_ID
39876
            return ITEM_ID;
39877
          case 2: // CATALOG_ITEM_ID
39878
            return CATALOG_ITEM_ID;
39879
          default:
39880
            return null;
39881
        }
39882
      }
39883
 
39884
      /**
39885
       * Find the _Fields constant that matches fieldId, throwing an exception
39886
       * if it is not found.
39887
       */
39888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39889
        _Fields fields = findByThriftId(fieldId);
39890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39891
        return fields;
39892
      }
39893
 
39894
      /**
39895
       * Find the _Fields constant that matches name, or null if its not found.
39896
       */
39897
      public static _Fields findByName(String name) {
39898
        return byName.get(name);
39899
      }
39900
 
39901
      private final short _thriftId;
39902
      private final String _fieldName;
39903
 
39904
      _Fields(short thriftId, String fieldName) {
39905
        _thriftId = thriftId;
39906
        _fieldName = fieldName;
39907
      }
39908
 
39909
      public short getThriftFieldId() {
39910
        return _thriftId;
39911
      }
39912
 
39913
      public String getFieldName() {
39914
        return _fieldName;
39915
      }
39916
    }
39917
 
39918
    // isset id assignments
39919
    private static final int __ITEMID_ISSET_ID = 0;
39920
    private static final int __CATALOGITEMID_ISSET_ID = 1;
39921
    private BitSet __isset_bit_vector = new BitSet(2);
39922
 
39923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39924
    static {
39925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39926
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39928
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39930
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39931
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_args.class, metaDataMap);
39932
    }
39933
 
39934
    public deleteSimilarItem_args() {
39935
    }
39936
 
39937
    public deleteSimilarItem_args(
39938
      long itemId,
39939
      long catalogItemId)
39940
    {
39941
      this();
39942
      this.itemId = itemId;
39943
      setItemIdIsSet(true);
39944
      this.catalogItemId = catalogItemId;
39945
      setCatalogItemIdIsSet(true);
39946
    }
39947
 
39948
    /**
39949
     * Performs a deep copy on <i>other</i>.
39950
     */
39951
    public deleteSimilarItem_args(deleteSimilarItem_args other) {
39952
      __isset_bit_vector.clear();
39953
      __isset_bit_vector.or(other.__isset_bit_vector);
39954
      this.itemId = other.itemId;
39955
      this.catalogItemId = other.catalogItemId;
39956
    }
39957
 
39958
    public deleteSimilarItem_args deepCopy() {
39959
      return new deleteSimilarItem_args(this);
39960
    }
39961
 
39962
    @Override
39963
    public void clear() {
39964
      setItemIdIsSet(false);
39965
      this.itemId = 0;
39966
      setCatalogItemIdIsSet(false);
39967
      this.catalogItemId = 0;
39968
    }
39969
 
39970
    public long getItemId() {
39971
      return this.itemId;
39972
    }
39973
 
39974
    public void setItemId(long itemId) {
39975
      this.itemId = itemId;
39976
      setItemIdIsSet(true);
39977
    }
39978
 
39979
    public void unsetItemId() {
39980
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
39981
    }
39982
 
39983
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
39984
    public boolean isSetItemId() {
39985
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
39986
    }
39987
 
39988
    public void setItemIdIsSet(boolean value) {
39989
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
39990
    }
39991
 
39992
    public long getCatalogItemId() {
39993
      return this.catalogItemId;
39994
    }
39995
 
39996
    public void setCatalogItemId(long catalogItemId) {
39997
      this.catalogItemId = catalogItemId;
39998
      setCatalogItemIdIsSet(true);
39999
    }
40000
 
40001
    public void unsetCatalogItemId() {
40002
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
40003
    }
40004
 
40005
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
40006
    public boolean isSetCatalogItemId() {
40007
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
40008
    }
40009
 
40010
    public void setCatalogItemIdIsSet(boolean value) {
40011
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
40012
    }
40013
 
40014
    public void setFieldValue(_Fields field, Object value) {
40015
      switch (field) {
40016
      case ITEM_ID:
40017
        if (value == null) {
40018
          unsetItemId();
40019
        } else {
40020
          setItemId((Long)value);
40021
        }
40022
        break;
40023
 
40024
      case CATALOG_ITEM_ID:
40025
        if (value == null) {
40026
          unsetCatalogItemId();
40027
        } else {
40028
          setCatalogItemId((Long)value);
40029
        }
40030
        break;
40031
 
40032
      }
40033
    }
40034
 
40035
    public Object getFieldValue(_Fields field) {
40036
      switch (field) {
40037
      case ITEM_ID:
40038
        return Long.valueOf(getItemId());
40039
 
40040
      case CATALOG_ITEM_ID:
40041
        return Long.valueOf(getCatalogItemId());
40042
 
40043
      }
40044
      throw new IllegalStateException();
40045
    }
40046
 
40047
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40048
    public boolean isSet(_Fields field) {
40049
      if (field == null) {
40050
        throw new IllegalArgumentException();
40051
      }
40052
 
40053
      switch (field) {
40054
      case ITEM_ID:
40055
        return isSetItemId();
40056
      case CATALOG_ITEM_ID:
40057
        return isSetCatalogItemId();
40058
      }
40059
      throw new IllegalStateException();
40060
    }
40061
 
40062
    @Override
40063
    public boolean equals(Object that) {
40064
      if (that == null)
40065
        return false;
40066
      if (that instanceof deleteSimilarItem_args)
40067
        return this.equals((deleteSimilarItem_args)that);
40068
      return false;
40069
    }
40070
 
40071
    public boolean equals(deleteSimilarItem_args that) {
40072
      if (that == null)
40073
        return false;
40074
 
40075
      boolean this_present_itemId = true;
40076
      boolean that_present_itemId = true;
40077
      if (this_present_itemId || that_present_itemId) {
40078
        if (!(this_present_itemId && that_present_itemId))
40079
          return false;
40080
        if (this.itemId != that.itemId)
40081
          return false;
40082
      }
40083
 
40084
      boolean this_present_catalogItemId = true;
40085
      boolean that_present_catalogItemId = true;
40086
      if (this_present_catalogItemId || that_present_catalogItemId) {
40087
        if (!(this_present_catalogItemId && that_present_catalogItemId))
40088
          return false;
40089
        if (this.catalogItemId != that.catalogItemId)
40090
          return false;
40091
      }
40092
 
40093
      return true;
40094
    }
40095
 
40096
    @Override
40097
    public int hashCode() {
40098
      return 0;
40099
    }
40100
 
40101
    public int compareTo(deleteSimilarItem_args other) {
40102
      if (!getClass().equals(other.getClass())) {
40103
        return getClass().getName().compareTo(other.getClass().getName());
40104
      }
40105
 
40106
      int lastComparison = 0;
40107
      deleteSimilarItem_args typedOther = (deleteSimilarItem_args)other;
40108
 
40109
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
40110
      if (lastComparison != 0) {
40111
        return lastComparison;
40112
      }
40113
      if (isSetItemId()) {
40114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
40115
        if (lastComparison != 0) {
40116
          return lastComparison;
40117
        }
40118
      }
40119
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
40120
      if (lastComparison != 0) {
40121
        return lastComparison;
40122
      }
40123
      if (isSetCatalogItemId()) {
40124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
40125
        if (lastComparison != 0) {
40126
          return lastComparison;
40127
        }
40128
      }
40129
      return 0;
40130
    }
40131
 
40132
    public _Fields fieldForId(int fieldId) {
40133
      return _Fields.findByThriftId(fieldId);
40134
    }
40135
 
40136
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40137
      org.apache.thrift.protocol.TField field;
40138
      iprot.readStructBegin();
40139
      while (true)
40140
      {
40141
        field = iprot.readFieldBegin();
40142
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40143
          break;
40144
        }
40145
        switch (field.id) {
40146
          case 1: // ITEM_ID
40147
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40148
              this.itemId = iprot.readI64();
40149
              setItemIdIsSet(true);
40150
            } else { 
40151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40152
            }
40153
            break;
40154
          case 2: // CATALOG_ITEM_ID
40155
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40156
              this.catalogItemId = iprot.readI64();
40157
              setCatalogItemIdIsSet(true);
40158
            } else { 
40159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40160
            }
40161
            break;
40162
          default:
40163
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40164
        }
40165
        iprot.readFieldEnd();
40166
      }
40167
      iprot.readStructEnd();
40168
      validate();
40169
    }
40170
 
40171
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40172
      validate();
40173
 
40174
      oprot.writeStructBegin(STRUCT_DESC);
40175
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
40176
      oprot.writeI64(this.itemId);
40177
      oprot.writeFieldEnd();
40178
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
40179
      oprot.writeI64(this.catalogItemId);
40180
      oprot.writeFieldEnd();
40181
      oprot.writeFieldStop();
40182
      oprot.writeStructEnd();
40183
    }
40184
 
40185
    @Override
40186
    public String toString() {
40187
      StringBuilder sb = new StringBuilder("deleteSimilarItem_args(");
40188
      boolean first = true;
40189
 
40190
      sb.append("itemId:");
40191
      sb.append(this.itemId);
40192
      first = false;
40193
      if (!first) sb.append(", ");
40194
      sb.append("catalogItemId:");
40195
      sb.append(this.catalogItemId);
40196
      first = false;
40197
      sb.append(")");
40198
      return sb.toString();
40199
    }
40200
 
40201
    public void validate() throws org.apache.thrift.TException {
40202
      // check for required fields
40203
    }
40204
 
40205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40206
      try {
40207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40208
      } catch (org.apache.thrift.TException te) {
40209
        throw new java.io.IOException(te);
40210
      }
40211
    }
40212
 
40213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40214
      try {
40215
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40216
        __isset_bit_vector = new BitSet(1);
40217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40218
      } catch (org.apache.thrift.TException te) {
40219
        throw new java.io.IOException(te);
40220
      }
40221
    }
40222
 
40223
  }
40224
 
40225
  public static class deleteSimilarItem_result implements org.apache.thrift.TBase<deleteSimilarItem_result, deleteSimilarItem_result._Fields>, java.io.Serializable, Cloneable   {
40226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_result");
40227
 
40228
    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);
40229
    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);
40230
 
40231
    private boolean success; // required
40232
    private CatalogServiceException cex; // required
40233
 
40234
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40235
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40236
      SUCCESS((short)0, "success"),
40237
      CEX((short)1, "cex");
40238
 
40239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40240
 
40241
      static {
40242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40243
          byName.put(field.getFieldName(), field);
40244
        }
40245
      }
40246
 
40247
      /**
40248
       * Find the _Fields constant that matches fieldId, or null if its not found.
40249
       */
40250
      public static _Fields findByThriftId(int fieldId) {
40251
        switch(fieldId) {
40252
          case 0: // SUCCESS
40253
            return SUCCESS;
40254
          case 1: // CEX
40255
            return CEX;
40256
          default:
40257
            return null;
40258
        }
40259
      }
40260
 
40261
      /**
40262
       * Find the _Fields constant that matches fieldId, throwing an exception
40263
       * if it is not found.
40264
       */
40265
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40266
        _Fields fields = findByThriftId(fieldId);
40267
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40268
        return fields;
40269
      }
40270
 
40271
      /**
40272
       * Find the _Fields constant that matches name, or null if its not found.
40273
       */
40274
      public static _Fields findByName(String name) {
40275
        return byName.get(name);
40276
      }
40277
 
40278
      private final short _thriftId;
40279
      private final String _fieldName;
40280
 
40281
      _Fields(short thriftId, String fieldName) {
40282
        _thriftId = thriftId;
40283
        _fieldName = fieldName;
40284
      }
40285
 
40286
      public short getThriftFieldId() {
40287
        return _thriftId;
40288
      }
40289
 
40290
      public String getFieldName() {
40291
        return _fieldName;
40292
      }
40293
    }
40294
 
40295
    // isset id assignments
40296
    private static final int __SUCCESS_ISSET_ID = 0;
40297
    private BitSet __isset_bit_vector = new BitSet(1);
40298
 
40299
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40300
    static {
40301
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40302
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40303
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
40304
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40306
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40307
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_result.class, metaDataMap);
40308
    }
40309
 
40310
    public deleteSimilarItem_result() {
40311
    }
40312
 
40313
    public deleteSimilarItem_result(
40314
      boolean success,
40315
      CatalogServiceException cex)
40316
    {
40317
      this();
40318
      this.success = success;
40319
      setSuccessIsSet(true);
40320
      this.cex = cex;
40321
    }
40322
 
40323
    /**
40324
     * Performs a deep copy on <i>other</i>.
40325
     */
40326
    public deleteSimilarItem_result(deleteSimilarItem_result other) {
40327
      __isset_bit_vector.clear();
40328
      __isset_bit_vector.or(other.__isset_bit_vector);
40329
      this.success = other.success;
40330
      if (other.isSetCex()) {
40331
        this.cex = new CatalogServiceException(other.cex);
40332
      }
40333
    }
40334
 
40335
    public deleteSimilarItem_result deepCopy() {
40336
      return new deleteSimilarItem_result(this);
40337
    }
40338
 
40339
    @Override
40340
    public void clear() {
40341
      setSuccessIsSet(false);
40342
      this.success = false;
40343
      this.cex = null;
40344
    }
40345
 
40346
    public boolean isSuccess() {
40347
      return this.success;
40348
    }
40349
 
40350
    public void setSuccess(boolean success) {
40351
      this.success = success;
40352
      setSuccessIsSet(true);
40353
    }
40354
 
40355
    public void unsetSuccess() {
40356
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
40357
    }
40358
 
40359
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
40360
    public boolean isSetSuccess() {
40361
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
40362
    }
40363
 
40364
    public void setSuccessIsSet(boolean value) {
40365
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
40366
    }
40367
 
40368
    public CatalogServiceException getCex() {
40369
      return this.cex;
40370
    }
40371
 
40372
    public void setCex(CatalogServiceException cex) {
40373
      this.cex = cex;
40374
    }
40375
 
40376
    public void unsetCex() {
40377
      this.cex = null;
40378
    }
40379
 
40380
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
40381
    public boolean isSetCex() {
40382
      return this.cex != null;
40383
    }
40384
 
40385
    public void setCexIsSet(boolean value) {
40386
      if (!value) {
40387
        this.cex = null;
40388
      }
40389
    }
40390
 
40391
    public void setFieldValue(_Fields field, Object value) {
40392
      switch (field) {
40393
      case SUCCESS:
40394
        if (value == null) {
40395
          unsetSuccess();
40396
        } else {
40397
          setSuccess((Boolean)value);
40398
        }
40399
        break;
40400
 
40401
      case CEX:
40402
        if (value == null) {
40403
          unsetCex();
40404
        } else {
40405
          setCex((CatalogServiceException)value);
40406
        }
40407
        break;
40408
 
40409
      }
40410
    }
40411
 
40412
    public Object getFieldValue(_Fields field) {
40413
      switch (field) {
40414
      case SUCCESS:
40415
        return Boolean.valueOf(isSuccess());
40416
 
40417
      case CEX:
40418
        return getCex();
40419
 
40420
      }
40421
      throw new IllegalStateException();
40422
    }
40423
 
40424
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40425
    public boolean isSet(_Fields field) {
40426
      if (field == null) {
40427
        throw new IllegalArgumentException();
40428
      }
40429
 
40430
      switch (field) {
40431
      case SUCCESS:
40432
        return isSetSuccess();
40433
      case CEX:
40434
        return isSetCex();
40435
      }
40436
      throw new IllegalStateException();
40437
    }
40438
 
40439
    @Override
40440
    public boolean equals(Object that) {
40441
      if (that == null)
40442
        return false;
40443
      if (that instanceof deleteSimilarItem_result)
40444
        return this.equals((deleteSimilarItem_result)that);
40445
      return false;
40446
    }
40447
 
40448
    public boolean equals(deleteSimilarItem_result that) {
40449
      if (that == null)
40450
        return false;
40451
 
40452
      boolean this_present_success = true;
40453
      boolean that_present_success = true;
40454
      if (this_present_success || that_present_success) {
40455
        if (!(this_present_success && that_present_success))
40456
          return false;
40457
        if (this.success != that.success)
40458
          return false;
40459
      }
40460
 
40461
      boolean this_present_cex = true && this.isSetCex();
40462
      boolean that_present_cex = true && that.isSetCex();
40463
      if (this_present_cex || that_present_cex) {
40464
        if (!(this_present_cex && that_present_cex))
40465
          return false;
40466
        if (!this.cex.equals(that.cex))
40467
          return false;
40468
      }
40469
 
40470
      return true;
40471
    }
40472
 
40473
    @Override
40474
    public int hashCode() {
40475
      return 0;
40476
    }
40477
 
40478
    public int compareTo(deleteSimilarItem_result other) {
40479
      if (!getClass().equals(other.getClass())) {
40480
        return getClass().getName().compareTo(other.getClass().getName());
40481
      }
40482
 
40483
      int lastComparison = 0;
40484
      deleteSimilarItem_result typedOther = (deleteSimilarItem_result)other;
40485
 
40486
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
40487
      if (lastComparison != 0) {
40488
        return lastComparison;
40489
      }
40490
      if (isSetSuccess()) {
40491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40492
        if (lastComparison != 0) {
40493
          return lastComparison;
40494
        }
40495
      }
40496
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
40497
      if (lastComparison != 0) {
40498
        return lastComparison;
40499
      }
40500
      if (isSetCex()) {
40501
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
40502
        if (lastComparison != 0) {
40503
          return lastComparison;
40504
        }
40505
      }
40506
      return 0;
40507
    }
40508
 
40509
    public _Fields fieldForId(int fieldId) {
40510
      return _Fields.findByThriftId(fieldId);
40511
    }
40512
 
40513
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40514
      org.apache.thrift.protocol.TField field;
40515
      iprot.readStructBegin();
40516
      while (true)
40517
      {
40518
        field = iprot.readFieldBegin();
40519
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40520
          break;
40521
        }
40522
        switch (field.id) {
40523
          case 0: // SUCCESS
40524
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
40525
              this.success = iprot.readBool();
40526
              setSuccessIsSet(true);
40527
            } else { 
40528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40529
            }
40530
            break;
40531
          case 1: // CEX
40532
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40533
              this.cex = new CatalogServiceException();
40534
              this.cex.read(iprot);
40535
            } else { 
40536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40537
            }
40538
            break;
40539
          default:
40540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40541
        }
40542
        iprot.readFieldEnd();
40543
      }
40544
      iprot.readStructEnd();
40545
      validate();
40546
    }
40547
 
40548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40549
      oprot.writeStructBegin(STRUCT_DESC);
40550
 
40551
      if (this.isSetSuccess()) {
40552
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40553
        oprot.writeBool(this.success);
40554
        oprot.writeFieldEnd();
40555
      } else if (this.isSetCex()) {
40556
        oprot.writeFieldBegin(CEX_FIELD_DESC);
40557
        this.cex.write(oprot);
40558
        oprot.writeFieldEnd();
40559
      }
40560
      oprot.writeFieldStop();
40561
      oprot.writeStructEnd();
40562
    }
40563
 
40564
    @Override
40565
    public String toString() {
40566
      StringBuilder sb = new StringBuilder("deleteSimilarItem_result(");
40567
      boolean first = true;
40568
 
40569
      sb.append("success:");
40570
      sb.append(this.success);
40571
      first = false;
40572
      if (!first) sb.append(", ");
40573
      sb.append("cex:");
40574
      if (this.cex == null) {
40575
        sb.append("null");
40576
      } else {
40577
        sb.append(this.cex);
40578
      }
40579
      first = false;
40580
      sb.append(")");
40581
      return sb.toString();
40582
    }
40583
 
40584
    public void validate() throws org.apache.thrift.TException {
40585
      // check for required fields
40586
    }
40587
 
40588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40589
      try {
40590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40591
      } catch (org.apache.thrift.TException te) {
40592
        throw new java.io.IOException(te);
40593
      }
40594
    }
40595
 
40596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40597
      try {
40598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40599
      } catch (org.apache.thrift.TException te) {
40600
        throw new java.io.IOException(te);
40601
      }
40602
    }
40603
 
40604
  }
40605
 
40606
  public static class checkSimilarItem_args implements org.apache.thrift.TBase<checkSimilarItem_args, checkSimilarItem_args._Fields>, java.io.Serializable, Cloneable   {
40607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkSimilarItem_args");
40608
 
40609
    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);
40610
    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);
40611
    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);
40612
    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);
40613
 
40614
    private String brand; // required
40615
    private String modelNumber; // required
40616
    private String modelName; // required
40617
    private String color; // required
40618
 
40619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40621
      BRAND((short)1, "brand"),
40622
      MODEL_NUMBER((short)2, "modelNumber"),
40623
      MODEL_NAME((short)3, "modelName"),
40624
      COLOR((short)4, "color");
40625
 
40626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40627
 
40628
      static {
40629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40630
          byName.put(field.getFieldName(), field);
40631
        }
40632
      }
40633
 
40634
      /**
40635
       * Find the _Fields constant that matches fieldId, or null if its not found.
40636
       */
40637
      public static _Fields findByThriftId(int fieldId) {
40638
        switch(fieldId) {
40639
          case 1: // BRAND
40640
            return BRAND;
40641
          case 2: // MODEL_NUMBER
40642
            return MODEL_NUMBER;
40643
          case 3: // MODEL_NAME
40644
            return MODEL_NAME;
40645
          case 4: // COLOR
40646
            return COLOR;
40647
          default:
40648
            return null;
40649
        }
40650
      }
40651
 
40652
      /**
40653
       * Find the _Fields constant that matches fieldId, throwing an exception
40654
       * if it is not found.
40655
       */
40656
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40657
        _Fields fields = findByThriftId(fieldId);
40658
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40659
        return fields;
40660
      }
40661
 
40662
      /**
40663
       * Find the _Fields constant that matches name, or null if its not found.
40664
       */
40665
      public static _Fields findByName(String name) {
40666
        return byName.get(name);
40667
      }
40668
 
40669
      private final short _thriftId;
40670
      private final String _fieldName;
40671
 
40672
      _Fields(short thriftId, String fieldName) {
40673
        _thriftId = thriftId;
40674
        _fieldName = fieldName;
40675
      }
40676
 
40677
      public short getThriftFieldId() {
40678
        return _thriftId;
40679
      }
40680
 
40681
      public String getFieldName() {
40682
        return _fieldName;
40683
      }
40684
    }
40685
 
40686
    // isset id assignments
40687
 
40688
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40689
    static {
40690
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40691
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40693
      tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40694
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40695
      tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40697
      tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40699
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40700
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkSimilarItem_args.class, metaDataMap);
40701
    }
40702
 
40703
    public checkSimilarItem_args() {
40704
    }
40705
 
40706
    public checkSimilarItem_args(
40707
      String brand,
40708
      String modelNumber,
40709
      String modelName,
40710
      String color)
40711
    {
40712
      this();
40713
      this.brand = brand;
40714
      this.modelNumber = modelNumber;
40715
      this.modelName = modelName;
40716
      this.color = color;
40717
    }
40718
 
40719
    /**
40720
     * Performs a deep copy on <i>other</i>.
40721
     */
40722
    public checkSimilarItem_args(checkSimilarItem_args other) {
40723
      if (other.isSetBrand()) {
40724
        this.brand = other.brand;
40725
      }
40726
      if (other.isSetModelNumber()) {
40727
        this.modelNumber = other.modelNumber;
40728
      }
40729
      if (other.isSetModelName()) {
40730
        this.modelName = other.modelName;
40731
      }
40732
      if (other.isSetColor()) {
40733
        this.color = other.color;
40734
      }
40735
    }
40736
 
40737
    public checkSimilarItem_args deepCopy() {
40738
      return new checkSimilarItem_args(this);
40739
    }
40740
 
40741
    @Override
40742
    public void clear() {
40743
      this.brand = null;
40744
      this.modelNumber = null;
40745
      this.modelName = null;
40746
      this.color = null;
40747
    }
40748
 
40749
    public String getBrand() {
40750
      return this.brand;
40751
    }
40752
 
40753
    public void setBrand(String brand) {
40754
      this.brand = brand;
40755
    }
40756
 
40757
    public void unsetBrand() {
40758
      this.brand = null;
40759
    }
40760
 
40761
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
40762
    public boolean isSetBrand() {
40763
      return this.brand != null;
40764
    }
40765
 
40766
    public void setBrandIsSet(boolean value) {
40767
      if (!value) {
40768
        this.brand = null;
40769
      }
40770
    }
40771
 
40772
    public String getModelNumber() {
40773
      return this.modelNumber;
40774
    }
40775
 
40776
    public void setModelNumber(String modelNumber) {
40777
      this.modelNumber = modelNumber;
40778
    }
40779
 
40780
    public void unsetModelNumber() {
40781
      this.modelNumber = null;
40782
    }
40783
 
40784
    /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
40785
    public boolean isSetModelNumber() {
40786
      return this.modelNumber != null;
40787
    }
40788
 
40789
    public void setModelNumberIsSet(boolean value) {
40790
      if (!value) {
40791
        this.modelNumber = null;
40792
      }
40793
    }
40794
 
40795
    public String getModelName() {
40796
      return this.modelName;
40797
    }
40798
 
40799
    public void setModelName(String modelName) {
40800
      this.modelName = modelName;
40801
    }
40802
 
40803
    public void unsetModelName() {
40804
      this.modelName = null;
40805
    }
40806
 
40807
    /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
40808
    public boolean isSetModelName() {
40809
      return this.modelName != null;
40810
    }
40811
 
40812
    public void setModelNameIsSet(boolean value) {
40813
      if (!value) {
40814
        this.modelName = null;
40815
      }
40816
    }
40817
 
40818
    public String getColor() {
40819
      return this.color;
40820
    }
40821
 
40822
    public void setColor(String color) {
40823
      this.color = color;
40824
    }
40825
 
40826
    public void unsetColor() {
40827
      this.color = null;
40828
    }
40829
 
40830
    /** Returns true if field color is set (has been assigned a value) and false otherwise */
40831
    public boolean isSetColor() {
40832
      return this.color != null;
40833
    }
40834
 
40835
    public void setColorIsSet(boolean value) {
40836
      if (!value) {
40837
        this.color = null;
40838
      }
40839
    }
40840
 
40841
    public void setFieldValue(_Fields field, Object value) {
40842
      switch (field) {
40843
      case BRAND:
40844
        if (value == null) {
40845
          unsetBrand();
40846
        } else {
40847
          setBrand((String)value);
40848
        }
40849
        break;
40850
 
40851
      case MODEL_NUMBER:
40852
        if (value == null) {
40853
          unsetModelNumber();
40854
        } else {
40855
          setModelNumber((String)value);
40856
        }
40857
        break;
40858
 
40859
      case MODEL_NAME:
40860
        if (value == null) {
40861
          unsetModelName();
40862
        } else {
40863
          setModelName((String)value);
40864
        }
40865
        break;
40866
 
40867
      case COLOR:
40868
        if (value == null) {
40869
          unsetColor();
40870
        } else {
40871
          setColor((String)value);
40872
        }
40873
        break;
40874
 
40875
      }
40876
    }
40877
 
40878
    public Object getFieldValue(_Fields field) {
40879
      switch (field) {
40880
      case BRAND:
40881
        return getBrand();
40882
 
40883
      case MODEL_NUMBER:
40884
        return getModelNumber();
40885
 
40886
      case MODEL_NAME:
40887
        return getModelName();
40888
 
40889
      case COLOR:
40890
        return getColor();
40891
 
40892
      }
40893
      throw new IllegalStateException();
40894
    }
40895
 
40896
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40897
    public boolean isSet(_Fields field) {
40898
      if (field == null) {
40899
        throw new IllegalArgumentException();
40900
      }
40901
 
40902
      switch (field) {
40903
      case BRAND:
40904
        return isSetBrand();
40905
      case MODEL_NUMBER:
40906
        return isSetModelNumber();
40907
      case MODEL_NAME:
40908
        return isSetModelName();
40909
      case COLOR:
40910
        return isSetColor();
40911
      }
40912
      throw new IllegalStateException();
40913
    }
40914
 
40915
    @Override
40916
    public boolean equals(Object that) {
40917
      if (that == null)
40918
        return false;
40919
      if (that instanceof checkSimilarItem_args)
40920
        return this.equals((checkSimilarItem_args)that);
40921
      return false;
40922
    }
40923
 
40924
    public boolean equals(checkSimilarItem_args that) {
40925
      if (that == null)
40926
        return false;
40927
 
40928
      boolean this_present_brand = true && this.isSetBrand();
40929
      boolean that_present_brand = true && that.isSetBrand();
40930
      if (this_present_brand || that_present_brand) {
40931
        if (!(this_present_brand && that_present_brand))
40932
          return false;
40933
        if (!this.brand.equals(that.brand))
40934
          return false;
40935
      }
40936
 
40937
      boolean this_present_modelNumber = true && this.isSetModelNumber();
40938
      boolean that_present_modelNumber = true && that.isSetModelNumber();
40939
      if (this_present_modelNumber || that_present_modelNumber) {
40940
        if (!(this_present_modelNumber && that_present_modelNumber))
40941
          return false;
40942
        if (!this.modelNumber.equals(that.modelNumber))
40943
          return false;
40944
      }
40945
 
40946
      boolean this_present_modelName = true && this.isSetModelName();
40947
      boolean that_present_modelName = true && that.isSetModelName();
40948
      if (this_present_modelName || that_present_modelName) {
40949
        if (!(this_present_modelName && that_present_modelName))
40950
          return false;
40951
        if (!this.modelName.equals(that.modelName))
40952
          return false;
40953
      }
40954
 
40955
      boolean this_present_color = true && this.isSetColor();
40956
      boolean that_present_color = true && that.isSetColor();
40957
      if (this_present_color || that_present_color) {
40958
        if (!(this_present_color && that_present_color))
40959
          return false;
40960
        if (!this.color.equals(that.color))
40961
          return false;
40962
      }
40963
 
40964
      return true;
40965
    }
40966
 
40967
    @Override
40968
    public int hashCode() {
40969
      return 0;
40970
    }
40971
 
40972
    public int compareTo(checkSimilarItem_args other) {
40973
      if (!getClass().equals(other.getClass())) {
40974
        return getClass().getName().compareTo(other.getClass().getName());
40975
      }
40976
 
40977
      int lastComparison = 0;
40978
      checkSimilarItem_args typedOther = (checkSimilarItem_args)other;
40979
 
40980
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
40981
      if (lastComparison != 0) {
40982
        return lastComparison;
40983
      }
40984
      if (isSetBrand()) {
40985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
40986
        if (lastComparison != 0) {
40987
          return lastComparison;
40988
        }
40989
      }
40990
      lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
40991
      if (lastComparison != 0) {
40992
        return lastComparison;
40993
      }
40994
      if (isSetModelNumber()) {
40995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
40996
        if (lastComparison != 0) {
40997
          return lastComparison;
40998
        }
40999
      }
41000
      lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
41001
      if (lastComparison != 0) {
41002
        return lastComparison;
41003
      }
41004
      if (isSetModelName()) {
41005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
41006
        if (lastComparison != 0) {
41007
          return lastComparison;
41008
        }
41009
      }
41010
      lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
41011
      if (lastComparison != 0) {
41012
        return lastComparison;
41013
      }
41014
      if (isSetColor()) {
41015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
41016
        if (lastComparison != 0) {
41017
          return lastComparison;
41018
        }
41019
      }
41020
      return 0;
41021
    }
41022
 
41023
    public _Fields fieldForId(int fieldId) {
41024
      return _Fields.findByThriftId(fieldId);
41025
    }
41026
 
41027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41028
      org.apache.thrift.protocol.TField field;
41029
      iprot.readStructBegin();
41030
      while (true)
41031
      {
41032
        field = iprot.readFieldBegin();
41033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41034
          break;
41035
        }
41036
        switch (field.id) {
41037
          case 1: // BRAND
41038
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41039
              this.brand = iprot.readString();
41040
            } else { 
41041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41042
            }
41043
            break;
41044
          case 2: // MODEL_NUMBER
41045
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41046
              this.modelNumber = iprot.readString();
41047
            } else { 
41048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41049
            }
41050
            break;
41051
          case 3: // MODEL_NAME
41052
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41053
              this.modelName = iprot.readString();
41054
            } else { 
41055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41056
            }
41057
            break;
41058
          case 4: // COLOR
41059
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41060
              this.color = iprot.readString();
41061
            } else { 
41062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41063
            }
41064
            break;
41065
          default:
41066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41067
        }
41068
        iprot.readFieldEnd();
41069
      }
41070
      iprot.readStructEnd();
41071
      validate();
41072
    }
41073
 
41074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41075
      validate();
41076
 
41077
      oprot.writeStructBegin(STRUCT_DESC);
41078
      if (this.brand != null) {
41079
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
41080
        oprot.writeString(this.brand);
41081
        oprot.writeFieldEnd();
41082
      }
41083
      if (this.modelNumber != null) {
41084
        oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
41085
        oprot.writeString(this.modelNumber);
41086
        oprot.writeFieldEnd();
41087
      }
41088
      if (this.modelName != null) {
41089
        oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
41090
        oprot.writeString(this.modelName);
41091
        oprot.writeFieldEnd();
41092
      }
41093
      if (this.color != null) {
41094
        oprot.writeFieldBegin(COLOR_FIELD_DESC);
41095
        oprot.writeString(this.color);
41096
        oprot.writeFieldEnd();
41097
      }
41098
      oprot.writeFieldStop();
41099
      oprot.writeStructEnd();
41100
    }
41101
 
41102
    @Override
41103
    public String toString() {
41104
      StringBuilder sb = new StringBuilder("checkSimilarItem_args(");
41105
      boolean first = true;
41106
 
41107
      sb.append("brand:");
41108
      if (this.brand == null) {
41109
        sb.append("null");
41110
      } else {
41111
        sb.append(this.brand);
41112
      }
41113
      first = false;
41114
      if (!first) sb.append(", ");
41115
      sb.append("modelNumber:");
41116
      if (this.modelNumber == null) {
41117
        sb.append("null");
41118
      } else {
41119
        sb.append(this.modelNumber);
41120
      }
41121
      first = false;
41122
      if (!first) sb.append(", ");
41123
      sb.append("modelName:");
41124
      if (this.modelName == null) {
41125
        sb.append("null");
41126
      } else {
41127
        sb.append(this.modelName);
41128
      }
41129
      first = false;
41130
      if (!first) sb.append(", ");
41131
      sb.append("color:");
41132
      if (this.color == null) {
41133
        sb.append("null");
41134
      } else {
41135
        sb.append(this.color);
41136
      }
41137
      first = false;
41138
      sb.append(")");
41139
      return sb.toString();
41140
    }
41141
 
41142
    public void validate() throws org.apache.thrift.TException {
41143
      // check for required fields
41144
    }
41145
 
41146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41147
      try {
41148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41149
      } catch (org.apache.thrift.TException te) {
41150
        throw new java.io.IOException(te);
41151
      }
41152
    }
41153
 
41154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41155
      try {
41156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41157
      } catch (org.apache.thrift.TException te) {
41158
        throw new java.io.IOException(te);
41159
      }
41160
    }
41161
 
41162
  }
41163
 
41164
  public static class checkSimilarItem_result implements org.apache.thrift.TBase<checkSimilarItem_result, checkSimilarItem_result._Fields>, java.io.Serializable, Cloneable   {
41165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkSimilarItem_result");
41166
 
41167
    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);
41168
 
41169
    private long success; // required
41170
 
41171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41173
      SUCCESS((short)0, "success");
41174
 
41175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41176
 
41177
      static {
41178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41179
          byName.put(field.getFieldName(), field);
41180
        }
41181
      }
41182
 
41183
      /**
41184
       * Find the _Fields constant that matches fieldId, or null if its not found.
41185
       */
41186
      public static _Fields findByThriftId(int fieldId) {
41187
        switch(fieldId) {
41188
          case 0: // SUCCESS
41189
            return SUCCESS;
41190
          default:
41191
            return null;
41192
        }
41193
      }
41194
 
41195
      /**
41196
       * Find the _Fields constant that matches fieldId, throwing an exception
41197
       * if it is not found.
41198
       */
41199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41200
        _Fields fields = findByThriftId(fieldId);
41201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41202
        return fields;
41203
      }
41204
 
41205
      /**
41206
       * Find the _Fields constant that matches name, or null if its not found.
41207
       */
41208
      public static _Fields findByName(String name) {
41209
        return byName.get(name);
41210
      }
41211
 
41212
      private final short _thriftId;
41213
      private final String _fieldName;
41214
 
41215
      _Fields(short thriftId, String fieldName) {
41216
        _thriftId = thriftId;
41217
        _fieldName = fieldName;
41218
      }
41219
 
41220
      public short getThriftFieldId() {
41221
        return _thriftId;
41222
      }
41223
 
41224
      public String getFieldName() {
41225
        return _fieldName;
41226
      }
41227
    }
41228
 
41229
    // isset id assignments
41230
    private static final int __SUCCESS_ISSET_ID = 0;
41231
    private BitSet __isset_bit_vector = new BitSet(1);
41232
 
41233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41234
    static {
41235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41236
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkSimilarItem_result.class, metaDataMap);
41240
    }
41241
 
41242
    public checkSimilarItem_result() {
41243
    }
41244
 
41245
    public checkSimilarItem_result(
41246
      long success)
41247
    {
41248
      this();
41249
      this.success = success;
41250
      setSuccessIsSet(true);
41251
    }
41252
 
41253
    /**
41254
     * Performs a deep copy on <i>other</i>.
41255
     */
41256
    public checkSimilarItem_result(checkSimilarItem_result other) {
41257
      __isset_bit_vector.clear();
41258
      __isset_bit_vector.or(other.__isset_bit_vector);
41259
      this.success = other.success;
41260
    }
41261
 
41262
    public checkSimilarItem_result deepCopy() {
41263
      return new checkSimilarItem_result(this);
41264
    }
41265
 
41266
    @Override
41267
    public void clear() {
41268
      setSuccessIsSet(false);
41269
      this.success = 0;
41270
    }
41271
 
41272
    public long getSuccess() {
41273
      return this.success;
41274
    }
41275
 
41276
    public void setSuccess(long success) {
41277
      this.success = success;
41278
      setSuccessIsSet(true);
41279
    }
41280
 
41281
    public void unsetSuccess() {
41282
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
41283
    }
41284
 
41285
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
41286
    public boolean isSetSuccess() {
41287
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
41288
    }
41289
 
41290
    public void setSuccessIsSet(boolean value) {
41291
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
41292
    }
41293
 
41294
    public void setFieldValue(_Fields field, Object value) {
41295
      switch (field) {
41296
      case SUCCESS:
41297
        if (value == null) {
41298
          unsetSuccess();
41299
        } else {
41300
          setSuccess((Long)value);
41301
        }
41302
        break;
41303
 
41304
      }
41305
    }
41306
 
41307
    public Object getFieldValue(_Fields field) {
41308
      switch (field) {
41309
      case SUCCESS:
41310
        return Long.valueOf(getSuccess());
41311
 
41312
      }
41313
      throw new IllegalStateException();
41314
    }
41315
 
41316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41317
    public boolean isSet(_Fields field) {
41318
      if (field == null) {
41319
        throw new IllegalArgumentException();
41320
      }
41321
 
41322
      switch (field) {
41323
      case SUCCESS:
41324
        return isSetSuccess();
41325
      }
41326
      throw new IllegalStateException();
41327
    }
41328
 
41329
    @Override
41330
    public boolean equals(Object that) {
41331
      if (that == null)
41332
        return false;
41333
      if (that instanceof checkSimilarItem_result)
41334
        return this.equals((checkSimilarItem_result)that);
41335
      return false;
41336
    }
41337
 
41338
    public boolean equals(checkSimilarItem_result that) {
41339
      if (that == null)
41340
        return false;
41341
 
41342
      boolean this_present_success = true;
41343
      boolean that_present_success = true;
41344
      if (this_present_success || that_present_success) {
41345
        if (!(this_present_success && that_present_success))
41346
          return false;
41347
        if (this.success != that.success)
41348
          return false;
41349
      }
41350
 
41351
      return true;
41352
    }
41353
 
41354
    @Override
41355
    public int hashCode() {
41356
      return 0;
41357
    }
41358
 
41359
    public int compareTo(checkSimilarItem_result other) {
41360
      if (!getClass().equals(other.getClass())) {
41361
        return getClass().getName().compareTo(other.getClass().getName());
41362
      }
41363
 
41364
      int lastComparison = 0;
41365
      checkSimilarItem_result typedOther = (checkSimilarItem_result)other;
41366
 
41367
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
41368
      if (lastComparison != 0) {
41369
        return lastComparison;
41370
      }
41371
      if (isSetSuccess()) {
41372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41373
        if (lastComparison != 0) {
41374
          return lastComparison;
41375
        }
41376
      }
41377
      return 0;
41378
    }
41379
 
41380
    public _Fields fieldForId(int fieldId) {
41381
      return _Fields.findByThriftId(fieldId);
41382
    }
41383
 
41384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41385
      org.apache.thrift.protocol.TField field;
41386
      iprot.readStructBegin();
41387
      while (true)
41388
      {
41389
        field = iprot.readFieldBegin();
41390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41391
          break;
41392
        }
41393
        switch (field.id) {
41394
          case 0: // SUCCESS
41395
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41396
              this.success = iprot.readI64();
41397
              setSuccessIsSet(true);
41398
            } else { 
41399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41400
            }
41401
            break;
41402
          default:
41403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41404
        }
41405
        iprot.readFieldEnd();
41406
      }
41407
      iprot.readStructEnd();
41408
      validate();
41409
    }
41410
 
41411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41412
      oprot.writeStructBegin(STRUCT_DESC);
41413
 
41414
      if (this.isSetSuccess()) {
41415
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41416
        oprot.writeI64(this.success);
41417
        oprot.writeFieldEnd();
41418
      }
41419
      oprot.writeFieldStop();
41420
      oprot.writeStructEnd();
41421
    }
41422
 
41423
    @Override
41424
    public String toString() {
41425
      StringBuilder sb = new StringBuilder("checkSimilarItem_result(");
41426
      boolean first = true;
41427
 
41428
      sb.append("success:");
41429
      sb.append(this.success);
41430
      first = false;
41431
      sb.append(")");
41432
      return sb.toString();
41433
    }
41434
 
41435
    public void validate() throws org.apache.thrift.TException {
41436
      // check for required fields
41437
    }
41438
 
41439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41440
      try {
41441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41442
      } catch (org.apache.thrift.TException te) {
41443
        throw new java.io.IOException(te);
41444
      }
41445
    }
41446
 
41447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41448
      try {
41449
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41450
      } catch (org.apache.thrift.TException te) {
41451
        throw new java.io.IOException(te);
41452
      }
41453
    }
41454
 
41455
  }
41456
 
41457
  public static class validateRiskyStatus_args implements org.apache.thrift.TBase<validateRiskyStatus_args, validateRiskyStatus_args._Fields>, java.io.Serializable, Cloneable   {
41458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRiskyStatus_args");
41459
 
41460
    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);
41461
 
41462
    private long itemId; // required
41463
 
41464
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41465
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41466
      ITEM_ID((short)1, "itemId");
41467
 
41468
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41469
 
41470
      static {
41471
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41472
          byName.put(field.getFieldName(), field);
41473
        }
41474
      }
41475
 
41476
      /**
41477
       * Find the _Fields constant that matches fieldId, or null if its not found.
41478
       */
41479
      public static _Fields findByThriftId(int fieldId) {
41480
        switch(fieldId) {
41481
          case 1: // ITEM_ID
41482
            return ITEM_ID;
41483
          default:
41484
            return null;
41485
        }
41486
      }
41487
 
41488
      /**
41489
       * Find the _Fields constant that matches fieldId, throwing an exception
41490
       * if it is not found.
41491
       */
41492
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41493
        _Fields fields = findByThriftId(fieldId);
41494
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41495
        return fields;
41496
      }
41497
 
41498
      /**
41499
       * Find the _Fields constant that matches name, or null if its not found.
41500
       */
41501
      public static _Fields findByName(String name) {
41502
        return byName.get(name);
41503
      }
41504
 
41505
      private final short _thriftId;
41506
      private final String _fieldName;
41507
 
41508
      _Fields(short thriftId, String fieldName) {
41509
        _thriftId = thriftId;
41510
        _fieldName = fieldName;
41511
      }
41512
 
41513
      public short getThriftFieldId() {
41514
        return _thriftId;
41515
      }
41516
 
41517
      public String getFieldName() {
41518
        return _fieldName;
41519
      }
41520
    }
41521
 
41522
    // isset id assignments
41523
    private static final int __ITEMID_ISSET_ID = 0;
41524
    private BitSet __isset_bit_vector = new BitSet(1);
41525
 
41526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41527
    static {
41528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41529
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRiskyStatus_args.class, metaDataMap);
41533
    }
41534
 
41535
    public validateRiskyStatus_args() {
41536
    }
41537
 
41538
    public validateRiskyStatus_args(
41539
      long itemId)
41540
    {
41541
      this();
41542
      this.itemId = itemId;
41543
      setItemIdIsSet(true);
41544
    }
41545
 
41546
    /**
41547
     * Performs a deep copy on <i>other</i>.
41548
     */
41549
    public validateRiskyStatus_args(validateRiskyStatus_args other) {
41550
      __isset_bit_vector.clear();
41551
      __isset_bit_vector.or(other.__isset_bit_vector);
41552
      this.itemId = other.itemId;
41553
    }
41554
 
41555
    public validateRiskyStatus_args deepCopy() {
41556
      return new validateRiskyStatus_args(this);
41557
    }
41558
 
41559
    @Override
41560
    public void clear() {
41561
      setItemIdIsSet(false);
41562
      this.itemId = 0;
41563
    }
41564
 
41565
    public long getItemId() {
41566
      return this.itemId;
41567
    }
41568
 
41569
    public void setItemId(long itemId) {
41570
      this.itemId = itemId;
41571
      setItemIdIsSet(true);
41572
    }
41573
 
41574
    public void unsetItemId() {
41575
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41576
    }
41577
 
41578
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
41579
    public boolean isSetItemId() {
41580
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41581
    }
41582
 
41583
    public void setItemIdIsSet(boolean value) {
41584
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41585
    }
41586
 
41587
    public void setFieldValue(_Fields field, Object value) {
41588
      switch (field) {
41589
      case ITEM_ID:
41590
        if (value == null) {
41591
          unsetItemId();
41592
        } else {
41593
          setItemId((Long)value);
41594
        }
41595
        break;
41596
 
41597
      }
41598
    }
41599
 
41600
    public Object getFieldValue(_Fields field) {
41601
      switch (field) {
41602
      case ITEM_ID:
41603
        return Long.valueOf(getItemId());
41604
 
41605
      }
41606
      throw new IllegalStateException();
41607
    }
41608
 
41609
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41610
    public boolean isSet(_Fields field) {
41611
      if (field == null) {
41612
        throw new IllegalArgumentException();
41613
      }
41614
 
41615
      switch (field) {
41616
      case ITEM_ID:
41617
        return isSetItemId();
41618
      }
41619
      throw new IllegalStateException();
41620
    }
41621
 
41622
    @Override
41623
    public boolean equals(Object that) {
41624
      if (that == null)
41625
        return false;
41626
      if (that instanceof validateRiskyStatus_args)
41627
        return this.equals((validateRiskyStatus_args)that);
41628
      return false;
41629
    }
41630
 
41631
    public boolean equals(validateRiskyStatus_args that) {
41632
      if (that == null)
41633
        return false;
41634
 
41635
      boolean this_present_itemId = true;
41636
      boolean that_present_itemId = true;
41637
      if (this_present_itemId || that_present_itemId) {
41638
        if (!(this_present_itemId && that_present_itemId))
41639
          return false;
41640
        if (this.itemId != that.itemId)
41641
          return false;
41642
      }
41643
 
41644
      return true;
41645
    }
41646
 
41647
    @Override
41648
    public int hashCode() {
41649
      return 0;
41650
    }
41651
 
41652
    public int compareTo(validateRiskyStatus_args other) {
41653
      if (!getClass().equals(other.getClass())) {
41654
        return getClass().getName().compareTo(other.getClass().getName());
41655
      }
41656
 
41657
      int lastComparison = 0;
41658
      validateRiskyStatus_args typedOther = (validateRiskyStatus_args)other;
41659
 
41660
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
41661
      if (lastComparison != 0) {
41662
        return lastComparison;
41663
      }
41664
      if (isSetItemId()) {
41665
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
41666
        if (lastComparison != 0) {
41667
          return lastComparison;
41668
        }
41669
      }
41670
      return 0;
41671
    }
41672
 
41673
    public _Fields fieldForId(int fieldId) {
41674
      return _Fields.findByThriftId(fieldId);
41675
    }
41676
 
41677
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41678
      org.apache.thrift.protocol.TField field;
41679
      iprot.readStructBegin();
41680
      while (true)
41681
      {
41682
        field = iprot.readFieldBegin();
41683
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41684
          break;
41685
        }
41686
        switch (field.id) {
41687
          case 1: // ITEM_ID
41688
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41689
              this.itemId = iprot.readI64();
41690
              setItemIdIsSet(true);
41691
            } else { 
41692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41693
            }
41694
            break;
41695
          default:
41696
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41697
        }
41698
        iprot.readFieldEnd();
41699
      }
41700
      iprot.readStructEnd();
41701
      validate();
41702
    }
41703
 
41704
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41705
      validate();
41706
 
41707
      oprot.writeStructBegin(STRUCT_DESC);
41708
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
41709
      oprot.writeI64(this.itemId);
41710
      oprot.writeFieldEnd();
41711
      oprot.writeFieldStop();
41712
      oprot.writeStructEnd();
41713
    }
41714
 
41715
    @Override
41716
    public String toString() {
41717
      StringBuilder sb = new StringBuilder("validateRiskyStatus_args(");
41718
      boolean first = true;
41719
 
41720
      sb.append("itemId:");
41721
      sb.append(this.itemId);
41722
      first = false;
41723
      sb.append(")");
41724
      return sb.toString();
41725
    }
41726
 
41727
    public void validate() throws org.apache.thrift.TException {
41728
      // check for required fields
41729
    }
41730
 
41731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41732
      try {
41733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41734
      } catch (org.apache.thrift.TException te) {
41735
        throw new java.io.IOException(te);
41736
      }
41737
    }
41738
 
41739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41740
      try {
41741
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41742
        __isset_bit_vector = new BitSet(1);
41743
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41744
      } catch (org.apache.thrift.TException te) {
41745
        throw new java.io.IOException(te);
41746
      }
41747
    }
41748
 
41749
  }
41750
 
41751
  public static class validateRiskyStatus_result implements org.apache.thrift.TBase<validateRiskyStatus_result, validateRiskyStatus_result._Fields>, java.io.Serializable, Cloneable   {
41752
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRiskyStatus_result");
41753
 
41754
 
41755
 
41756
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41757
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41758
;
41759
 
41760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41761
 
41762
      static {
41763
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41764
          byName.put(field.getFieldName(), field);
41765
        }
41766
      }
41767
 
41768
      /**
41769
       * Find the _Fields constant that matches fieldId, or null if its not found.
41770
       */
41771
      public static _Fields findByThriftId(int fieldId) {
41772
        switch(fieldId) {
41773
          default:
41774
            return null;
41775
        }
41776
      }
41777
 
41778
      /**
41779
       * Find the _Fields constant that matches fieldId, throwing an exception
41780
       * if it is not found.
41781
       */
41782
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41783
        _Fields fields = findByThriftId(fieldId);
41784
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41785
        return fields;
41786
      }
41787
 
41788
      /**
41789
       * Find the _Fields constant that matches name, or null if its not found.
41790
       */
41791
      public static _Fields findByName(String name) {
41792
        return byName.get(name);
41793
      }
41794
 
41795
      private final short _thriftId;
41796
      private final String _fieldName;
41797
 
41798
      _Fields(short thriftId, String fieldName) {
41799
        _thriftId = thriftId;
41800
        _fieldName = fieldName;
41801
      }
41802
 
41803
      public short getThriftFieldId() {
41804
        return _thriftId;
41805
      }
41806
 
41807
      public String getFieldName() {
41808
        return _fieldName;
41809
      }
41810
    }
41811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41812
    static {
41813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRiskyStatus_result.class, metaDataMap);
41816
    }
41817
 
41818
    public validateRiskyStatus_result() {
41819
    }
41820
 
41821
    /**
41822
     * Performs a deep copy on <i>other</i>.
41823
     */
41824
    public validateRiskyStatus_result(validateRiskyStatus_result other) {
41825
    }
41826
 
41827
    public validateRiskyStatus_result deepCopy() {
41828
      return new validateRiskyStatus_result(this);
41829
    }
41830
 
41831
    @Override
41832
    public void clear() {
41833
    }
41834
 
41835
    public void setFieldValue(_Fields field, Object value) {
41836
      switch (field) {
41837
      }
41838
    }
41839
 
41840
    public Object getFieldValue(_Fields field) {
41841
      switch (field) {
41842
      }
41843
      throw new IllegalStateException();
41844
    }
41845
 
41846
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41847
    public boolean isSet(_Fields field) {
41848
      if (field == null) {
41849
        throw new IllegalArgumentException();
41850
      }
41851
 
41852
      switch (field) {
41853
      }
41854
      throw new IllegalStateException();
41855
    }
41856
 
41857
    @Override
41858
    public boolean equals(Object that) {
41859
      if (that == null)
41860
        return false;
41861
      if (that instanceof validateRiskyStatus_result)
41862
        return this.equals((validateRiskyStatus_result)that);
41863
      return false;
41864
    }
41865
 
41866
    public boolean equals(validateRiskyStatus_result that) {
41867
      if (that == null)
41868
        return false;
41869
 
41870
      return true;
41871
    }
41872
 
41873
    @Override
41874
    public int hashCode() {
41875
      return 0;
41876
    }
41877
 
41878
    public int compareTo(validateRiskyStatus_result other) {
41879
      if (!getClass().equals(other.getClass())) {
41880
        return getClass().getName().compareTo(other.getClass().getName());
41881
      }
41882
 
41883
      int lastComparison = 0;
41884
      validateRiskyStatus_result typedOther = (validateRiskyStatus_result)other;
41885
 
41886
      return 0;
41887
    }
41888
 
41889
    public _Fields fieldForId(int fieldId) {
41890
      return _Fields.findByThriftId(fieldId);
41891
    }
41892
 
41893
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41894
      org.apache.thrift.protocol.TField field;
41895
      iprot.readStructBegin();
41896
      while (true)
41897
      {
41898
        field = iprot.readFieldBegin();
41899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41900
          break;
41901
        }
41902
        switch (field.id) {
41903
          default:
41904
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41905
        }
41906
        iprot.readFieldEnd();
41907
      }
41908
      iprot.readStructEnd();
41909
      validate();
41910
    }
41911
 
41912
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41913
      oprot.writeStructBegin(STRUCT_DESC);
41914
 
41915
      oprot.writeFieldStop();
41916
      oprot.writeStructEnd();
41917
    }
41918
 
41919
    @Override
41920
    public String toString() {
41921
      StringBuilder sb = new StringBuilder("validateRiskyStatus_result(");
41922
      boolean first = true;
41923
 
41924
      sb.append(")");
41925
      return sb.toString();
41926
    }
41927
 
41928
    public void validate() throws org.apache.thrift.TException {
41929
      // check for required fields
41930
    }
41931
 
41932
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41933
      try {
41934
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41935
      } catch (org.apache.thrift.TException te) {
41936
        throw new java.io.IOException(te);
41937
      }
41938
    }
41939
 
41940
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41941
      try {
41942
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41943
      } catch (org.apache.thrift.TException te) {
41944
        throw new java.io.IOException(te);
41945
      }
41946
    }
41947
 
41948
  }
41949
 
41950
  public static class changeItemRiskyFlag_args implements org.apache.thrift.TBase<changeItemRiskyFlag_args, changeItemRiskyFlag_args._Fields>, java.io.Serializable, Cloneable   {
41951
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemRiskyFlag_args");
41952
 
41953
    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);
41954
    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);
41955
 
41956
    private long itemId; // required
41957
    private boolean risky; // required
41958
 
41959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41961
      ITEM_ID((short)1, "itemId"),
41962
      RISKY((short)2, "risky");
41963
 
41964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41965
 
41966
      static {
41967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41968
          byName.put(field.getFieldName(), field);
41969
        }
41970
      }
41971
 
41972
      /**
41973
       * Find the _Fields constant that matches fieldId, or null if its not found.
41974
       */
41975
      public static _Fields findByThriftId(int fieldId) {
41976
        switch(fieldId) {
41977
          case 1: // ITEM_ID
41978
            return ITEM_ID;
41979
          case 2: // RISKY
41980
            return RISKY;
41981
          default:
41982
            return null;
41983
        }
41984
      }
41985
 
41986
      /**
41987
       * Find the _Fields constant that matches fieldId, throwing an exception
41988
       * if it is not found.
41989
       */
41990
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41991
        _Fields fields = findByThriftId(fieldId);
41992
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41993
        return fields;
41994
      }
41995
 
41996
      /**
41997
       * Find the _Fields constant that matches name, or null if its not found.
41998
       */
41999
      public static _Fields findByName(String name) {
42000
        return byName.get(name);
42001
      }
42002
 
42003
      private final short _thriftId;
42004
      private final String _fieldName;
42005
 
42006
      _Fields(short thriftId, String fieldName) {
42007
        _thriftId = thriftId;
42008
        _fieldName = fieldName;
42009
      }
42010
 
42011
      public short getThriftFieldId() {
42012
        return _thriftId;
42013
      }
42014
 
42015
      public String getFieldName() {
42016
        return _fieldName;
42017
      }
42018
    }
42019
 
42020
    // isset id assignments
42021
    private static final int __ITEMID_ISSET_ID = 0;
42022
    private static final int __RISKY_ISSET_ID = 1;
42023
    private BitSet __isset_bit_vector = new BitSet(2);
42024
 
42025
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42026
    static {
42027
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42028
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42030
      tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42031
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
42032
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42033
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemRiskyFlag_args.class, metaDataMap);
42034
    }
42035
 
42036
    public changeItemRiskyFlag_args() {
42037
    }
42038
 
42039
    public changeItemRiskyFlag_args(
42040
      long itemId,
42041
      boolean risky)
42042
    {
42043
      this();
42044
      this.itemId = itemId;
42045
      setItemIdIsSet(true);
42046
      this.risky = risky;
42047
      setRiskyIsSet(true);
42048
    }
42049
 
42050
    /**
42051
     * Performs a deep copy on <i>other</i>.
42052
     */
42053
    public changeItemRiskyFlag_args(changeItemRiskyFlag_args other) {
42054
      __isset_bit_vector.clear();
42055
      __isset_bit_vector.or(other.__isset_bit_vector);
42056
      this.itemId = other.itemId;
42057
      this.risky = other.risky;
42058
    }
42059
 
42060
    public changeItemRiskyFlag_args deepCopy() {
42061
      return new changeItemRiskyFlag_args(this);
42062
    }
42063
 
42064
    @Override
42065
    public void clear() {
42066
      setItemIdIsSet(false);
42067
      this.itemId = 0;
42068
      setRiskyIsSet(false);
42069
      this.risky = false;
42070
    }
42071
 
42072
    public long getItemId() {
42073
      return this.itemId;
42074
    }
42075
 
42076
    public void setItemId(long itemId) {
42077
      this.itemId = itemId;
42078
      setItemIdIsSet(true);
42079
    }
42080
 
42081
    public void unsetItemId() {
42082
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
42083
    }
42084
 
42085
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
42086
    public boolean isSetItemId() {
42087
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
42088
    }
42089
 
42090
    public void setItemIdIsSet(boolean value) {
42091
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42092
    }
42093
 
42094
    public boolean isRisky() {
42095
      return this.risky;
42096
    }
42097
 
42098
    public void setRisky(boolean risky) {
42099
      this.risky = risky;
42100
      setRiskyIsSet(true);
42101
    }
42102
 
42103
    public void unsetRisky() {
42104
      __isset_bit_vector.clear(__RISKY_ISSET_ID);
42105
    }
42106
 
42107
    /** Returns true if field risky is set (has been assigned a value) and false otherwise */
42108
    public boolean isSetRisky() {
42109
      return __isset_bit_vector.get(__RISKY_ISSET_ID);
42110
    }
42111
 
42112
    public void setRiskyIsSet(boolean value) {
42113
      __isset_bit_vector.set(__RISKY_ISSET_ID, value);
42114
    }
42115
 
42116
    public void setFieldValue(_Fields field, Object value) {
42117
      switch (field) {
42118
      case ITEM_ID:
42119
        if (value == null) {
42120
          unsetItemId();
42121
        } else {
42122
          setItemId((Long)value);
42123
        }
42124
        break;
42125
 
42126
      case RISKY:
42127
        if (value == null) {
42128
          unsetRisky();
42129
        } else {
42130
          setRisky((Boolean)value);
42131
        }
42132
        break;
42133
 
42134
      }
42135
    }
42136
 
42137
    public Object getFieldValue(_Fields field) {
42138
      switch (field) {
42139
      case ITEM_ID:
42140
        return Long.valueOf(getItemId());
42141
 
42142
      case RISKY:
42143
        return Boolean.valueOf(isRisky());
42144
 
42145
      }
42146
      throw new IllegalStateException();
42147
    }
42148
 
42149
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42150
    public boolean isSet(_Fields field) {
42151
      if (field == null) {
42152
        throw new IllegalArgumentException();
42153
      }
42154
 
42155
      switch (field) {
42156
      case ITEM_ID:
42157
        return isSetItemId();
42158
      case RISKY:
42159
        return isSetRisky();
42160
      }
42161
      throw new IllegalStateException();
42162
    }
42163
 
42164
    @Override
42165
    public boolean equals(Object that) {
42166
      if (that == null)
42167
        return false;
42168
      if (that instanceof changeItemRiskyFlag_args)
42169
        return this.equals((changeItemRiskyFlag_args)that);
42170
      return false;
42171
    }
42172
 
42173
    public boolean equals(changeItemRiskyFlag_args that) {
42174
      if (that == null)
42175
        return false;
42176
 
42177
      boolean this_present_itemId = true;
42178
      boolean that_present_itemId = true;
42179
      if (this_present_itemId || that_present_itemId) {
42180
        if (!(this_present_itemId && that_present_itemId))
42181
          return false;
42182
        if (this.itemId != that.itemId)
42183
          return false;
42184
      }
42185
 
42186
      boolean this_present_risky = true;
42187
      boolean that_present_risky = true;
42188
      if (this_present_risky || that_present_risky) {
42189
        if (!(this_present_risky && that_present_risky))
42190
          return false;
42191
        if (this.risky != that.risky)
42192
          return false;
42193
      }
42194
 
42195
      return true;
42196
    }
42197
 
42198
    @Override
42199
    public int hashCode() {
42200
      return 0;
42201
    }
42202
 
42203
    public int compareTo(changeItemRiskyFlag_args other) {
42204
      if (!getClass().equals(other.getClass())) {
42205
        return getClass().getName().compareTo(other.getClass().getName());
42206
      }
42207
 
42208
      int lastComparison = 0;
42209
      changeItemRiskyFlag_args typedOther = (changeItemRiskyFlag_args)other;
42210
 
42211
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
42212
      if (lastComparison != 0) {
42213
        return lastComparison;
42214
      }
42215
      if (isSetItemId()) {
42216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42217
        if (lastComparison != 0) {
42218
          return lastComparison;
42219
        }
42220
      }
42221
      lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
42222
      if (lastComparison != 0) {
42223
        return lastComparison;
42224
      }
42225
      if (isSetRisky()) {
42226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
42227
        if (lastComparison != 0) {
42228
          return lastComparison;
42229
        }
42230
      }
42231
      return 0;
42232
    }
42233
 
42234
    public _Fields fieldForId(int fieldId) {
42235
      return _Fields.findByThriftId(fieldId);
42236
    }
42237
 
42238
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42239
      org.apache.thrift.protocol.TField field;
42240
      iprot.readStructBegin();
42241
      while (true)
42242
      {
42243
        field = iprot.readFieldBegin();
42244
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42245
          break;
42246
        }
42247
        switch (field.id) {
42248
          case 1: // ITEM_ID
42249
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42250
              this.itemId = iprot.readI64();
42251
              setItemIdIsSet(true);
42252
            } else { 
42253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42254
            }
42255
            break;
42256
          case 2: // RISKY
42257
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
42258
              this.risky = iprot.readBool();
42259
              setRiskyIsSet(true);
42260
            } else { 
42261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42262
            }
42263
            break;
42264
          default:
42265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42266
        }
42267
        iprot.readFieldEnd();
42268
      }
42269
      iprot.readStructEnd();
42270
      validate();
42271
    }
42272
 
42273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42274
      validate();
42275
 
42276
      oprot.writeStructBegin(STRUCT_DESC);
42277
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42278
      oprot.writeI64(this.itemId);
42279
      oprot.writeFieldEnd();
42280
      oprot.writeFieldBegin(RISKY_FIELD_DESC);
42281
      oprot.writeBool(this.risky);
42282
      oprot.writeFieldEnd();
42283
      oprot.writeFieldStop();
42284
      oprot.writeStructEnd();
42285
    }
42286
 
42287
    @Override
42288
    public String toString() {
42289
      StringBuilder sb = new StringBuilder("changeItemRiskyFlag_args(");
42290
      boolean first = true;
42291
 
42292
      sb.append("itemId:");
42293
      sb.append(this.itemId);
42294
      first = false;
42295
      if (!first) sb.append(", ");
42296
      sb.append("risky:");
42297
      sb.append(this.risky);
42298
      first = false;
42299
      sb.append(")");
42300
      return sb.toString();
42301
    }
42302
 
42303
    public void validate() throws org.apache.thrift.TException {
42304
      // check for required fields
42305
    }
42306
 
42307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42308
      try {
42309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42310
      } catch (org.apache.thrift.TException te) {
42311
        throw new java.io.IOException(te);
42312
      }
42313
    }
42314
 
42315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42316
      try {
42317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42318
      } catch (org.apache.thrift.TException te) {
42319
        throw new java.io.IOException(te);
42320
      }
42321
    }
42322
 
42323
  }
42324
 
42325
  public static class changeItemRiskyFlag_result implements org.apache.thrift.TBase<changeItemRiskyFlag_result, changeItemRiskyFlag_result._Fields>, java.io.Serializable, Cloneable   {
42326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemRiskyFlag_result");
42327
 
42328
 
42329
 
42330
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42331
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42332
;
42333
 
42334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42335
 
42336
      static {
42337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42338
          byName.put(field.getFieldName(), field);
42339
        }
42340
      }
42341
 
42342
      /**
42343
       * Find the _Fields constant that matches fieldId, or null if its not found.
42344
       */
42345
      public static _Fields findByThriftId(int fieldId) {
42346
        switch(fieldId) {
42347
          default:
42348
            return null;
42349
        }
42350
      }
42351
 
42352
      /**
42353
       * Find the _Fields constant that matches fieldId, throwing an exception
42354
       * if it is not found.
42355
       */
42356
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42357
        _Fields fields = findByThriftId(fieldId);
42358
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42359
        return fields;
42360
      }
42361
 
42362
      /**
42363
       * Find the _Fields constant that matches name, or null if its not found.
42364
       */
42365
      public static _Fields findByName(String name) {
42366
        return byName.get(name);
42367
      }
42368
 
42369
      private final short _thriftId;
42370
      private final String _fieldName;
42371
 
42372
      _Fields(short thriftId, String fieldName) {
42373
        _thriftId = thriftId;
42374
        _fieldName = fieldName;
42375
      }
42376
 
42377
      public short getThriftFieldId() {
42378
        return _thriftId;
42379
      }
42380
 
42381
      public String getFieldName() {
42382
        return _fieldName;
42383
      }
42384
    }
42385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42386
    static {
42387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42388
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42389
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemRiskyFlag_result.class, metaDataMap);
42390
    }
42391
 
42392
    public changeItemRiskyFlag_result() {
42393
    }
42394
 
42395
    /**
42396
     * Performs a deep copy on <i>other</i>.
42397
     */
42398
    public changeItemRiskyFlag_result(changeItemRiskyFlag_result other) {
42399
    }
42400
 
42401
    public changeItemRiskyFlag_result deepCopy() {
42402
      return new changeItemRiskyFlag_result(this);
42403
    }
42404
 
42405
    @Override
42406
    public void clear() {
42407
    }
42408
 
42409
    public void setFieldValue(_Fields field, Object value) {
42410
      switch (field) {
42411
      }
42412
    }
42413
 
42414
    public Object getFieldValue(_Fields field) {
42415
      switch (field) {
42416
      }
42417
      throw new IllegalStateException();
42418
    }
42419
 
42420
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42421
    public boolean isSet(_Fields field) {
42422
      if (field == null) {
42423
        throw new IllegalArgumentException();
42424
      }
42425
 
42426
      switch (field) {
42427
      }
42428
      throw new IllegalStateException();
42429
    }
42430
 
42431
    @Override
42432
    public boolean equals(Object that) {
42433
      if (that == null)
42434
        return false;
42435
      if (that instanceof changeItemRiskyFlag_result)
42436
        return this.equals((changeItemRiskyFlag_result)that);
42437
      return false;
42438
    }
42439
 
42440
    public boolean equals(changeItemRiskyFlag_result that) {
42441
      if (that == null)
42442
        return false;
42443
 
42444
      return true;
42445
    }
42446
 
42447
    @Override
42448
    public int hashCode() {
42449
      return 0;
42450
    }
42451
 
42452
    public int compareTo(changeItemRiskyFlag_result other) {
42453
      if (!getClass().equals(other.getClass())) {
42454
        return getClass().getName().compareTo(other.getClass().getName());
42455
      }
42456
 
42457
      int lastComparison = 0;
42458
      changeItemRiskyFlag_result typedOther = (changeItemRiskyFlag_result)other;
42459
 
42460
      return 0;
42461
    }
42462
 
42463
    public _Fields fieldForId(int fieldId) {
42464
      return _Fields.findByThriftId(fieldId);
42465
    }
42466
 
42467
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42468
      org.apache.thrift.protocol.TField field;
42469
      iprot.readStructBegin();
42470
      while (true)
42471
      {
42472
        field = iprot.readFieldBegin();
42473
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42474
          break;
42475
        }
42476
        switch (field.id) {
42477
          default:
42478
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42479
        }
42480
        iprot.readFieldEnd();
42481
      }
42482
      iprot.readStructEnd();
42483
      validate();
42484
    }
42485
 
42486
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42487
      oprot.writeStructBegin(STRUCT_DESC);
42488
 
42489
      oprot.writeFieldStop();
42490
      oprot.writeStructEnd();
42491
    }
42492
 
42493
    @Override
42494
    public String toString() {
42495
      StringBuilder sb = new StringBuilder("changeItemRiskyFlag_result(");
42496
      boolean first = true;
42497
 
42498
      sb.append(")");
42499
      return sb.toString();
42500
    }
42501
 
42502
    public void validate() throws org.apache.thrift.TException {
42503
      // check for required fields
42504
    }
42505
 
42506
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42507
      try {
42508
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42509
      } catch (org.apache.thrift.TException te) {
42510
        throw new java.io.IOException(te);
42511
      }
42512
    }
42513
 
42514
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42515
      try {
42516
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42517
      } catch (org.apache.thrift.TException te) {
42518
        throw new java.io.IOException(te);
42519
      }
42520
    }
42521
 
42522
  }
42523
 
42524
  public static class getItemsByRiskyFlag_args implements org.apache.thrift.TBase<getItemsByRiskyFlag_args, getItemsByRiskyFlag_args._Fields>, java.io.Serializable, Cloneable   {
42525
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByRiskyFlag_args");
42526
 
42527
 
42528
 
42529
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42530
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42531
;
42532
 
42533
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42534
 
42535
      static {
42536
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42537
          byName.put(field.getFieldName(), field);
42538
        }
42539
      }
42540
 
42541
      /**
42542
       * Find the _Fields constant that matches fieldId, or null if its not found.
42543
       */
42544
      public static _Fields findByThriftId(int fieldId) {
42545
        switch(fieldId) {
42546
          default:
42547
            return null;
42548
        }
42549
      }
42550
 
42551
      /**
42552
       * Find the _Fields constant that matches fieldId, throwing an exception
42553
       * if it is not found.
42554
       */
42555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42556
        _Fields fields = findByThriftId(fieldId);
42557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42558
        return fields;
42559
      }
42560
 
42561
      /**
42562
       * Find the _Fields constant that matches name, or null if its not found.
42563
       */
42564
      public static _Fields findByName(String name) {
42565
        return byName.get(name);
42566
      }
42567
 
42568
      private final short _thriftId;
42569
      private final String _fieldName;
42570
 
42571
      _Fields(short thriftId, String fieldName) {
42572
        _thriftId = thriftId;
42573
        _fieldName = fieldName;
42574
      }
42575
 
42576
      public short getThriftFieldId() {
42577
        return _thriftId;
42578
      }
42579
 
42580
      public String getFieldName() {
42581
        return _fieldName;
42582
      }
42583
    }
42584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42585
    static {
42586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42587
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42588
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_args.class, metaDataMap);
42589
    }
42590
 
42591
    public getItemsByRiskyFlag_args() {
42592
    }
42593
 
42594
    /**
42595
     * Performs a deep copy on <i>other</i>.
42596
     */
42597
    public getItemsByRiskyFlag_args(getItemsByRiskyFlag_args other) {
42598
    }
42599
 
42600
    public getItemsByRiskyFlag_args deepCopy() {
42601
      return new getItemsByRiskyFlag_args(this);
42602
    }
42603
 
42604
    @Override
42605
    public void clear() {
42606
    }
42607
 
42608
    public void setFieldValue(_Fields field, Object value) {
42609
      switch (field) {
42610
      }
42611
    }
42612
 
42613
    public Object getFieldValue(_Fields field) {
42614
      switch (field) {
42615
      }
42616
      throw new IllegalStateException();
42617
    }
42618
 
42619
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42620
    public boolean isSet(_Fields field) {
42621
      if (field == null) {
42622
        throw new IllegalArgumentException();
42623
      }
42624
 
42625
      switch (field) {
42626
      }
42627
      throw new IllegalStateException();
42628
    }
42629
 
42630
    @Override
42631
    public boolean equals(Object that) {
42632
      if (that == null)
42633
        return false;
42634
      if (that instanceof getItemsByRiskyFlag_args)
42635
        return this.equals((getItemsByRiskyFlag_args)that);
42636
      return false;
42637
    }
42638
 
42639
    public boolean equals(getItemsByRiskyFlag_args that) {
42640
      if (that == null)
42641
        return false;
42642
 
42643
      return true;
42644
    }
42645
 
42646
    @Override
42647
    public int hashCode() {
42648
      return 0;
42649
    }
42650
 
42651
    public int compareTo(getItemsByRiskyFlag_args other) {
42652
      if (!getClass().equals(other.getClass())) {
42653
        return getClass().getName().compareTo(other.getClass().getName());
42654
      }
42655
 
42656
      int lastComparison = 0;
42657
      getItemsByRiskyFlag_args typedOther = (getItemsByRiskyFlag_args)other;
42658
 
42659
      return 0;
42660
    }
42661
 
42662
    public _Fields fieldForId(int fieldId) {
42663
      return _Fields.findByThriftId(fieldId);
42664
    }
42665
 
42666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42667
      org.apache.thrift.protocol.TField field;
42668
      iprot.readStructBegin();
42669
      while (true)
42670
      {
42671
        field = iprot.readFieldBegin();
42672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42673
          break;
42674
        }
42675
        switch (field.id) {
42676
          default:
42677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42678
        }
42679
        iprot.readFieldEnd();
42680
      }
42681
      iprot.readStructEnd();
42682
      validate();
42683
    }
42684
 
42685
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42686
      validate();
42687
 
42688
      oprot.writeStructBegin(STRUCT_DESC);
42689
      oprot.writeFieldStop();
42690
      oprot.writeStructEnd();
42691
    }
42692
 
42693
    @Override
42694
    public String toString() {
42695
      StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_args(");
42696
      boolean first = true;
42697
 
42698
      sb.append(")");
42699
      return sb.toString();
42700
    }
42701
 
42702
    public void validate() throws org.apache.thrift.TException {
42703
      // check for required fields
42704
    }
42705
 
42706
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42707
      try {
42708
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42709
      } catch (org.apache.thrift.TException te) {
42710
        throw new java.io.IOException(te);
42711
      }
42712
    }
42713
 
42714
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42715
      try {
42716
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42717
      } catch (org.apache.thrift.TException te) {
42718
        throw new java.io.IOException(te);
42719
      }
42720
    }
42721
 
42722
  }
42723
 
42724
  public static class getItemsByRiskyFlag_result implements org.apache.thrift.TBase<getItemsByRiskyFlag_result, getItemsByRiskyFlag_result._Fields>, java.io.Serializable, Cloneable   {
42725
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByRiskyFlag_result");
42726
 
42727
    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);
42728
 
42729
    private List<Item> success; // required
42730
 
42731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42733
      SUCCESS((short)0, "success");
42734
 
42735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42736
 
42737
      static {
42738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42739
          byName.put(field.getFieldName(), field);
42740
        }
42741
      }
42742
 
42743
      /**
42744
       * Find the _Fields constant that matches fieldId, or null if its not found.
42745
       */
42746
      public static _Fields findByThriftId(int fieldId) {
42747
        switch(fieldId) {
42748
          case 0: // SUCCESS
42749
            return SUCCESS;
42750
          default:
42751
            return null;
42752
        }
42753
      }
42754
 
42755
      /**
42756
       * Find the _Fields constant that matches fieldId, throwing an exception
42757
       * if it is not found.
42758
       */
42759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42760
        _Fields fields = findByThriftId(fieldId);
42761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42762
        return fields;
42763
      }
42764
 
42765
      /**
42766
       * Find the _Fields constant that matches name, or null if its not found.
42767
       */
42768
      public static _Fields findByName(String name) {
42769
        return byName.get(name);
42770
      }
42771
 
42772
      private final short _thriftId;
42773
      private final String _fieldName;
42774
 
42775
      _Fields(short thriftId, String fieldName) {
42776
        _thriftId = thriftId;
42777
        _fieldName = fieldName;
42778
      }
42779
 
42780
      public short getThriftFieldId() {
42781
        return _thriftId;
42782
      }
42783
 
42784
      public String getFieldName() {
42785
        return _fieldName;
42786
      }
42787
    }
42788
 
42789
    // isset id assignments
42790
 
42791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42792
    static {
42793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42794
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42795
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42796
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
42797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_result.class, metaDataMap);
42799
    }
42800
 
42801
    public getItemsByRiskyFlag_result() {
42802
    }
42803
 
42804
    public getItemsByRiskyFlag_result(
42805
      List<Item> success)
42806
    {
42807
      this();
42808
      this.success = success;
42809
    }
42810
 
42811
    /**
42812
     * Performs a deep copy on <i>other</i>.
42813
     */
42814
    public getItemsByRiskyFlag_result(getItemsByRiskyFlag_result other) {
42815
      if (other.isSetSuccess()) {
42816
        List<Item> __this__success = new ArrayList<Item>();
42817
        for (Item other_element : other.success) {
42818
          __this__success.add(new Item(other_element));
42819
        }
42820
        this.success = __this__success;
42821
      }
42822
    }
42823
 
42824
    public getItemsByRiskyFlag_result deepCopy() {
42825
      return new getItemsByRiskyFlag_result(this);
42826
    }
42827
 
42828
    @Override
42829
    public void clear() {
42830
      this.success = null;
42831
    }
42832
 
42833
    public int getSuccessSize() {
42834
      return (this.success == null) ? 0 : this.success.size();
42835
    }
42836
 
42837
    public java.util.Iterator<Item> getSuccessIterator() {
42838
      return (this.success == null) ? null : this.success.iterator();
42839
    }
42840
 
42841
    public void addToSuccess(Item elem) {
42842
      if (this.success == null) {
42843
        this.success = new ArrayList<Item>();
42844
      }
42845
      this.success.add(elem);
42846
    }
42847
 
42848
    public List<Item> getSuccess() {
42849
      return this.success;
42850
    }
42851
 
42852
    public void setSuccess(List<Item> success) {
42853
      this.success = success;
42854
    }
42855
 
42856
    public void unsetSuccess() {
42857
      this.success = null;
42858
    }
42859
 
42860
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
42861
    public boolean isSetSuccess() {
42862
      return this.success != null;
42863
    }
42864
 
42865
    public void setSuccessIsSet(boolean value) {
42866
      if (!value) {
42867
        this.success = null;
42868
      }
42869
    }
42870
 
42871
    public void setFieldValue(_Fields field, Object value) {
42872
      switch (field) {
42873
      case SUCCESS:
42874
        if (value == null) {
42875
          unsetSuccess();
42876
        } else {
42877
          setSuccess((List<Item>)value);
42878
        }
42879
        break;
42880
 
42881
      }
42882
    }
42883
 
42884
    public Object getFieldValue(_Fields field) {
42885
      switch (field) {
42886
      case SUCCESS:
42887
        return getSuccess();
42888
 
42889
      }
42890
      throw new IllegalStateException();
42891
    }
42892
 
42893
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42894
    public boolean isSet(_Fields field) {
42895
      if (field == null) {
42896
        throw new IllegalArgumentException();
42897
      }
42898
 
42899
      switch (field) {
42900
      case SUCCESS:
42901
        return isSetSuccess();
42902
      }
42903
      throw new IllegalStateException();
42904
    }
42905
 
42906
    @Override
42907
    public boolean equals(Object that) {
42908
      if (that == null)
42909
        return false;
42910
      if (that instanceof getItemsByRiskyFlag_result)
42911
        return this.equals((getItemsByRiskyFlag_result)that);
42912
      return false;
42913
    }
42914
 
42915
    public boolean equals(getItemsByRiskyFlag_result that) {
42916
      if (that == null)
42917
        return false;
42918
 
42919
      boolean this_present_success = true && this.isSetSuccess();
42920
      boolean that_present_success = true && that.isSetSuccess();
42921
      if (this_present_success || that_present_success) {
42922
        if (!(this_present_success && that_present_success))
42923
          return false;
42924
        if (!this.success.equals(that.success))
42925
          return false;
42926
      }
42927
 
42928
      return true;
42929
    }
42930
 
42931
    @Override
42932
    public int hashCode() {
42933
      return 0;
42934
    }
42935
 
42936
    public int compareTo(getItemsByRiskyFlag_result other) {
42937
      if (!getClass().equals(other.getClass())) {
42938
        return getClass().getName().compareTo(other.getClass().getName());
42939
      }
42940
 
42941
      int lastComparison = 0;
42942
      getItemsByRiskyFlag_result typedOther = (getItemsByRiskyFlag_result)other;
42943
 
42944
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42945
      if (lastComparison != 0) {
42946
        return lastComparison;
42947
      }
42948
      if (isSetSuccess()) {
42949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42950
        if (lastComparison != 0) {
42951
          return lastComparison;
42952
        }
42953
      }
42954
      return 0;
42955
    }
42956
 
42957
    public _Fields fieldForId(int fieldId) {
42958
      return _Fields.findByThriftId(fieldId);
42959
    }
42960
 
42961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42962
      org.apache.thrift.protocol.TField field;
42963
      iprot.readStructBegin();
42964
      while (true)
42965
      {
42966
        field = iprot.readFieldBegin();
42967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42968
          break;
42969
        }
42970
        switch (field.id) {
42971
          case 0: // SUCCESS
42972
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42973
              {
6850 kshitij.so 42974
                org.apache.thrift.protocol.TList _list106 = iprot.readListBegin();
42975
                this.success = new ArrayList<Item>(_list106.size);
42976
                for (int _i107 = 0; _i107 < _list106.size; ++_i107)
5945 mandeep.dh 42977
                {
6850 kshitij.so 42978
                  Item _elem108; // required
42979
                  _elem108 = new Item();
42980
                  _elem108.read(iprot);
42981
                  this.success.add(_elem108);
5945 mandeep.dh 42982
                }
42983
                iprot.readListEnd();
42984
              }
42985
            } else { 
42986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42987
            }
42988
            break;
42989
          default:
42990
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42991
        }
42992
        iprot.readFieldEnd();
42993
      }
42994
      iprot.readStructEnd();
42995
      validate();
42996
    }
42997
 
42998
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42999
      oprot.writeStructBegin(STRUCT_DESC);
43000
 
43001
      if (this.isSetSuccess()) {
43002
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43003
        {
43004
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 43005
          for (Item _iter109 : this.success)
5945 mandeep.dh 43006
          {
6850 kshitij.so 43007
            _iter109.write(oprot);
5945 mandeep.dh 43008
          }
43009
          oprot.writeListEnd();
43010
        }
43011
        oprot.writeFieldEnd();
43012
      }
43013
      oprot.writeFieldStop();
43014
      oprot.writeStructEnd();
43015
    }
43016
 
43017
    @Override
43018
    public String toString() {
43019
      StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_result(");
43020
      boolean first = true;
43021
 
43022
      sb.append("success:");
43023
      if (this.success == null) {
43024
        sb.append("null");
43025
      } else {
43026
        sb.append(this.success);
43027
      }
43028
      first = false;
43029
      sb.append(")");
43030
      return sb.toString();
43031
    }
43032
 
43033
    public void validate() throws org.apache.thrift.TException {
43034
      // check for required fields
43035
    }
43036
 
43037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43038
      try {
43039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43040
      } catch (org.apache.thrift.TException te) {
43041
        throw new java.io.IOException(te);
43042
      }
43043
    }
43044
 
43045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43046
      try {
43047
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43048
      } catch (org.apache.thrift.TException te) {
43049
        throw new java.io.IOException(te);
43050
      }
43051
    }
43052
 
43053
  }
43054
 
43055
  public static class getItemsForMasterSheet_args implements org.apache.thrift.TBase<getItemsForMasterSheet_args, getItemsForMasterSheet_args._Fields>, java.io.Serializable, Cloneable   {
43056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsForMasterSheet_args");
43057
 
43058
    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);
43059
    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);
43060
 
43061
    private String category; // required
43062
    private String brand; // required
43063
 
43064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43065
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43066
      CATEGORY((short)1, "category"),
43067
      BRAND((short)2, "brand");
43068
 
43069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43070
 
43071
      static {
43072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43073
          byName.put(field.getFieldName(), field);
43074
        }
43075
      }
43076
 
43077
      /**
43078
       * Find the _Fields constant that matches fieldId, or null if its not found.
43079
       */
43080
      public static _Fields findByThriftId(int fieldId) {
43081
        switch(fieldId) {
43082
          case 1: // CATEGORY
43083
            return CATEGORY;
43084
          case 2: // BRAND
43085
            return BRAND;
43086
          default:
43087
            return null;
43088
        }
43089
      }
43090
 
43091
      /**
43092
       * Find the _Fields constant that matches fieldId, throwing an exception
43093
       * if it is not found.
43094
       */
43095
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43096
        _Fields fields = findByThriftId(fieldId);
43097
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43098
        return fields;
43099
      }
43100
 
43101
      /**
43102
       * Find the _Fields constant that matches name, or null if its not found.
43103
       */
43104
      public static _Fields findByName(String name) {
43105
        return byName.get(name);
43106
      }
43107
 
43108
      private final short _thriftId;
43109
      private final String _fieldName;
43110
 
43111
      _Fields(short thriftId, String fieldName) {
43112
        _thriftId = thriftId;
43113
        _fieldName = fieldName;
43114
      }
43115
 
43116
      public short getThriftFieldId() {
43117
        return _thriftId;
43118
      }
43119
 
43120
      public String getFieldName() {
43121
        return _fieldName;
43122
      }
43123
    }
43124
 
43125
    // isset id assignments
43126
 
43127
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43128
    static {
43129
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43130
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
43132
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
43134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsForMasterSheet_args.class, metaDataMap);
43136
    }
43137
 
43138
    public getItemsForMasterSheet_args() {
43139
    }
43140
 
43141
    public getItemsForMasterSheet_args(
43142
      String category,
43143
      String brand)
43144
    {
43145
      this();
43146
      this.category = category;
43147
      this.brand = brand;
43148
    }
43149
 
43150
    /**
43151
     * Performs a deep copy on <i>other</i>.
43152
     */
43153
    public getItemsForMasterSheet_args(getItemsForMasterSheet_args other) {
43154
      if (other.isSetCategory()) {
43155
        this.category = other.category;
43156
      }
43157
      if (other.isSetBrand()) {
43158
        this.brand = other.brand;
43159
      }
43160
    }
43161
 
43162
    public getItemsForMasterSheet_args deepCopy() {
43163
      return new getItemsForMasterSheet_args(this);
43164
    }
43165
 
43166
    @Override
43167
    public void clear() {
43168
      this.category = null;
43169
      this.brand = null;
43170
    }
43171
 
43172
    public String getCategory() {
43173
      return this.category;
43174
    }
43175
 
43176
    public void setCategory(String category) {
43177
      this.category = category;
43178
    }
43179
 
43180
    public void unsetCategory() {
43181
      this.category = null;
43182
    }
43183
 
43184
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
43185
    public boolean isSetCategory() {
43186
      return this.category != null;
43187
    }
43188
 
43189
    public void setCategoryIsSet(boolean value) {
43190
      if (!value) {
43191
        this.category = null;
43192
      }
43193
    }
43194
 
43195
    public String getBrand() {
43196
      return this.brand;
43197
    }
43198
 
43199
    public void setBrand(String brand) {
43200
      this.brand = brand;
43201
    }
43202
 
43203
    public void unsetBrand() {
43204
      this.brand = null;
43205
    }
43206
 
43207
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
43208
    public boolean isSetBrand() {
43209
      return this.brand != null;
43210
    }
43211
 
43212
    public void setBrandIsSet(boolean value) {
43213
      if (!value) {
43214
        this.brand = null;
43215
      }
43216
    }
43217
 
43218
    public void setFieldValue(_Fields field, Object value) {
43219
      switch (field) {
43220
      case CATEGORY:
43221
        if (value == null) {
43222
          unsetCategory();
43223
        } else {
43224
          setCategory((String)value);
43225
        }
43226
        break;
43227
 
43228
      case BRAND:
43229
        if (value == null) {
43230
          unsetBrand();
43231
        } else {
43232
          setBrand((String)value);
43233
        }
43234
        break;
43235
 
43236
      }
43237
    }
43238
 
43239
    public Object getFieldValue(_Fields field) {
43240
      switch (field) {
43241
      case CATEGORY:
43242
        return getCategory();
43243
 
43244
      case BRAND:
43245
        return getBrand();
43246
 
43247
      }
43248
      throw new IllegalStateException();
43249
    }
43250
 
43251
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43252
    public boolean isSet(_Fields field) {
43253
      if (field == null) {
43254
        throw new IllegalArgumentException();
43255
      }
43256
 
43257
      switch (field) {
43258
      case CATEGORY:
43259
        return isSetCategory();
43260
      case BRAND:
43261
        return isSetBrand();
43262
      }
43263
      throw new IllegalStateException();
43264
    }
43265
 
43266
    @Override
43267
    public boolean equals(Object that) {
43268
      if (that == null)
43269
        return false;
43270
      if (that instanceof getItemsForMasterSheet_args)
43271
        return this.equals((getItemsForMasterSheet_args)that);
43272
      return false;
43273
    }
43274
 
43275
    public boolean equals(getItemsForMasterSheet_args that) {
43276
      if (that == null)
43277
        return false;
43278
 
43279
      boolean this_present_category = true && this.isSetCategory();
43280
      boolean that_present_category = true && that.isSetCategory();
43281
      if (this_present_category || that_present_category) {
43282
        if (!(this_present_category && that_present_category))
43283
          return false;
43284
        if (!this.category.equals(that.category))
43285
          return false;
43286
      }
43287
 
43288
      boolean this_present_brand = true && this.isSetBrand();
43289
      boolean that_present_brand = true && that.isSetBrand();
43290
      if (this_present_brand || that_present_brand) {
43291
        if (!(this_present_brand && that_present_brand))
43292
          return false;
43293
        if (!this.brand.equals(that.brand))
43294
          return false;
43295
      }
43296
 
43297
      return true;
43298
    }
43299
 
43300
    @Override
43301
    public int hashCode() {
43302
      return 0;
43303
    }
43304
 
43305
    public int compareTo(getItemsForMasterSheet_args other) {
43306
      if (!getClass().equals(other.getClass())) {
43307
        return getClass().getName().compareTo(other.getClass().getName());
43308
      }
43309
 
43310
      int lastComparison = 0;
43311
      getItemsForMasterSheet_args typedOther = (getItemsForMasterSheet_args)other;
43312
 
43313
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
43314
      if (lastComparison != 0) {
43315
        return lastComparison;
43316
      }
43317
      if (isSetCategory()) {
43318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
43319
        if (lastComparison != 0) {
43320
          return lastComparison;
43321
        }
43322
      }
43323
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
43324
      if (lastComparison != 0) {
43325
        return lastComparison;
43326
      }
43327
      if (isSetBrand()) {
43328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
43329
        if (lastComparison != 0) {
43330
          return lastComparison;
43331
        }
43332
      }
43333
      return 0;
43334
    }
43335
 
43336
    public _Fields fieldForId(int fieldId) {
43337
      return _Fields.findByThriftId(fieldId);
43338
    }
43339
 
43340
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43341
      org.apache.thrift.protocol.TField field;
43342
      iprot.readStructBegin();
43343
      while (true)
43344
      {
43345
        field = iprot.readFieldBegin();
43346
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43347
          break;
43348
        }
43349
        switch (field.id) {
43350
          case 1: // CATEGORY
43351
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
43352
              this.category = iprot.readString();
43353
            } else { 
43354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43355
            }
43356
            break;
43357
          case 2: // BRAND
43358
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
43359
              this.brand = iprot.readString();
43360
            } else { 
43361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43362
            }
43363
            break;
43364
          default:
43365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43366
        }
43367
        iprot.readFieldEnd();
43368
      }
43369
      iprot.readStructEnd();
43370
      validate();
43371
    }
43372
 
43373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43374
      validate();
43375
 
43376
      oprot.writeStructBegin(STRUCT_DESC);
43377
      if (this.category != null) {
43378
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
43379
        oprot.writeString(this.category);
43380
        oprot.writeFieldEnd();
43381
      }
43382
      if (this.brand != null) {
43383
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
43384
        oprot.writeString(this.brand);
43385
        oprot.writeFieldEnd();
43386
      }
43387
      oprot.writeFieldStop();
43388
      oprot.writeStructEnd();
43389
    }
43390
 
43391
    @Override
43392
    public String toString() {
43393
      StringBuilder sb = new StringBuilder("getItemsForMasterSheet_args(");
43394
      boolean first = true;
43395
 
43396
      sb.append("category:");
43397
      if (this.category == null) {
43398
        sb.append("null");
43399
      } else {
43400
        sb.append(this.category);
43401
      }
43402
      first = false;
43403
      if (!first) sb.append(", ");
43404
      sb.append("brand:");
43405
      if (this.brand == null) {
43406
        sb.append("null");
43407
      } else {
43408
        sb.append(this.brand);
43409
      }
43410
      first = false;
43411
      sb.append(")");
43412
      return sb.toString();
43413
    }
43414
 
43415
    public void validate() throws org.apache.thrift.TException {
43416
      // check for required fields
43417
    }
43418
 
43419
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43420
      try {
43421
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43422
      } catch (org.apache.thrift.TException te) {
43423
        throw new java.io.IOException(te);
43424
      }
43425
    }
43426
 
43427
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43428
      try {
43429
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43430
      } catch (org.apache.thrift.TException te) {
43431
        throw new java.io.IOException(te);
43432
      }
43433
    }
43434
 
43435
  }
43436
 
43437
  public static class getItemsForMasterSheet_result implements org.apache.thrift.TBase<getItemsForMasterSheet_result, getItemsForMasterSheet_result._Fields>, java.io.Serializable, Cloneable   {
43438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsForMasterSheet_result");
43439
 
43440
    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);
43441
 
43442
    private List<Item> success; // required
43443
 
43444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43446
      SUCCESS((short)0, "success");
43447
 
43448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43449
 
43450
      static {
43451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43452
          byName.put(field.getFieldName(), field);
43453
        }
43454
      }
43455
 
43456
      /**
43457
       * Find the _Fields constant that matches fieldId, or null if its not found.
43458
       */
43459
      public static _Fields findByThriftId(int fieldId) {
43460
        switch(fieldId) {
43461
          case 0: // SUCCESS
43462
            return SUCCESS;
43463
          default:
43464
            return null;
43465
        }
43466
      }
43467
 
43468
      /**
43469
       * Find the _Fields constant that matches fieldId, throwing an exception
43470
       * if it is not found.
43471
       */
43472
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43473
        _Fields fields = findByThriftId(fieldId);
43474
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43475
        return fields;
43476
      }
43477
 
43478
      /**
43479
       * Find the _Fields constant that matches name, or null if its not found.
43480
       */
43481
      public static _Fields findByName(String name) {
43482
        return byName.get(name);
43483
      }
43484
 
43485
      private final short _thriftId;
43486
      private final String _fieldName;
43487
 
43488
      _Fields(short thriftId, String fieldName) {
43489
        _thriftId = thriftId;
43490
        _fieldName = fieldName;
43491
      }
43492
 
43493
      public short getThriftFieldId() {
43494
        return _thriftId;
43495
      }
43496
 
43497
      public String getFieldName() {
43498
        return _fieldName;
43499
      }
43500
    }
43501
 
43502
    // isset id assignments
43503
 
43504
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43505
    static {
43506
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43507
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43508
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
43509
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
43510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsForMasterSheet_result.class, metaDataMap);
43512
    }
43513
 
43514
    public getItemsForMasterSheet_result() {
43515
    }
43516
 
43517
    public getItemsForMasterSheet_result(
43518
      List<Item> success)
43519
    {
43520
      this();
43521
      this.success = success;
43522
    }
43523
 
43524
    /**
43525
     * Performs a deep copy on <i>other</i>.
43526
     */
43527
    public getItemsForMasterSheet_result(getItemsForMasterSheet_result other) {
43528
      if (other.isSetSuccess()) {
43529
        List<Item> __this__success = new ArrayList<Item>();
43530
        for (Item other_element : other.success) {
43531
          __this__success.add(new Item(other_element));
43532
        }
43533
        this.success = __this__success;
43534
      }
43535
    }
43536
 
43537
    public getItemsForMasterSheet_result deepCopy() {
43538
      return new getItemsForMasterSheet_result(this);
43539
    }
43540
 
43541
    @Override
43542
    public void clear() {
43543
      this.success = null;
43544
    }
43545
 
43546
    public int getSuccessSize() {
43547
      return (this.success == null) ? 0 : this.success.size();
43548
    }
43549
 
43550
    public java.util.Iterator<Item> getSuccessIterator() {
43551
      return (this.success == null) ? null : this.success.iterator();
43552
    }
43553
 
43554
    public void addToSuccess(Item elem) {
43555
      if (this.success == null) {
43556
        this.success = new ArrayList<Item>();
43557
      }
43558
      this.success.add(elem);
43559
    }
43560
 
43561
    public List<Item> getSuccess() {
43562
      return this.success;
43563
    }
43564
 
43565
    public void setSuccess(List<Item> success) {
43566
      this.success = success;
43567
    }
43568
 
43569
    public void unsetSuccess() {
43570
      this.success = null;
43571
    }
43572
 
43573
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
43574
    public boolean isSetSuccess() {
43575
      return this.success != null;
43576
    }
43577
 
43578
    public void setSuccessIsSet(boolean value) {
43579
      if (!value) {
43580
        this.success = null;
43581
      }
43582
    }
43583
 
43584
    public void setFieldValue(_Fields field, Object value) {
43585
      switch (field) {
43586
      case SUCCESS:
43587
        if (value == null) {
43588
          unsetSuccess();
43589
        } else {
43590
          setSuccess((List<Item>)value);
43591
        }
43592
        break;
43593
 
43594
      }
43595
    }
43596
 
43597
    public Object getFieldValue(_Fields field) {
43598
      switch (field) {
43599
      case SUCCESS:
43600
        return getSuccess();
43601
 
43602
      }
43603
      throw new IllegalStateException();
43604
    }
43605
 
43606
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43607
    public boolean isSet(_Fields field) {
43608
      if (field == null) {
43609
        throw new IllegalArgumentException();
43610
      }
43611
 
43612
      switch (field) {
43613
      case SUCCESS:
43614
        return isSetSuccess();
43615
      }
43616
      throw new IllegalStateException();
43617
    }
43618
 
43619
    @Override
43620
    public boolean equals(Object that) {
43621
      if (that == null)
43622
        return false;
43623
      if (that instanceof getItemsForMasterSheet_result)
43624
        return this.equals((getItemsForMasterSheet_result)that);
43625
      return false;
43626
    }
43627
 
43628
    public boolean equals(getItemsForMasterSheet_result that) {
43629
      if (that == null)
43630
        return false;
43631
 
43632
      boolean this_present_success = true && this.isSetSuccess();
43633
      boolean that_present_success = true && that.isSetSuccess();
43634
      if (this_present_success || that_present_success) {
43635
        if (!(this_present_success && that_present_success))
43636
          return false;
43637
        if (!this.success.equals(that.success))
43638
          return false;
43639
      }
43640
 
43641
      return true;
43642
    }
43643
 
43644
    @Override
43645
    public int hashCode() {
43646
      return 0;
43647
    }
43648
 
43649
    public int compareTo(getItemsForMasterSheet_result other) {
43650
      if (!getClass().equals(other.getClass())) {
43651
        return getClass().getName().compareTo(other.getClass().getName());
43652
      }
43653
 
43654
      int lastComparison = 0;
43655
      getItemsForMasterSheet_result typedOther = (getItemsForMasterSheet_result)other;
43656
 
43657
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43658
      if (lastComparison != 0) {
43659
        return lastComparison;
43660
      }
43661
      if (isSetSuccess()) {
43662
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43663
        if (lastComparison != 0) {
43664
          return lastComparison;
43665
        }
43666
      }
43667
      return 0;
43668
    }
43669
 
43670
    public _Fields fieldForId(int fieldId) {
43671
      return _Fields.findByThriftId(fieldId);
43672
    }
43673
 
43674
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43675
      org.apache.thrift.protocol.TField field;
43676
      iprot.readStructBegin();
43677
      while (true)
43678
      {
43679
        field = iprot.readFieldBegin();
43680
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43681
          break;
43682
        }
43683
        switch (field.id) {
43684
          case 0: // SUCCESS
43685
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
43686
              {
6850 kshitij.so 43687
                org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
43688
                this.success = new ArrayList<Item>(_list110.size);
43689
                for (int _i111 = 0; _i111 < _list110.size; ++_i111)
5945 mandeep.dh 43690
                {
6850 kshitij.so 43691
                  Item _elem112; // required
43692
                  _elem112 = new Item();
43693
                  _elem112.read(iprot);
43694
                  this.success.add(_elem112);
5945 mandeep.dh 43695
                }
43696
                iprot.readListEnd();
43697
              }
43698
            } else { 
43699
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43700
            }
43701
            break;
43702
          default:
43703
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43704
        }
43705
        iprot.readFieldEnd();
43706
      }
43707
      iprot.readStructEnd();
43708
      validate();
43709
    }
43710
 
43711
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43712
      oprot.writeStructBegin(STRUCT_DESC);
43713
 
43714
      if (this.isSetSuccess()) {
43715
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43716
        {
43717
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 43718
          for (Item _iter113 : this.success)
5945 mandeep.dh 43719
          {
6850 kshitij.so 43720
            _iter113.write(oprot);
5945 mandeep.dh 43721
          }
43722
          oprot.writeListEnd();
43723
        }
43724
        oprot.writeFieldEnd();
43725
      }
43726
      oprot.writeFieldStop();
43727
      oprot.writeStructEnd();
43728
    }
43729
 
43730
    @Override
43731
    public String toString() {
43732
      StringBuilder sb = new StringBuilder("getItemsForMasterSheet_result(");
43733
      boolean first = true;
43734
 
43735
      sb.append("success:");
43736
      if (this.success == null) {
43737
        sb.append("null");
43738
      } else {
43739
        sb.append(this.success);
43740
      }
43741
      first = false;
43742
      sb.append(")");
43743
      return sb.toString();
43744
    }
43745
 
43746
    public void validate() throws org.apache.thrift.TException {
43747
      // check for required fields
43748
    }
43749
 
43750
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43751
      try {
43752
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43753
      } catch (org.apache.thrift.TException te) {
43754
        throw new java.io.IOException(te);
43755
      }
43756
    }
43757
 
43758
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43759
      try {
43760
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43761
      } catch (org.apache.thrift.TException te) {
43762
        throw new java.io.IOException(te);
43763
      }
43764
    }
43765
 
43766
  }
43767
 
43768
  public static class getSimilarItemsCatalogIds_args implements org.apache.thrift.TBase<getSimilarItemsCatalogIds_args, getSimilarItemsCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
43769
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSimilarItemsCatalogIds_args");
43770
 
43771
    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);
43772
    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);
43773
    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);
43774
 
43775
    private long beginIndex; // required
43776
    private long totalItems; // required
43777
    private long itemId; // required
43778
 
43779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43781
      BEGIN_INDEX((short)1, "beginIndex"),
43782
      TOTAL_ITEMS((short)2, "totalItems"),
43783
      ITEM_ID((short)3, "itemId");
43784
 
43785
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43786
 
43787
      static {
43788
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43789
          byName.put(field.getFieldName(), field);
43790
        }
43791
      }
43792
 
43793
      /**
43794
       * Find the _Fields constant that matches fieldId, or null if its not found.
43795
       */
43796
      public static _Fields findByThriftId(int fieldId) {
43797
        switch(fieldId) {
43798
          case 1: // BEGIN_INDEX
43799
            return BEGIN_INDEX;
43800
          case 2: // TOTAL_ITEMS
43801
            return TOTAL_ITEMS;
43802
          case 3: // ITEM_ID
43803
            return ITEM_ID;
43804
          default:
43805
            return null;
43806
        }
43807
      }
43808
 
43809
      /**
43810
       * Find the _Fields constant that matches fieldId, throwing an exception
43811
       * if it is not found.
43812
       */
43813
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43814
        _Fields fields = findByThriftId(fieldId);
43815
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43816
        return fields;
43817
      }
43818
 
43819
      /**
43820
       * Find the _Fields constant that matches name, or null if its not found.
43821
       */
43822
      public static _Fields findByName(String name) {
43823
        return byName.get(name);
43824
      }
43825
 
43826
      private final short _thriftId;
43827
      private final String _fieldName;
43828
 
43829
      _Fields(short thriftId, String fieldName) {
43830
        _thriftId = thriftId;
43831
        _fieldName = fieldName;
43832
      }
43833
 
43834
      public short getThriftFieldId() {
43835
        return _thriftId;
43836
      }
43837
 
43838
      public String getFieldName() {
43839
        return _fieldName;
43840
      }
43841
    }
43842
 
43843
    // isset id assignments
43844
    private static final int __BEGININDEX_ISSET_ID = 0;
43845
    private static final int __TOTALITEMS_ISSET_ID = 1;
43846
    private static final int __ITEMID_ISSET_ID = 2;
43847
    private BitSet __isset_bit_vector = new BitSet(3);
43848
 
43849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43850
    static {
43851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43852
      tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43854
      tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43856
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSimilarItemsCatalogIds_args.class, metaDataMap);
43860
    }
43861
 
43862
    public getSimilarItemsCatalogIds_args() {
43863
    }
43864
 
43865
    public getSimilarItemsCatalogIds_args(
43866
      long beginIndex,
43867
      long totalItems,
43868
      long itemId)
43869
    {
43870
      this();
43871
      this.beginIndex = beginIndex;
43872
      setBeginIndexIsSet(true);
43873
      this.totalItems = totalItems;
43874
      setTotalItemsIsSet(true);
43875
      this.itemId = itemId;
43876
      setItemIdIsSet(true);
43877
    }
43878
 
43879
    /**
43880
     * Performs a deep copy on <i>other</i>.
43881
     */
43882
    public getSimilarItemsCatalogIds_args(getSimilarItemsCatalogIds_args other) {
43883
      __isset_bit_vector.clear();
43884
      __isset_bit_vector.or(other.__isset_bit_vector);
43885
      this.beginIndex = other.beginIndex;
43886
      this.totalItems = other.totalItems;
43887
      this.itemId = other.itemId;
43888
    }
43889
 
43890
    public getSimilarItemsCatalogIds_args deepCopy() {
43891
      return new getSimilarItemsCatalogIds_args(this);
43892
    }
43893
 
43894
    @Override
43895
    public void clear() {
43896
      setBeginIndexIsSet(false);
43897
      this.beginIndex = 0;
43898
      setTotalItemsIsSet(false);
43899
      this.totalItems = 0;
43900
      setItemIdIsSet(false);
43901
      this.itemId = 0;
43902
    }
43903
 
43904
    public long getBeginIndex() {
43905
      return this.beginIndex;
43906
    }
43907
 
43908
    public void setBeginIndex(long beginIndex) {
43909
      this.beginIndex = beginIndex;
43910
      setBeginIndexIsSet(true);
43911
    }
43912
 
43913
    public void unsetBeginIndex() {
43914
      __isset_bit_vector.clear(__BEGININDEX_ISSET_ID);
43915
    }
43916
 
43917
    /** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */
43918
    public boolean isSetBeginIndex() {
43919
      return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);
43920
    }
43921
 
43922
    public void setBeginIndexIsSet(boolean value) {
43923
      __isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);
43924
    }
43925
 
43926
    public long getTotalItems() {
43927
      return this.totalItems;
43928
    }
43929
 
43930
    public void setTotalItems(long totalItems) {
43931
      this.totalItems = totalItems;
43932
      setTotalItemsIsSet(true);
43933
    }
43934
 
43935
    public void unsetTotalItems() {
43936
      __isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);
43937
    }
43938
 
43939
    /** Returns true if field totalItems is set (has been assigned a value) and false otherwise */
43940
    public boolean isSetTotalItems() {
43941
      return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);
43942
    }
43943
 
43944
    public void setTotalItemsIsSet(boolean value) {
43945
      __isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);
43946
    }
43947
 
43948
    public long getItemId() {
43949
      return this.itemId;
43950
    }
43951
 
43952
    public void setItemId(long itemId) {
43953
      this.itemId = itemId;
43954
      setItemIdIsSet(true);
43955
    }
43956
 
43957
    public void unsetItemId() {
43958
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
43959
    }
43960
 
43961
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
43962
    public boolean isSetItemId() {
43963
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
43964
    }
43965
 
43966
    public void setItemIdIsSet(boolean value) {
43967
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
43968
    }
43969
 
43970
    public void setFieldValue(_Fields field, Object value) {
43971
      switch (field) {
43972
      case BEGIN_INDEX:
43973
        if (value == null) {
43974
          unsetBeginIndex();
43975
        } else {
43976
          setBeginIndex((Long)value);
43977
        }
43978
        break;
43979
 
43980
      case TOTAL_ITEMS:
43981
        if (value == null) {
43982
          unsetTotalItems();
43983
        } else {
43984
          setTotalItems((Long)value);
43985
        }
43986
        break;
43987
 
43988
      case ITEM_ID:
43989
        if (value == null) {
43990
          unsetItemId();
43991
        } else {
43992
          setItemId((Long)value);
43993
        }
43994
        break;
43995
 
43996
      }
43997
    }
43998
 
43999
    public Object getFieldValue(_Fields field) {
44000
      switch (field) {
44001
      case BEGIN_INDEX:
44002
        return Long.valueOf(getBeginIndex());
44003
 
44004
      case TOTAL_ITEMS:
44005
        return Long.valueOf(getTotalItems());
44006
 
44007
      case ITEM_ID:
44008
        return Long.valueOf(getItemId());
44009
 
44010
      }
44011
      throw new IllegalStateException();
44012
    }
44013
 
44014
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44015
    public boolean isSet(_Fields field) {
44016
      if (field == null) {
44017
        throw new IllegalArgumentException();
44018
      }
44019
 
44020
      switch (field) {
44021
      case BEGIN_INDEX:
44022
        return isSetBeginIndex();
44023
      case TOTAL_ITEMS:
44024
        return isSetTotalItems();
44025
      case ITEM_ID:
44026
        return isSetItemId();
44027
      }
44028
      throw new IllegalStateException();
44029
    }
44030
 
44031
    @Override
44032
    public boolean equals(Object that) {
44033
      if (that == null)
44034
        return false;
44035
      if (that instanceof getSimilarItemsCatalogIds_args)
44036
        return this.equals((getSimilarItemsCatalogIds_args)that);
44037
      return false;
44038
    }
44039
 
44040
    public boolean equals(getSimilarItemsCatalogIds_args that) {
44041
      if (that == null)
44042
        return false;
44043
 
44044
      boolean this_present_beginIndex = true;
44045
      boolean that_present_beginIndex = true;
44046
      if (this_present_beginIndex || that_present_beginIndex) {
44047
        if (!(this_present_beginIndex && that_present_beginIndex))
44048
          return false;
44049
        if (this.beginIndex != that.beginIndex)
44050
          return false;
44051
      }
44052
 
44053
      boolean this_present_totalItems = true;
44054
      boolean that_present_totalItems = true;
44055
      if (this_present_totalItems || that_present_totalItems) {
44056
        if (!(this_present_totalItems && that_present_totalItems))
44057
          return false;
44058
        if (this.totalItems != that.totalItems)
44059
          return false;
44060
      }
44061
 
44062
      boolean this_present_itemId = true;
44063
      boolean that_present_itemId = true;
44064
      if (this_present_itemId || that_present_itemId) {
44065
        if (!(this_present_itemId && that_present_itemId))
44066
          return false;
44067
        if (this.itemId != that.itemId)
44068
          return false;
44069
      }
44070
 
44071
      return true;
44072
    }
44073
 
44074
    @Override
44075
    public int hashCode() {
44076
      return 0;
44077
    }
44078
 
44079
    public int compareTo(getSimilarItemsCatalogIds_args other) {
44080
      if (!getClass().equals(other.getClass())) {
44081
        return getClass().getName().compareTo(other.getClass().getName());
44082
      }
44083
 
44084
      int lastComparison = 0;
44085
      getSimilarItemsCatalogIds_args typedOther = (getSimilarItemsCatalogIds_args)other;
44086
 
44087
      lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());
44088
      if (lastComparison != 0) {
44089
        return lastComparison;
44090
      }
44091
      if (isSetBeginIndex()) {
44092
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);
44093
        if (lastComparison != 0) {
44094
          return lastComparison;
44095
        }
44096
      }
44097
      lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());
44098
      if (lastComparison != 0) {
44099
        return lastComparison;
44100
      }
44101
      if (isSetTotalItems()) {
44102
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);
44103
        if (lastComparison != 0) {
44104
          return lastComparison;
44105
        }
44106
      }
44107
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
44108
      if (lastComparison != 0) {
44109
        return lastComparison;
44110
      }
44111
      if (isSetItemId()) {
44112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
44113
        if (lastComparison != 0) {
44114
          return lastComparison;
44115
        }
44116
      }
44117
      return 0;
44118
    }
44119
 
44120
    public _Fields fieldForId(int fieldId) {
44121
      return _Fields.findByThriftId(fieldId);
44122
    }
44123
 
44124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44125
      org.apache.thrift.protocol.TField field;
44126
      iprot.readStructBegin();
44127
      while (true)
44128
      {
44129
        field = iprot.readFieldBegin();
44130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44131
          break;
44132
        }
44133
        switch (field.id) {
44134
          case 1: // BEGIN_INDEX
44135
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44136
              this.beginIndex = iprot.readI64();
44137
              setBeginIndexIsSet(true);
44138
            } else { 
44139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44140
            }
44141
            break;
44142
          case 2: // TOTAL_ITEMS
44143
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44144
              this.totalItems = iprot.readI64();
44145
              setTotalItemsIsSet(true);
44146
            } else { 
44147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44148
            }
44149
            break;
44150
          case 3: // ITEM_ID
44151
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44152
              this.itemId = iprot.readI64();
44153
              setItemIdIsSet(true);
44154
            } else { 
44155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44156
            }
44157
            break;
44158
          default:
44159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44160
        }
44161
        iprot.readFieldEnd();
44162
      }
44163
      iprot.readStructEnd();
44164
      validate();
44165
    }
44166
 
44167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44168
      validate();
44169
 
44170
      oprot.writeStructBegin(STRUCT_DESC);
44171
      oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);
44172
      oprot.writeI64(this.beginIndex);
44173
      oprot.writeFieldEnd();
44174
      oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);
44175
      oprot.writeI64(this.totalItems);
44176
      oprot.writeFieldEnd();
44177
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
44178
      oprot.writeI64(this.itemId);
44179
      oprot.writeFieldEnd();
44180
      oprot.writeFieldStop();
44181
      oprot.writeStructEnd();
44182
    }
44183
 
44184
    @Override
44185
    public String toString() {
44186
      StringBuilder sb = new StringBuilder("getSimilarItemsCatalogIds_args(");
44187
      boolean first = true;
44188
 
44189
      sb.append("beginIndex:");
44190
      sb.append(this.beginIndex);
44191
      first = false;
44192
      if (!first) sb.append(", ");
44193
      sb.append("totalItems:");
44194
      sb.append(this.totalItems);
44195
      first = false;
44196
      if (!first) sb.append(", ");
44197
      sb.append("itemId:");
44198
      sb.append(this.itemId);
44199
      first = false;
44200
      sb.append(")");
44201
      return sb.toString();
44202
    }
44203
 
44204
    public void validate() throws org.apache.thrift.TException {
44205
      // check for required fields
44206
    }
44207
 
44208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44209
      try {
44210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44211
      } catch (org.apache.thrift.TException te) {
44212
        throw new java.io.IOException(te);
44213
      }
44214
    }
44215
 
44216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44217
      try {
44218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44219
      } catch (org.apache.thrift.TException te) {
44220
        throw new java.io.IOException(te);
44221
      }
44222
    }
44223
 
44224
  }
44225
 
44226
  public static class getSimilarItemsCatalogIds_result implements org.apache.thrift.TBase<getSimilarItemsCatalogIds_result, getSimilarItemsCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
44227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSimilarItemsCatalogIds_result");
44228
 
44229
    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);
44230
 
44231
    private List<Long> success; // required
44232
 
44233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44235
      SUCCESS((short)0, "success");
44236
 
44237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44238
 
44239
      static {
44240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44241
          byName.put(field.getFieldName(), field);
44242
        }
44243
      }
44244
 
44245
      /**
44246
       * Find the _Fields constant that matches fieldId, or null if its not found.
44247
       */
44248
      public static _Fields findByThriftId(int fieldId) {
44249
        switch(fieldId) {
44250
          case 0: // SUCCESS
44251
            return SUCCESS;
44252
          default:
44253
            return null;
44254
        }
44255
      }
44256
 
44257
      /**
44258
       * Find the _Fields constant that matches fieldId, throwing an exception
44259
       * if it is not found.
44260
       */
44261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44262
        _Fields fields = findByThriftId(fieldId);
44263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44264
        return fields;
44265
      }
44266
 
44267
      /**
44268
       * Find the _Fields constant that matches name, or null if its not found.
44269
       */
44270
      public static _Fields findByName(String name) {
44271
        return byName.get(name);
44272
      }
44273
 
44274
      private final short _thriftId;
44275
      private final String _fieldName;
44276
 
44277
      _Fields(short thriftId, String fieldName) {
44278
        _thriftId = thriftId;
44279
        _fieldName = fieldName;
44280
      }
44281
 
44282
      public short getThriftFieldId() {
44283
        return _thriftId;
44284
      }
44285
 
44286
      public String getFieldName() {
44287
        return _fieldName;
44288
      }
44289
    }
44290
 
44291
    // isset id assignments
44292
 
44293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44294
    static {
44295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44297
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
44298
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
44299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSimilarItemsCatalogIds_result.class, metaDataMap);
44301
    }
44302
 
44303
    public getSimilarItemsCatalogIds_result() {
44304
    }
44305
 
44306
    public getSimilarItemsCatalogIds_result(
44307
      List<Long> success)
44308
    {
44309
      this();
44310
      this.success = success;
44311
    }
44312
 
44313
    /**
44314
     * Performs a deep copy on <i>other</i>.
44315
     */
44316
    public getSimilarItemsCatalogIds_result(getSimilarItemsCatalogIds_result other) {
44317
      if (other.isSetSuccess()) {
44318
        List<Long> __this__success = new ArrayList<Long>();
44319
        for (Long other_element : other.success) {
44320
          __this__success.add(other_element);
44321
        }
44322
        this.success = __this__success;
44323
      }
44324
    }
44325
 
44326
    public getSimilarItemsCatalogIds_result deepCopy() {
44327
      return new getSimilarItemsCatalogIds_result(this);
44328
    }
44329
 
44330
    @Override
44331
    public void clear() {
44332
      this.success = null;
44333
    }
44334
 
44335
    public int getSuccessSize() {
44336
      return (this.success == null) ? 0 : this.success.size();
44337
    }
44338
 
44339
    public java.util.Iterator<Long> getSuccessIterator() {
44340
      return (this.success == null) ? null : this.success.iterator();
44341
    }
44342
 
44343
    public void addToSuccess(long elem) {
44344
      if (this.success == null) {
44345
        this.success = new ArrayList<Long>();
44346
      }
44347
      this.success.add(elem);
44348
    }
44349
 
44350
    public List<Long> getSuccess() {
44351
      return this.success;
44352
    }
44353
 
44354
    public void setSuccess(List<Long> success) {
44355
      this.success = success;
44356
    }
44357
 
44358
    public void unsetSuccess() {
44359
      this.success = null;
44360
    }
44361
 
44362
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
44363
    public boolean isSetSuccess() {
44364
      return this.success != null;
44365
    }
44366
 
44367
    public void setSuccessIsSet(boolean value) {
44368
      if (!value) {
44369
        this.success = null;
44370
      }
44371
    }
44372
 
44373
    public void setFieldValue(_Fields field, Object value) {
44374
      switch (field) {
44375
      case SUCCESS:
44376
        if (value == null) {
44377
          unsetSuccess();
44378
        } else {
44379
          setSuccess((List<Long>)value);
44380
        }
44381
        break;
44382
 
44383
      }
44384
    }
44385
 
44386
    public Object getFieldValue(_Fields field) {
44387
      switch (field) {
44388
      case SUCCESS:
44389
        return getSuccess();
44390
 
44391
      }
44392
      throw new IllegalStateException();
44393
    }
44394
 
44395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44396
    public boolean isSet(_Fields field) {
44397
      if (field == null) {
44398
        throw new IllegalArgumentException();
44399
      }
44400
 
44401
      switch (field) {
44402
      case SUCCESS:
44403
        return isSetSuccess();
44404
      }
44405
      throw new IllegalStateException();
44406
    }
44407
 
44408
    @Override
44409
    public boolean equals(Object that) {
44410
      if (that == null)
44411
        return false;
44412
      if (that instanceof getSimilarItemsCatalogIds_result)
44413
        return this.equals((getSimilarItemsCatalogIds_result)that);
44414
      return false;
44415
    }
44416
 
44417
    public boolean equals(getSimilarItemsCatalogIds_result that) {
44418
      if (that == null)
44419
        return false;
44420
 
44421
      boolean this_present_success = true && this.isSetSuccess();
44422
      boolean that_present_success = true && that.isSetSuccess();
44423
      if (this_present_success || that_present_success) {
44424
        if (!(this_present_success && that_present_success))
44425
          return false;
44426
        if (!this.success.equals(that.success))
44427
          return false;
44428
      }
44429
 
44430
      return true;
44431
    }
44432
 
44433
    @Override
44434
    public int hashCode() {
44435
      return 0;
44436
    }
44437
 
44438
    public int compareTo(getSimilarItemsCatalogIds_result other) {
44439
      if (!getClass().equals(other.getClass())) {
44440
        return getClass().getName().compareTo(other.getClass().getName());
44441
      }
44442
 
44443
      int lastComparison = 0;
44444
      getSimilarItemsCatalogIds_result typedOther = (getSimilarItemsCatalogIds_result)other;
44445
 
44446
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
44447
      if (lastComparison != 0) {
44448
        return lastComparison;
44449
      }
44450
      if (isSetSuccess()) {
44451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44452
        if (lastComparison != 0) {
44453
          return lastComparison;
44454
        }
44455
      }
44456
      return 0;
44457
    }
44458
 
44459
    public _Fields fieldForId(int fieldId) {
44460
      return _Fields.findByThriftId(fieldId);
44461
    }
44462
 
44463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44464
      org.apache.thrift.protocol.TField field;
44465
      iprot.readStructBegin();
44466
      while (true)
44467
      {
44468
        field = iprot.readFieldBegin();
44469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44470
          break;
44471
        }
44472
        switch (field.id) {
44473
          case 0: // SUCCESS
44474
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44475
              {
6850 kshitij.so 44476
                org.apache.thrift.protocol.TList _list114 = iprot.readListBegin();
44477
                this.success = new ArrayList<Long>(_list114.size);
44478
                for (int _i115 = 0; _i115 < _list114.size; ++_i115)
5945 mandeep.dh 44479
                {
6850 kshitij.so 44480
                  long _elem116; // required
44481
                  _elem116 = iprot.readI64();
44482
                  this.success.add(_elem116);
5945 mandeep.dh 44483
                }
44484
                iprot.readListEnd();
44485
              }
44486
            } else { 
44487
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44488
            }
44489
            break;
44490
          default:
44491
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44492
        }
44493
        iprot.readFieldEnd();
44494
      }
44495
      iprot.readStructEnd();
44496
      validate();
44497
    }
44498
 
44499
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44500
      oprot.writeStructBegin(STRUCT_DESC);
44501
 
44502
      if (this.isSetSuccess()) {
44503
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44504
        {
44505
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
6850 kshitij.so 44506
          for (long _iter117 : this.success)
5945 mandeep.dh 44507
          {
6850 kshitij.so 44508
            oprot.writeI64(_iter117);
5945 mandeep.dh 44509
          }
44510
          oprot.writeListEnd();
44511
        }
44512
        oprot.writeFieldEnd();
44513
      }
44514
      oprot.writeFieldStop();
44515
      oprot.writeStructEnd();
44516
    }
44517
 
44518
    @Override
44519
    public String toString() {
44520
      StringBuilder sb = new StringBuilder("getSimilarItemsCatalogIds_result(");
44521
      boolean first = true;
44522
 
44523
      sb.append("success:");
44524
      if (this.success == null) {
44525
        sb.append("null");
44526
      } else {
44527
        sb.append(this.success);
44528
      }
44529
      first = false;
44530
      sb.append(")");
44531
      return sb.toString();
44532
    }
44533
 
44534
    public void validate() throws org.apache.thrift.TException {
44535
      // check for required fields
44536
    }
44537
 
44538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44539
      try {
44540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44541
      } catch (org.apache.thrift.TException te) {
44542
        throw new java.io.IOException(te);
44543
      }
44544
    }
44545
 
44546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44547
      try {
44548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44549
      } catch (org.apache.thrift.TException te) {
44550
        throw new java.io.IOException(te);
44551
      }
44552
    }
44553
 
44554
  }
44555
 
44556
  public static class addProductNotification_args implements org.apache.thrift.TBase<addProductNotification_args, addProductNotification_args._Fields>, java.io.Serializable, Cloneable   {
44557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductNotification_args");
44558
 
44559
    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);
44560
    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);
44561
 
44562
    private long itemId; // required
44563
    private String email; // required
44564
 
44565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44567
      ITEM_ID((short)-1, "itemId"),
44568
      EMAIL((short)-2, "email");
44569
 
44570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44571
 
44572
      static {
44573
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44574
          byName.put(field.getFieldName(), field);
44575
        }
44576
      }
44577
 
44578
      /**
44579
       * Find the _Fields constant that matches fieldId, or null if its not found.
44580
       */
44581
      public static _Fields findByThriftId(int fieldId) {
44582
        switch(fieldId) {
44583
          case -1: // ITEM_ID
44584
            return ITEM_ID;
44585
          case -2: // EMAIL
44586
            return EMAIL;
44587
          default:
44588
            return null;
44589
        }
44590
      }
44591
 
44592
      /**
44593
       * Find the _Fields constant that matches fieldId, throwing an exception
44594
       * if it is not found.
44595
       */
44596
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44597
        _Fields fields = findByThriftId(fieldId);
44598
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44599
        return fields;
44600
      }
44601
 
44602
      /**
44603
       * Find the _Fields constant that matches name, or null if its not found.
44604
       */
44605
      public static _Fields findByName(String name) {
44606
        return byName.get(name);
44607
      }
44608
 
44609
      private final short _thriftId;
44610
      private final String _fieldName;
44611
 
44612
      _Fields(short thriftId, String fieldName) {
44613
        _thriftId = thriftId;
44614
        _fieldName = fieldName;
44615
      }
44616
 
44617
      public short getThriftFieldId() {
44618
        return _thriftId;
44619
      }
44620
 
44621
      public String getFieldName() {
44622
        return _fieldName;
44623
      }
44624
    }
44625
 
44626
    // isset id assignments
44627
    private static final int __ITEMID_ISSET_ID = 0;
44628
    private BitSet __isset_bit_vector = new BitSet(1);
44629
 
44630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44631
    static {
44632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44633
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44635
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
44637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductNotification_args.class, metaDataMap);
44639
    }
44640
 
44641
    public addProductNotification_args() {
44642
    }
44643
 
44644
    public addProductNotification_args(
44645
      long itemId,
44646
      String email)
44647
    {
44648
      this();
44649
      this.itemId = itemId;
44650
      setItemIdIsSet(true);
44651
      this.email = email;
44652
    }
44653
 
44654
    /**
44655
     * Performs a deep copy on <i>other</i>.
44656
     */
44657
    public addProductNotification_args(addProductNotification_args other) {
44658
      __isset_bit_vector.clear();
44659
      __isset_bit_vector.or(other.__isset_bit_vector);
44660
      this.itemId = other.itemId;
44661
      if (other.isSetEmail()) {
44662
        this.email = other.email;
44663
      }
44664
    }
44665
 
44666
    public addProductNotification_args deepCopy() {
44667
      return new addProductNotification_args(this);
44668
    }
44669
 
44670
    @Override
44671
    public void clear() {
44672
      setItemIdIsSet(false);
44673
      this.itemId = 0;
44674
      this.email = null;
44675
    }
44676
 
44677
    public long getItemId() {
44678
      return this.itemId;
44679
    }
44680
 
44681
    public void setItemId(long itemId) {
44682
      this.itemId = itemId;
44683
      setItemIdIsSet(true);
44684
    }
44685
 
44686
    public void unsetItemId() {
44687
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
44688
    }
44689
 
44690
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
44691
    public boolean isSetItemId() {
44692
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
44693
    }
44694
 
44695
    public void setItemIdIsSet(boolean value) {
44696
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
44697
    }
44698
 
44699
    public String getEmail() {
44700
      return this.email;
44701
    }
44702
 
44703
    public void setEmail(String email) {
44704
      this.email = email;
44705
    }
44706
 
44707
    public void unsetEmail() {
44708
      this.email = null;
44709
    }
44710
 
44711
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
44712
    public boolean isSetEmail() {
44713
      return this.email != null;
44714
    }
44715
 
44716
    public void setEmailIsSet(boolean value) {
44717
      if (!value) {
44718
        this.email = null;
44719
      }
44720
    }
44721
 
44722
    public void setFieldValue(_Fields field, Object value) {
44723
      switch (field) {
44724
      case ITEM_ID:
44725
        if (value == null) {
44726
          unsetItemId();
44727
        } else {
44728
          setItemId((Long)value);
44729
        }
44730
        break;
44731
 
44732
      case EMAIL:
44733
        if (value == null) {
44734
          unsetEmail();
44735
        } else {
44736
          setEmail((String)value);
44737
        }
44738
        break;
44739
 
44740
      }
44741
    }
44742
 
44743
    public Object getFieldValue(_Fields field) {
44744
      switch (field) {
44745
      case ITEM_ID:
44746
        return Long.valueOf(getItemId());
44747
 
44748
      case EMAIL:
44749
        return getEmail();
44750
 
44751
      }
44752
      throw new IllegalStateException();
44753
    }
44754
 
44755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44756
    public boolean isSet(_Fields field) {
44757
      if (field == null) {
44758
        throw new IllegalArgumentException();
44759
      }
44760
 
44761
      switch (field) {
44762
      case ITEM_ID:
44763
        return isSetItemId();
44764
      case EMAIL:
44765
        return isSetEmail();
44766
      }
44767
      throw new IllegalStateException();
44768
    }
44769
 
44770
    @Override
44771
    public boolean equals(Object that) {
44772
      if (that == null)
44773
        return false;
44774
      if (that instanceof addProductNotification_args)
44775
        return this.equals((addProductNotification_args)that);
44776
      return false;
44777
    }
44778
 
44779
    public boolean equals(addProductNotification_args that) {
44780
      if (that == null)
44781
        return false;
44782
 
44783
      boolean this_present_itemId = true;
44784
      boolean that_present_itemId = true;
44785
      if (this_present_itemId || that_present_itemId) {
44786
        if (!(this_present_itemId && that_present_itemId))
44787
          return false;
44788
        if (this.itemId != that.itemId)
44789
          return false;
44790
      }
44791
 
44792
      boolean this_present_email = true && this.isSetEmail();
44793
      boolean that_present_email = true && that.isSetEmail();
44794
      if (this_present_email || that_present_email) {
44795
        if (!(this_present_email && that_present_email))
44796
          return false;
44797
        if (!this.email.equals(that.email))
44798
          return false;
44799
      }
44800
 
44801
      return true;
44802
    }
44803
 
44804
    @Override
44805
    public int hashCode() {
44806
      return 0;
44807
    }
44808
 
44809
    public int compareTo(addProductNotification_args other) {
44810
      if (!getClass().equals(other.getClass())) {
44811
        return getClass().getName().compareTo(other.getClass().getName());
44812
      }
44813
 
44814
      int lastComparison = 0;
44815
      addProductNotification_args typedOther = (addProductNotification_args)other;
44816
 
44817
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
44818
      if (lastComparison != 0) {
44819
        return lastComparison;
44820
      }
44821
      if (isSetItemId()) {
44822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
44823
        if (lastComparison != 0) {
44824
          return lastComparison;
44825
        }
44826
      }
44827
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
44828
      if (lastComparison != 0) {
44829
        return lastComparison;
44830
      }
44831
      if (isSetEmail()) {
44832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
44833
        if (lastComparison != 0) {
44834
          return lastComparison;
44835
        }
44836
      }
44837
      return 0;
44838
    }
44839
 
44840
    public _Fields fieldForId(int fieldId) {
44841
      return _Fields.findByThriftId(fieldId);
44842
    }
44843
 
44844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44845
      org.apache.thrift.protocol.TField field;
44846
      iprot.readStructBegin();
44847
      while (true)
44848
      {
44849
        field = iprot.readFieldBegin();
44850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44851
          break;
44852
        }
44853
        switch (field.id) {
44854
          case -1: // ITEM_ID
44855
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44856
              this.itemId = iprot.readI64();
44857
              setItemIdIsSet(true);
44858
            } else { 
44859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44860
            }
44861
            break;
44862
          case -2: // EMAIL
44863
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
44864
              this.email = iprot.readString();
44865
            } else { 
44866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44867
            }
44868
            break;
44869
          default:
44870
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44871
        }
44872
        iprot.readFieldEnd();
44873
      }
44874
      iprot.readStructEnd();
44875
      validate();
44876
    }
44877
 
44878
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44879
      validate();
44880
 
44881
      oprot.writeStructBegin(STRUCT_DESC);
44882
      if (this.email != null) {
44883
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
44884
        oprot.writeString(this.email);
44885
        oprot.writeFieldEnd();
44886
      }
44887
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
44888
      oprot.writeI64(this.itemId);
44889
      oprot.writeFieldEnd();
44890
      oprot.writeFieldStop();
44891
      oprot.writeStructEnd();
44892
    }
44893
 
44894
    @Override
44895
    public String toString() {
44896
      StringBuilder sb = new StringBuilder("addProductNotification_args(");
44897
      boolean first = true;
44898
 
44899
      sb.append("itemId:");
44900
      sb.append(this.itemId);
44901
      first = false;
44902
      if (!first) sb.append(", ");
44903
      sb.append("email:");
44904
      if (this.email == null) {
44905
        sb.append("null");
44906
      } else {
44907
        sb.append(this.email);
44908
      }
44909
      first = false;
44910
      sb.append(")");
44911
      return sb.toString();
44912
    }
44913
 
44914
    public void validate() throws org.apache.thrift.TException {
44915
      // check for required fields
44916
    }
44917
 
44918
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44919
      try {
44920
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44921
      } catch (org.apache.thrift.TException te) {
44922
        throw new java.io.IOException(te);
44923
      }
44924
    }
44925
 
44926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44927
      try {
44928
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
44929
        __isset_bit_vector = new BitSet(1);
44930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44931
      } catch (org.apache.thrift.TException te) {
44932
        throw new java.io.IOException(te);
44933
      }
44934
    }
44935
 
44936
  }
44937
 
44938
  public static class addProductNotification_result implements org.apache.thrift.TBase<addProductNotification_result, addProductNotification_result._Fields>, java.io.Serializable, Cloneable   {
44939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductNotification_result");
44940
 
44941
    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);
44942
 
44943
    private boolean success; // required
44944
 
44945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44947
      SUCCESS((short)0, "success");
44948
 
44949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44950
 
44951
      static {
44952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44953
          byName.put(field.getFieldName(), field);
44954
        }
44955
      }
44956
 
44957
      /**
44958
       * Find the _Fields constant that matches fieldId, or null if its not found.
44959
       */
44960
      public static _Fields findByThriftId(int fieldId) {
44961
        switch(fieldId) {
44962
          case 0: // SUCCESS
44963
            return SUCCESS;
44964
          default:
44965
            return null;
44966
        }
44967
      }
44968
 
44969
      /**
44970
       * Find the _Fields constant that matches fieldId, throwing an exception
44971
       * if it is not found.
44972
       */
44973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44974
        _Fields fields = findByThriftId(fieldId);
44975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44976
        return fields;
44977
      }
44978
 
44979
      /**
44980
       * Find the _Fields constant that matches name, or null if its not found.
44981
       */
44982
      public static _Fields findByName(String name) {
44983
        return byName.get(name);
44984
      }
44985
 
44986
      private final short _thriftId;
44987
      private final String _fieldName;
44988
 
44989
      _Fields(short thriftId, String fieldName) {
44990
        _thriftId = thriftId;
44991
        _fieldName = fieldName;
44992
      }
44993
 
44994
      public short getThriftFieldId() {
44995
        return _thriftId;
44996
      }
44997
 
44998
      public String getFieldName() {
44999
        return _fieldName;
45000
      }
45001
    }
45002
 
45003
    // isset id assignments
45004
    private static final int __SUCCESS_ISSET_ID = 0;
45005
    private BitSet __isset_bit_vector = new BitSet(1);
45006
 
45007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45008
    static {
45009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45010
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
45012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductNotification_result.class, metaDataMap);
45014
    }
45015
 
45016
    public addProductNotification_result() {
45017
    }
45018
 
45019
    public addProductNotification_result(
45020
      boolean success)
45021
    {
45022
      this();
45023
      this.success = success;
45024
      setSuccessIsSet(true);
45025
    }
45026
 
45027
    /**
45028
     * Performs a deep copy on <i>other</i>.
45029
     */
45030
    public addProductNotification_result(addProductNotification_result other) {
45031
      __isset_bit_vector.clear();
45032
      __isset_bit_vector.or(other.__isset_bit_vector);
45033
      this.success = other.success;
45034
    }
45035
 
45036
    public addProductNotification_result deepCopy() {
45037
      return new addProductNotification_result(this);
45038
    }
45039
 
45040
    @Override
45041
    public void clear() {
45042
      setSuccessIsSet(false);
45043
      this.success = false;
45044
    }
45045
 
45046
    public boolean isSuccess() {
45047
      return this.success;
45048
    }
45049
 
45050
    public void setSuccess(boolean success) {
45051
      this.success = success;
45052
      setSuccessIsSet(true);
45053
    }
45054
 
45055
    public void unsetSuccess() {
45056
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
45057
    }
45058
 
45059
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
45060
    public boolean isSetSuccess() {
45061
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
45062
    }
45063
 
45064
    public void setSuccessIsSet(boolean value) {
45065
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
45066
    }
45067
 
45068
    public void setFieldValue(_Fields field, Object value) {
45069
      switch (field) {
45070
      case SUCCESS:
45071
        if (value == null) {
45072
          unsetSuccess();
45073
        } else {
45074
          setSuccess((Boolean)value);
45075
        }
45076
        break;
45077
 
45078
      }
45079
    }
45080
 
45081
    public Object getFieldValue(_Fields field) {
45082
      switch (field) {
45083
      case SUCCESS:
45084
        return Boolean.valueOf(isSuccess());
45085
 
45086
      }
45087
      throw new IllegalStateException();
45088
    }
45089
 
45090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45091
    public boolean isSet(_Fields field) {
45092
      if (field == null) {
45093
        throw new IllegalArgumentException();
45094
      }
45095
 
45096
      switch (field) {
45097
      case SUCCESS:
45098
        return isSetSuccess();
45099
      }
45100
      throw new IllegalStateException();
45101
    }
45102
 
45103
    @Override
45104
    public boolean equals(Object that) {
45105
      if (that == null)
45106
        return false;
45107
      if (that instanceof addProductNotification_result)
45108
        return this.equals((addProductNotification_result)that);
45109
      return false;
45110
    }
45111
 
45112
    public boolean equals(addProductNotification_result that) {
45113
      if (that == null)
45114
        return false;
45115
 
45116
      boolean this_present_success = true;
45117
      boolean that_present_success = true;
45118
      if (this_present_success || that_present_success) {
45119
        if (!(this_present_success && that_present_success))
45120
          return false;
45121
        if (this.success != that.success)
45122
          return false;
45123
      }
45124
 
45125
      return true;
45126
    }
45127
 
45128
    @Override
45129
    public int hashCode() {
45130
      return 0;
45131
    }
45132
 
45133
    public int compareTo(addProductNotification_result other) {
45134
      if (!getClass().equals(other.getClass())) {
45135
        return getClass().getName().compareTo(other.getClass().getName());
45136
      }
45137
 
45138
      int lastComparison = 0;
45139
      addProductNotification_result typedOther = (addProductNotification_result)other;
45140
 
45141
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45142
      if (lastComparison != 0) {
45143
        return lastComparison;
45144
      }
45145
      if (isSetSuccess()) {
45146
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45147
        if (lastComparison != 0) {
45148
          return lastComparison;
45149
        }
45150
      }
45151
      return 0;
45152
    }
45153
 
45154
    public _Fields fieldForId(int fieldId) {
45155
      return _Fields.findByThriftId(fieldId);
45156
    }
45157
 
45158
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45159
      org.apache.thrift.protocol.TField field;
45160
      iprot.readStructBegin();
45161
      while (true)
45162
      {
45163
        field = iprot.readFieldBegin();
45164
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45165
          break;
45166
        }
45167
        switch (field.id) {
45168
          case 0: // SUCCESS
45169
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
45170
              this.success = iprot.readBool();
45171
              setSuccessIsSet(true);
45172
            } else { 
45173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45174
            }
45175
            break;
45176
          default:
45177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45178
        }
45179
        iprot.readFieldEnd();
45180
      }
45181
      iprot.readStructEnd();
45182
      validate();
45183
    }
45184
 
45185
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45186
      oprot.writeStructBegin(STRUCT_DESC);
45187
 
45188
      if (this.isSetSuccess()) {
45189
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45190
        oprot.writeBool(this.success);
45191
        oprot.writeFieldEnd();
45192
      }
45193
      oprot.writeFieldStop();
45194
      oprot.writeStructEnd();
45195
    }
45196
 
45197
    @Override
45198
    public String toString() {
45199
      StringBuilder sb = new StringBuilder("addProductNotification_result(");
45200
      boolean first = true;
45201
 
45202
      sb.append("success:");
45203
      sb.append(this.success);
45204
      first = false;
45205
      sb.append(")");
45206
      return sb.toString();
45207
    }
45208
 
45209
    public void validate() throws org.apache.thrift.TException {
45210
      // check for required fields
45211
    }
45212
 
45213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45214
      try {
45215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45216
      } catch (org.apache.thrift.TException te) {
45217
        throw new java.io.IOException(te);
45218
      }
45219
    }
45220
 
45221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45222
      try {
45223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45224
      } catch (org.apache.thrift.TException te) {
45225
        throw new java.io.IOException(te);
45226
      }
45227
    }
45228
 
45229
  }
45230
 
45231
  public static class sendProductNotifications_args implements org.apache.thrift.TBase<sendProductNotifications_args, sendProductNotifications_args._Fields>, java.io.Serializable, Cloneable   {
45232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendProductNotifications_args");
45233
 
45234
 
45235
 
45236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45238
;
45239
 
45240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45241
 
45242
      static {
45243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45244
          byName.put(field.getFieldName(), field);
45245
        }
45246
      }
45247
 
45248
      /**
45249
       * Find the _Fields constant that matches fieldId, or null if its not found.
45250
       */
45251
      public static _Fields findByThriftId(int fieldId) {
45252
        switch(fieldId) {
45253
          default:
45254
            return null;
45255
        }
45256
      }
45257
 
45258
      /**
45259
       * Find the _Fields constant that matches fieldId, throwing an exception
45260
       * if it is not found.
45261
       */
45262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45263
        _Fields fields = findByThriftId(fieldId);
45264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45265
        return fields;
45266
      }
45267
 
45268
      /**
45269
       * Find the _Fields constant that matches name, or null if its not found.
45270
       */
45271
      public static _Fields findByName(String name) {
45272
        return byName.get(name);
45273
      }
45274
 
45275
      private final short _thriftId;
45276
      private final String _fieldName;
45277
 
45278
      _Fields(short thriftId, String fieldName) {
45279
        _thriftId = thriftId;
45280
        _fieldName = fieldName;
45281
      }
45282
 
45283
      public short getThriftFieldId() {
45284
        return _thriftId;
45285
      }
45286
 
45287
      public String getFieldName() {
45288
        return _fieldName;
45289
      }
45290
    }
45291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45292
    static {
45293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendProductNotifications_args.class, metaDataMap);
45296
    }
45297
 
45298
    public sendProductNotifications_args() {
45299
    }
45300
 
45301
    /**
45302
     * Performs a deep copy on <i>other</i>.
45303
     */
45304
    public sendProductNotifications_args(sendProductNotifications_args other) {
45305
    }
45306
 
45307
    public sendProductNotifications_args deepCopy() {
45308
      return new sendProductNotifications_args(this);
45309
    }
45310
 
45311
    @Override
45312
    public void clear() {
45313
    }
45314
 
45315
    public void setFieldValue(_Fields field, Object value) {
45316
      switch (field) {
45317
      }
45318
    }
45319
 
45320
    public Object getFieldValue(_Fields field) {
45321
      switch (field) {
45322
      }
45323
      throw new IllegalStateException();
45324
    }
45325
 
45326
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45327
    public boolean isSet(_Fields field) {
45328
      if (field == null) {
45329
        throw new IllegalArgumentException();
45330
      }
45331
 
45332
      switch (field) {
45333
      }
45334
      throw new IllegalStateException();
45335
    }
45336
 
45337
    @Override
45338
    public boolean equals(Object that) {
45339
      if (that == null)
45340
        return false;
45341
      if (that instanceof sendProductNotifications_args)
45342
        return this.equals((sendProductNotifications_args)that);
45343
      return false;
45344
    }
45345
 
45346
    public boolean equals(sendProductNotifications_args that) {
45347
      if (that == null)
45348
        return false;
45349
 
45350
      return true;
45351
    }
45352
 
45353
    @Override
45354
    public int hashCode() {
45355
      return 0;
45356
    }
45357
 
45358
    public int compareTo(sendProductNotifications_args other) {
45359
      if (!getClass().equals(other.getClass())) {
45360
        return getClass().getName().compareTo(other.getClass().getName());
45361
      }
45362
 
45363
      int lastComparison = 0;
45364
      sendProductNotifications_args typedOther = (sendProductNotifications_args)other;
45365
 
45366
      return 0;
45367
    }
45368
 
45369
    public _Fields fieldForId(int fieldId) {
45370
      return _Fields.findByThriftId(fieldId);
45371
    }
45372
 
45373
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45374
      org.apache.thrift.protocol.TField field;
45375
      iprot.readStructBegin();
45376
      while (true)
45377
      {
45378
        field = iprot.readFieldBegin();
45379
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45380
          break;
45381
        }
45382
        switch (field.id) {
45383
          default:
45384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45385
        }
45386
        iprot.readFieldEnd();
45387
      }
45388
      iprot.readStructEnd();
45389
      validate();
45390
    }
45391
 
45392
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45393
      validate();
45394
 
45395
      oprot.writeStructBegin(STRUCT_DESC);
45396
      oprot.writeFieldStop();
45397
      oprot.writeStructEnd();
45398
    }
45399
 
45400
    @Override
45401
    public String toString() {
45402
      StringBuilder sb = new StringBuilder("sendProductNotifications_args(");
45403
      boolean first = true;
45404
 
45405
      sb.append(")");
45406
      return sb.toString();
45407
    }
45408
 
45409
    public void validate() throws org.apache.thrift.TException {
45410
      // check for required fields
45411
    }
45412
 
45413
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45414
      try {
45415
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45416
      } catch (org.apache.thrift.TException te) {
45417
        throw new java.io.IOException(te);
45418
      }
45419
    }
45420
 
45421
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45422
      try {
45423
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45424
      } catch (org.apache.thrift.TException te) {
45425
        throw new java.io.IOException(te);
45426
      }
45427
    }
45428
 
45429
  }
45430
 
45431
  public static class sendProductNotifications_result implements org.apache.thrift.TBase<sendProductNotifications_result, sendProductNotifications_result._Fields>, java.io.Serializable, Cloneable   {
45432
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendProductNotifications_result");
45433
 
45434
    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);
45435
 
45436
    private boolean success; // required
45437
 
45438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45440
      SUCCESS((short)0, "success");
45441
 
45442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45443
 
45444
      static {
45445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45446
          byName.put(field.getFieldName(), field);
45447
        }
45448
      }
45449
 
45450
      /**
45451
       * Find the _Fields constant that matches fieldId, or null if its not found.
45452
       */
45453
      public static _Fields findByThriftId(int fieldId) {
45454
        switch(fieldId) {
45455
          case 0: // SUCCESS
45456
            return SUCCESS;
45457
          default:
45458
            return null;
45459
        }
45460
      }
45461
 
45462
      /**
45463
       * Find the _Fields constant that matches fieldId, throwing an exception
45464
       * if it is not found.
45465
       */
45466
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45467
        _Fields fields = findByThriftId(fieldId);
45468
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45469
        return fields;
45470
      }
45471
 
45472
      /**
45473
       * Find the _Fields constant that matches name, or null if its not found.
45474
       */
45475
      public static _Fields findByName(String name) {
45476
        return byName.get(name);
45477
      }
45478
 
45479
      private final short _thriftId;
45480
      private final String _fieldName;
45481
 
45482
      _Fields(short thriftId, String fieldName) {
45483
        _thriftId = thriftId;
45484
        _fieldName = fieldName;
45485
      }
45486
 
45487
      public short getThriftFieldId() {
45488
        return _thriftId;
45489
      }
45490
 
45491
      public String getFieldName() {
45492
        return _fieldName;
45493
      }
45494
    }
45495
 
45496
    // isset id assignments
45497
    private static final int __SUCCESS_ISSET_ID = 0;
45498
    private BitSet __isset_bit_vector = new BitSet(1);
45499
 
45500
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45501
    static {
45502
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45503
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
45505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendProductNotifications_result.class, metaDataMap);
45507
    }
45508
 
45509
    public sendProductNotifications_result() {
45510
    }
45511
 
45512
    public sendProductNotifications_result(
45513
      boolean success)
45514
    {
45515
      this();
45516
      this.success = success;
45517
      setSuccessIsSet(true);
45518
    }
45519
 
45520
    /**
45521
     * Performs a deep copy on <i>other</i>.
45522
     */
45523
    public sendProductNotifications_result(sendProductNotifications_result other) {
45524
      __isset_bit_vector.clear();
45525
      __isset_bit_vector.or(other.__isset_bit_vector);
45526
      this.success = other.success;
45527
    }
45528
 
45529
    public sendProductNotifications_result deepCopy() {
45530
      return new sendProductNotifications_result(this);
45531
    }
45532
 
45533
    @Override
45534
    public void clear() {
45535
      setSuccessIsSet(false);
45536
      this.success = false;
45537
    }
45538
 
45539
    public boolean isSuccess() {
45540
      return this.success;
45541
    }
45542
 
45543
    public void setSuccess(boolean success) {
45544
      this.success = success;
45545
      setSuccessIsSet(true);
45546
    }
45547
 
45548
    public void unsetSuccess() {
45549
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
45550
    }
45551
 
45552
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
45553
    public boolean isSetSuccess() {
45554
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
45555
    }
45556
 
45557
    public void setSuccessIsSet(boolean value) {
45558
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
45559
    }
45560
 
45561
    public void setFieldValue(_Fields field, Object value) {
45562
      switch (field) {
45563
      case SUCCESS:
45564
        if (value == null) {
45565
          unsetSuccess();
45566
        } else {
45567
          setSuccess((Boolean)value);
45568
        }
45569
        break;
45570
 
45571
      }
45572
    }
45573
 
45574
    public Object getFieldValue(_Fields field) {
45575
      switch (field) {
45576
      case SUCCESS:
45577
        return Boolean.valueOf(isSuccess());
45578
 
45579
      }
45580
      throw new IllegalStateException();
45581
    }
45582
 
45583
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45584
    public boolean isSet(_Fields field) {
45585
      if (field == null) {
45586
        throw new IllegalArgumentException();
45587
      }
45588
 
45589
      switch (field) {
45590
      case SUCCESS:
45591
        return isSetSuccess();
45592
      }
45593
      throw new IllegalStateException();
45594
    }
45595
 
45596
    @Override
45597
    public boolean equals(Object that) {
45598
      if (that == null)
45599
        return false;
45600
      if (that instanceof sendProductNotifications_result)
45601
        return this.equals((sendProductNotifications_result)that);
45602
      return false;
45603
    }
45604
 
45605
    public boolean equals(sendProductNotifications_result that) {
45606
      if (that == null)
45607
        return false;
45608
 
45609
      boolean this_present_success = true;
45610
      boolean that_present_success = true;
45611
      if (this_present_success || that_present_success) {
45612
        if (!(this_present_success && that_present_success))
45613
          return false;
45614
        if (this.success != that.success)
45615
          return false;
45616
      }
45617
 
45618
      return true;
45619
    }
45620
 
45621
    @Override
45622
    public int hashCode() {
45623
      return 0;
45624
    }
45625
 
45626
    public int compareTo(sendProductNotifications_result other) {
45627
      if (!getClass().equals(other.getClass())) {
45628
        return getClass().getName().compareTo(other.getClass().getName());
45629
      }
45630
 
45631
      int lastComparison = 0;
45632
      sendProductNotifications_result typedOther = (sendProductNotifications_result)other;
45633
 
45634
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45635
      if (lastComparison != 0) {
45636
        return lastComparison;
45637
      }
45638
      if (isSetSuccess()) {
45639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45640
        if (lastComparison != 0) {
45641
          return lastComparison;
45642
        }
45643
      }
45644
      return 0;
45645
    }
45646
 
45647
    public _Fields fieldForId(int fieldId) {
45648
      return _Fields.findByThriftId(fieldId);
45649
    }
45650
 
45651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45652
      org.apache.thrift.protocol.TField field;
45653
      iprot.readStructBegin();
45654
      while (true)
45655
      {
45656
        field = iprot.readFieldBegin();
45657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45658
          break;
45659
        }
45660
        switch (field.id) {
45661
          case 0: // SUCCESS
45662
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
45663
              this.success = iprot.readBool();
45664
              setSuccessIsSet(true);
45665
            } else { 
45666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45667
            }
45668
            break;
45669
          default:
45670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45671
        }
45672
        iprot.readFieldEnd();
45673
      }
45674
      iprot.readStructEnd();
45675
      validate();
45676
    }
45677
 
45678
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45679
      oprot.writeStructBegin(STRUCT_DESC);
45680
 
45681
      if (this.isSetSuccess()) {
45682
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45683
        oprot.writeBool(this.success);
45684
        oprot.writeFieldEnd();
45685
      }
45686
      oprot.writeFieldStop();
45687
      oprot.writeStructEnd();
45688
    }
45689
 
45690
    @Override
45691
    public String toString() {
45692
      StringBuilder sb = new StringBuilder("sendProductNotifications_result(");
45693
      boolean first = true;
45694
 
45695
      sb.append("success:");
45696
      sb.append(this.success);
45697
      first = false;
45698
      sb.append(")");
45699
      return sb.toString();
45700
    }
45701
 
45702
    public void validate() throws org.apache.thrift.TException {
45703
      // check for required fields
45704
    }
45705
 
45706
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45707
      try {
45708
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45709
      } catch (org.apache.thrift.TException te) {
45710
        throw new java.io.IOException(te);
45711
      }
45712
    }
45713
 
45714
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45715
      try {
45716
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45717
      } catch (org.apache.thrift.TException te) {
45718
        throw new java.io.IOException(te);
45719
      }
45720
    }
45721
 
45722
  }
45723
 
45724
  public static class getAllBrandsByCategory_args implements org.apache.thrift.TBase<getAllBrandsByCategory_args, getAllBrandsByCategory_args._Fields>, java.io.Serializable, Cloneable   {
45725
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrandsByCategory_args");
45726
 
45727
    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);
45728
 
45729
    private long categoryId; // required
45730
 
45731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45733
      CATEGORY_ID((short)1, "categoryId");
45734
 
45735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45736
 
45737
      static {
45738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45739
          byName.put(field.getFieldName(), field);
45740
        }
45741
      }
45742
 
45743
      /**
45744
       * Find the _Fields constant that matches fieldId, or null if its not found.
45745
       */
45746
      public static _Fields findByThriftId(int fieldId) {
45747
        switch(fieldId) {
45748
          case 1: // CATEGORY_ID
45749
            return CATEGORY_ID;
45750
          default:
45751
            return null;
45752
        }
45753
      }
45754
 
45755
      /**
45756
       * Find the _Fields constant that matches fieldId, throwing an exception
45757
       * if it is not found.
45758
       */
45759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45760
        _Fields fields = findByThriftId(fieldId);
45761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45762
        return fields;
45763
      }
45764
 
45765
      /**
45766
       * Find the _Fields constant that matches name, or null if its not found.
45767
       */
45768
      public static _Fields findByName(String name) {
45769
        return byName.get(name);
45770
      }
45771
 
45772
      private final short _thriftId;
45773
      private final String _fieldName;
45774
 
45775
      _Fields(short thriftId, String fieldName) {
45776
        _thriftId = thriftId;
45777
        _fieldName = fieldName;
45778
      }
45779
 
45780
      public short getThriftFieldId() {
45781
        return _thriftId;
45782
      }
45783
 
45784
      public String getFieldName() {
45785
        return _fieldName;
45786
      }
45787
    }
45788
 
45789
    // isset id assignments
45790
    private static final int __CATEGORYID_ISSET_ID = 0;
45791
    private BitSet __isset_bit_vector = new BitSet(1);
45792
 
45793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45794
    static {
45795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45796
      tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrandsByCategory_args.class, metaDataMap);
45800
    }
45801
 
45802
    public getAllBrandsByCategory_args() {
45803
    }
45804
 
45805
    public getAllBrandsByCategory_args(
45806
      long categoryId)
45807
    {
45808
      this();
45809
      this.categoryId = categoryId;
45810
      setCategoryIdIsSet(true);
45811
    }
45812
 
45813
    /**
45814
     * Performs a deep copy on <i>other</i>.
45815
     */
45816
    public getAllBrandsByCategory_args(getAllBrandsByCategory_args other) {
45817
      __isset_bit_vector.clear();
45818
      __isset_bit_vector.or(other.__isset_bit_vector);
45819
      this.categoryId = other.categoryId;
45820
    }
45821
 
45822
    public getAllBrandsByCategory_args deepCopy() {
45823
      return new getAllBrandsByCategory_args(this);
45824
    }
45825
 
45826
    @Override
45827
    public void clear() {
45828
      setCategoryIdIsSet(false);
45829
      this.categoryId = 0;
45830
    }
45831
 
45832
    public long getCategoryId() {
45833
      return this.categoryId;
45834
    }
45835
 
45836
    public void setCategoryId(long categoryId) {
45837
      this.categoryId = categoryId;
45838
      setCategoryIdIsSet(true);
45839
    }
45840
 
45841
    public void unsetCategoryId() {
45842
      __isset_bit_vector.clear(__CATEGORYID_ISSET_ID);
45843
    }
45844
 
45845
    /** Returns true if field categoryId is set (has been assigned a value) and false otherwise */
45846
    public boolean isSetCategoryId() {
45847
      return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);
45848
    }
45849
 
45850
    public void setCategoryIdIsSet(boolean value) {
45851
      __isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);
45852
    }
45853
 
45854
    public void setFieldValue(_Fields field, Object value) {
45855
      switch (field) {
45856
      case CATEGORY_ID:
45857
        if (value == null) {
45858
          unsetCategoryId();
45859
        } else {
45860
          setCategoryId((Long)value);
45861
        }
45862
        break;
45863
 
45864
      }
45865
    }
45866
 
45867
    public Object getFieldValue(_Fields field) {
45868
      switch (field) {
45869
      case CATEGORY_ID:
45870
        return Long.valueOf(getCategoryId());
45871
 
45872
      }
45873
      throw new IllegalStateException();
45874
    }
45875
 
45876
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45877
    public boolean isSet(_Fields field) {
45878
      if (field == null) {
45879
        throw new IllegalArgumentException();
45880
      }
45881
 
45882
      switch (field) {
45883
      case CATEGORY_ID:
45884
        return isSetCategoryId();
45885
      }
45886
      throw new IllegalStateException();
45887
    }
45888
 
45889
    @Override
45890
    public boolean equals(Object that) {
45891
      if (that == null)
45892
        return false;
45893
      if (that instanceof getAllBrandsByCategory_args)
45894
        return this.equals((getAllBrandsByCategory_args)that);
45895
      return false;
45896
    }
45897
 
45898
    public boolean equals(getAllBrandsByCategory_args that) {
45899
      if (that == null)
45900
        return false;
45901
 
45902
      boolean this_present_categoryId = true;
45903
      boolean that_present_categoryId = true;
45904
      if (this_present_categoryId || that_present_categoryId) {
45905
        if (!(this_present_categoryId && that_present_categoryId))
45906
          return false;
45907
        if (this.categoryId != that.categoryId)
45908
          return false;
45909
      }
45910
 
45911
      return true;
45912
    }
45913
 
45914
    @Override
45915
    public int hashCode() {
45916
      return 0;
45917
    }
45918
 
45919
    public int compareTo(getAllBrandsByCategory_args other) {
45920
      if (!getClass().equals(other.getClass())) {
45921
        return getClass().getName().compareTo(other.getClass().getName());
45922
      }
45923
 
45924
      int lastComparison = 0;
45925
      getAllBrandsByCategory_args typedOther = (getAllBrandsByCategory_args)other;
45926
 
45927
      lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());
45928
      if (lastComparison != 0) {
45929
        return lastComparison;
45930
      }
45931
      if (isSetCategoryId()) {
45932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);
45933
        if (lastComparison != 0) {
45934
          return lastComparison;
45935
        }
45936
      }
45937
      return 0;
45938
    }
45939
 
45940
    public _Fields fieldForId(int fieldId) {
45941
      return _Fields.findByThriftId(fieldId);
45942
    }
45943
 
45944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45945
      org.apache.thrift.protocol.TField field;
45946
      iprot.readStructBegin();
45947
      while (true)
45948
      {
45949
        field = iprot.readFieldBegin();
45950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45951
          break;
45952
        }
45953
        switch (field.id) {
45954
          case 1: // CATEGORY_ID
45955
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45956
              this.categoryId = iprot.readI64();
45957
              setCategoryIdIsSet(true);
45958
            } else { 
45959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45960
            }
45961
            break;
45962
          default:
45963
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45964
        }
45965
        iprot.readFieldEnd();
45966
      }
45967
      iprot.readStructEnd();
45968
      validate();
45969
    }
45970
 
45971
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45972
      validate();
45973
 
45974
      oprot.writeStructBegin(STRUCT_DESC);
45975
      oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);
45976
      oprot.writeI64(this.categoryId);
45977
      oprot.writeFieldEnd();
45978
      oprot.writeFieldStop();
45979
      oprot.writeStructEnd();
45980
    }
45981
 
45982
    @Override
45983
    public String toString() {
45984
      StringBuilder sb = new StringBuilder("getAllBrandsByCategory_args(");
45985
      boolean first = true;
45986
 
45987
      sb.append("categoryId:");
45988
      sb.append(this.categoryId);
45989
      first = false;
45990
      sb.append(")");
45991
      return sb.toString();
45992
    }
45993
 
45994
    public void validate() throws org.apache.thrift.TException {
45995
      // check for required fields
45996
    }
45997
 
45998
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45999
      try {
46000
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46001
      } catch (org.apache.thrift.TException te) {
46002
        throw new java.io.IOException(te);
46003
      }
46004
    }
46005
 
46006
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46007
      try {
46008
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
46009
        __isset_bit_vector = new BitSet(1);
46010
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46011
      } catch (org.apache.thrift.TException te) {
46012
        throw new java.io.IOException(te);
46013
      }
46014
    }
46015
 
46016
  }
46017
 
46018
  public static class getAllBrandsByCategory_result implements org.apache.thrift.TBase<getAllBrandsByCategory_result, getAllBrandsByCategory_result._Fields>, java.io.Serializable, Cloneable   {
46019
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrandsByCategory_result");
46020
 
46021
    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);
46022
 
46023
    private List<String> success; // required
46024
 
46025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46027
      SUCCESS((short)0, "success");
46028
 
46029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46030
 
46031
      static {
46032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46033
          byName.put(field.getFieldName(), field);
46034
        }
46035
      }
46036
 
46037
      /**
46038
       * Find the _Fields constant that matches fieldId, or null if its not found.
46039
       */
46040
      public static _Fields findByThriftId(int fieldId) {
46041
        switch(fieldId) {
46042
          case 0: // SUCCESS
46043
            return SUCCESS;
46044
          default:
46045
            return null;
46046
        }
46047
      }
46048
 
46049
      /**
46050
       * Find the _Fields constant that matches fieldId, throwing an exception
46051
       * if it is not found.
46052
       */
46053
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46054
        _Fields fields = findByThriftId(fieldId);
46055
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46056
        return fields;
46057
      }
46058
 
46059
      /**
46060
       * Find the _Fields constant that matches name, or null if its not found.
46061
       */
46062
      public static _Fields findByName(String name) {
46063
        return byName.get(name);
46064
      }
46065
 
46066
      private final short _thriftId;
46067
      private final String _fieldName;
46068
 
46069
      _Fields(short thriftId, String fieldName) {
46070
        _thriftId = thriftId;
46071
        _fieldName = fieldName;
46072
      }
46073
 
46074
      public short getThriftFieldId() {
46075
        return _thriftId;
46076
      }
46077
 
46078
      public String getFieldName() {
46079
        return _fieldName;
46080
      }
46081
    }
46082
 
46083
    // isset id assignments
46084
 
46085
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46086
    static {
46087
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46088
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46089
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
46090
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
46091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrandsByCategory_result.class, metaDataMap);
46093
    }
46094
 
46095
    public getAllBrandsByCategory_result() {
46096
    }
46097
 
46098
    public getAllBrandsByCategory_result(
46099
      List<String> success)
46100
    {
46101
      this();
46102
      this.success = success;
46103
    }
46104
 
46105
    /**
46106
     * Performs a deep copy on <i>other</i>.
46107
     */
46108
    public getAllBrandsByCategory_result(getAllBrandsByCategory_result other) {
46109
      if (other.isSetSuccess()) {
46110
        List<String> __this__success = new ArrayList<String>();
46111
        for (String other_element : other.success) {
46112
          __this__success.add(other_element);
46113
        }
46114
        this.success = __this__success;
46115
      }
46116
    }
46117
 
46118
    public getAllBrandsByCategory_result deepCopy() {
46119
      return new getAllBrandsByCategory_result(this);
46120
    }
46121
 
46122
    @Override
46123
    public void clear() {
46124
      this.success = null;
46125
    }
46126
 
46127
    public int getSuccessSize() {
46128
      return (this.success == null) ? 0 : this.success.size();
46129
    }
46130
 
46131
    public java.util.Iterator<String> getSuccessIterator() {
46132
      return (this.success == null) ? null : this.success.iterator();
46133
    }
46134
 
46135
    public void addToSuccess(String elem) {
46136
      if (this.success == null) {
46137
        this.success = new ArrayList<String>();
46138
      }
46139
      this.success.add(elem);
46140
    }
46141
 
46142
    public List<String> getSuccess() {
46143
      return this.success;
46144
    }
46145
 
46146
    public void setSuccess(List<String> success) {
46147
      this.success = success;
46148
    }
46149
 
46150
    public void unsetSuccess() {
46151
      this.success = null;
46152
    }
46153
 
46154
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
46155
    public boolean isSetSuccess() {
46156
      return this.success != null;
46157
    }
46158
 
46159
    public void setSuccessIsSet(boolean value) {
46160
      if (!value) {
46161
        this.success = null;
46162
      }
46163
    }
46164
 
46165
    public void setFieldValue(_Fields field, Object value) {
46166
      switch (field) {
46167
      case SUCCESS:
46168
        if (value == null) {
46169
          unsetSuccess();
46170
        } else {
46171
          setSuccess((List<String>)value);
46172
        }
46173
        break;
46174
 
46175
      }
46176
    }
46177
 
46178
    public Object getFieldValue(_Fields field) {
46179
      switch (field) {
46180
      case SUCCESS:
46181
        return getSuccess();
46182
 
46183
      }
46184
      throw new IllegalStateException();
46185
    }
46186
 
46187
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46188
    public boolean isSet(_Fields field) {
46189
      if (field == null) {
46190
        throw new IllegalArgumentException();
46191
      }
46192
 
46193
      switch (field) {
46194
      case SUCCESS:
46195
        return isSetSuccess();
46196
      }
46197
      throw new IllegalStateException();
46198
    }
46199
 
46200
    @Override
46201
    public boolean equals(Object that) {
46202
      if (that == null)
46203
        return false;
46204
      if (that instanceof getAllBrandsByCategory_result)
46205
        return this.equals((getAllBrandsByCategory_result)that);
46206
      return false;
46207
    }
46208
 
46209
    public boolean equals(getAllBrandsByCategory_result that) {
46210
      if (that == null)
46211
        return false;
46212
 
46213
      boolean this_present_success = true && this.isSetSuccess();
46214
      boolean that_present_success = true && that.isSetSuccess();
46215
      if (this_present_success || that_present_success) {
46216
        if (!(this_present_success && that_present_success))
46217
          return false;
46218
        if (!this.success.equals(that.success))
46219
          return false;
46220
      }
46221
 
46222
      return true;
46223
    }
46224
 
46225
    @Override
46226
    public int hashCode() {
46227
      return 0;
46228
    }
46229
 
46230
    public int compareTo(getAllBrandsByCategory_result other) {
46231
      if (!getClass().equals(other.getClass())) {
46232
        return getClass().getName().compareTo(other.getClass().getName());
46233
      }
46234
 
46235
      int lastComparison = 0;
46236
      getAllBrandsByCategory_result typedOther = (getAllBrandsByCategory_result)other;
46237
 
46238
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46239
      if (lastComparison != 0) {
46240
        return lastComparison;
46241
      }
46242
      if (isSetSuccess()) {
46243
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46244
        if (lastComparison != 0) {
46245
          return lastComparison;
46246
        }
46247
      }
46248
      return 0;
46249
    }
46250
 
46251
    public _Fields fieldForId(int fieldId) {
46252
      return _Fields.findByThriftId(fieldId);
46253
    }
46254
 
46255
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46256
      org.apache.thrift.protocol.TField field;
46257
      iprot.readStructBegin();
46258
      while (true)
46259
      {
46260
        field = iprot.readFieldBegin();
46261
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46262
          break;
46263
        }
46264
        switch (field.id) {
46265
          case 0: // SUCCESS
46266
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46267
              {
6850 kshitij.so 46268
                org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();
46269
                this.success = new ArrayList<String>(_list118.size);
46270
                for (int _i119 = 0; _i119 < _list118.size; ++_i119)
5945 mandeep.dh 46271
                {
6850 kshitij.so 46272
                  String _elem120; // required
46273
                  _elem120 = iprot.readString();
46274
                  this.success.add(_elem120);
5945 mandeep.dh 46275
                }
46276
                iprot.readListEnd();
46277
              }
46278
            } else { 
46279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46280
            }
46281
            break;
46282
          default:
46283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46284
        }
46285
        iprot.readFieldEnd();
46286
      }
46287
      iprot.readStructEnd();
46288
      validate();
46289
    }
46290
 
46291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46292
      oprot.writeStructBegin(STRUCT_DESC);
46293
 
46294
      if (this.isSetSuccess()) {
46295
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46296
        {
46297
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
6850 kshitij.so 46298
          for (String _iter121 : this.success)
5945 mandeep.dh 46299
          {
6850 kshitij.so 46300
            oprot.writeString(_iter121);
5945 mandeep.dh 46301
          }
46302
          oprot.writeListEnd();
46303
        }
46304
        oprot.writeFieldEnd();
46305
      }
46306
      oprot.writeFieldStop();
46307
      oprot.writeStructEnd();
46308
    }
46309
 
46310
    @Override
46311
    public String toString() {
46312
      StringBuilder sb = new StringBuilder("getAllBrandsByCategory_result(");
46313
      boolean first = true;
46314
 
46315
      sb.append("success:");
46316
      if (this.success == null) {
46317
        sb.append("null");
46318
      } else {
46319
        sb.append(this.success);
46320
      }
46321
      first = false;
46322
      sb.append(")");
46323
      return sb.toString();
46324
    }
46325
 
46326
    public void validate() throws org.apache.thrift.TException {
46327
      // check for required fields
46328
    }
46329
 
46330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46331
      try {
46332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46333
      } catch (org.apache.thrift.TException te) {
46334
        throw new java.io.IOException(te);
46335
      }
46336
    }
46337
 
46338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46339
      try {
46340
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46341
      } catch (org.apache.thrift.TException te) {
46342
        throw new java.io.IOException(te);
46343
      }
46344
    }
46345
 
46346
  }
46347
 
46348
  public static class getAllBrands_args implements org.apache.thrift.TBase<getAllBrands_args, getAllBrands_args._Fields>, java.io.Serializable, Cloneable   {
46349
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrands_args");
46350
 
46351
 
46352
 
46353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46355
;
46356
 
46357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46358
 
46359
      static {
46360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46361
          byName.put(field.getFieldName(), field);
46362
        }
46363
      }
46364
 
46365
      /**
46366
       * Find the _Fields constant that matches fieldId, or null if its not found.
46367
       */
46368
      public static _Fields findByThriftId(int fieldId) {
46369
        switch(fieldId) {
46370
          default:
46371
            return null;
46372
        }
46373
      }
46374
 
46375
      /**
46376
       * Find the _Fields constant that matches fieldId, throwing an exception
46377
       * if it is not found.
46378
       */
46379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46380
        _Fields fields = findByThriftId(fieldId);
46381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46382
        return fields;
46383
      }
46384
 
46385
      /**
46386
       * Find the _Fields constant that matches name, or null if its not found.
46387
       */
46388
      public static _Fields findByName(String name) {
46389
        return byName.get(name);
46390
      }
46391
 
46392
      private final short _thriftId;
46393
      private final String _fieldName;
46394
 
46395
      _Fields(short thriftId, String fieldName) {
46396
        _thriftId = thriftId;
46397
        _fieldName = fieldName;
46398
      }
46399
 
46400
      public short getThriftFieldId() {
46401
        return _thriftId;
46402
      }
46403
 
46404
      public String getFieldName() {
46405
        return _fieldName;
46406
      }
46407
    }
46408
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46409
    static {
46410
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrands_args.class, metaDataMap);
46413
    }
46414
 
46415
    public getAllBrands_args() {
46416
    }
46417
 
46418
    /**
46419
     * Performs a deep copy on <i>other</i>.
46420
     */
46421
    public getAllBrands_args(getAllBrands_args other) {
46422
    }
46423
 
46424
    public getAllBrands_args deepCopy() {
46425
      return new getAllBrands_args(this);
46426
    }
46427
 
46428
    @Override
46429
    public void clear() {
46430
    }
46431
 
46432
    public void setFieldValue(_Fields field, Object value) {
46433
      switch (field) {
46434
      }
46435
    }
46436
 
46437
    public Object getFieldValue(_Fields field) {
46438
      switch (field) {
46439
      }
46440
      throw new IllegalStateException();
46441
    }
46442
 
46443
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46444
    public boolean isSet(_Fields field) {
46445
      if (field == null) {
46446
        throw new IllegalArgumentException();
46447
      }
46448
 
46449
      switch (field) {
46450
      }
46451
      throw new IllegalStateException();
46452
    }
46453
 
46454
    @Override
46455
    public boolean equals(Object that) {
46456
      if (that == null)
46457
        return false;
46458
      if (that instanceof getAllBrands_args)
46459
        return this.equals((getAllBrands_args)that);
46460
      return false;
46461
    }
46462
 
46463
    public boolean equals(getAllBrands_args that) {
46464
      if (that == null)
46465
        return false;
46466
 
46467
      return true;
46468
    }
46469
 
46470
    @Override
46471
    public int hashCode() {
46472
      return 0;
46473
    }
46474
 
46475
    public int compareTo(getAllBrands_args other) {
46476
      if (!getClass().equals(other.getClass())) {
46477
        return getClass().getName().compareTo(other.getClass().getName());
46478
      }
46479
 
46480
      int lastComparison = 0;
46481
      getAllBrands_args typedOther = (getAllBrands_args)other;
46482
 
46483
      return 0;
46484
    }
46485
 
46486
    public _Fields fieldForId(int fieldId) {
46487
      return _Fields.findByThriftId(fieldId);
46488
    }
46489
 
46490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46491
      org.apache.thrift.protocol.TField field;
46492
      iprot.readStructBegin();
46493
      while (true)
46494
      {
46495
        field = iprot.readFieldBegin();
46496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46497
          break;
46498
        }
46499
        switch (field.id) {
46500
          default:
46501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46502
        }
46503
        iprot.readFieldEnd();
46504
      }
46505
      iprot.readStructEnd();
46506
      validate();
46507
    }
46508
 
46509
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46510
      validate();
46511
 
46512
      oprot.writeStructBegin(STRUCT_DESC);
46513
      oprot.writeFieldStop();
46514
      oprot.writeStructEnd();
46515
    }
46516
 
46517
    @Override
46518
    public String toString() {
46519
      StringBuilder sb = new StringBuilder("getAllBrands_args(");
46520
      boolean first = true;
46521
 
46522
      sb.append(")");
46523
      return sb.toString();
46524
    }
46525
 
46526
    public void validate() throws org.apache.thrift.TException {
46527
      // check for required fields
46528
    }
46529
 
46530
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46531
      try {
46532
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46533
      } catch (org.apache.thrift.TException te) {
46534
        throw new java.io.IOException(te);
46535
      }
46536
    }
46537
 
46538
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46539
      try {
46540
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46541
      } catch (org.apache.thrift.TException te) {
46542
        throw new java.io.IOException(te);
46543
      }
46544
    }
46545
 
46546
  }
46547
 
46548
  public static class getAllBrands_result implements org.apache.thrift.TBase<getAllBrands_result, getAllBrands_result._Fields>, java.io.Serializable, Cloneable   {
46549
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrands_result");
46550
 
46551
    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);
46552
 
46553
    private List<String> success; // required
46554
 
46555
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46556
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46557
      SUCCESS((short)0, "success");
46558
 
46559
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46560
 
46561
      static {
46562
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46563
          byName.put(field.getFieldName(), field);
46564
        }
46565
      }
46566
 
46567
      /**
46568
       * Find the _Fields constant that matches fieldId, or null if its not found.
46569
       */
46570
      public static _Fields findByThriftId(int fieldId) {
46571
        switch(fieldId) {
46572
          case 0: // SUCCESS
46573
            return SUCCESS;
46574
          default:
46575
            return null;
46576
        }
46577
      }
46578
 
46579
      /**
46580
       * Find the _Fields constant that matches fieldId, throwing an exception
46581
       * if it is not found.
46582
       */
46583
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46584
        _Fields fields = findByThriftId(fieldId);
46585
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46586
        return fields;
46587
      }
46588
 
46589
      /**
46590
       * Find the _Fields constant that matches name, or null if its not found.
46591
       */
46592
      public static _Fields findByName(String name) {
46593
        return byName.get(name);
46594
      }
46595
 
46596
      private final short _thriftId;
46597
      private final String _fieldName;
46598
 
46599
      _Fields(short thriftId, String fieldName) {
46600
        _thriftId = thriftId;
46601
        _fieldName = fieldName;
46602
      }
46603
 
46604
      public short getThriftFieldId() {
46605
        return _thriftId;
46606
      }
46607
 
46608
      public String getFieldName() {
46609
        return _fieldName;
46610
      }
46611
    }
46612
 
46613
    // isset id assignments
46614
 
46615
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46616
    static {
46617
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46618
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46619
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
46620
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
46621
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46622
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrands_result.class, metaDataMap);
46623
    }
46624
 
46625
    public getAllBrands_result() {
46626
    }
46627
 
46628
    public getAllBrands_result(
46629
      List<String> success)
46630
    {
46631
      this();
46632
      this.success = success;
46633
    }
46634
 
46635
    /**
46636
     * Performs a deep copy on <i>other</i>.
46637
     */
46638
    public getAllBrands_result(getAllBrands_result other) {
46639
      if (other.isSetSuccess()) {
46640
        List<String> __this__success = new ArrayList<String>();
46641
        for (String other_element : other.success) {
46642
          __this__success.add(other_element);
46643
        }
46644
        this.success = __this__success;
46645
      }
46646
    }
46647
 
46648
    public getAllBrands_result deepCopy() {
46649
      return new getAllBrands_result(this);
46650
    }
46651
 
46652
    @Override
46653
    public void clear() {
46654
      this.success = null;
46655
    }
46656
 
46657
    public int getSuccessSize() {
46658
      return (this.success == null) ? 0 : this.success.size();
46659
    }
46660
 
46661
    public java.util.Iterator<String> getSuccessIterator() {
46662
      return (this.success == null) ? null : this.success.iterator();
46663
    }
46664
 
46665
    public void addToSuccess(String elem) {
46666
      if (this.success == null) {
46667
        this.success = new ArrayList<String>();
46668
      }
46669
      this.success.add(elem);
46670
    }
46671
 
46672
    public List<String> getSuccess() {
46673
      return this.success;
46674
    }
46675
 
46676
    public void setSuccess(List<String> success) {
46677
      this.success = success;
46678
    }
46679
 
46680
    public void unsetSuccess() {
46681
      this.success = null;
46682
    }
46683
 
46684
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
46685
    public boolean isSetSuccess() {
46686
      return this.success != null;
46687
    }
46688
 
46689
    public void setSuccessIsSet(boolean value) {
46690
      if (!value) {
46691
        this.success = null;
46692
      }
46693
    }
46694
 
46695
    public void setFieldValue(_Fields field, Object value) {
46696
      switch (field) {
46697
      case SUCCESS:
46698
        if (value == null) {
46699
          unsetSuccess();
46700
        } else {
46701
          setSuccess((List<String>)value);
46702
        }
46703
        break;
46704
 
46705
      }
46706
    }
46707
 
46708
    public Object getFieldValue(_Fields field) {
46709
      switch (field) {
46710
      case SUCCESS:
46711
        return getSuccess();
46712
 
46713
      }
46714
      throw new IllegalStateException();
46715
    }
46716
 
46717
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46718
    public boolean isSet(_Fields field) {
46719
      if (field == null) {
46720
        throw new IllegalArgumentException();
46721
      }
46722
 
46723
      switch (field) {
46724
      case SUCCESS:
46725
        return isSetSuccess();
46726
      }
46727
      throw new IllegalStateException();
46728
    }
46729
 
46730
    @Override
46731
    public boolean equals(Object that) {
46732
      if (that == null)
46733
        return false;
46734
      if (that instanceof getAllBrands_result)
46735
        return this.equals((getAllBrands_result)that);
46736
      return false;
46737
    }
46738
 
46739
    public boolean equals(getAllBrands_result that) {
46740
      if (that == null)
46741
        return false;
46742
 
46743
      boolean this_present_success = true && this.isSetSuccess();
46744
      boolean that_present_success = true && that.isSetSuccess();
46745
      if (this_present_success || that_present_success) {
46746
        if (!(this_present_success && that_present_success))
46747
          return false;
46748
        if (!this.success.equals(that.success))
46749
          return false;
46750
      }
46751
 
46752
      return true;
46753
    }
46754
 
46755
    @Override
46756
    public int hashCode() {
46757
      return 0;
46758
    }
46759
 
46760
    public int compareTo(getAllBrands_result other) {
46761
      if (!getClass().equals(other.getClass())) {
46762
        return getClass().getName().compareTo(other.getClass().getName());
46763
      }
46764
 
46765
      int lastComparison = 0;
46766
      getAllBrands_result typedOther = (getAllBrands_result)other;
46767
 
46768
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46769
      if (lastComparison != 0) {
46770
        return lastComparison;
46771
      }
46772
      if (isSetSuccess()) {
46773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46774
        if (lastComparison != 0) {
46775
          return lastComparison;
46776
        }
46777
      }
46778
      return 0;
46779
    }
46780
 
46781
    public _Fields fieldForId(int fieldId) {
46782
      return _Fields.findByThriftId(fieldId);
46783
    }
46784
 
46785
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46786
      org.apache.thrift.protocol.TField field;
46787
      iprot.readStructBegin();
46788
      while (true)
46789
      {
46790
        field = iprot.readFieldBegin();
46791
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46792
          break;
46793
        }
46794
        switch (field.id) {
46795
          case 0: // SUCCESS
46796
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46797
              {
6850 kshitij.so 46798
                org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();
46799
                this.success = new ArrayList<String>(_list122.size);
46800
                for (int _i123 = 0; _i123 < _list122.size; ++_i123)
5945 mandeep.dh 46801
                {
6850 kshitij.so 46802
                  String _elem124; // required
46803
                  _elem124 = iprot.readString();
46804
                  this.success.add(_elem124);
5945 mandeep.dh 46805
                }
46806
                iprot.readListEnd();
46807
              }
46808
            } else { 
46809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46810
            }
46811
            break;
46812
          default:
46813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46814
        }
46815
        iprot.readFieldEnd();
46816
      }
46817
      iprot.readStructEnd();
46818
      validate();
46819
    }
46820
 
46821
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46822
      oprot.writeStructBegin(STRUCT_DESC);
46823
 
46824
      if (this.isSetSuccess()) {
46825
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46826
        {
46827
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
6850 kshitij.so 46828
          for (String _iter125 : this.success)
5945 mandeep.dh 46829
          {
6850 kshitij.so 46830
            oprot.writeString(_iter125);
5945 mandeep.dh 46831
          }
46832
          oprot.writeListEnd();
46833
        }
46834
        oprot.writeFieldEnd();
46835
      }
46836
      oprot.writeFieldStop();
46837
      oprot.writeStructEnd();
46838
    }
46839
 
46840
    @Override
46841
    public String toString() {
46842
      StringBuilder sb = new StringBuilder("getAllBrands_result(");
46843
      boolean first = true;
46844
 
46845
      sb.append("success:");
46846
      if (this.success == null) {
46847
        sb.append("null");
46848
      } else {
46849
        sb.append(this.success);
46850
      }
46851
      first = false;
46852
      sb.append(")");
46853
      return sb.toString();
46854
    }
46855
 
46856
    public void validate() throws org.apache.thrift.TException {
46857
      // check for required fields
46858
    }
46859
 
46860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46861
      try {
46862
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46863
      } catch (org.apache.thrift.TException te) {
46864
        throw new java.io.IOException(te);
46865
      }
46866
    }
46867
 
46868
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46869
      try {
46870
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46871
      } catch (org.apache.thrift.TException te) {
46872
        throw new java.io.IOException(te);
46873
      }
46874
    }
46875
 
46876
  }
46877
 
46878
  public static class getAllSources_args implements org.apache.thrift.TBase<getAllSources_args, getAllSources_args._Fields>, java.io.Serializable, Cloneable   {
46879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_args");
46880
 
46881
 
46882
 
46883
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46884
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46885
;
46886
 
46887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46888
 
46889
      static {
46890
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46891
          byName.put(field.getFieldName(), field);
46892
        }
46893
      }
46894
 
46895
      /**
46896
       * Find the _Fields constant that matches fieldId, or null if its not found.
46897
       */
46898
      public static _Fields findByThriftId(int fieldId) {
46899
        switch(fieldId) {
46900
          default:
46901
            return null;
46902
        }
46903
      }
46904
 
46905
      /**
46906
       * Find the _Fields constant that matches fieldId, throwing an exception
46907
       * if it is not found.
46908
       */
46909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46910
        _Fields fields = findByThriftId(fieldId);
46911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46912
        return fields;
46913
      }
46914
 
46915
      /**
46916
       * Find the _Fields constant that matches name, or null if its not found.
46917
       */
46918
      public static _Fields findByName(String name) {
46919
        return byName.get(name);
46920
      }
46921
 
46922
      private final short _thriftId;
46923
      private final String _fieldName;
46924
 
46925
      _Fields(short thriftId, String fieldName) {
46926
        _thriftId = thriftId;
46927
        _fieldName = fieldName;
46928
      }
46929
 
46930
      public short getThriftFieldId() {
46931
        return _thriftId;
46932
      }
46933
 
46934
      public String getFieldName() {
46935
        return _fieldName;
46936
      }
46937
    }
46938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46939
    static {
46940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46941
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46942
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_args.class, metaDataMap);
46943
    }
46944
 
46945
    public getAllSources_args() {
46946
    }
46947
 
46948
    /**
46949
     * Performs a deep copy on <i>other</i>.
46950
     */
46951
    public getAllSources_args(getAllSources_args other) {
46952
    }
46953
 
46954
    public getAllSources_args deepCopy() {
46955
      return new getAllSources_args(this);
46956
    }
46957
 
46958
    @Override
46959
    public void clear() {
46960
    }
46961
 
46962
    public void setFieldValue(_Fields field, Object value) {
46963
      switch (field) {
46964
      }
46965
    }
46966
 
46967
    public Object getFieldValue(_Fields field) {
46968
      switch (field) {
46969
      }
46970
      throw new IllegalStateException();
46971
    }
46972
 
46973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46974
    public boolean isSet(_Fields field) {
46975
      if (field == null) {
46976
        throw new IllegalArgumentException();
46977
      }
46978
 
46979
      switch (field) {
46980
      }
46981
      throw new IllegalStateException();
46982
    }
46983
 
46984
    @Override
46985
    public boolean equals(Object that) {
46986
      if (that == null)
46987
        return false;
46988
      if (that instanceof getAllSources_args)
46989
        return this.equals((getAllSources_args)that);
46990
      return false;
46991
    }
46992
 
46993
    public boolean equals(getAllSources_args that) {
46994
      if (that == null)
46995
        return false;
46996
 
46997
      return true;
46998
    }
46999
 
47000
    @Override
47001
    public int hashCode() {
47002
      return 0;
47003
    }
47004
 
47005
    public int compareTo(getAllSources_args other) {
47006
      if (!getClass().equals(other.getClass())) {
47007
        return getClass().getName().compareTo(other.getClass().getName());
47008
      }
47009
 
47010
      int lastComparison = 0;
47011
      getAllSources_args typedOther = (getAllSources_args)other;
47012
 
47013
      return 0;
47014
    }
47015
 
47016
    public _Fields fieldForId(int fieldId) {
47017
      return _Fields.findByThriftId(fieldId);
47018
    }
47019
 
47020
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47021
      org.apache.thrift.protocol.TField field;
47022
      iprot.readStructBegin();
47023
      while (true)
47024
      {
47025
        field = iprot.readFieldBegin();
47026
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47027
          break;
47028
        }
47029
        switch (field.id) {
47030
          default:
47031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47032
        }
47033
        iprot.readFieldEnd();
47034
      }
47035
      iprot.readStructEnd();
47036
      validate();
47037
    }
47038
 
47039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47040
      validate();
47041
 
47042
      oprot.writeStructBegin(STRUCT_DESC);
47043
      oprot.writeFieldStop();
47044
      oprot.writeStructEnd();
47045
    }
47046
 
47047
    @Override
47048
    public String toString() {
47049
      StringBuilder sb = new StringBuilder("getAllSources_args(");
47050
      boolean first = true;
47051
 
47052
      sb.append(")");
47053
      return sb.toString();
47054
    }
47055
 
47056
    public void validate() throws org.apache.thrift.TException {
47057
      // check for required fields
47058
    }
47059
 
47060
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47061
      try {
47062
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47063
      } catch (org.apache.thrift.TException te) {
47064
        throw new java.io.IOException(te);
47065
      }
47066
    }
47067
 
47068
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47069
      try {
47070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47071
      } catch (org.apache.thrift.TException te) {
47072
        throw new java.io.IOException(te);
47073
      }
47074
    }
47075
 
47076
  }
47077
 
47078
  public static class getAllSources_result implements org.apache.thrift.TBase<getAllSources_result, getAllSources_result._Fields>, java.io.Serializable, Cloneable   {
47079
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_result");
47080
 
47081
    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);
47082
 
47083
    private List<Source> success; // required
47084
 
47085
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47086
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47087
      SUCCESS((short)0, "success");
47088
 
47089
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47090
 
47091
      static {
47092
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47093
          byName.put(field.getFieldName(), field);
47094
        }
47095
      }
47096
 
47097
      /**
47098
       * Find the _Fields constant that matches fieldId, or null if its not found.
47099
       */
47100
      public static _Fields findByThriftId(int fieldId) {
47101
        switch(fieldId) {
47102
          case 0: // SUCCESS
47103
            return SUCCESS;
47104
          default:
47105
            return null;
47106
        }
47107
      }
47108
 
47109
      /**
47110
       * Find the _Fields constant that matches fieldId, throwing an exception
47111
       * if it is not found.
47112
       */
47113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47114
        _Fields fields = findByThriftId(fieldId);
47115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47116
        return fields;
47117
      }
47118
 
47119
      /**
47120
       * Find the _Fields constant that matches name, or null if its not found.
47121
       */
47122
      public static _Fields findByName(String name) {
47123
        return byName.get(name);
47124
      }
47125
 
47126
      private final short _thriftId;
47127
      private final String _fieldName;
47128
 
47129
      _Fields(short thriftId, String fieldName) {
47130
        _thriftId = thriftId;
47131
        _fieldName = fieldName;
47132
      }
47133
 
47134
      public short getThriftFieldId() {
47135
        return _thriftId;
47136
      }
47137
 
47138
      public String getFieldName() {
47139
        return _fieldName;
47140
      }
47141
    }
47142
 
47143
    // isset id assignments
47144
 
47145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47146
    static {
47147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47148
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47149
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
47150
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Source.class))));
47151
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47152
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_result.class, metaDataMap);
47153
    }
47154
 
47155
    public getAllSources_result() {
47156
    }
47157
 
47158
    public getAllSources_result(
47159
      List<Source> success)
47160
    {
47161
      this();
47162
      this.success = success;
47163
    }
47164
 
47165
    /**
47166
     * Performs a deep copy on <i>other</i>.
47167
     */
47168
    public getAllSources_result(getAllSources_result other) {
47169
      if (other.isSetSuccess()) {
47170
        List<Source> __this__success = new ArrayList<Source>();
47171
        for (Source other_element : other.success) {
47172
          __this__success.add(new Source(other_element));
47173
        }
47174
        this.success = __this__success;
47175
      }
47176
    }
47177
 
47178
    public getAllSources_result deepCopy() {
47179
      return new getAllSources_result(this);
47180
    }
47181
 
47182
    @Override
47183
    public void clear() {
47184
      this.success = null;
47185
    }
47186
 
47187
    public int getSuccessSize() {
47188
      return (this.success == null) ? 0 : this.success.size();
47189
    }
47190
 
47191
    public java.util.Iterator<Source> getSuccessIterator() {
47192
      return (this.success == null) ? null : this.success.iterator();
47193
    }
47194
 
47195
    public void addToSuccess(Source elem) {
47196
      if (this.success == null) {
47197
        this.success = new ArrayList<Source>();
47198
      }
47199
      this.success.add(elem);
47200
    }
47201
 
47202
    public List<Source> getSuccess() {
47203
      return this.success;
47204
    }
47205
 
47206
    public void setSuccess(List<Source> success) {
47207
      this.success = success;
47208
    }
47209
 
47210
    public void unsetSuccess() {
47211
      this.success = null;
47212
    }
47213
 
47214
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
47215
    public boolean isSetSuccess() {
47216
      return this.success != null;
47217
    }
47218
 
47219
    public void setSuccessIsSet(boolean value) {
47220
      if (!value) {
47221
        this.success = null;
47222
      }
47223
    }
47224
 
47225
    public void setFieldValue(_Fields field, Object value) {
47226
      switch (field) {
47227
      case SUCCESS:
47228
        if (value == null) {
47229
          unsetSuccess();
47230
        } else {
47231
          setSuccess((List<Source>)value);
47232
        }
47233
        break;
47234
 
47235
      }
47236
    }
47237
 
47238
    public Object getFieldValue(_Fields field) {
47239
      switch (field) {
47240
      case SUCCESS:
47241
        return getSuccess();
47242
 
47243
      }
47244
      throw new IllegalStateException();
47245
    }
47246
 
47247
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47248
    public boolean isSet(_Fields field) {
47249
      if (field == null) {
47250
        throw new IllegalArgumentException();
47251
      }
47252
 
47253
      switch (field) {
47254
      case SUCCESS:
47255
        return isSetSuccess();
47256
      }
47257
      throw new IllegalStateException();
47258
    }
47259
 
47260
    @Override
47261
    public boolean equals(Object that) {
47262
      if (that == null)
47263
        return false;
47264
      if (that instanceof getAllSources_result)
47265
        return this.equals((getAllSources_result)that);
47266
      return false;
47267
    }
47268
 
47269
    public boolean equals(getAllSources_result that) {
47270
      if (that == null)
47271
        return false;
47272
 
47273
      boolean this_present_success = true && this.isSetSuccess();
47274
      boolean that_present_success = true && that.isSetSuccess();
47275
      if (this_present_success || that_present_success) {
47276
        if (!(this_present_success && that_present_success))
47277
          return false;
47278
        if (!this.success.equals(that.success))
47279
          return false;
47280
      }
47281
 
47282
      return true;
47283
    }
47284
 
47285
    @Override
47286
    public int hashCode() {
47287
      return 0;
47288
    }
47289
 
47290
    public int compareTo(getAllSources_result other) {
47291
      if (!getClass().equals(other.getClass())) {
47292
        return getClass().getName().compareTo(other.getClass().getName());
47293
      }
47294
 
47295
      int lastComparison = 0;
47296
      getAllSources_result typedOther = (getAllSources_result)other;
47297
 
47298
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47299
      if (lastComparison != 0) {
47300
        return lastComparison;
47301
      }
47302
      if (isSetSuccess()) {
47303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47304
        if (lastComparison != 0) {
47305
          return lastComparison;
47306
        }
47307
      }
47308
      return 0;
47309
    }
47310
 
47311
    public _Fields fieldForId(int fieldId) {
47312
      return _Fields.findByThriftId(fieldId);
47313
    }
47314
 
47315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47316
      org.apache.thrift.protocol.TField field;
47317
      iprot.readStructBegin();
47318
      while (true)
47319
      {
47320
        field = iprot.readFieldBegin();
47321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47322
          break;
47323
        }
47324
        switch (field.id) {
47325
          case 0: // SUCCESS
47326
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
47327
              {
6850 kshitij.so 47328
                org.apache.thrift.protocol.TList _list126 = iprot.readListBegin();
47329
                this.success = new ArrayList<Source>(_list126.size);
47330
                for (int _i127 = 0; _i127 < _list126.size; ++_i127)
5945 mandeep.dh 47331
                {
6850 kshitij.so 47332
                  Source _elem128; // required
47333
                  _elem128 = new Source();
47334
                  _elem128.read(iprot);
47335
                  this.success.add(_elem128);
5945 mandeep.dh 47336
                }
47337
                iprot.readListEnd();
47338
              }
47339
            } else { 
47340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47341
            }
47342
            break;
47343
          default:
47344
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47345
        }
47346
        iprot.readFieldEnd();
47347
      }
47348
      iprot.readStructEnd();
47349
      validate();
47350
    }
47351
 
47352
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47353
      oprot.writeStructBegin(STRUCT_DESC);
47354
 
47355
      if (this.isSetSuccess()) {
47356
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47357
        {
47358
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 47359
          for (Source _iter129 : this.success)
5945 mandeep.dh 47360
          {
6850 kshitij.so 47361
            _iter129.write(oprot);
5945 mandeep.dh 47362
          }
47363
          oprot.writeListEnd();
47364
        }
47365
        oprot.writeFieldEnd();
47366
      }
47367
      oprot.writeFieldStop();
47368
      oprot.writeStructEnd();
47369
    }
47370
 
47371
    @Override
47372
    public String toString() {
47373
      StringBuilder sb = new StringBuilder("getAllSources_result(");
47374
      boolean first = true;
47375
 
47376
      sb.append("success:");
47377
      if (this.success == null) {
47378
        sb.append("null");
47379
      } else {
47380
        sb.append(this.success);
47381
      }
47382
      first = false;
47383
      sb.append(")");
47384
      return sb.toString();
47385
    }
47386
 
47387
    public void validate() throws org.apache.thrift.TException {
47388
      // check for required fields
47389
    }
47390
 
47391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47392
      try {
47393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47394
      } catch (org.apache.thrift.TException te) {
47395
        throw new java.io.IOException(te);
47396
      }
47397
    }
47398
 
47399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47400
      try {
47401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47402
      } catch (org.apache.thrift.TException te) {
47403
        throw new java.io.IOException(te);
47404
      }
47405
    }
47406
 
47407
  }
47408
 
47409
  public static class getItemPricingBySource_args implements org.apache.thrift.TBase<getItemPricingBySource_args, getItemPricingBySource_args._Fields>, java.io.Serializable, Cloneable   {
47410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_args");
47411
 
47412
    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);
47413
    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);
47414
 
47415
    private long itemId; // required
47416
    private long sourceId; // required
47417
 
47418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47420
      ITEM_ID((short)1, "itemId"),
47421
      SOURCE_ID((short)2, "sourceId");
47422
 
47423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47424
 
47425
      static {
47426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47427
          byName.put(field.getFieldName(), field);
47428
        }
47429
      }
47430
 
47431
      /**
47432
       * Find the _Fields constant that matches fieldId, or null if its not found.
47433
       */
47434
      public static _Fields findByThriftId(int fieldId) {
47435
        switch(fieldId) {
47436
          case 1: // ITEM_ID
47437
            return ITEM_ID;
47438
          case 2: // SOURCE_ID
47439
            return SOURCE_ID;
47440
          default:
47441
            return null;
47442
        }
47443
      }
47444
 
47445
      /**
47446
       * Find the _Fields constant that matches fieldId, throwing an exception
47447
       * if it is not found.
47448
       */
47449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47450
        _Fields fields = findByThriftId(fieldId);
47451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47452
        return fields;
47453
      }
47454
 
47455
      /**
47456
       * Find the _Fields constant that matches name, or null if its not found.
47457
       */
47458
      public static _Fields findByName(String name) {
47459
        return byName.get(name);
47460
      }
47461
 
47462
      private final short _thriftId;
47463
      private final String _fieldName;
47464
 
47465
      _Fields(short thriftId, String fieldName) {
47466
        _thriftId = thriftId;
47467
        _fieldName = fieldName;
47468
      }
47469
 
47470
      public short getThriftFieldId() {
47471
        return _thriftId;
47472
      }
47473
 
47474
      public String getFieldName() {
47475
        return _fieldName;
47476
      }
47477
    }
47478
 
47479
    // isset id assignments
47480
    private static final int __ITEMID_ISSET_ID = 0;
47481
    private static final int __SOURCEID_ISSET_ID = 1;
47482
    private BitSet __isset_bit_vector = new BitSet(2);
47483
 
47484
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47485
    static {
47486
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47487
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47489
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47491
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47492
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_args.class, metaDataMap);
47493
    }
47494
 
47495
    public getItemPricingBySource_args() {
47496
    }
47497
 
47498
    public getItemPricingBySource_args(
47499
      long itemId,
47500
      long sourceId)
47501
    {
47502
      this();
47503
      this.itemId = itemId;
47504
      setItemIdIsSet(true);
47505
      this.sourceId = sourceId;
47506
      setSourceIdIsSet(true);
47507
    }
47508
 
47509
    /**
47510
     * Performs a deep copy on <i>other</i>.
47511
     */
47512
    public getItemPricingBySource_args(getItemPricingBySource_args other) {
47513
      __isset_bit_vector.clear();
47514
      __isset_bit_vector.or(other.__isset_bit_vector);
47515
      this.itemId = other.itemId;
47516
      this.sourceId = other.sourceId;
47517
    }
47518
 
47519
    public getItemPricingBySource_args deepCopy() {
47520
      return new getItemPricingBySource_args(this);
47521
    }
47522
 
47523
    @Override
47524
    public void clear() {
47525
      setItemIdIsSet(false);
47526
      this.itemId = 0;
47527
      setSourceIdIsSet(false);
47528
      this.sourceId = 0;
47529
    }
47530
 
47531
    public long getItemId() {
47532
      return this.itemId;
47533
    }
47534
 
47535
    public void setItemId(long itemId) {
47536
      this.itemId = itemId;
47537
      setItemIdIsSet(true);
47538
    }
47539
 
47540
    public void unsetItemId() {
47541
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
47542
    }
47543
 
47544
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
47545
    public boolean isSetItemId() {
47546
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
47547
    }
47548
 
47549
    public void setItemIdIsSet(boolean value) {
47550
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
47551
    }
47552
 
47553
    public long getSourceId() {
47554
      return this.sourceId;
47555
    }
47556
 
47557
    public void setSourceId(long sourceId) {
47558
      this.sourceId = sourceId;
47559
      setSourceIdIsSet(true);
47560
    }
47561
 
47562
    public void unsetSourceId() {
47563
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
47564
    }
47565
 
47566
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
47567
    public boolean isSetSourceId() {
47568
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
47569
    }
47570
 
47571
    public void setSourceIdIsSet(boolean value) {
47572
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
47573
    }
47574
 
47575
    public void setFieldValue(_Fields field, Object value) {
47576
      switch (field) {
47577
      case ITEM_ID:
47578
        if (value == null) {
47579
          unsetItemId();
47580
        } else {
47581
          setItemId((Long)value);
47582
        }
47583
        break;
47584
 
47585
      case SOURCE_ID:
47586
        if (value == null) {
47587
          unsetSourceId();
47588
        } else {
47589
          setSourceId((Long)value);
47590
        }
47591
        break;
47592
 
47593
      }
47594
    }
47595
 
47596
    public Object getFieldValue(_Fields field) {
47597
      switch (field) {
47598
      case ITEM_ID:
47599
        return Long.valueOf(getItemId());
47600
 
47601
      case SOURCE_ID:
47602
        return Long.valueOf(getSourceId());
47603
 
47604
      }
47605
      throw new IllegalStateException();
47606
    }
47607
 
47608
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47609
    public boolean isSet(_Fields field) {
47610
      if (field == null) {
47611
        throw new IllegalArgumentException();
47612
      }
47613
 
47614
      switch (field) {
47615
      case ITEM_ID:
47616
        return isSetItemId();
47617
      case SOURCE_ID:
47618
        return isSetSourceId();
47619
      }
47620
      throw new IllegalStateException();
47621
    }
47622
 
47623
    @Override
47624
    public boolean equals(Object that) {
47625
      if (that == null)
47626
        return false;
47627
      if (that instanceof getItemPricingBySource_args)
47628
        return this.equals((getItemPricingBySource_args)that);
47629
      return false;
47630
    }
47631
 
47632
    public boolean equals(getItemPricingBySource_args that) {
47633
      if (that == null)
47634
        return false;
47635
 
47636
      boolean this_present_itemId = true;
47637
      boolean that_present_itemId = true;
47638
      if (this_present_itemId || that_present_itemId) {
47639
        if (!(this_present_itemId && that_present_itemId))
47640
          return false;
47641
        if (this.itemId != that.itemId)
47642
          return false;
47643
      }
47644
 
47645
      boolean this_present_sourceId = true;
47646
      boolean that_present_sourceId = true;
47647
      if (this_present_sourceId || that_present_sourceId) {
47648
        if (!(this_present_sourceId && that_present_sourceId))
47649
          return false;
47650
        if (this.sourceId != that.sourceId)
47651
          return false;
47652
      }
47653
 
47654
      return true;
47655
    }
47656
 
47657
    @Override
47658
    public int hashCode() {
47659
      return 0;
47660
    }
47661
 
47662
    public int compareTo(getItemPricingBySource_args other) {
47663
      if (!getClass().equals(other.getClass())) {
47664
        return getClass().getName().compareTo(other.getClass().getName());
47665
      }
47666
 
47667
      int lastComparison = 0;
47668
      getItemPricingBySource_args typedOther = (getItemPricingBySource_args)other;
47669
 
47670
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
47671
      if (lastComparison != 0) {
47672
        return lastComparison;
47673
      }
47674
      if (isSetItemId()) {
47675
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
47676
        if (lastComparison != 0) {
47677
          return lastComparison;
47678
        }
47679
      }
47680
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
47681
      if (lastComparison != 0) {
47682
        return lastComparison;
47683
      }
47684
      if (isSetSourceId()) {
47685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
47686
        if (lastComparison != 0) {
47687
          return lastComparison;
47688
        }
47689
      }
47690
      return 0;
47691
    }
47692
 
47693
    public _Fields fieldForId(int fieldId) {
47694
      return _Fields.findByThriftId(fieldId);
47695
    }
47696
 
47697
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47698
      org.apache.thrift.protocol.TField field;
47699
      iprot.readStructBegin();
47700
      while (true)
47701
      {
47702
        field = iprot.readFieldBegin();
47703
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47704
          break;
47705
        }
47706
        switch (field.id) {
47707
          case 1: // ITEM_ID
47708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47709
              this.itemId = iprot.readI64();
47710
              setItemIdIsSet(true);
47711
            } else { 
47712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47713
            }
47714
            break;
47715
          case 2: // SOURCE_ID
47716
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47717
              this.sourceId = iprot.readI64();
47718
              setSourceIdIsSet(true);
47719
            } else { 
47720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47721
            }
47722
            break;
47723
          default:
47724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47725
        }
47726
        iprot.readFieldEnd();
47727
      }
47728
      iprot.readStructEnd();
47729
      validate();
47730
    }
47731
 
47732
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47733
      validate();
47734
 
47735
      oprot.writeStructBegin(STRUCT_DESC);
47736
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
47737
      oprot.writeI64(this.itemId);
47738
      oprot.writeFieldEnd();
47739
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
47740
      oprot.writeI64(this.sourceId);
47741
      oprot.writeFieldEnd();
47742
      oprot.writeFieldStop();
47743
      oprot.writeStructEnd();
47744
    }
47745
 
47746
    @Override
47747
    public String toString() {
47748
      StringBuilder sb = new StringBuilder("getItemPricingBySource_args(");
47749
      boolean first = true;
47750
 
47751
      sb.append("itemId:");
47752
      sb.append(this.itemId);
47753
      first = false;
47754
      if (!first) sb.append(", ");
47755
      sb.append("sourceId:");
47756
      sb.append(this.sourceId);
47757
      first = false;
47758
      sb.append(")");
47759
      return sb.toString();
47760
    }
47761
 
47762
    public void validate() throws org.apache.thrift.TException {
47763
      // check for required fields
47764
    }
47765
 
47766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47767
      try {
47768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47769
      } catch (org.apache.thrift.TException te) {
47770
        throw new java.io.IOException(te);
47771
      }
47772
    }
47773
 
47774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47775
      try {
47776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47777
      } catch (org.apache.thrift.TException te) {
47778
        throw new java.io.IOException(te);
47779
      }
47780
    }
47781
 
47782
  }
47783
 
47784
  public static class getItemPricingBySource_result implements org.apache.thrift.TBase<getItemPricingBySource_result, getItemPricingBySource_result._Fields>, java.io.Serializable, Cloneable   {
47785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_result");
47786
 
47787
    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);
47788
    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);
47789
 
47790
    private SourceItemPricing success; // required
47791
    private CatalogServiceException cex; // required
47792
 
47793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47795
      SUCCESS((short)0, "success"),
47796
      CEX((short)1, "cex");
47797
 
47798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47799
 
47800
      static {
47801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47802
          byName.put(field.getFieldName(), field);
47803
        }
47804
      }
47805
 
47806
      /**
47807
       * Find the _Fields constant that matches fieldId, or null if its not found.
47808
       */
47809
      public static _Fields findByThriftId(int fieldId) {
47810
        switch(fieldId) {
47811
          case 0: // SUCCESS
47812
            return SUCCESS;
47813
          case 1: // CEX
47814
            return CEX;
47815
          default:
47816
            return null;
47817
        }
47818
      }
47819
 
47820
      /**
47821
       * Find the _Fields constant that matches fieldId, throwing an exception
47822
       * if it is not found.
47823
       */
47824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47825
        _Fields fields = findByThriftId(fieldId);
47826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47827
        return fields;
47828
      }
47829
 
47830
      /**
47831
       * Find the _Fields constant that matches name, or null if its not found.
47832
       */
47833
      public static _Fields findByName(String name) {
47834
        return byName.get(name);
47835
      }
47836
 
47837
      private final short _thriftId;
47838
      private final String _fieldName;
47839
 
47840
      _Fields(short thriftId, String fieldName) {
47841
        _thriftId = thriftId;
47842
        _fieldName = fieldName;
47843
      }
47844
 
47845
      public short getThriftFieldId() {
47846
        return _thriftId;
47847
      }
47848
 
47849
      public String getFieldName() {
47850
        return _fieldName;
47851
      }
47852
    }
47853
 
47854
    // isset id assignments
47855
 
47856
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47857
    static {
47858
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47859
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47860
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));
47861
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47862
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47863
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47864
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_result.class, metaDataMap);
47865
    }
47866
 
47867
    public getItemPricingBySource_result() {
47868
    }
47869
 
47870
    public getItemPricingBySource_result(
47871
      SourceItemPricing success,
47872
      CatalogServiceException cex)
47873
    {
47874
      this();
47875
      this.success = success;
47876
      this.cex = cex;
47877
    }
47878
 
47879
    /**
47880
     * Performs a deep copy on <i>other</i>.
47881
     */
47882
    public getItemPricingBySource_result(getItemPricingBySource_result other) {
47883
      if (other.isSetSuccess()) {
47884
        this.success = new SourceItemPricing(other.success);
47885
      }
47886
      if (other.isSetCex()) {
47887
        this.cex = new CatalogServiceException(other.cex);
47888
      }
47889
    }
47890
 
47891
    public getItemPricingBySource_result deepCopy() {
47892
      return new getItemPricingBySource_result(this);
47893
    }
47894
 
47895
    @Override
47896
    public void clear() {
47897
      this.success = null;
47898
      this.cex = null;
47899
    }
47900
 
47901
    public SourceItemPricing getSuccess() {
47902
      return this.success;
47903
    }
47904
 
47905
    public void setSuccess(SourceItemPricing success) {
47906
      this.success = success;
47907
    }
47908
 
47909
    public void unsetSuccess() {
47910
      this.success = null;
47911
    }
47912
 
47913
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
47914
    public boolean isSetSuccess() {
47915
      return this.success != null;
47916
    }
47917
 
47918
    public void setSuccessIsSet(boolean value) {
47919
      if (!value) {
47920
        this.success = null;
47921
      }
47922
    }
47923
 
47924
    public CatalogServiceException getCex() {
47925
      return this.cex;
47926
    }
47927
 
47928
    public void setCex(CatalogServiceException cex) {
47929
      this.cex = cex;
47930
    }
47931
 
47932
    public void unsetCex() {
47933
      this.cex = null;
47934
    }
47935
 
47936
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
47937
    public boolean isSetCex() {
47938
      return this.cex != null;
47939
    }
47940
 
47941
    public void setCexIsSet(boolean value) {
47942
      if (!value) {
47943
        this.cex = null;
47944
      }
47945
    }
47946
 
47947
    public void setFieldValue(_Fields field, Object value) {
47948
      switch (field) {
47949
      case SUCCESS:
47950
        if (value == null) {
47951
          unsetSuccess();
47952
        } else {
47953
          setSuccess((SourceItemPricing)value);
47954
        }
47955
        break;
47956
 
47957
      case CEX:
47958
        if (value == null) {
47959
          unsetCex();
47960
        } else {
47961
          setCex((CatalogServiceException)value);
47962
        }
47963
        break;
47964
 
47965
      }
47966
    }
47967
 
47968
    public Object getFieldValue(_Fields field) {
47969
      switch (field) {
47970
      case SUCCESS:
47971
        return getSuccess();
47972
 
47973
      case CEX:
47974
        return getCex();
47975
 
47976
      }
47977
      throw new IllegalStateException();
47978
    }
47979
 
47980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47981
    public boolean isSet(_Fields field) {
47982
      if (field == null) {
47983
        throw new IllegalArgumentException();
47984
      }
47985
 
47986
      switch (field) {
47987
      case SUCCESS:
47988
        return isSetSuccess();
47989
      case CEX:
47990
        return isSetCex();
47991
      }
47992
      throw new IllegalStateException();
47993
    }
47994
 
47995
    @Override
47996
    public boolean equals(Object that) {
47997
      if (that == null)
47998
        return false;
47999
      if (that instanceof getItemPricingBySource_result)
48000
        return this.equals((getItemPricingBySource_result)that);
48001
      return false;
48002
    }
48003
 
48004
    public boolean equals(getItemPricingBySource_result that) {
48005
      if (that == null)
48006
        return false;
48007
 
48008
      boolean this_present_success = true && this.isSetSuccess();
48009
      boolean that_present_success = true && that.isSetSuccess();
48010
      if (this_present_success || that_present_success) {
48011
        if (!(this_present_success && that_present_success))
48012
          return false;
48013
        if (!this.success.equals(that.success))
48014
          return false;
48015
      }
48016
 
48017
      boolean this_present_cex = true && this.isSetCex();
48018
      boolean that_present_cex = true && that.isSetCex();
48019
      if (this_present_cex || that_present_cex) {
48020
        if (!(this_present_cex && that_present_cex))
48021
          return false;
48022
        if (!this.cex.equals(that.cex))
48023
          return false;
48024
      }
48025
 
48026
      return true;
48027
    }
48028
 
48029
    @Override
48030
    public int hashCode() {
48031
      return 0;
48032
    }
48033
 
48034
    public int compareTo(getItemPricingBySource_result other) {
48035
      if (!getClass().equals(other.getClass())) {
48036
        return getClass().getName().compareTo(other.getClass().getName());
48037
      }
48038
 
48039
      int lastComparison = 0;
48040
      getItemPricingBySource_result typedOther = (getItemPricingBySource_result)other;
48041
 
48042
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48043
      if (lastComparison != 0) {
48044
        return lastComparison;
48045
      }
48046
      if (isSetSuccess()) {
48047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48048
        if (lastComparison != 0) {
48049
          return lastComparison;
48050
        }
48051
      }
48052
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
48053
      if (lastComparison != 0) {
48054
        return lastComparison;
48055
      }
48056
      if (isSetCex()) {
48057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
48058
        if (lastComparison != 0) {
48059
          return lastComparison;
48060
        }
48061
      }
48062
      return 0;
48063
    }
48064
 
48065
    public _Fields fieldForId(int fieldId) {
48066
      return _Fields.findByThriftId(fieldId);
48067
    }
48068
 
48069
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48070
      org.apache.thrift.protocol.TField field;
48071
      iprot.readStructBegin();
48072
      while (true)
48073
      {
48074
        field = iprot.readFieldBegin();
48075
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48076
          break;
48077
        }
48078
        switch (field.id) {
48079
          case 0: // SUCCESS
48080
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48081
              this.success = new SourceItemPricing();
48082
              this.success.read(iprot);
48083
            } else { 
48084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48085
            }
48086
            break;
48087
          case 1: // CEX
48088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48089
              this.cex = new CatalogServiceException();
48090
              this.cex.read(iprot);
48091
            } else { 
48092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48093
            }
48094
            break;
48095
          default:
48096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48097
        }
48098
        iprot.readFieldEnd();
48099
      }
48100
      iprot.readStructEnd();
48101
      validate();
48102
    }
48103
 
48104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48105
      oprot.writeStructBegin(STRUCT_DESC);
48106
 
48107
      if (this.isSetSuccess()) {
48108
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48109
        this.success.write(oprot);
48110
        oprot.writeFieldEnd();
48111
      } else if (this.isSetCex()) {
48112
        oprot.writeFieldBegin(CEX_FIELD_DESC);
48113
        this.cex.write(oprot);
48114
        oprot.writeFieldEnd();
48115
      }
48116
      oprot.writeFieldStop();
48117
      oprot.writeStructEnd();
48118
    }
48119
 
48120
    @Override
48121
    public String toString() {
48122
      StringBuilder sb = new StringBuilder("getItemPricingBySource_result(");
48123
      boolean first = true;
48124
 
48125
      sb.append("success:");
48126
      if (this.success == null) {
48127
        sb.append("null");
48128
      } else {
48129
        sb.append(this.success);
48130
      }
48131
      first = false;
48132
      if (!first) sb.append(", ");
48133
      sb.append("cex:");
48134
      if (this.cex == null) {
48135
        sb.append("null");
48136
      } else {
48137
        sb.append(this.cex);
48138
      }
48139
      first = false;
48140
      sb.append(")");
48141
      return sb.toString();
48142
    }
48143
 
48144
    public void validate() throws org.apache.thrift.TException {
48145
      // check for required fields
48146
    }
48147
 
48148
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48149
      try {
48150
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48151
      } catch (org.apache.thrift.TException te) {
48152
        throw new java.io.IOException(te);
48153
      }
48154
    }
48155
 
48156
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48157
      try {
48158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48159
      } catch (org.apache.thrift.TException te) {
48160
        throw new java.io.IOException(te);
48161
      }
48162
    }
48163
 
48164
  }
48165
 
48166
  public static class addSourceItemPricing_args implements org.apache.thrift.TBase<addSourceItemPricing_args, addSourceItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
48167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_args");
48168
 
48169
    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);
48170
 
48171
    private SourceItemPricing sourceItemPricing; // required
48172
 
48173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48175
      SOURCE_ITEM_PRICING((short)1, "sourceItemPricing");
48176
 
48177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48178
 
48179
      static {
48180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48181
          byName.put(field.getFieldName(), field);
48182
        }
48183
      }
48184
 
48185
      /**
48186
       * Find the _Fields constant that matches fieldId, or null if its not found.
48187
       */
48188
      public static _Fields findByThriftId(int fieldId) {
48189
        switch(fieldId) {
48190
          case 1: // SOURCE_ITEM_PRICING
48191
            return SOURCE_ITEM_PRICING;
48192
          default:
48193
            return null;
48194
        }
48195
      }
48196
 
48197
      /**
48198
       * Find the _Fields constant that matches fieldId, throwing an exception
48199
       * if it is not found.
48200
       */
48201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48202
        _Fields fields = findByThriftId(fieldId);
48203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48204
        return fields;
48205
      }
48206
 
48207
      /**
48208
       * Find the _Fields constant that matches name, or null if its not found.
48209
       */
48210
      public static _Fields findByName(String name) {
48211
        return byName.get(name);
48212
      }
48213
 
48214
      private final short _thriftId;
48215
      private final String _fieldName;
48216
 
48217
      _Fields(short thriftId, String fieldName) {
48218
        _thriftId = thriftId;
48219
        _fieldName = fieldName;
48220
      }
48221
 
48222
      public short getThriftFieldId() {
48223
        return _thriftId;
48224
      }
48225
 
48226
      public String getFieldName() {
48227
        return _fieldName;
48228
      }
48229
    }
48230
 
48231
    // isset id assignments
48232
 
48233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48234
    static {
48235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48236
      tmpMap.put(_Fields.SOURCE_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("sourceItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48237
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));
48238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_args.class, metaDataMap);
48240
    }
48241
 
48242
    public addSourceItemPricing_args() {
48243
    }
48244
 
48245
    public addSourceItemPricing_args(
48246
      SourceItemPricing sourceItemPricing)
48247
    {
48248
      this();
48249
      this.sourceItemPricing = sourceItemPricing;
48250
    }
48251
 
48252
    /**
48253
     * Performs a deep copy on <i>other</i>.
48254
     */
48255
    public addSourceItemPricing_args(addSourceItemPricing_args other) {
48256
      if (other.isSetSourceItemPricing()) {
48257
        this.sourceItemPricing = new SourceItemPricing(other.sourceItemPricing);
48258
      }
48259
    }
48260
 
48261
    public addSourceItemPricing_args deepCopy() {
48262
      return new addSourceItemPricing_args(this);
48263
    }
48264
 
48265
    @Override
48266
    public void clear() {
48267
      this.sourceItemPricing = null;
48268
    }
48269
 
48270
    public SourceItemPricing getSourceItemPricing() {
48271
      return this.sourceItemPricing;
48272
    }
48273
 
48274
    public void setSourceItemPricing(SourceItemPricing sourceItemPricing) {
48275
      this.sourceItemPricing = sourceItemPricing;
48276
    }
48277
 
48278
    public void unsetSourceItemPricing() {
48279
      this.sourceItemPricing = null;
48280
    }
48281
 
48282
    /** Returns true if field sourceItemPricing is set (has been assigned a value) and false otherwise */
48283
    public boolean isSetSourceItemPricing() {
48284
      return this.sourceItemPricing != null;
48285
    }
48286
 
48287
    public void setSourceItemPricingIsSet(boolean value) {
48288
      if (!value) {
48289
        this.sourceItemPricing = null;
48290
      }
48291
    }
48292
 
48293
    public void setFieldValue(_Fields field, Object value) {
48294
      switch (field) {
48295
      case SOURCE_ITEM_PRICING:
48296
        if (value == null) {
48297
          unsetSourceItemPricing();
48298
        } else {
48299
          setSourceItemPricing((SourceItemPricing)value);
48300
        }
48301
        break;
48302
 
48303
      }
48304
    }
48305
 
48306
    public Object getFieldValue(_Fields field) {
48307
      switch (field) {
48308
      case SOURCE_ITEM_PRICING:
48309
        return getSourceItemPricing();
48310
 
48311
      }
48312
      throw new IllegalStateException();
48313
    }
48314
 
48315
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48316
    public boolean isSet(_Fields field) {
48317
      if (field == null) {
48318
        throw new IllegalArgumentException();
48319
      }
48320
 
48321
      switch (field) {
48322
      case SOURCE_ITEM_PRICING:
48323
        return isSetSourceItemPricing();
48324
      }
48325
      throw new IllegalStateException();
48326
    }
48327
 
48328
    @Override
48329
    public boolean equals(Object that) {
48330
      if (that == null)
48331
        return false;
48332
      if (that instanceof addSourceItemPricing_args)
48333
        return this.equals((addSourceItemPricing_args)that);
48334
      return false;
48335
    }
48336
 
48337
    public boolean equals(addSourceItemPricing_args that) {
48338
      if (that == null)
48339
        return false;
48340
 
48341
      boolean this_present_sourceItemPricing = true && this.isSetSourceItemPricing();
48342
      boolean that_present_sourceItemPricing = true && that.isSetSourceItemPricing();
48343
      if (this_present_sourceItemPricing || that_present_sourceItemPricing) {
48344
        if (!(this_present_sourceItemPricing && that_present_sourceItemPricing))
48345
          return false;
48346
        if (!this.sourceItemPricing.equals(that.sourceItemPricing))
48347
          return false;
48348
      }
48349
 
48350
      return true;
48351
    }
48352
 
48353
    @Override
48354
    public int hashCode() {
48355
      return 0;
48356
    }
48357
 
48358
    public int compareTo(addSourceItemPricing_args other) {
48359
      if (!getClass().equals(other.getClass())) {
48360
        return getClass().getName().compareTo(other.getClass().getName());
48361
      }
48362
 
48363
      int lastComparison = 0;
48364
      addSourceItemPricing_args typedOther = (addSourceItemPricing_args)other;
48365
 
48366
      lastComparison = Boolean.valueOf(isSetSourceItemPricing()).compareTo(typedOther.isSetSourceItemPricing());
48367
      if (lastComparison != 0) {
48368
        return lastComparison;
48369
      }
48370
      if (isSetSourceItemPricing()) {
48371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceItemPricing, typedOther.sourceItemPricing);
48372
        if (lastComparison != 0) {
48373
          return lastComparison;
48374
        }
48375
      }
48376
      return 0;
48377
    }
48378
 
48379
    public _Fields fieldForId(int fieldId) {
48380
      return _Fields.findByThriftId(fieldId);
48381
    }
48382
 
48383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48384
      org.apache.thrift.protocol.TField field;
48385
      iprot.readStructBegin();
48386
      while (true)
48387
      {
48388
        field = iprot.readFieldBegin();
48389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48390
          break;
48391
        }
48392
        switch (field.id) {
48393
          case 1: // SOURCE_ITEM_PRICING
48394
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48395
              this.sourceItemPricing = new SourceItemPricing();
48396
              this.sourceItemPricing.read(iprot);
48397
            } else { 
48398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48399
            }
48400
            break;
48401
          default:
48402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48403
        }
48404
        iprot.readFieldEnd();
48405
      }
48406
      iprot.readStructEnd();
48407
      validate();
48408
    }
48409
 
48410
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48411
      validate();
48412
 
48413
      oprot.writeStructBegin(STRUCT_DESC);
48414
      if (this.sourceItemPricing != null) {
48415
        oprot.writeFieldBegin(SOURCE_ITEM_PRICING_FIELD_DESC);
48416
        this.sourceItemPricing.write(oprot);
48417
        oprot.writeFieldEnd();
48418
      }
48419
      oprot.writeFieldStop();
48420
      oprot.writeStructEnd();
48421
    }
48422
 
48423
    @Override
48424
    public String toString() {
48425
      StringBuilder sb = new StringBuilder("addSourceItemPricing_args(");
48426
      boolean first = true;
48427
 
48428
      sb.append("sourceItemPricing:");
48429
      if (this.sourceItemPricing == null) {
48430
        sb.append("null");
48431
      } else {
48432
        sb.append(this.sourceItemPricing);
48433
      }
48434
      first = false;
48435
      sb.append(")");
48436
      return sb.toString();
48437
    }
48438
 
48439
    public void validate() throws org.apache.thrift.TException {
48440
      // check for required fields
48441
    }
48442
 
48443
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48444
      try {
48445
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48446
      } catch (org.apache.thrift.TException te) {
48447
        throw new java.io.IOException(te);
48448
      }
48449
    }
48450
 
48451
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48452
      try {
48453
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48454
      } catch (org.apache.thrift.TException te) {
48455
        throw new java.io.IOException(te);
48456
      }
48457
    }
48458
 
48459
  }
48460
 
48461
  public static class addSourceItemPricing_result implements org.apache.thrift.TBase<addSourceItemPricing_result, addSourceItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
48462
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_result");
48463
 
48464
    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);
48465
 
48466
    private CatalogServiceException cex; // required
48467
 
48468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48470
      CEX((short)1, "cex");
48471
 
48472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48473
 
48474
      static {
48475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48476
          byName.put(field.getFieldName(), field);
48477
        }
48478
      }
48479
 
48480
      /**
48481
       * Find the _Fields constant that matches fieldId, or null if its not found.
48482
       */
48483
      public static _Fields findByThriftId(int fieldId) {
48484
        switch(fieldId) {
48485
          case 1: // CEX
48486
            return CEX;
48487
          default:
48488
            return null;
48489
        }
48490
      }
48491
 
48492
      /**
48493
       * Find the _Fields constant that matches fieldId, throwing an exception
48494
       * if it is not found.
48495
       */
48496
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48497
        _Fields fields = findByThriftId(fieldId);
48498
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48499
        return fields;
48500
      }
48501
 
48502
      /**
48503
       * Find the _Fields constant that matches name, or null if its not found.
48504
       */
48505
      public static _Fields findByName(String name) {
48506
        return byName.get(name);
48507
      }
48508
 
48509
      private final short _thriftId;
48510
      private final String _fieldName;
48511
 
48512
      _Fields(short thriftId, String fieldName) {
48513
        _thriftId = thriftId;
48514
        _fieldName = fieldName;
48515
      }
48516
 
48517
      public short getThriftFieldId() {
48518
        return _thriftId;
48519
      }
48520
 
48521
      public String getFieldName() {
48522
        return _fieldName;
48523
      }
48524
    }
48525
 
48526
    // isset id assignments
48527
 
48528
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48529
    static {
48530
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48531
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
48533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_result.class, metaDataMap);
48535
    }
48536
 
48537
    public addSourceItemPricing_result() {
48538
    }
48539
 
48540
    public addSourceItemPricing_result(
48541
      CatalogServiceException cex)
48542
    {
48543
      this();
48544
      this.cex = cex;
48545
    }
48546
 
48547
    /**
48548
     * Performs a deep copy on <i>other</i>.
48549
     */
48550
    public addSourceItemPricing_result(addSourceItemPricing_result other) {
48551
      if (other.isSetCex()) {
48552
        this.cex = new CatalogServiceException(other.cex);
48553
      }
48554
    }
48555
 
48556
    public addSourceItemPricing_result deepCopy() {
48557
      return new addSourceItemPricing_result(this);
48558
    }
48559
 
48560
    @Override
48561
    public void clear() {
48562
      this.cex = null;
48563
    }
48564
 
48565
    public CatalogServiceException getCex() {
48566
      return this.cex;
48567
    }
48568
 
48569
    public void setCex(CatalogServiceException cex) {
48570
      this.cex = cex;
48571
    }
48572
 
48573
    public void unsetCex() {
48574
      this.cex = null;
48575
    }
48576
 
48577
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
48578
    public boolean isSetCex() {
48579
      return this.cex != null;
48580
    }
48581
 
48582
    public void setCexIsSet(boolean value) {
48583
      if (!value) {
48584
        this.cex = null;
48585
      }
48586
    }
48587
 
48588
    public void setFieldValue(_Fields field, Object value) {
48589
      switch (field) {
48590
      case CEX:
48591
        if (value == null) {
48592
          unsetCex();
48593
        } else {
48594
          setCex((CatalogServiceException)value);
48595
        }
48596
        break;
48597
 
48598
      }
48599
    }
48600
 
48601
    public Object getFieldValue(_Fields field) {
48602
      switch (field) {
48603
      case CEX:
48604
        return getCex();
48605
 
48606
      }
48607
      throw new IllegalStateException();
48608
    }
48609
 
48610
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48611
    public boolean isSet(_Fields field) {
48612
      if (field == null) {
48613
        throw new IllegalArgumentException();
48614
      }
48615
 
48616
      switch (field) {
48617
      case CEX:
48618
        return isSetCex();
48619
      }
48620
      throw new IllegalStateException();
48621
    }
48622
 
48623
    @Override
48624
    public boolean equals(Object that) {
48625
      if (that == null)
48626
        return false;
48627
      if (that instanceof addSourceItemPricing_result)
48628
        return this.equals((addSourceItemPricing_result)that);
48629
      return false;
48630
    }
48631
 
48632
    public boolean equals(addSourceItemPricing_result that) {
48633
      if (that == null)
48634
        return false;
48635
 
48636
      boolean this_present_cex = true && this.isSetCex();
48637
      boolean that_present_cex = true && that.isSetCex();
48638
      if (this_present_cex || that_present_cex) {
48639
        if (!(this_present_cex && that_present_cex))
48640
          return false;
48641
        if (!this.cex.equals(that.cex))
48642
          return false;
48643
      }
48644
 
48645
      return true;
48646
    }
48647
 
48648
    @Override
48649
    public int hashCode() {
48650
      return 0;
48651
    }
48652
 
48653
    public int compareTo(addSourceItemPricing_result other) {
48654
      if (!getClass().equals(other.getClass())) {
48655
        return getClass().getName().compareTo(other.getClass().getName());
48656
      }
48657
 
48658
      int lastComparison = 0;
48659
      addSourceItemPricing_result typedOther = (addSourceItemPricing_result)other;
48660
 
48661
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
48662
      if (lastComparison != 0) {
48663
        return lastComparison;
48664
      }
48665
      if (isSetCex()) {
48666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
48667
        if (lastComparison != 0) {
48668
          return lastComparison;
48669
        }
48670
      }
48671
      return 0;
48672
    }
48673
 
48674
    public _Fields fieldForId(int fieldId) {
48675
      return _Fields.findByThriftId(fieldId);
48676
    }
48677
 
48678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48679
      org.apache.thrift.protocol.TField field;
48680
      iprot.readStructBegin();
48681
      while (true)
48682
      {
48683
        field = iprot.readFieldBegin();
48684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48685
          break;
48686
        }
48687
        switch (field.id) {
48688
          case 1: // CEX
48689
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48690
              this.cex = new CatalogServiceException();
48691
              this.cex.read(iprot);
48692
            } else { 
48693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48694
            }
48695
            break;
48696
          default:
48697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48698
        }
48699
        iprot.readFieldEnd();
48700
      }
48701
      iprot.readStructEnd();
48702
      validate();
48703
    }
48704
 
48705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48706
      oprot.writeStructBegin(STRUCT_DESC);
48707
 
48708
      if (this.isSetCex()) {
48709
        oprot.writeFieldBegin(CEX_FIELD_DESC);
48710
        this.cex.write(oprot);
48711
        oprot.writeFieldEnd();
48712
      }
48713
      oprot.writeFieldStop();
48714
      oprot.writeStructEnd();
48715
    }
48716
 
48717
    @Override
48718
    public String toString() {
48719
      StringBuilder sb = new StringBuilder("addSourceItemPricing_result(");
48720
      boolean first = true;
48721
 
48722
      sb.append("cex:");
48723
      if (this.cex == null) {
48724
        sb.append("null");
48725
      } else {
48726
        sb.append(this.cex);
48727
      }
48728
      first = false;
48729
      sb.append(")");
48730
      return sb.toString();
48731
    }
48732
 
48733
    public void validate() throws org.apache.thrift.TException {
48734
      // check for required fields
48735
    }
48736
 
48737
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48738
      try {
48739
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48740
      } catch (org.apache.thrift.TException te) {
48741
        throw new java.io.IOException(te);
48742
      }
48743
    }
48744
 
48745
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48746
      try {
48747
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48748
      } catch (org.apache.thrift.TException te) {
48749
        throw new java.io.IOException(te);
48750
      }
48751
    }
48752
 
48753
  }
48754
 
48755
  public static class getAllSourcePricing_args implements org.apache.thrift.TBase<getAllSourcePricing_args, getAllSourcePricing_args._Fields>, java.io.Serializable, Cloneable   {
48756
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_args");
48757
 
48758
    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);
48759
 
48760
    private long itemId; // required
48761
 
48762
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48763
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48764
      ITEM_ID((short)1, "itemId");
48765
 
48766
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48767
 
48768
      static {
48769
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48770
          byName.put(field.getFieldName(), field);
48771
        }
48772
      }
48773
 
48774
      /**
48775
       * Find the _Fields constant that matches fieldId, or null if its not found.
48776
       */
48777
      public static _Fields findByThriftId(int fieldId) {
48778
        switch(fieldId) {
48779
          case 1: // ITEM_ID
48780
            return ITEM_ID;
48781
          default:
48782
            return null;
48783
        }
48784
      }
48785
 
48786
      /**
48787
       * Find the _Fields constant that matches fieldId, throwing an exception
48788
       * if it is not found.
48789
       */
48790
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48791
        _Fields fields = findByThriftId(fieldId);
48792
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48793
        return fields;
48794
      }
48795
 
48796
      /**
48797
       * Find the _Fields constant that matches name, or null if its not found.
48798
       */
48799
      public static _Fields findByName(String name) {
48800
        return byName.get(name);
48801
      }
48802
 
48803
      private final short _thriftId;
48804
      private final String _fieldName;
48805
 
48806
      _Fields(short thriftId, String fieldName) {
48807
        _thriftId = thriftId;
48808
        _fieldName = fieldName;
48809
      }
48810
 
48811
      public short getThriftFieldId() {
48812
        return _thriftId;
48813
      }
48814
 
48815
      public String getFieldName() {
48816
        return _fieldName;
48817
      }
48818
    }
48819
 
48820
    // isset id assignments
48821
    private static final int __ITEMID_ISSET_ID = 0;
48822
    private BitSet __isset_bit_vector = new BitSet(1);
48823
 
48824
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48825
    static {
48826
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48827
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48829
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48830
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_args.class, metaDataMap);
48831
    }
48832
 
48833
    public getAllSourcePricing_args() {
48834
    }
48835
 
48836
    public getAllSourcePricing_args(
48837
      long itemId)
48838
    {
48839
      this();
48840
      this.itemId = itemId;
48841
      setItemIdIsSet(true);
48842
    }
48843
 
48844
    /**
48845
     * Performs a deep copy on <i>other</i>.
48846
     */
48847
    public getAllSourcePricing_args(getAllSourcePricing_args other) {
48848
      __isset_bit_vector.clear();
48849
      __isset_bit_vector.or(other.__isset_bit_vector);
48850
      this.itemId = other.itemId;
48851
    }
48852
 
48853
    public getAllSourcePricing_args deepCopy() {
48854
      return new getAllSourcePricing_args(this);
48855
    }
48856
 
48857
    @Override
48858
    public void clear() {
48859
      setItemIdIsSet(false);
48860
      this.itemId = 0;
48861
    }
48862
 
48863
    public long getItemId() {
48864
      return this.itemId;
48865
    }
48866
 
48867
    public void setItemId(long itemId) {
48868
      this.itemId = itemId;
48869
      setItemIdIsSet(true);
48870
    }
48871
 
48872
    public void unsetItemId() {
48873
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48874
    }
48875
 
48876
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
48877
    public boolean isSetItemId() {
48878
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48879
    }
48880
 
48881
    public void setItemIdIsSet(boolean value) {
48882
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
48883
    }
48884
 
48885
    public void setFieldValue(_Fields field, Object value) {
48886
      switch (field) {
48887
      case ITEM_ID:
48888
        if (value == null) {
48889
          unsetItemId();
48890
        } else {
48891
          setItemId((Long)value);
48892
        }
48893
        break;
48894
 
48895
      }
48896
    }
48897
 
48898
    public Object getFieldValue(_Fields field) {
48899
      switch (field) {
48900
      case ITEM_ID:
48901
        return Long.valueOf(getItemId());
48902
 
48903
      }
48904
      throw new IllegalStateException();
48905
    }
48906
 
48907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48908
    public boolean isSet(_Fields field) {
48909
      if (field == null) {
48910
        throw new IllegalArgumentException();
48911
      }
48912
 
48913
      switch (field) {
48914
      case ITEM_ID:
48915
        return isSetItemId();
48916
      }
48917
      throw new IllegalStateException();
48918
    }
48919
 
48920
    @Override
48921
    public boolean equals(Object that) {
48922
      if (that == null)
48923
        return false;
48924
      if (that instanceof getAllSourcePricing_args)
48925
        return this.equals((getAllSourcePricing_args)that);
48926
      return false;
48927
    }
48928
 
48929
    public boolean equals(getAllSourcePricing_args that) {
48930
      if (that == null)
48931
        return false;
48932
 
48933
      boolean this_present_itemId = true;
48934
      boolean that_present_itemId = true;
48935
      if (this_present_itemId || that_present_itemId) {
48936
        if (!(this_present_itemId && that_present_itemId))
48937
          return false;
48938
        if (this.itemId != that.itemId)
48939
          return false;
48940
      }
48941
 
48942
      return true;
48943
    }
48944
 
48945
    @Override
48946
    public int hashCode() {
48947
      return 0;
48948
    }
48949
 
48950
    public int compareTo(getAllSourcePricing_args other) {
48951
      if (!getClass().equals(other.getClass())) {
48952
        return getClass().getName().compareTo(other.getClass().getName());
48953
      }
48954
 
48955
      int lastComparison = 0;
48956
      getAllSourcePricing_args typedOther = (getAllSourcePricing_args)other;
48957
 
48958
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48959
      if (lastComparison != 0) {
48960
        return lastComparison;
48961
      }
48962
      if (isSetItemId()) {
48963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
48964
        if (lastComparison != 0) {
48965
          return lastComparison;
48966
        }
48967
      }
48968
      return 0;
48969
    }
48970
 
48971
    public _Fields fieldForId(int fieldId) {
48972
      return _Fields.findByThriftId(fieldId);
48973
    }
48974
 
48975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48976
      org.apache.thrift.protocol.TField field;
48977
      iprot.readStructBegin();
48978
      while (true)
48979
      {
48980
        field = iprot.readFieldBegin();
48981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48982
          break;
48983
        }
48984
        switch (field.id) {
48985
          case 1: // ITEM_ID
48986
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48987
              this.itemId = iprot.readI64();
48988
              setItemIdIsSet(true);
48989
            } else { 
48990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48991
            }
48992
            break;
48993
          default:
48994
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48995
        }
48996
        iprot.readFieldEnd();
48997
      }
48998
      iprot.readStructEnd();
48999
      validate();
49000
    }
49001
 
49002
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49003
      validate();
49004
 
49005
      oprot.writeStructBegin(STRUCT_DESC);
49006
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
49007
      oprot.writeI64(this.itemId);
49008
      oprot.writeFieldEnd();
49009
      oprot.writeFieldStop();
49010
      oprot.writeStructEnd();
49011
    }
49012
 
49013
    @Override
49014
    public String toString() {
49015
      StringBuilder sb = new StringBuilder("getAllSourcePricing_args(");
49016
      boolean first = true;
49017
 
49018
      sb.append("itemId:");
49019
      sb.append(this.itemId);
49020
      first = false;
49021
      sb.append(")");
49022
      return sb.toString();
49023
    }
49024
 
49025
    public void validate() throws org.apache.thrift.TException {
49026
      // check for required fields
49027
    }
49028
 
49029
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49030
      try {
49031
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49032
      } catch (org.apache.thrift.TException te) {
49033
        throw new java.io.IOException(te);
49034
      }
49035
    }
49036
 
49037
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49038
      try {
49039
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49040
      } catch (org.apache.thrift.TException te) {
49041
        throw new java.io.IOException(te);
49042
      }
49043
    }
49044
 
49045
  }
49046
 
49047
  public static class getAllSourcePricing_result implements org.apache.thrift.TBase<getAllSourcePricing_result, getAllSourcePricing_result._Fields>, java.io.Serializable, Cloneable   {
49048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_result");
49049
 
49050
    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);
49051
    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);
49052
 
49053
    private List<SourceItemPricing> success; // required
49054
    private CatalogServiceException cex; // required
49055
 
49056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49058
      SUCCESS((short)0, "success"),
49059
      CEX((short)1, "cex");
49060
 
49061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49062
 
49063
      static {
49064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49065
          byName.put(field.getFieldName(), field);
49066
        }
49067
      }
49068
 
49069
      /**
49070
       * Find the _Fields constant that matches fieldId, or null if its not found.
49071
       */
49072
      public static _Fields findByThriftId(int fieldId) {
49073
        switch(fieldId) {
49074
          case 0: // SUCCESS
49075
            return SUCCESS;
49076
          case 1: // CEX
49077
            return CEX;
49078
          default:
49079
            return null;
49080
        }
49081
      }
49082
 
49083
      /**
49084
       * Find the _Fields constant that matches fieldId, throwing an exception
49085
       * if it is not found.
49086
       */
49087
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49088
        _Fields fields = findByThriftId(fieldId);
49089
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49090
        return fields;
49091
      }
49092
 
49093
      /**
49094
       * Find the _Fields constant that matches name, or null if its not found.
49095
       */
49096
      public static _Fields findByName(String name) {
49097
        return byName.get(name);
49098
      }
49099
 
49100
      private final short _thriftId;
49101
      private final String _fieldName;
49102
 
49103
      _Fields(short thriftId, String fieldName) {
49104
        _thriftId = thriftId;
49105
        _fieldName = fieldName;
49106
      }
49107
 
49108
      public short getThriftFieldId() {
49109
        return _thriftId;
49110
      }
49111
 
49112
      public String getFieldName() {
49113
        return _fieldName;
49114
      }
49115
    }
49116
 
49117
    // isset id assignments
49118
 
49119
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49120
    static {
49121
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49122
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49123
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
49124
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class))));
49125
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
49127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_result.class, metaDataMap);
49129
    }
49130
 
49131
    public getAllSourcePricing_result() {
49132
    }
49133
 
49134
    public getAllSourcePricing_result(
49135
      List<SourceItemPricing> success,
49136
      CatalogServiceException cex)
49137
    {
49138
      this();
49139
      this.success = success;
49140
      this.cex = cex;
49141
    }
49142
 
49143
    /**
49144
     * Performs a deep copy on <i>other</i>.
49145
     */
49146
    public getAllSourcePricing_result(getAllSourcePricing_result other) {
49147
      if (other.isSetSuccess()) {
49148
        List<SourceItemPricing> __this__success = new ArrayList<SourceItemPricing>();
49149
        for (SourceItemPricing other_element : other.success) {
49150
          __this__success.add(new SourceItemPricing(other_element));
49151
        }
49152
        this.success = __this__success;
49153
      }
49154
      if (other.isSetCex()) {
49155
        this.cex = new CatalogServiceException(other.cex);
49156
      }
49157
    }
49158
 
49159
    public getAllSourcePricing_result deepCopy() {
49160
      return new getAllSourcePricing_result(this);
49161
    }
49162
 
49163
    @Override
49164
    public void clear() {
49165
      this.success = null;
49166
      this.cex = null;
49167
    }
49168
 
49169
    public int getSuccessSize() {
49170
      return (this.success == null) ? 0 : this.success.size();
49171
    }
49172
 
49173
    public java.util.Iterator<SourceItemPricing> getSuccessIterator() {
49174
      return (this.success == null) ? null : this.success.iterator();
49175
    }
49176
 
49177
    public void addToSuccess(SourceItemPricing elem) {
49178
      if (this.success == null) {
49179
        this.success = new ArrayList<SourceItemPricing>();
49180
      }
49181
      this.success.add(elem);
49182
    }
49183
 
49184
    public List<SourceItemPricing> getSuccess() {
49185
      return this.success;
49186
    }
49187
 
49188
    public void setSuccess(List<SourceItemPricing> success) {
49189
      this.success = success;
49190
    }
49191
 
49192
    public void unsetSuccess() {
49193
      this.success = null;
49194
    }
49195
 
49196
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49197
    public boolean isSetSuccess() {
49198
      return this.success != null;
49199
    }
49200
 
49201
    public void setSuccessIsSet(boolean value) {
49202
      if (!value) {
49203
        this.success = null;
49204
      }
49205
    }
49206
 
49207
    public CatalogServiceException getCex() {
49208
      return this.cex;
49209
    }
49210
 
49211
    public void setCex(CatalogServiceException cex) {
49212
      this.cex = cex;
49213
    }
49214
 
49215
    public void unsetCex() {
49216
      this.cex = null;
49217
    }
49218
 
49219
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
49220
    public boolean isSetCex() {
49221
      return this.cex != null;
49222
    }
49223
 
49224
    public void setCexIsSet(boolean value) {
49225
      if (!value) {
49226
        this.cex = null;
49227
      }
49228
    }
49229
 
49230
    public void setFieldValue(_Fields field, Object value) {
49231
      switch (field) {
49232
      case SUCCESS:
49233
        if (value == null) {
49234
          unsetSuccess();
49235
        } else {
49236
          setSuccess((List<SourceItemPricing>)value);
49237
        }
49238
        break;
49239
 
49240
      case CEX:
49241
        if (value == null) {
49242
          unsetCex();
49243
        } else {
49244
          setCex((CatalogServiceException)value);
49245
        }
49246
        break;
49247
 
49248
      }
49249
    }
49250
 
49251
    public Object getFieldValue(_Fields field) {
49252
      switch (field) {
49253
      case SUCCESS:
49254
        return getSuccess();
49255
 
49256
      case CEX:
49257
        return getCex();
49258
 
49259
      }
49260
      throw new IllegalStateException();
49261
    }
49262
 
49263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49264
    public boolean isSet(_Fields field) {
49265
      if (field == null) {
49266
        throw new IllegalArgumentException();
49267
      }
49268
 
49269
      switch (field) {
49270
      case SUCCESS:
49271
        return isSetSuccess();
49272
      case CEX:
49273
        return isSetCex();
49274
      }
49275
      throw new IllegalStateException();
49276
    }
49277
 
49278
    @Override
49279
    public boolean equals(Object that) {
49280
      if (that == null)
49281
        return false;
49282
      if (that instanceof getAllSourcePricing_result)
49283
        return this.equals((getAllSourcePricing_result)that);
49284
      return false;
49285
    }
49286
 
49287
    public boolean equals(getAllSourcePricing_result that) {
49288
      if (that == null)
49289
        return false;
49290
 
49291
      boolean this_present_success = true && this.isSetSuccess();
49292
      boolean that_present_success = true && that.isSetSuccess();
49293
      if (this_present_success || that_present_success) {
49294
        if (!(this_present_success && that_present_success))
49295
          return false;
49296
        if (!this.success.equals(that.success))
49297
          return false;
49298
      }
49299
 
49300
      boolean this_present_cex = true && this.isSetCex();
49301
      boolean that_present_cex = true && that.isSetCex();
49302
      if (this_present_cex || that_present_cex) {
49303
        if (!(this_present_cex && that_present_cex))
49304
          return false;
49305
        if (!this.cex.equals(that.cex))
49306
          return false;
49307
      }
49308
 
49309
      return true;
49310
    }
49311
 
49312
    @Override
49313
    public int hashCode() {
49314
      return 0;
49315
    }
49316
 
49317
    public int compareTo(getAllSourcePricing_result other) {
49318
      if (!getClass().equals(other.getClass())) {
49319
        return getClass().getName().compareTo(other.getClass().getName());
49320
      }
49321
 
49322
      int lastComparison = 0;
49323
      getAllSourcePricing_result typedOther = (getAllSourcePricing_result)other;
49324
 
49325
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49326
      if (lastComparison != 0) {
49327
        return lastComparison;
49328
      }
49329
      if (isSetSuccess()) {
49330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49331
        if (lastComparison != 0) {
49332
          return lastComparison;
49333
        }
49334
      }
49335
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
49336
      if (lastComparison != 0) {
49337
        return lastComparison;
49338
      }
49339
      if (isSetCex()) {
49340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
49341
        if (lastComparison != 0) {
49342
          return lastComparison;
49343
        }
49344
      }
49345
      return 0;
49346
    }
49347
 
49348
    public _Fields fieldForId(int fieldId) {
49349
      return _Fields.findByThriftId(fieldId);
49350
    }
49351
 
49352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49353
      org.apache.thrift.protocol.TField field;
49354
      iprot.readStructBegin();
49355
      while (true)
49356
      {
49357
        field = iprot.readFieldBegin();
49358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49359
          break;
49360
        }
49361
        switch (field.id) {
49362
          case 0: // SUCCESS
49363
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49364
              {
6850 kshitij.so 49365
                org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
49366
                this.success = new ArrayList<SourceItemPricing>(_list130.size);
49367
                for (int _i131 = 0; _i131 < _list130.size; ++_i131)
5945 mandeep.dh 49368
                {
6850 kshitij.so 49369
                  SourceItemPricing _elem132; // required
49370
                  _elem132 = new SourceItemPricing();
49371
                  _elem132.read(iprot);
49372
                  this.success.add(_elem132);
5945 mandeep.dh 49373
                }
49374
                iprot.readListEnd();
49375
              }
49376
            } else { 
49377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49378
            }
49379
            break;
49380
          case 1: // CEX
49381
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
49382
              this.cex = new CatalogServiceException();
49383
              this.cex.read(iprot);
49384
            } else { 
49385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49386
            }
49387
            break;
49388
          default:
49389
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49390
        }
49391
        iprot.readFieldEnd();
49392
      }
49393
      iprot.readStructEnd();
49394
      validate();
49395
    }
49396
 
49397
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49398
      oprot.writeStructBegin(STRUCT_DESC);
49399
 
49400
      if (this.isSetSuccess()) {
49401
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49402
        {
49403
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 49404
          for (SourceItemPricing _iter133 : this.success)
5945 mandeep.dh 49405
          {
6850 kshitij.so 49406
            _iter133.write(oprot);
5945 mandeep.dh 49407
          }
49408
          oprot.writeListEnd();
49409
        }
49410
        oprot.writeFieldEnd();
49411
      } else if (this.isSetCex()) {
49412
        oprot.writeFieldBegin(CEX_FIELD_DESC);
49413
        this.cex.write(oprot);
49414
        oprot.writeFieldEnd();
49415
      }
49416
      oprot.writeFieldStop();
49417
      oprot.writeStructEnd();
49418
    }
49419
 
49420
    @Override
49421
    public String toString() {
49422
      StringBuilder sb = new StringBuilder("getAllSourcePricing_result(");
49423
      boolean first = true;
49424
 
49425
      sb.append("success:");
49426
      if (this.success == null) {
49427
        sb.append("null");
49428
      } else {
49429
        sb.append(this.success);
49430
      }
49431
      first = false;
49432
      if (!first) sb.append(", ");
49433
      sb.append("cex:");
49434
      if (this.cex == null) {
49435
        sb.append("null");
49436
      } else {
49437
        sb.append(this.cex);
49438
      }
49439
      first = false;
49440
      sb.append(")");
49441
      return sb.toString();
49442
    }
49443
 
49444
    public void validate() throws org.apache.thrift.TException {
49445
      // check for required fields
49446
    }
49447
 
49448
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49449
      try {
49450
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49451
      } catch (org.apache.thrift.TException te) {
49452
        throw new java.io.IOException(te);
49453
      }
49454
    }
49455
 
49456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49457
      try {
49458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49459
      } catch (org.apache.thrift.TException te) {
49460
        throw new java.io.IOException(te);
49461
      }
49462
    }
49463
 
49464
  }
49465
 
49466
  public static class getItemForSource_args implements org.apache.thrift.TBase<getItemForSource_args, getItemForSource_args._Fields>, java.io.Serializable, Cloneable   {
49467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_args");
49468
 
49469
    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);
49470
    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);
49471
 
49472
    private long item_id; // required
49473
    private long sourceId; // required
49474
 
49475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49477
      ITEM_ID((short)1, "item_id"),
49478
      SOURCE_ID((short)2, "sourceId");
49479
 
49480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49481
 
49482
      static {
49483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49484
          byName.put(field.getFieldName(), field);
49485
        }
49486
      }
49487
 
49488
      /**
49489
       * Find the _Fields constant that matches fieldId, or null if its not found.
49490
       */
49491
      public static _Fields findByThriftId(int fieldId) {
49492
        switch(fieldId) {
49493
          case 1: // ITEM_ID
49494
            return ITEM_ID;
49495
          case 2: // SOURCE_ID
49496
            return SOURCE_ID;
49497
          default:
49498
            return null;
49499
        }
49500
      }
49501
 
49502
      /**
49503
       * Find the _Fields constant that matches fieldId, throwing an exception
49504
       * if it is not found.
49505
       */
49506
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49507
        _Fields fields = findByThriftId(fieldId);
49508
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49509
        return fields;
49510
      }
49511
 
49512
      /**
49513
       * Find the _Fields constant that matches name, or null if its not found.
49514
       */
49515
      public static _Fields findByName(String name) {
49516
        return byName.get(name);
49517
      }
49518
 
49519
      private final short _thriftId;
49520
      private final String _fieldName;
49521
 
49522
      _Fields(short thriftId, String fieldName) {
49523
        _thriftId = thriftId;
49524
        _fieldName = fieldName;
49525
      }
49526
 
49527
      public short getThriftFieldId() {
49528
        return _thriftId;
49529
      }
49530
 
49531
      public String getFieldName() {
49532
        return _fieldName;
49533
      }
49534
    }
49535
 
49536
    // isset id assignments
49537
    private static final int __ITEM_ID_ISSET_ID = 0;
49538
    private static final int __SOURCEID_ISSET_ID = 1;
49539
    private BitSet __isset_bit_vector = new BitSet(2);
49540
 
49541
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49542
    static {
49543
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49544
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49545
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49546
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_args.class, metaDataMap);
49550
    }
49551
 
49552
    public getItemForSource_args() {
49553
    }
49554
 
49555
    public getItemForSource_args(
49556
      long item_id,
49557
      long sourceId)
49558
    {
49559
      this();
49560
      this.item_id = item_id;
49561
      setItem_idIsSet(true);
49562
      this.sourceId = sourceId;
49563
      setSourceIdIsSet(true);
49564
    }
49565
 
49566
    /**
49567
     * Performs a deep copy on <i>other</i>.
49568
     */
49569
    public getItemForSource_args(getItemForSource_args other) {
49570
      __isset_bit_vector.clear();
49571
      __isset_bit_vector.or(other.__isset_bit_vector);
49572
      this.item_id = other.item_id;
49573
      this.sourceId = other.sourceId;
49574
    }
49575
 
49576
    public getItemForSource_args deepCopy() {
49577
      return new getItemForSource_args(this);
49578
    }
49579
 
49580
    @Override
49581
    public void clear() {
49582
      setItem_idIsSet(false);
49583
      this.item_id = 0;
49584
      setSourceIdIsSet(false);
49585
      this.sourceId = 0;
49586
    }
49587
 
49588
    public long getItem_id() {
49589
      return this.item_id;
49590
    }
49591
 
49592
    public void setItem_id(long item_id) {
49593
      this.item_id = item_id;
49594
      setItem_idIsSet(true);
49595
    }
49596
 
49597
    public void unsetItem_id() {
49598
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
49599
    }
49600
 
49601
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
49602
    public boolean isSetItem_id() {
49603
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
49604
    }
49605
 
49606
    public void setItem_idIsSet(boolean value) {
49607
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
49608
    }
49609
 
49610
    public long getSourceId() {
49611
      return this.sourceId;
49612
    }
49613
 
49614
    public void setSourceId(long sourceId) {
49615
      this.sourceId = sourceId;
49616
      setSourceIdIsSet(true);
49617
    }
49618
 
49619
    public void unsetSourceId() {
49620
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
49621
    }
49622
 
49623
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
49624
    public boolean isSetSourceId() {
49625
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
49626
    }
49627
 
49628
    public void setSourceIdIsSet(boolean value) {
49629
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
49630
    }
49631
 
49632
    public void setFieldValue(_Fields field, Object value) {
49633
      switch (field) {
49634
      case ITEM_ID:
49635
        if (value == null) {
49636
          unsetItem_id();
49637
        } else {
49638
          setItem_id((Long)value);
49639
        }
49640
        break;
49641
 
49642
      case SOURCE_ID:
49643
        if (value == null) {
49644
          unsetSourceId();
49645
        } else {
49646
          setSourceId((Long)value);
49647
        }
49648
        break;
49649
 
49650
      }
49651
    }
49652
 
49653
    public Object getFieldValue(_Fields field) {
49654
      switch (field) {
49655
      case ITEM_ID:
49656
        return Long.valueOf(getItem_id());
49657
 
49658
      case SOURCE_ID:
49659
        return Long.valueOf(getSourceId());
49660
 
49661
      }
49662
      throw new IllegalStateException();
49663
    }
49664
 
49665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49666
    public boolean isSet(_Fields field) {
49667
      if (field == null) {
49668
        throw new IllegalArgumentException();
49669
      }
49670
 
49671
      switch (field) {
49672
      case ITEM_ID:
49673
        return isSetItem_id();
49674
      case SOURCE_ID:
49675
        return isSetSourceId();
49676
      }
49677
      throw new IllegalStateException();
49678
    }
49679
 
49680
    @Override
49681
    public boolean equals(Object that) {
49682
      if (that == null)
49683
        return false;
49684
      if (that instanceof getItemForSource_args)
49685
        return this.equals((getItemForSource_args)that);
49686
      return false;
49687
    }
49688
 
49689
    public boolean equals(getItemForSource_args that) {
49690
      if (that == null)
49691
        return false;
49692
 
49693
      boolean this_present_item_id = true;
49694
      boolean that_present_item_id = true;
49695
      if (this_present_item_id || that_present_item_id) {
49696
        if (!(this_present_item_id && that_present_item_id))
49697
          return false;
49698
        if (this.item_id != that.item_id)
49699
          return false;
49700
      }
49701
 
49702
      boolean this_present_sourceId = true;
49703
      boolean that_present_sourceId = true;
49704
      if (this_present_sourceId || that_present_sourceId) {
49705
        if (!(this_present_sourceId && that_present_sourceId))
49706
          return false;
49707
        if (this.sourceId != that.sourceId)
49708
          return false;
49709
      }
49710
 
49711
      return true;
49712
    }
49713
 
49714
    @Override
49715
    public int hashCode() {
49716
      return 0;
49717
    }
49718
 
49719
    public int compareTo(getItemForSource_args other) {
49720
      if (!getClass().equals(other.getClass())) {
49721
        return getClass().getName().compareTo(other.getClass().getName());
49722
      }
49723
 
49724
      int lastComparison = 0;
49725
      getItemForSource_args typedOther = (getItemForSource_args)other;
49726
 
49727
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
49728
      if (lastComparison != 0) {
49729
        return lastComparison;
49730
      }
49731
      if (isSetItem_id()) {
49732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
49733
        if (lastComparison != 0) {
49734
          return lastComparison;
49735
        }
49736
      }
49737
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
49738
      if (lastComparison != 0) {
49739
        return lastComparison;
49740
      }
49741
      if (isSetSourceId()) {
49742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
49743
        if (lastComparison != 0) {
49744
          return lastComparison;
49745
        }
49746
      }
49747
      return 0;
49748
    }
49749
 
49750
    public _Fields fieldForId(int fieldId) {
49751
      return _Fields.findByThriftId(fieldId);
49752
    }
49753
 
49754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49755
      org.apache.thrift.protocol.TField field;
49756
      iprot.readStructBegin();
49757
      while (true)
49758
      {
49759
        field = iprot.readFieldBegin();
49760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49761
          break;
49762
        }
49763
        switch (field.id) {
49764
          case 1: // ITEM_ID
49765
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49766
              this.item_id = iprot.readI64();
49767
              setItem_idIsSet(true);
49768
            } else { 
49769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49770
            }
49771
            break;
49772
          case 2: // SOURCE_ID
49773
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49774
              this.sourceId = iprot.readI64();
49775
              setSourceIdIsSet(true);
49776
            } else { 
49777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49778
            }
49779
            break;
49780
          default:
49781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49782
        }
49783
        iprot.readFieldEnd();
49784
      }
49785
      iprot.readStructEnd();
49786
      validate();
49787
    }
49788
 
49789
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49790
      validate();
49791
 
49792
      oprot.writeStructBegin(STRUCT_DESC);
49793
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
49794
      oprot.writeI64(this.item_id);
49795
      oprot.writeFieldEnd();
49796
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
49797
      oprot.writeI64(this.sourceId);
49798
      oprot.writeFieldEnd();
49799
      oprot.writeFieldStop();
49800
      oprot.writeStructEnd();
49801
    }
49802
 
49803
    @Override
49804
    public String toString() {
49805
      StringBuilder sb = new StringBuilder("getItemForSource_args(");
49806
      boolean first = true;
49807
 
49808
      sb.append("item_id:");
49809
      sb.append(this.item_id);
49810
      first = false;
49811
      if (!first) sb.append(", ");
49812
      sb.append("sourceId:");
49813
      sb.append(this.sourceId);
49814
      first = false;
49815
      sb.append(")");
49816
      return sb.toString();
49817
    }
49818
 
49819
    public void validate() throws org.apache.thrift.TException {
49820
      // check for required fields
49821
    }
49822
 
49823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49824
      try {
49825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49826
      } catch (org.apache.thrift.TException te) {
49827
        throw new java.io.IOException(te);
49828
      }
49829
    }
49830
 
49831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49832
      try {
49833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49834
      } catch (org.apache.thrift.TException te) {
49835
        throw new java.io.IOException(te);
49836
      }
49837
    }
49838
 
49839
  }
49840
 
49841
  public static class getItemForSource_result implements org.apache.thrift.TBase<getItemForSource_result, getItemForSource_result._Fields>, java.io.Serializable, Cloneable   {
49842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_result");
49843
 
49844
    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);
49845
    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);
49846
 
49847
    private Item success; // required
49848
    private CatalogServiceException cex; // required
49849
 
49850
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49851
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49852
      SUCCESS((short)0, "success"),
49853
      CEX((short)1, "cex");
49854
 
49855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49856
 
49857
      static {
49858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49859
          byName.put(field.getFieldName(), field);
49860
        }
49861
      }
49862
 
49863
      /**
49864
       * Find the _Fields constant that matches fieldId, or null if its not found.
49865
       */
49866
      public static _Fields findByThriftId(int fieldId) {
49867
        switch(fieldId) {
49868
          case 0: // SUCCESS
49869
            return SUCCESS;
49870
          case 1: // CEX
49871
            return CEX;
49872
          default:
49873
            return null;
49874
        }
49875
      }
49876
 
49877
      /**
49878
       * Find the _Fields constant that matches fieldId, throwing an exception
49879
       * if it is not found.
49880
       */
49881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49882
        _Fields fields = findByThriftId(fieldId);
49883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49884
        return fields;
49885
      }
49886
 
49887
      /**
49888
       * Find the _Fields constant that matches name, or null if its not found.
49889
       */
49890
      public static _Fields findByName(String name) {
49891
        return byName.get(name);
49892
      }
49893
 
49894
      private final short _thriftId;
49895
      private final String _fieldName;
49896
 
49897
      _Fields(short thriftId, String fieldName) {
49898
        _thriftId = thriftId;
49899
        _fieldName = fieldName;
49900
      }
49901
 
49902
      public short getThriftFieldId() {
49903
        return _thriftId;
49904
      }
49905
 
49906
      public String getFieldName() {
49907
        return _fieldName;
49908
      }
49909
    }
49910
 
49911
    // isset id assignments
49912
 
49913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49914
    static {
49915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49916
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49917
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
49918
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
49920
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49921
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_result.class, metaDataMap);
49922
    }
49923
 
49924
    public getItemForSource_result() {
49925
    }
49926
 
49927
    public getItemForSource_result(
49928
      Item success,
49929
      CatalogServiceException cex)
49930
    {
49931
      this();
49932
      this.success = success;
49933
      this.cex = cex;
49934
    }
49935
 
49936
    /**
49937
     * Performs a deep copy on <i>other</i>.
49938
     */
49939
    public getItemForSource_result(getItemForSource_result other) {
49940
      if (other.isSetSuccess()) {
49941
        this.success = new Item(other.success);
49942
      }
49943
      if (other.isSetCex()) {
49944
        this.cex = new CatalogServiceException(other.cex);
49945
      }
49946
    }
49947
 
49948
    public getItemForSource_result deepCopy() {
49949
      return new getItemForSource_result(this);
49950
    }
49951
 
49952
    @Override
49953
    public void clear() {
49954
      this.success = null;
49955
      this.cex = null;
49956
    }
49957
 
49958
    public Item getSuccess() {
49959
      return this.success;
49960
    }
49961
 
49962
    public void setSuccess(Item success) {
49963
      this.success = success;
49964
    }
49965
 
49966
    public void unsetSuccess() {
49967
      this.success = null;
49968
    }
49969
 
49970
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49971
    public boolean isSetSuccess() {
49972
      return this.success != null;
49973
    }
49974
 
49975
    public void setSuccessIsSet(boolean value) {
49976
      if (!value) {
49977
        this.success = null;
49978
      }
49979
    }
49980
 
49981
    public CatalogServiceException getCex() {
49982
      return this.cex;
49983
    }
49984
 
49985
    public void setCex(CatalogServiceException cex) {
49986
      this.cex = cex;
49987
    }
49988
 
49989
    public void unsetCex() {
49990
      this.cex = null;
49991
    }
49992
 
49993
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
49994
    public boolean isSetCex() {
49995
      return this.cex != null;
49996
    }
49997
 
49998
    public void setCexIsSet(boolean value) {
49999
      if (!value) {
50000
        this.cex = null;
50001
      }
50002
    }
50003
 
50004
    public void setFieldValue(_Fields field, Object value) {
50005
      switch (field) {
50006
      case SUCCESS:
50007
        if (value == null) {
50008
          unsetSuccess();
50009
        } else {
50010
          setSuccess((Item)value);
50011
        }
50012
        break;
50013
 
50014
      case CEX:
50015
        if (value == null) {
50016
          unsetCex();
50017
        } else {
50018
          setCex((CatalogServiceException)value);
50019
        }
50020
        break;
50021
 
50022
      }
50023
    }
50024
 
50025
    public Object getFieldValue(_Fields field) {
50026
      switch (field) {
50027
      case SUCCESS:
50028
        return getSuccess();
50029
 
50030
      case CEX:
50031
        return getCex();
50032
 
50033
      }
50034
      throw new IllegalStateException();
50035
    }
50036
 
50037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50038
    public boolean isSet(_Fields field) {
50039
      if (field == null) {
50040
        throw new IllegalArgumentException();
50041
      }
50042
 
50043
      switch (field) {
50044
      case SUCCESS:
50045
        return isSetSuccess();
50046
      case CEX:
50047
        return isSetCex();
50048
      }
50049
      throw new IllegalStateException();
50050
    }
50051
 
50052
    @Override
50053
    public boolean equals(Object that) {
50054
      if (that == null)
50055
        return false;
50056
      if (that instanceof getItemForSource_result)
50057
        return this.equals((getItemForSource_result)that);
50058
      return false;
50059
    }
50060
 
50061
    public boolean equals(getItemForSource_result that) {
50062
      if (that == null)
50063
        return false;
50064
 
50065
      boolean this_present_success = true && this.isSetSuccess();
50066
      boolean that_present_success = true && that.isSetSuccess();
50067
      if (this_present_success || that_present_success) {
50068
        if (!(this_present_success && that_present_success))
50069
          return false;
50070
        if (!this.success.equals(that.success))
50071
          return false;
50072
      }
50073
 
50074
      boolean this_present_cex = true && this.isSetCex();
50075
      boolean that_present_cex = true && that.isSetCex();
50076
      if (this_present_cex || that_present_cex) {
50077
        if (!(this_present_cex && that_present_cex))
50078
          return false;
50079
        if (!this.cex.equals(that.cex))
50080
          return false;
50081
      }
50082
 
50083
      return true;
50084
    }
50085
 
50086
    @Override
50087
    public int hashCode() {
50088
      return 0;
50089
    }
50090
 
50091
    public int compareTo(getItemForSource_result other) {
50092
      if (!getClass().equals(other.getClass())) {
50093
        return getClass().getName().compareTo(other.getClass().getName());
50094
      }
50095
 
50096
      int lastComparison = 0;
50097
      getItemForSource_result typedOther = (getItemForSource_result)other;
50098
 
50099
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50100
      if (lastComparison != 0) {
50101
        return lastComparison;
50102
      }
50103
      if (isSetSuccess()) {
50104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50105
        if (lastComparison != 0) {
50106
          return lastComparison;
50107
        }
50108
      }
50109
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
50110
      if (lastComparison != 0) {
50111
        return lastComparison;
50112
      }
50113
      if (isSetCex()) {
50114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
50115
        if (lastComparison != 0) {
50116
          return lastComparison;
50117
        }
50118
      }
50119
      return 0;
50120
    }
50121
 
50122
    public _Fields fieldForId(int fieldId) {
50123
      return _Fields.findByThriftId(fieldId);
50124
    }
50125
 
50126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50127
      org.apache.thrift.protocol.TField field;
50128
      iprot.readStructBegin();
50129
      while (true)
50130
      {
50131
        field = iprot.readFieldBegin();
50132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50133
          break;
50134
        }
50135
        switch (field.id) {
50136
          case 0: // SUCCESS
50137
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50138
              this.success = new Item();
50139
              this.success.read(iprot);
50140
            } else { 
50141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50142
            }
50143
            break;
50144
          case 1: // CEX
50145
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50146
              this.cex = new CatalogServiceException();
50147
              this.cex.read(iprot);
50148
            } else { 
50149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50150
            }
50151
            break;
50152
          default:
50153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50154
        }
50155
        iprot.readFieldEnd();
50156
      }
50157
      iprot.readStructEnd();
50158
      validate();
50159
    }
50160
 
50161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50162
      oprot.writeStructBegin(STRUCT_DESC);
50163
 
50164
      if (this.isSetSuccess()) {
50165
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50166
        this.success.write(oprot);
50167
        oprot.writeFieldEnd();
50168
      } else if (this.isSetCex()) {
50169
        oprot.writeFieldBegin(CEX_FIELD_DESC);
50170
        this.cex.write(oprot);
50171
        oprot.writeFieldEnd();
50172
      }
50173
      oprot.writeFieldStop();
50174
      oprot.writeStructEnd();
50175
    }
50176
 
50177
    @Override
50178
    public String toString() {
50179
      StringBuilder sb = new StringBuilder("getItemForSource_result(");
50180
      boolean first = true;
50181
 
50182
      sb.append("success:");
50183
      if (this.success == null) {
50184
        sb.append("null");
50185
      } else {
50186
        sb.append(this.success);
50187
      }
50188
      first = false;
50189
      if (!first) sb.append(", ");
50190
      sb.append("cex:");
50191
      if (this.cex == null) {
50192
        sb.append("null");
50193
      } else {
50194
        sb.append(this.cex);
50195
      }
50196
      first = false;
50197
      sb.append(")");
50198
      return sb.toString();
50199
    }
50200
 
50201
    public void validate() throws org.apache.thrift.TException {
50202
      // check for required fields
50203
    }
50204
 
50205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50206
      try {
50207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50208
      } catch (org.apache.thrift.TException te) {
50209
        throw new java.io.IOException(te);
50210
      }
50211
    }
50212
 
50213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50214
      try {
50215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50216
      } catch (org.apache.thrift.TException te) {
50217
        throw new java.io.IOException(te);
50218
      }
50219
    }
50220
 
50221
  }
50222
 
50223
  public static class searchItemsInRange_args implements org.apache.thrift.TBase<searchItemsInRange_args, searchItemsInRange_args._Fields>, java.io.Serializable, Cloneable   {
50224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchItemsInRange_args");
50225
 
50226
    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);
50227
    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);
50228
    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);
50229
 
50230
    private List<String> searchTerms; // required
50231
    private long offset; // required
50232
    private long limit; // required
50233
 
50234
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50235
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50236
      SEARCH_TERMS((short)1, "searchTerms"),
50237
      OFFSET((short)2, "offset"),
50238
      LIMIT((short)3, "limit");
50239
 
50240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50241
 
50242
      static {
50243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50244
          byName.put(field.getFieldName(), field);
50245
        }
50246
      }
50247
 
50248
      /**
50249
       * Find the _Fields constant that matches fieldId, or null if its not found.
50250
       */
50251
      public static _Fields findByThriftId(int fieldId) {
50252
        switch(fieldId) {
50253
          case 1: // SEARCH_TERMS
50254
            return SEARCH_TERMS;
50255
          case 2: // OFFSET
50256
            return OFFSET;
50257
          case 3: // LIMIT
50258
            return LIMIT;
50259
          default:
50260
            return null;
50261
        }
50262
      }
50263
 
50264
      /**
50265
       * Find the _Fields constant that matches fieldId, throwing an exception
50266
       * if it is not found.
50267
       */
50268
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50269
        _Fields fields = findByThriftId(fieldId);
50270
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50271
        return fields;
50272
      }
50273
 
50274
      /**
50275
       * Find the _Fields constant that matches name, or null if its not found.
50276
       */
50277
      public static _Fields findByName(String name) {
50278
        return byName.get(name);
50279
      }
50280
 
50281
      private final short _thriftId;
50282
      private final String _fieldName;
50283
 
50284
      _Fields(short thriftId, String fieldName) {
50285
        _thriftId = thriftId;
50286
        _fieldName = fieldName;
50287
      }
50288
 
50289
      public short getThriftFieldId() {
50290
        return _thriftId;
50291
      }
50292
 
50293
      public String getFieldName() {
50294
        return _fieldName;
50295
      }
50296
    }
50297
 
50298
    // isset id assignments
50299
    private static final int __OFFSET_ISSET_ID = 0;
50300
    private static final int __LIMIT_ISSET_ID = 1;
50301
    private BitSet __isset_bit_vector = new BitSet(2);
50302
 
50303
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50304
    static {
50305
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50306
      tmpMap.put(_Fields.SEARCH_TERMS, new org.apache.thrift.meta_data.FieldMetaData("searchTerms", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50307
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
50308
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
50309
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50311
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50312
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchItemsInRange_args.class, metaDataMap);
50315
    }
50316
 
50317
    public searchItemsInRange_args() {
50318
    }
50319
 
50320
    public searchItemsInRange_args(
50321
      List<String> searchTerms,
50322
      long offset,
50323
      long limit)
50324
    {
50325
      this();
50326
      this.searchTerms = searchTerms;
50327
      this.offset = offset;
50328
      setOffsetIsSet(true);
50329
      this.limit = limit;
50330
      setLimitIsSet(true);
50331
    }
50332
 
50333
    /**
50334
     * Performs a deep copy on <i>other</i>.
50335
     */
50336
    public searchItemsInRange_args(searchItemsInRange_args other) {
50337
      __isset_bit_vector.clear();
50338
      __isset_bit_vector.or(other.__isset_bit_vector);
50339
      if (other.isSetSearchTerms()) {
50340
        List<String> __this__searchTerms = new ArrayList<String>();
50341
        for (String other_element : other.searchTerms) {
50342
          __this__searchTerms.add(other_element);
50343
        }
50344
        this.searchTerms = __this__searchTerms;
50345
      }
50346
      this.offset = other.offset;
50347
      this.limit = other.limit;
50348
    }
50349
 
50350
    public searchItemsInRange_args deepCopy() {
50351
      return new searchItemsInRange_args(this);
50352
    }
50353
 
50354
    @Override
50355
    public void clear() {
50356
      this.searchTerms = null;
50357
      setOffsetIsSet(false);
50358
      this.offset = 0;
50359
      setLimitIsSet(false);
50360
      this.limit = 0;
50361
    }
50362
 
50363
    public int getSearchTermsSize() {
50364
      return (this.searchTerms == null) ? 0 : this.searchTerms.size();
50365
    }
50366
 
50367
    public java.util.Iterator<String> getSearchTermsIterator() {
50368
      return (this.searchTerms == null) ? null : this.searchTerms.iterator();
50369
    }
50370
 
50371
    public void addToSearchTerms(String elem) {
50372
      if (this.searchTerms == null) {
50373
        this.searchTerms = new ArrayList<String>();
50374
      }
50375
      this.searchTerms.add(elem);
50376
    }
50377
 
50378
    public List<String> getSearchTerms() {
50379
      return this.searchTerms;
50380
    }
50381
 
50382
    public void setSearchTerms(List<String> searchTerms) {
50383
      this.searchTerms = searchTerms;
50384
    }
50385
 
50386
    public void unsetSearchTerms() {
50387
      this.searchTerms = null;
50388
    }
50389
 
50390
    /** Returns true if field searchTerms is set (has been assigned a value) and false otherwise */
50391
    public boolean isSetSearchTerms() {
50392
      return this.searchTerms != null;
50393
    }
50394
 
50395
    public void setSearchTermsIsSet(boolean value) {
50396
      if (!value) {
50397
        this.searchTerms = null;
50398
      }
50399
    }
50400
 
50401
    public long getOffset() {
50402
      return this.offset;
50403
    }
50404
 
50405
    public void setOffset(long offset) {
50406
      this.offset = offset;
50407
      setOffsetIsSet(true);
50408
    }
50409
 
50410
    public void unsetOffset() {
50411
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
50412
    }
50413
 
50414
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
50415
    public boolean isSetOffset() {
50416
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
50417
    }
50418
 
50419
    public void setOffsetIsSet(boolean value) {
50420
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
50421
    }
50422
 
50423
    public long getLimit() {
50424
      return this.limit;
50425
    }
50426
 
50427
    public void setLimit(long limit) {
50428
      this.limit = limit;
50429
      setLimitIsSet(true);
50430
    }
50431
 
50432
    public void unsetLimit() {
50433
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
50434
    }
50435
 
50436
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
50437
    public boolean isSetLimit() {
50438
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
50439
    }
50440
 
50441
    public void setLimitIsSet(boolean value) {
50442
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
50443
    }
50444
 
50445
    public void setFieldValue(_Fields field, Object value) {
50446
      switch (field) {
50447
      case SEARCH_TERMS:
50448
        if (value == null) {
50449
          unsetSearchTerms();
50450
        } else {
50451
          setSearchTerms((List<String>)value);
50452
        }
50453
        break;
50454
 
50455
      case OFFSET:
50456
        if (value == null) {
50457
          unsetOffset();
50458
        } else {
50459
          setOffset((Long)value);
50460
        }
50461
        break;
50462
 
50463
      case LIMIT:
50464
        if (value == null) {
50465
          unsetLimit();
50466
        } else {
50467
          setLimit((Long)value);
50468
        }
50469
        break;
50470
 
50471
      }
50472
    }
50473
 
50474
    public Object getFieldValue(_Fields field) {
50475
      switch (field) {
50476
      case SEARCH_TERMS:
50477
        return getSearchTerms();
50478
 
50479
      case OFFSET:
50480
        return Long.valueOf(getOffset());
50481
 
50482
      case LIMIT:
50483
        return Long.valueOf(getLimit());
50484
 
50485
      }
50486
      throw new IllegalStateException();
50487
    }
50488
 
50489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50490
    public boolean isSet(_Fields field) {
50491
      if (field == null) {
50492
        throw new IllegalArgumentException();
50493
      }
50494
 
50495
      switch (field) {
50496
      case SEARCH_TERMS:
50497
        return isSetSearchTerms();
50498
      case OFFSET:
50499
        return isSetOffset();
50500
      case LIMIT:
50501
        return isSetLimit();
50502
      }
50503
      throw new IllegalStateException();
50504
    }
50505
 
50506
    @Override
50507
    public boolean equals(Object that) {
50508
      if (that == null)
50509
        return false;
50510
      if (that instanceof searchItemsInRange_args)
50511
        return this.equals((searchItemsInRange_args)that);
50512
      return false;
50513
    }
50514
 
50515
    public boolean equals(searchItemsInRange_args that) {
50516
      if (that == null)
50517
        return false;
50518
 
50519
      boolean this_present_searchTerms = true && this.isSetSearchTerms();
50520
      boolean that_present_searchTerms = true && that.isSetSearchTerms();
50521
      if (this_present_searchTerms || that_present_searchTerms) {
50522
        if (!(this_present_searchTerms && that_present_searchTerms))
50523
          return false;
50524
        if (!this.searchTerms.equals(that.searchTerms))
50525
          return false;
50526
      }
50527
 
50528
      boolean this_present_offset = true;
50529
      boolean that_present_offset = true;
50530
      if (this_present_offset || that_present_offset) {
50531
        if (!(this_present_offset && that_present_offset))
50532
          return false;
50533
        if (this.offset != that.offset)
50534
          return false;
50535
      }
50536
 
50537
      boolean this_present_limit = true;
50538
      boolean that_present_limit = true;
50539
      if (this_present_limit || that_present_limit) {
50540
        if (!(this_present_limit && that_present_limit))
50541
          return false;
50542
        if (this.limit != that.limit)
50543
          return false;
50544
      }
50545
 
50546
      return true;
50547
    }
50548
 
50549
    @Override
50550
    public int hashCode() {
50551
      return 0;
50552
    }
50553
 
50554
    public int compareTo(searchItemsInRange_args other) {
50555
      if (!getClass().equals(other.getClass())) {
50556
        return getClass().getName().compareTo(other.getClass().getName());
50557
      }
50558
 
50559
      int lastComparison = 0;
50560
      searchItemsInRange_args typedOther = (searchItemsInRange_args)other;
50561
 
50562
      lastComparison = Boolean.valueOf(isSetSearchTerms()).compareTo(typedOther.isSetSearchTerms());
50563
      if (lastComparison != 0) {
50564
        return lastComparison;
50565
      }
50566
      if (isSetSearchTerms()) {
50567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerms, typedOther.searchTerms);
50568
        if (lastComparison != 0) {
50569
          return lastComparison;
50570
        }
50571
      }
50572
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
50573
      if (lastComparison != 0) {
50574
        return lastComparison;
50575
      }
50576
      if (isSetOffset()) {
50577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
50578
        if (lastComparison != 0) {
50579
          return lastComparison;
50580
        }
50581
      }
50582
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
50583
      if (lastComparison != 0) {
50584
        return lastComparison;
50585
      }
50586
      if (isSetLimit()) {
50587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
50588
        if (lastComparison != 0) {
50589
          return lastComparison;
50590
        }
50591
      }
50592
      return 0;
50593
    }
50594
 
50595
    public _Fields fieldForId(int fieldId) {
50596
      return _Fields.findByThriftId(fieldId);
50597
    }
50598
 
50599
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50600
      org.apache.thrift.protocol.TField field;
50601
      iprot.readStructBegin();
50602
      while (true)
50603
      {
50604
        field = iprot.readFieldBegin();
50605
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50606
          break;
50607
        }
50608
        switch (field.id) {
50609
          case 1: // SEARCH_TERMS
50610
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50611
              {
6850 kshitij.so 50612
                org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
50613
                this.searchTerms = new ArrayList<String>(_list134.size);
50614
                for (int _i135 = 0; _i135 < _list134.size; ++_i135)
5945 mandeep.dh 50615
                {
6850 kshitij.so 50616
                  String _elem136; // required
50617
                  _elem136 = iprot.readString();
50618
                  this.searchTerms.add(_elem136);
5945 mandeep.dh 50619
                }
50620
                iprot.readListEnd();
50621
              }
50622
            } else { 
50623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50624
            }
50625
            break;
50626
          case 2: // OFFSET
50627
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50628
              this.offset = iprot.readI64();
50629
              setOffsetIsSet(true);
50630
            } else { 
50631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50632
            }
50633
            break;
50634
          case 3: // LIMIT
50635
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50636
              this.limit = iprot.readI64();
50637
              setLimitIsSet(true);
50638
            } else { 
50639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50640
            }
50641
            break;
50642
          default:
50643
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50644
        }
50645
        iprot.readFieldEnd();
50646
      }
50647
      iprot.readStructEnd();
50648
      validate();
50649
    }
50650
 
50651
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50652
      validate();
50653
 
50654
      oprot.writeStructBegin(STRUCT_DESC);
50655
      if (this.searchTerms != null) {
50656
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
50657
        {
50658
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
6850 kshitij.so 50659
          for (String _iter137 : this.searchTerms)
5945 mandeep.dh 50660
          {
6850 kshitij.so 50661
            oprot.writeString(_iter137);
5945 mandeep.dh 50662
          }
50663
          oprot.writeListEnd();
50664
        }
50665
        oprot.writeFieldEnd();
50666
      }
50667
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
50668
      oprot.writeI64(this.offset);
50669
      oprot.writeFieldEnd();
50670
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
50671
      oprot.writeI64(this.limit);
50672
      oprot.writeFieldEnd();
50673
      oprot.writeFieldStop();
50674
      oprot.writeStructEnd();
50675
    }
50676
 
50677
    @Override
50678
    public String toString() {
50679
      StringBuilder sb = new StringBuilder("searchItemsInRange_args(");
50680
      boolean first = true;
50681
 
50682
      sb.append("searchTerms:");
50683
      if (this.searchTerms == null) {
50684
        sb.append("null");
50685
      } else {
50686
        sb.append(this.searchTerms);
50687
      }
50688
      first = false;
50689
      if (!first) sb.append(", ");
50690
      sb.append("offset:");
50691
      sb.append(this.offset);
50692
      first = false;
50693
      if (!first) sb.append(", ");
50694
      sb.append("limit:");
50695
      sb.append(this.limit);
50696
      first = false;
50697
      sb.append(")");
50698
      return sb.toString();
50699
    }
50700
 
50701
    public void validate() throws org.apache.thrift.TException {
50702
      // check for required fields
50703
    }
50704
 
50705
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50706
      try {
50707
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50708
      } catch (org.apache.thrift.TException te) {
50709
        throw new java.io.IOException(te);
50710
      }
50711
    }
50712
 
50713
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50714
      try {
50715
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50716
      } catch (org.apache.thrift.TException te) {
50717
        throw new java.io.IOException(te);
50718
      }
50719
    }
50720
 
50721
  }
50722
 
50723
  public static class searchItemsInRange_result implements org.apache.thrift.TBase<searchItemsInRange_result, searchItemsInRange_result._Fields>, java.io.Serializable, Cloneable   {
50724
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchItemsInRange_result");
50725
 
50726
    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);
50727
 
50728
    private List<Item> success; // required
50729
 
50730
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50731
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50732
      SUCCESS((short)0, "success");
50733
 
50734
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50735
 
50736
      static {
50737
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50738
          byName.put(field.getFieldName(), field);
50739
        }
50740
      }
50741
 
50742
      /**
50743
       * Find the _Fields constant that matches fieldId, or null if its not found.
50744
       */
50745
      public static _Fields findByThriftId(int fieldId) {
50746
        switch(fieldId) {
50747
          case 0: // SUCCESS
50748
            return SUCCESS;
50749
          default:
50750
            return null;
50751
        }
50752
      }
50753
 
50754
      /**
50755
       * Find the _Fields constant that matches fieldId, throwing an exception
50756
       * if it is not found.
50757
       */
50758
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50759
        _Fields fields = findByThriftId(fieldId);
50760
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50761
        return fields;
50762
      }
50763
 
50764
      /**
50765
       * Find the _Fields constant that matches name, or null if its not found.
50766
       */
50767
      public static _Fields findByName(String name) {
50768
        return byName.get(name);
50769
      }
50770
 
50771
      private final short _thriftId;
50772
      private final String _fieldName;
50773
 
50774
      _Fields(short thriftId, String fieldName) {
50775
        _thriftId = thriftId;
50776
        _fieldName = fieldName;
50777
      }
50778
 
50779
      public short getThriftFieldId() {
50780
        return _thriftId;
50781
      }
50782
 
50783
      public String getFieldName() {
50784
        return _fieldName;
50785
      }
50786
    }
50787
 
50788
    // isset id assignments
50789
 
50790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50791
    static {
50792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50793
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50794
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
50795
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
50796
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50797
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchItemsInRange_result.class, metaDataMap);
50798
    }
50799
 
50800
    public searchItemsInRange_result() {
50801
    }
50802
 
50803
    public searchItemsInRange_result(
50804
      List<Item> success)
50805
    {
50806
      this();
50807
      this.success = success;
50808
    }
50809
 
50810
    /**
50811
     * Performs a deep copy on <i>other</i>.
50812
     */
50813
    public searchItemsInRange_result(searchItemsInRange_result other) {
50814
      if (other.isSetSuccess()) {
50815
        List<Item> __this__success = new ArrayList<Item>();
50816
        for (Item other_element : other.success) {
50817
          __this__success.add(new Item(other_element));
50818
        }
50819
        this.success = __this__success;
50820
      }
50821
    }
50822
 
50823
    public searchItemsInRange_result deepCopy() {
50824
      return new searchItemsInRange_result(this);
50825
    }
50826
 
50827
    @Override
50828
    public void clear() {
50829
      this.success = null;
50830
    }
50831
 
50832
    public int getSuccessSize() {
50833
      return (this.success == null) ? 0 : this.success.size();
50834
    }
50835
 
50836
    public java.util.Iterator<Item> getSuccessIterator() {
50837
      return (this.success == null) ? null : this.success.iterator();
50838
    }
50839
 
50840
    public void addToSuccess(Item elem) {
50841
      if (this.success == null) {
50842
        this.success = new ArrayList<Item>();
50843
      }
50844
      this.success.add(elem);
50845
    }
50846
 
50847
    public List<Item> getSuccess() {
50848
      return this.success;
50849
    }
50850
 
50851
    public void setSuccess(List<Item> success) {
50852
      this.success = success;
50853
    }
50854
 
50855
    public void unsetSuccess() {
50856
      this.success = null;
50857
    }
50858
 
50859
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
50860
    public boolean isSetSuccess() {
50861
      return this.success != null;
50862
    }
50863
 
50864
    public void setSuccessIsSet(boolean value) {
50865
      if (!value) {
50866
        this.success = null;
50867
      }
50868
    }
50869
 
50870
    public void setFieldValue(_Fields field, Object value) {
50871
      switch (field) {
50872
      case SUCCESS:
50873
        if (value == null) {
50874
          unsetSuccess();
50875
        } else {
50876
          setSuccess((List<Item>)value);
50877
        }
50878
        break;
50879
 
50880
      }
50881
    }
50882
 
50883
    public Object getFieldValue(_Fields field) {
50884
      switch (field) {
50885
      case SUCCESS:
50886
        return getSuccess();
50887
 
50888
      }
50889
      throw new IllegalStateException();
50890
    }
50891
 
50892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50893
    public boolean isSet(_Fields field) {
50894
      if (field == null) {
50895
        throw new IllegalArgumentException();
50896
      }
50897
 
50898
      switch (field) {
50899
      case SUCCESS:
50900
        return isSetSuccess();
50901
      }
50902
      throw new IllegalStateException();
50903
    }
50904
 
50905
    @Override
50906
    public boolean equals(Object that) {
50907
      if (that == null)
50908
        return false;
50909
      if (that instanceof searchItemsInRange_result)
50910
        return this.equals((searchItemsInRange_result)that);
50911
      return false;
50912
    }
50913
 
50914
    public boolean equals(searchItemsInRange_result that) {
50915
      if (that == null)
50916
        return false;
50917
 
50918
      boolean this_present_success = true && this.isSetSuccess();
50919
      boolean that_present_success = true && that.isSetSuccess();
50920
      if (this_present_success || that_present_success) {
50921
        if (!(this_present_success && that_present_success))
50922
          return false;
50923
        if (!this.success.equals(that.success))
50924
          return false;
50925
      }
50926
 
50927
      return true;
50928
    }
50929
 
50930
    @Override
50931
    public int hashCode() {
50932
      return 0;
50933
    }
50934
 
50935
    public int compareTo(searchItemsInRange_result other) {
50936
      if (!getClass().equals(other.getClass())) {
50937
        return getClass().getName().compareTo(other.getClass().getName());
50938
      }
50939
 
50940
      int lastComparison = 0;
50941
      searchItemsInRange_result typedOther = (searchItemsInRange_result)other;
50942
 
50943
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50944
      if (lastComparison != 0) {
50945
        return lastComparison;
50946
      }
50947
      if (isSetSuccess()) {
50948
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50949
        if (lastComparison != 0) {
50950
          return lastComparison;
50951
        }
50952
      }
50953
      return 0;
50954
    }
50955
 
50956
    public _Fields fieldForId(int fieldId) {
50957
      return _Fields.findByThriftId(fieldId);
50958
    }
50959
 
50960
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50961
      org.apache.thrift.protocol.TField field;
50962
      iprot.readStructBegin();
50963
      while (true)
50964
      {
50965
        field = iprot.readFieldBegin();
50966
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50967
          break;
50968
        }
50969
        switch (field.id) {
50970
          case 0: // SUCCESS
50971
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50972
              {
6850 kshitij.so 50973
                org.apache.thrift.protocol.TList _list138 = iprot.readListBegin();
50974
                this.success = new ArrayList<Item>(_list138.size);
50975
                for (int _i139 = 0; _i139 < _list138.size; ++_i139)
5945 mandeep.dh 50976
                {
6850 kshitij.so 50977
                  Item _elem140; // required
50978
                  _elem140 = new Item();
50979
                  _elem140.read(iprot);
50980
                  this.success.add(_elem140);
5945 mandeep.dh 50981
                }
50982
                iprot.readListEnd();
50983
              }
50984
            } else { 
50985
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50986
            }
50987
            break;
50988
          default:
50989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50990
        }
50991
        iprot.readFieldEnd();
50992
      }
50993
      iprot.readStructEnd();
50994
      validate();
50995
    }
50996
 
50997
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50998
      oprot.writeStructBegin(STRUCT_DESC);
50999
 
51000
      if (this.isSetSuccess()) {
51001
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51002
        {
51003
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 51004
          for (Item _iter141 : this.success)
5945 mandeep.dh 51005
          {
6850 kshitij.so 51006
            _iter141.write(oprot);
5945 mandeep.dh 51007
          }
51008
          oprot.writeListEnd();
51009
        }
51010
        oprot.writeFieldEnd();
51011
      }
51012
      oprot.writeFieldStop();
51013
      oprot.writeStructEnd();
51014
    }
51015
 
51016
    @Override
51017
    public String toString() {
51018
      StringBuilder sb = new StringBuilder("searchItemsInRange_result(");
51019
      boolean first = true;
51020
 
51021
      sb.append("success:");
51022
      if (this.success == null) {
51023
        sb.append("null");
51024
      } else {
51025
        sb.append(this.success);
51026
      }
51027
      first = false;
51028
      sb.append(")");
51029
      return sb.toString();
51030
    }
51031
 
51032
    public void validate() throws org.apache.thrift.TException {
51033
      // check for required fields
51034
    }
51035
 
51036
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51037
      try {
51038
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51039
      } catch (org.apache.thrift.TException te) {
51040
        throw new java.io.IOException(te);
51041
      }
51042
    }
51043
 
51044
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51045
      try {
51046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51047
      } catch (org.apache.thrift.TException te) {
51048
        throw new java.io.IOException(te);
51049
      }
51050
    }
51051
 
51052
  }
51053
 
51054
  public static class getSearchResultCount_args implements org.apache.thrift.TBase<getSearchResultCount_args, getSearchResultCount_args._Fields>, java.io.Serializable, Cloneable   {
51055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSearchResultCount_args");
51056
 
51057
    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);
51058
 
51059
    private List<String> searchTerms; // required
51060
 
51061
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51062
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51063
      SEARCH_TERMS((short)1, "searchTerms");
51064
 
51065
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51066
 
51067
      static {
51068
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51069
          byName.put(field.getFieldName(), field);
51070
        }
51071
      }
51072
 
51073
      /**
51074
       * Find the _Fields constant that matches fieldId, or null if its not found.
51075
       */
51076
      public static _Fields findByThriftId(int fieldId) {
51077
        switch(fieldId) {
51078
          case 1: // SEARCH_TERMS
51079
            return SEARCH_TERMS;
51080
          default:
51081
            return null;
51082
        }
51083
      }
51084
 
51085
      /**
51086
       * Find the _Fields constant that matches fieldId, throwing an exception
51087
       * if it is not found.
51088
       */
51089
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51090
        _Fields fields = findByThriftId(fieldId);
51091
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51092
        return fields;
51093
      }
51094
 
51095
      /**
51096
       * Find the _Fields constant that matches name, or null if its not found.
51097
       */
51098
      public static _Fields findByName(String name) {
51099
        return byName.get(name);
51100
      }
51101
 
51102
      private final short _thriftId;
51103
      private final String _fieldName;
51104
 
51105
      _Fields(short thriftId, String fieldName) {
51106
        _thriftId = thriftId;
51107
        _fieldName = fieldName;
51108
      }
51109
 
51110
      public short getThriftFieldId() {
51111
        return _thriftId;
51112
      }
51113
 
51114
      public String getFieldName() {
51115
        return _fieldName;
51116
      }
51117
    }
51118
 
51119
    // isset id assignments
51120
 
51121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51122
    static {
51123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51124
      tmpMap.put(_Fields.SEARCH_TERMS, new org.apache.thrift.meta_data.FieldMetaData("searchTerms", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51125
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
51126
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
51127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSearchResultCount_args.class, metaDataMap);
51129
    }
51130
 
51131
    public getSearchResultCount_args() {
51132
    }
51133
 
51134
    public getSearchResultCount_args(
51135
      List<String> searchTerms)
51136
    {
51137
      this();
51138
      this.searchTerms = searchTerms;
51139
    }
51140
 
51141
    /**
51142
     * Performs a deep copy on <i>other</i>.
51143
     */
51144
    public getSearchResultCount_args(getSearchResultCount_args other) {
51145
      if (other.isSetSearchTerms()) {
51146
        List<String> __this__searchTerms = new ArrayList<String>();
51147
        for (String other_element : other.searchTerms) {
51148
          __this__searchTerms.add(other_element);
51149
        }
51150
        this.searchTerms = __this__searchTerms;
51151
      }
51152
    }
51153
 
51154
    public getSearchResultCount_args deepCopy() {
51155
      return new getSearchResultCount_args(this);
51156
    }
51157
 
51158
    @Override
51159
    public void clear() {
51160
      this.searchTerms = null;
51161
    }
51162
 
51163
    public int getSearchTermsSize() {
51164
      return (this.searchTerms == null) ? 0 : this.searchTerms.size();
51165
    }
51166
 
51167
    public java.util.Iterator<String> getSearchTermsIterator() {
51168
      return (this.searchTerms == null) ? null : this.searchTerms.iterator();
51169
    }
51170
 
51171
    public void addToSearchTerms(String elem) {
51172
      if (this.searchTerms == null) {
51173
        this.searchTerms = new ArrayList<String>();
51174
      }
51175
      this.searchTerms.add(elem);
51176
    }
51177
 
51178
    public List<String> getSearchTerms() {
51179
      return this.searchTerms;
51180
    }
51181
 
51182
    public void setSearchTerms(List<String> searchTerms) {
51183
      this.searchTerms = searchTerms;
51184
    }
51185
 
51186
    public void unsetSearchTerms() {
51187
      this.searchTerms = null;
51188
    }
51189
 
51190
    /** Returns true if field searchTerms is set (has been assigned a value) and false otherwise */
51191
    public boolean isSetSearchTerms() {
51192
      return this.searchTerms != null;
51193
    }
51194
 
51195
    public void setSearchTermsIsSet(boolean value) {
51196
      if (!value) {
51197
        this.searchTerms = null;
51198
      }
51199
    }
51200
 
51201
    public void setFieldValue(_Fields field, Object value) {
51202
      switch (field) {
51203
      case SEARCH_TERMS:
51204
        if (value == null) {
51205
          unsetSearchTerms();
51206
        } else {
51207
          setSearchTerms((List<String>)value);
51208
        }
51209
        break;
51210
 
51211
      }
51212
    }
51213
 
51214
    public Object getFieldValue(_Fields field) {
51215
      switch (field) {
51216
      case SEARCH_TERMS:
51217
        return getSearchTerms();
51218
 
51219
      }
51220
      throw new IllegalStateException();
51221
    }
51222
 
51223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51224
    public boolean isSet(_Fields field) {
51225
      if (field == null) {
51226
        throw new IllegalArgumentException();
51227
      }
51228
 
51229
      switch (field) {
51230
      case SEARCH_TERMS:
51231
        return isSetSearchTerms();
51232
      }
51233
      throw new IllegalStateException();
51234
    }
51235
 
51236
    @Override
51237
    public boolean equals(Object that) {
51238
      if (that == null)
51239
        return false;
51240
      if (that instanceof getSearchResultCount_args)
51241
        return this.equals((getSearchResultCount_args)that);
51242
      return false;
51243
    }
51244
 
51245
    public boolean equals(getSearchResultCount_args that) {
51246
      if (that == null)
51247
        return false;
51248
 
51249
      boolean this_present_searchTerms = true && this.isSetSearchTerms();
51250
      boolean that_present_searchTerms = true && that.isSetSearchTerms();
51251
      if (this_present_searchTerms || that_present_searchTerms) {
51252
        if (!(this_present_searchTerms && that_present_searchTerms))
51253
          return false;
51254
        if (!this.searchTerms.equals(that.searchTerms))
51255
          return false;
51256
      }
51257
 
51258
      return true;
51259
    }
51260
 
51261
    @Override
51262
    public int hashCode() {
51263
      return 0;
51264
    }
51265
 
51266
    public int compareTo(getSearchResultCount_args other) {
51267
      if (!getClass().equals(other.getClass())) {
51268
        return getClass().getName().compareTo(other.getClass().getName());
51269
      }
51270
 
51271
      int lastComparison = 0;
51272
      getSearchResultCount_args typedOther = (getSearchResultCount_args)other;
51273
 
51274
      lastComparison = Boolean.valueOf(isSetSearchTerms()).compareTo(typedOther.isSetSearchTerms());
51275
      if (lastComparison != 0) {
51276
        return lastComparison;
51277
      }
51278
      if (isSetSearchTerms()) {
51279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerms, typedOther.searchTerms);
51280
        if (lastComparison != 0) {
51281
          return lastComparison;
51282
        }
51283
      }
51284
      return 0;
51285
    }
51286
 
51287
    public _Fields fieldForId(int fieldId) {
51288
      return _Fields.findByThriftId(fieldId);
51289
    }
51290
 
51291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51292
      org.apache.thrift.protocol.TField field;
51293
      iprot.readStructBegin();
51294
      while (true)
51295
      {
51296
        field = iprot.readFieldBegin();
51297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51298
          break;
51299
        }
51300
        switch (field.id) {
51301
          case 1: // SEARCH_TERMS
51302
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51303
              {
6850 kshitij.so 51304
                org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
51305
                this.searchTerms = new ArrayList<String>(_list142.size);
51306
                for (int _i143 = 0; _i143 < _list142.size; ++_i143)
5945 mandeep.dh 51307
                {
6850 kshitij.so 51308
                  String _elem144; // required
51309
                  _elem144 = iprot.readString();
51310
                  this.searchTerms.add(_elem144);
5945 mandeep.dh 51311
                }
51312
                iprot.readListEnd();
51313
              }
51314
            } else { 
51315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51316
            }
51317
            break;
51318
          default:
51319
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51320
        }
51321
        iprot.readFieldEnd();
51322
      }
51323
      iprot.readStructEnd();
51324
      validate();
51325
    }
51326
 
51327
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51328
      validate();
51329
 
51330
      oprot.writeStructBegin(STRUCT_DESC);
51331
      if (this.searchTerms != null) {
51332
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
51333
        {
51334
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
6850 kshitij.so 51335
          for (String _iter145 : this.searchTerms)
5945 mandeep.dh 51336
          {
6850 kshitij.so 51337
            oprot.writeString(_iter145);
5945 mandeep.dh 51338
          }
51339
          oprot.writeListEnd();
51340
        }
51341
        oprot.writeFieldEnd();
51342
      }
51343
      oprot.writeFieldStop();
51344
      oprot.writeStructEnd();
51345
    }
51346
 
51347
    @Override
51348
    public String toString() {
51349
      StringBuilder sb = new StringBuilder("getSearchResultCount_args(");
51350
      boolean first = true;
51351
 
51352
      sb.append("searchTerms:");
51353
      if (this.searchTerms == null) {
51354
        sb.append("null");
51355
      } else {
51356
        sb.append(this.searchTerms);
51357
      }
51358
      first = false;
51359
      sb.append(")");
51360
      return sb.toString();
51361
    }
51362
 
51363
    public void validate() throws org.apache.thrift.TException {
51364
      // check for required fields
51365
    }
51366
 
51367
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51368
      try {
51369
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51370
      } catch (org.apache.thrift.TException te) {
51371
        throw new java.io.IOException(te);
51372
      }
51373
    }
51374
 
51375
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51376
      try {
51377
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51378
      } catch (org.apache.thrift.TException te) {
51379
        throw new java.io.IOException(te);
51380
      }
51381
    }
51382
 
51383
  }
51384
 
51385
  public static class getSearchResultCount_result implements org.apache.thrift.TBase<getSearchResultCount_result, getSearchResultCount_result._Fields>, java.io.Serializable, Cloneable   {
51386
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSearchResultCount_result");
51387
 
51388
    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);
51389
 
51390
    private int success; // required
51391
 
51392
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51393
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51394
      SUCCESS((short)0, "success");
51395
 
51396
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51397
 
51398
      static {
51399
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51400
          byName.put(field.getFieldName(), field);
51401
        }
51402
      }
51403
 
51404
      /**
51405
       * Find the _Fields constant that matches fieldId, or null if its not found.
51406
       */
51407
      public static _Fields findByThriftId(int fieldId) {
51408
        switch(fieldId) {
51409
          case 0: // SUCCESS
51410
            return SUCCESS;
51411
          default:
51412
            return null;
51413
        }
51414
      }
51415
 
51416
      /**
51417
       * Find the _Fields constant that matches fieldId, throwing an exception
51418
       * if it is not found.
51419
       */
51420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51421
        _Fields fields = findByThriftId(fieldId);
51422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51423
        return fields;
51424
      }
51425
 
51426
      /**
51427
       * Find the _Fields constant that matches name, or null if its not found.
51428
       */
51429
      public static _Fields findByName(String name) {
51430
        return byName.get(name);
51431
      }
51432
 
51433
      private final short _thriftId;
51434
      private final String _fieldName;
51435
 
51436
      _Fields(short thriftId, String fieldName) {
51437
        _thriftId = thriftId;
51438
        _fieldName = fieldName;
51439
      }
51440
 
51441
      public short getThriftFieldId() {
51442
        return _thriftId;
51443
      }
51444
 
51445
      public String getFieldName() {
51446
        return _fieldName;
51447
      }
51448
    }
51449
 
51450
    // isset id assignments
51451
    private static final int __SUCCESS_ISSET_ID = 0;
51452
    private BitSet __isset_bit_vector = new BitSet(1);
51453
 
51454
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51455
    static {
51456
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51457
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
51459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSearchResultCount_result.class, metaDataMap);
51461
    }
51462
 
51463
    public getSearchResultCount_result() {
51464
    }
51465
 
51466
    public getSearchResultCount_result(
51467
      int success)
51468
    {
51469
      this();
51470
      this.success = success;
51471
      setSuccessIsSet(true);
51472
    }
51473
 
51474
    /**
51475
     * Performs a deep copy on <i>other</i>.
51476
     */
51477
    public getSearchResultCount_result(getSearchResultCount_result other) {
51478
      __isset_bit_vector.clear();
51479
      __isset_bit_vector.or(other.__isset_bit_vector);
51480
      this.success = other.success;
51481
    }
51482
 
51483
    public getSearchResultCount_result deepCopy() {
51484
      return new getSearchResultCount_result(this);
51485
    }
51486
 
51487
    @Override
51488
    public void clear() {
51489
      setSuccessIsSet(false);
51490
      this.success = 0;
51491
    }
51492
 
51493
    public int getSuccess() {
51494
      return this.success;
51495
    }
51496
 
51497
    public void setSuccess(int success) {
51498
      this.success = success;
51499
      setSuccessIsSet(true);
51500
    }
51501
 
51502
    public void unsetSuccess() {
51503
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
51504
    }
51505
 
51506
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
51507
    public boolean isSetSuccess() {
51508
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
51509
    }
51510
 
51511
    public void setSuccessIsSet(boolean value) {
51512
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
51513
    }
51514
 
51515
    public void setFieldValue(_Fields field, Object value) {
51516
      switch (field) {
51517
      case SUCCESS:
51518
        if (value == null) {
51519
          unsetSuccess();
51520
        } else {
51521
          setSuccess((Integer)value);
51522
        }
51523
        break;
51524
 
51525
      }
51526
    }
51527
 
51528
    public Object getFieldValue(_Fields field) {
51529
      switch (field) {
51530
      case SUCCESS:
51531
        return Integer.valueOf(getSuccess());
51532
 
51533
      }
51534
      throw new IllegalStateException();
51535
    }
51536
 
51537
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51538
    public boolean isSet(_Fields field) {
51539
      if (field == null) {
51540
        throw new IllegalArgumentException();
51541
      }
51542
 
51543
      switch (field) {
51544
      case SUCCESS:
51545
        return isSetSuccess();
51546
      }
51547
      throw new IllegalStateException();
51548
    }
51549
 
51550
    @Override
51551
    public boolean equals(Object that) {
51552
      if (that == null)
51553
        return false;
51554
      if (that instanceof getSearchResultCount_result)
51555
        return this.equals((getSearchResultCount_result)that);
51556
      return false;
51557
    }
51558
 
51559
    public boolean equals(getSearchResultCount_result that) {
51560
      if (that == null)
51561
        return false;
51562
 
51563
      boolean this_present_success = true;
51564
      boolean that_present_success = true;
51565
      if (this_present_success || that_present_success) {
51566
        if (!(this_present_success && that_present_success))
51567
          return false;
51568
        if (this.success != that.success)
51569
          return false;
51570
      }
51571
 
51572
      return true;
51573
    }
51574
 
51575
    @Override
51576
    public int hashCode() {
51577
      return 0;
51578
    }
51579
 
51580
    public int compareTo(getSearchResultCount_result other) {
51581
      if (!getClass().equals(other.getClass())) {
51582
        return getClass().getName().compareTo(other.getClass().getName());
51583
      }
51584
 
51585
      int lastComparison = 0;
51586
      getSearchResultCount_result typedOther = (getSearchResultCount_result)other;
51587
 
51588
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
51589
      if (lastComparison != 0) {
51590
        return lastComparison;
51591
      }
51592
      if (isSetSuccess()) {
51593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51594
        if (lastComparison != 0) {
51595
          return lastComparison;
51596
        }
51597
      }
51598
      return 0;
51599
    }
51600
 
51601
    public _Fields fieldForId(int fieldId) {
51602
      return _Fields.findByThriftId(fieldId);
51603
    }
51604
 
51605
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51606
      org.apache.thrift.protocol.TField field;
51607
      iprot.readStructBegin();
51608
      while (true)
51609
      {
51610
        field = iprot.readFieldBegin();
51611
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51612
          break;
51613
        }
51614
        switch (field.id) {
51615
          case 0: // SUCCESS
51616
            if (field.type == org.apache.thrift.protocol.TType.I32) {
51617
              this.success = iprot.readI32();
51618
              setSuccessIsSet(true);
51619
            } else { 
51620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51621
            }
51622
            break;
51623
          default:
51624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51625
        }
51626
        iprot.readFieldEnd();
51627
      }
51628
      iprot.readStructEnd();
51629
      validate();
51630
    }
51631
 
51632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51633
      oprot.writeStructBegin(STRUCT_DESC);
51634
 
51635
      if (this.isSetSuccess()) {
51636
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51637
        oprot.writeI32(this.success);
51638
        oprot.writeFieldEnd();
51639
      }
51640
      oprot.writeFieldStop();
51641
      oprot.writeStructEnd();
51642
    }
51643
 
51644
    @Override
51645
    public String toString() {
51646
      StringBuilder sb = new StringBuilder("getSearchResultCount_result(");
51647
      boolean first = true;
51648
 
51649
      sb.append("success:");
51650
      sb.append(this.success);
51651
      first = false;
51652
      sb.append(")");
51653
      return sb.toString();
51654
    }
51655
 
51656
    public void validate() throws org.apache.thrift.TException {
51657
      // check for required fields
51658
    }
51659
 
51660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51661
      try {
51662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51663
      } catch (org.apache.thrift.TException te) {
51664
        throw new java.io.IOException(te);
51665
      }
51666
    }
51667
 
51668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51669
      try {
51670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51671
      } catch (org.apache.thrift.TException te) {
51672
        throw new java.io.IOException(te);
51673
      }
51674
    }
51675
 
51676
  }
51677
 
51678
  public static class getProductNotifications_args implements org.apache.thrift.TBase<getProductNotifications_args, getProductNotifications_args._Fields>, java.io.Serializable, Cloneable   {
51679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_args");
51680
 
51681
    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);
51682
 
51683
    private long startDateTime; // required
51684
 
51685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51687
      START_DATE_TIME((short)1, "startDateTime");
51688
 
51689
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51690
 
51691
      static {
51692
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51693
          byName.put(field.getFieldName(), field);
51694
        }
51695
      }
51696
 
51697
      /**
51698
       * Find the _Fields constant that matches fieldId, or null if its not found.
51699
       */
51700
      public static _Fields findByThriftId(int fieldId) {
51701
        switch(fieldId) {
51702
          case 1: // START_DATE_TIME
51703
            return START_DATE_TIME;
51704
          default:
51705
            return null;
51706
        }
51707
      }
51708
 
51709
      /**
51710
       * Find the _Fields constant that matches fieldId, throwing an exception
51711
       * if it is not found.
51712
       */
51713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51714
        _Fields fields = findByThriftId(fieldId);
51715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51716
        return fields;
51717
      }
51718
 
51719
      /**
51720
       * Find the _Fields constant that matches name, or null if its not found.
51721
       */
51722
      public static _Fields findByName(String name) {
51723
        return byName.get(name);
51724
      }
51725
 
51726
      private final short _thriftId;
51727
      private final String _fieldName;
51728
 
51729
      _Fields(short thriftId, String fieldName) {
51730
        _thriftId = thriftId;
51731
        _fieldName = fieldName;
51732
      }
51733
 
51734
      public short getThriftFieldId() {
51735
        return _thriftId;
51736
      }
51737
 
51738
      public String getFieldName() {
51739
        return _fieldName;
51740
      }
51741
    }
51742
 
51743
    // isset id assignments
51744
    private static final int __STARTDATETIME_ISSET_ID = 0;
51745
    private BitSet __isset_bit_vector = new BitSet(1);
51746
 
51747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51748
    static {
51749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51750
      tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_args.class, metaDataMap);
51754
    }
51755
 
51756
    public getProductNotifications_args() {
51757
    }
51758
 
51759
    public getProductNotifications_args(
51760
      long startDateTime)
51761
    {
51762
      this();
51763
      this.startDateTime = startDateTime;
51764
      setStartDateTimeIsSet(true);
51765
    }
51766
 
51767
    /**
51768
     * Performs a deep copy on <i>other</i>.
51769
     */
51770
    public getProductNotifications_args(getProductNotifications_args other) {
51771
      __isset_bit_vector.clear();
51772
      __isset_bit_vector.or(other.__isset_bit_vector);
51773
      this.startDateTime = other.startDateTime;
51774
    }
51775
 
51776
    public getProductNotifications_args deepCopy() {
51777
      return new getProductNotifications_args(this);
51778
    }
51779
 
51780
    @Override
51781
    public void clear() {
51782
      setStartDateTimeIsSet(false);
51783
      this.startDateTime = 0;
51784
    }
51785
 
51786
    public long getStartDateTime() {
51787
      return this.startDateTime;
51788
    }
51789
 
51790
    public void setStartDateTime(long startDateTime) {
51791
      this.startDateTime = startDateTime;
51792
      setStartDateTimeIsSet(true);
51793
    }
51794
 
51795
    public void unsetStartDateTime() {
51796
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
51797
    }
51798
 
51799
    /** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */
51800
    public boolean isSetStartDateTime() {
51801
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
51802
    }
51803
 
51804
    public void setStartDateTimeIsSet(boolean value) {
51805
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
51806
    }
51807
 
51808
    public void setFieldValue(_Fields field, Object value) {
51809
      switch (field) {
51810
      case START_DATE_TIME:
51811
        if (value == null) {
51812
          unsetStartDateTime();
51813
        } else {
51814
          setStartDateTime((Long)value);
51815
        }
51816
        break;
51817
 
51818
      }
51819
    }
51820
 
51821
    public Object getFieldValue(_Fields field) {
51822
      switch (field) {
51823
      case START_DATE_TIME:
51824
        return Long.valueOf(getStartDateTime());
51825
 
51826
      }
51827
      throw new IllegalStateException();
51828
    }
51829
 
51830
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51831
    public boolean isSet(_Fields field) {
51832
      if (field == null) {
51833
        throw new IllegalArgumentException();
51834
      }
51835
 
51836
      switch (field) {
51837
      case START_DATE_TIME:
51838
        return isSetStartDateTime();
51839
      }
51840
      throw new IllegalStateException();
51841
    }
51842
 
51843
    @Override
51844
    public boolean equals(Object that) {
51845
      if (that == null)
51846
        return false;
51847
      if (that instanceof getProductNotifications_args)
51848
        return this.equals((getProductNotifications_args)that);
51849
      return false;
51850
    }
51851
 
51852
    public boolean equals(getProductNotifications_args that) {
51853
      if (that == null)
51854
        return false;
51855
 
51856
      boolean this_present_startDateTime = true;
51857
      boolean that_present_startDateTime = true;
51858
      if (this_present_startDateTime || that_present_startDateTime) {
51859
        if (!(this_present_startDateTime && that_present_startDateTime))
51860
          return false;
51861
        if (this.startDateTime != that.startDateTime)
51862
          return false;
51863
      }
51864
 
51865
      return true;
51866
    }
51867
 
51868
    @Override
51869
    public int hashCode() {
51870
      return 0;
51871
    }
51872
 
51873
    public int compareTo(getProductNotifications_args other) {
51874
      if (!getClass().equals(other.getClass())) {
51875
        return getClass().getName().compareTo(other.getClass().getName());
51876
      }
51877
 
51878
      int lastComparison = 0;
51879
      getProductNotifications_args typedOther = (getProductNotifications_args)other;
51880
 
51881
      lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());
51882
      if (lastComparison != 0) {
51883
        return lastComparison;
51884
      }
51885
      if (isSetStartDateTime()) {
51886
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);
51887
        if (lastComparison != 0) {
51888
          return lastComparison;
51889
        }
51890
      }
51891
      return 0;
51892
    }
51893
 
51894
    public _Fields fieldForId(int fieldId) {
51895
      return _Fields.findByThriftId(fieldId);
51896
    }
51897
 
51898
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51899
      org.apache.thrift.protocol.TField field;
51900
      iprot.readStructBegin();
51901
      while (true)
51902
      {
51903
        field = iprot.readFieldBegin();
51904
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51905
          break;
51906
        }
51907
        switch (field.id) {
51908
          case 1: // START_DATE_TIME
51909
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51910
              this.startDateTime = iprot.readI64();
51911
              setStartDateTimeIsSet(true);
51912
            } else { 
51913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51914
            }
51915
            break;
51916
          default:
51917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51918
        }
51919
        iprot.readFieldEnd();
51920
      }
51921
      iprot.readStructEnd();
51922
      validate();
51923
    }
51924
 
51925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51926
      validate();
51927
 
51928
      oprot.writeStructBegin(STRUCT_DESC);
51929
      oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);
51930
      oprot.writeI64(this.startDateTime);
51931
      oprot.writeFieldEnd();
51932
      oprot.writeFieldStop();
51933
      oprot.writeStructEnd();
51934
    }
51935
 
51936
    @Override
51937
    public String toString() {
51938
      StringBuilder sb = new StringBuilder("getProductNotifications_args(");
51939
      boolean first = true;
51940
 
51941
      sb.append("startDateTime:");
51942
      sb.append(this.startDateTime);
51943
      first = false;
51944
      sb.append(")");
51945
      return sb.toString();
51946
    }
51947
 
51948
    public void validate() throws org.apache.thrift.TException {
51949
      // check for required fields
51950
    }
51951
 
51952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51953
      try {
51954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51955
      } catch (org.apache.thrift.TException te) {
51956
        throw new java.io.IOException(te);
51957
      }
51958
    }
51959
 
51960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51961
      try {
51962
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
51963
        __isset_bit_vector = new BitSet(1);
51964
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51965
      } catch (org.apache.thrift.TException te) {
51966
        throw new java.io.IOException(te);
51967
      }
51968
    }
51969
 
51970
  }
51971
 
51972
  public static class getProductNotifications_result implements org.apache.thrift.TBase<getProductNotifications_result, getProductNotifications_result._Fields>, java.io.Serializable, Cloneable   {
51973
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_result");
51974
 
51975
    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);
51976
 
51977
    private List<ProductNotificationRequest> success; // required
51978
 
51979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51981
      SUCCESS((short)0, "success");
51982
 
51983
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51984
 
51985
      static {
51986
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51987
          byName.put(field.getFieldName(), field);
51988
        }
51989
      }
51990
 
51991
      /**
51992
       * Find the _Fields constant that matches fieldId, or null if its not found.
51993
       */
51994
      public static _Fields findByThriftId(int fieldId) {
51995
        switch(fieldId) {
51996
          case 0: // SUCCESS
51997
            return SUCCESS;
51998
          default:
51999
            return null;
52000
        }
52001
      }
52002
 
52003
      /**
52004
       * Find the _Fields constant that matches fieldId, throwing an exception
52005
       * if it is not found.
52006
       */
52007
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52008
        _Fields fields = findByThriftId(fieldId);
52009
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52010
        return fields;
52011
      }
52012
 
52013
      /**
52014
       * Find the _Fields constant that matches name, or null if its not found.
52015
       */
52016
      public static _Fields findByName(String name) {
52017
        return byName.get(name);
52018
      }
52019
 
52020
      private final short _thriftId;
52021
      private final String _fieldName;
52022
 
52023
      _Fields(short thriftId, String fieldName) {
52024
        _thriftId = thriftId;
52025
        _fieldName = fieldName;
52026
      }
52027
 
52028
      public short getThriftFieldId() {
52029
        return _thriftId;
52030
      }
52031
 
52032
      public String getFieldName() {
52033
        return _fieldName;
52034
      }
52035
    }
52036
 
52037
    // isset id assignments
52038
 
52039
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52040
    static {
52041
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52042
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52043
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52044
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequest.class))));
52045
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52046
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_result.class, metaDataMap);
52047
    }
52048
 
52049
    public getProductNotifications_result() {
52050
    }
52051
 
52052
    public getProductNotifications_result(
52053
      List<ProductNotificationRequest> success)
52054
    {
52055
      this();
52056
      this.success = success;
52057
    }
52058
 
52059
    /**
52060
     * Performs a deep copy on <i>other</i>.
52061
     */
52062
    public getProductNotifications_result(getProductNotifications_result other) {
52063
      if (other.isSetSuccess()) {
52064
        List<ProductNotificationRequest> __this__success = new ArrayList<ProductNotificationRequest>();
52065
        for (ProductNotificationRequest other_element : other.success) {
52066
          __this__success.add(new ProductNotificationRequest(other_element));
52067
        }
52068
        this.success = __this__success;
52069
      }
52070
    }
52071
 
52072
    public getProductNotifications_result deepCopy() {
52073
      return new getProductNotifications_result(this);
52074
    }
52075
 
52076
    @Override
52077
    public void clear() {
52078
      this.success = null;
52079
    }
52080
 
52081
    public int getSuccessSize() {
52082
      return (this.success == null) ? 0 : this.success.size();
52083
    }
52084
 
52085
    public java.util.Iterator<ProductNotificationRequest> getSuccessIterator() {
52086
      return (this.success == null) ? null : this.success.iterator();
52087
    }
52088
 
52089
    public void addToSuccess(ProductNotificationRequest elem) {
52090
      if (this.success == null) {
52091
        this.success = new ArrayList<ProductNotificationRequest>();
52092
      }
52093
      this.success.add(elem);
52094
    }
52095
 
52096
    public List<ProductNotificationRequest> getSuccess() {
52097
      return this.success;
52098
    }
52099
 
52100
    public void setSuccess(List<ProductNotificationRequest> success) {
52101
      this.success = success;
52102
    }
52103
 
52104
    public void unsetSuccess() {
52105
      this.success = null;
52106
    }
52107
 
52108
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
52109
    public boolean isSetSuccess() {
52110
      return this.success != null;
52111
    }
52112
 
52113
    public void setSuccessIsSet(boolean value) {
52114
      if (!value) {
52115
        this.success = null;
52116
      }
52117
    }
52118
 
52119
    public void setFieldValue(_Fields field, Object value) {
52120
      switch (field) {
52121
      case SUCCESS:
52122
        if (value == null) {
52123
          unsetSuccess();
52124
        } else {
52125
          setSuccess((List<ProductNotificationRequest>)value);
52126
        }
52127
        break;
52128
 
52129
      }
52130
    }
52131
 
52132
    public Object getFieldValue(_Fields field) {
52133
      switch (field) {
52134
      case SUCCESS:
52135
        return getSuccess();
52136
 
52137
      }
52138
      throw new IllegalStateException();
52139
    }
52140
 
52141
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52142
    public boolean isSet(_Fields field) {
52143
      if (field == null) {
52144
        throw new IllegalArgumentException();
52145
      }
52146
 
52147
      switch (field) {
52148
      case SUCCESS:
52149
        return isSetSuccess();
52150
      }
52151
      throw new IllegalStateException();
52152
    }
52153
 
52154
    @Override
52155
    public boolean equals(Object that) {
52156
      if (that == null)
52157
        return false;
52158
      if (that instanceof getProductNotifications_result)
52159
        return this.equals((getProductNotifications_result)that);
52160
      return false;
52161
    }
52162
 
52163
    public boolean equals(getProductNotifications_result that) {
52164
      if (that == null)
52165
        return false;
52166
 
52167
      boolean this_present_success = true && this.isSetSuccess();
52168
      boolean that_present_success = true && that.isSetSuccess();
52169
      if (this_present_success || that_present_success) {
52170
        if (!(this_present_success && that_present_success))
52171
          return false;
52172
        if (!this.success.equals(that.success))
52173
          return false;
52174
      }
52175
 
52176
      return true;
52177
    }
52178
 
52179
    @Override
52180
    public int hashCode() {
52181
      return 0;
52182
    }
52183
 
52184
    public int compareTo(getProductNotifications_result other) {
52185
      if (!getClass().equals(other.getClass())) {
52186
        return getClass().getName().compareTo(other.getClass().getName());
52187
      }
52188
 
52189
      int lastComparison = 0;
52190
      getProductNotifications_result typedOther = (getProductNotifications_result)other;
52191
 
52192
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
52193
      if (lastComparison != 0) {
52194
        return lastComparison;
52195
      }
52196
      if (isSetSuccess()) {
52197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
52198
        if (lastComparison != 0) {
52199
          return lastComparison;
52200
        }
52201
      }
52202
      return 0;
52203
    }
52204
 
52205
    public _Fields fieldForId(int fieldId) {
52206
      return _Fields.findByThriftId(fieldId);
52207
    }
52208
 
52209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52210
      org.apache.thrift.protocol.TField field;
52211
      iprot.readStructBegin();
52212
      while (true)
52213
      {
52214
        field = iprot.readFieldBegin();
52215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52216
          break;
52217
        }
52218
        switch (field.id) {
52219
          case 0: // SUCCESS
52220
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52221
              {
6850 kshitij.so 52222
                org.apache.thrift.protocol.TList _list146 = iprot.readListBegin();
52223
                this.success = new ArrayList<ProductNotificationRequest>(_list146.size);
52224
                for (int _i147 = 0; _i147 < _list146.size; ++_i147)
5945 mandeep.dh 52225
                {
6850 kshitij.so 52226
                  ProductNotificationRequest _elem148; // required
52227
                  _elem148 = new ProductNotificationRequest();
52228
                  _elem148.read(iprot);
52229
                  this.success.add(_elem148);
5945 mandeep.dh 52230
                }
52231
                iprot.readListEnd();
52232
              }
52233
            } else { 
52234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52235
            }
52236
            break;
52237
          default:
52238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52239
        }
52240
        iprot.readFieldEnd();
52241
      }
52242
      iprot.readStructEnd();
52243
      validate();
52244
    }
52245
 
52246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52247
      oprot.writeStructBegin(STRUCT_DESC);
52248
 
52249
      if (this.isSetSuccess()) {
52250
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52251
        {
52252
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 52253
          for (ProductNotificationRequest _iter149 : this.success)
5945 mandeep.dh 52254
          {
6850 kshitij.so 52255
            _iter149.write(oprot);
5945 mandeep.dh 52256
          }
52257
          oprot.writeListEnd();
52258
        }
52259
        oprot.writeFieldEnd();
52260
      }
52261
      oprot.writeFieldStop();
52262
      oprot.writeStructEnd();
52263
    }
52264
 
52265
    @Override
52266
    public String toString() {
52267
      StringBuilder sb = new StringBuilder("getProductNotifications_result(");
52268
      boolean first = true;
52269
 
52270
      sb.append("success:");
52271
      if (this.success == null) {
52272
        sb.append("null");
52273
      } else {
52274
        sb.append(this.success);
52275
      }
52276
      first = false;
52277
      sb.append(")");
52278
      return sb.toString();
52279
    }
52280
 
52281
    public void validate() throws org.apache.thrift.TException {
52282
      // check for required fields
52283
    }
52284
 
52285
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52286
      try {
52287
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52288
      } catch (org.apache.thrift.TException te) {
52289
        throw new java.io.IOException(te);
52290
      }
52291
    }
52292
 
52293
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52294
      try {
52295
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52296
      } catch (org.apache.thrift.TException te) {
52297
        throw new java.io.IOException(te);
52298
      }
52299
    }
52300
 
52301
  }
52302
 
52303
  public static class getProductNotificationRequestCount_args implements org.apache.thrift.TBase<getProductNotificationRequestCount_args, getProductNotificationRequestCount_args._Fields>, java.io.Serializable, Cloneable   {
52304
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_args");
52305
 
52306
    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);
52307
 
52308
    private long startDateTime; // required
52309
 
52310
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52311
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52312
      START_DATE_TIME((short)1, "startDateTime");
52313
 
52314
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52315
 
52316
      static {
52317
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52318
          byName.put(field.getFieldName(), field);
52319
        }
52320
      }
52321
 
52322
      /**
52323
       * Find the _Fields constant that matches fieldId, or null if its not found.
52324
       */
52325
      public static _Fields findByThriftId(int fieldId) {
52326
        switch(fieldId) {
52327
          case 1: // START_DATE_TIME
52328
            return START_DATE_TIME;
52329
          default:
52330
            return null;
52331
        }
52332
      }
52333
 
52334
      /**
52335
       * Find the _Fields constant that matches fieldId, throwing an exception
52336
       * if it is not found.
52337
       */
52338
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52339
        _Fields fields = findByThriftId(fieldId);
52340
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52341
        return fields;
52342
      }
52343
 
52344
      /**
52345
       * Find the _Fields constant that matches name, or null if its not found.
52346
       */
52347
      public static _Fields findByName(String name) {
52348
        return byName.get(name);
52349
      }
52350
 
52351
      private final short _thriftId;
52352
      private final String _fieldName;
52353
 
52354
      _Fields(short thriftId, String fieldName) {
52355
        _thriftId = thriftId;
52356
        _fieldName = fieldName;
52357
      }
52358
 
52359
      public short getThriftFieldId() {
52360
        return _thriftId;
52361
      }
52362
 
52363
      public String getFieldName() {
52364
        return _fieldName;
52365
      }
52366
    }
52367
 
52368
    // isset id assignments
52369
    private static final int __STARTDATETIME_ISSET_ID = 0;
52370
    private BitSet __isset_bit_vector = new BitSet(1);
52371
 
52372
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52373
    static {
52374
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52375
      tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_args.class, metaDataMap);
52379
    }
52380
 
52381
    public getProductNotificationRequestCount_args() {
52382
    }
52383
 
52384
    public getProductNotificationRequestCount_args(
52385
      long startDateTime)
52386
    {
52387
      this();
52388
      this.startDateTime = startDateTime;
52389
      setStartDateTimeIsSet(true);
52390
    }
52391
 
52392
    /**
52393
     * Performs a deep copy on <i>other</i>.
52394
     */
52395
    public getProductNotificationRequestCount_args(getProductNotificationRequestCount_args other) {
52396
      __isset_bit_vector.clear();
52397
      __isset_bit_vector.or(other.__isset_bit_vector);
52398
      this.startDateTime = other.startDateTime;
52399
    }
52400
 
52401
    public getProductNotificationRequestCount_args deepCopy() {
52402
      return new getProductNotificationRequestCount_args(this);
52403
    }
52404
 
52405
    @Override
52406
    public void clear() {
52407
      setStartDateTimeIsSet(false);
52408
      this.startDateTime = 0;
52409
    }
52410
 
52411
    public long getStartDateTime() {
52412
      return this.startDateTime;
52413
    }
52414
 
52415
    public void setStartDateTime(long startDateTime) {
52416
      this.startDateTime = startDateTime;
52417
      setStartDateTimeIsSet(true);
52418
    }
52419
 
52420
    public void unsetStartDateTime() {
52421
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
52422
    }
52423
 
52424
    /** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */
52425
    public boolean isSetStartDateTime() {
52426
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
52427
    }
52428
 
52429
    public void setStartDateTimeIsSet(boolean value) {
52430
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
52431
    }
52432
 
52433
    public void setFieldValue(_Fields field, Object value) {
52434
      switch (field) {
52435
      case START_DATE_TIME:
52436
        if (value == null) {
52437
          unsetStartDateTime();
52438
        } else {
52439
          setStartDateTime((Long)value);
52440
        }
52441
        break;
52442
 
52443
      }
52444
    }
52445
 
52446
    public Object getFieldValue(_Fields field) {
52447
      switch (field) {
52448
      case START_DATE_TIME:
52449
        return Long.valueOf(getStartDateTime());
52450
 
52451
      }
52452
      throw new IllegalStateException();
52453
    }
52454
 
52455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52456
    public boolean isSet(_Fields field) {
52457
      if (field == null) {
52458
        throw new IllegalArgumentException();
52459
      }
52460
 
52461
      switch (field) {
52462
      case START_DATE_TIME:
52463
        return isSetStartDateTime();
52464
      }
52465
      throw new IllegalStateException();
52466
    }
52467
 
52468
    @Override
52469
    public boolean equals(Object that) {
52470
      if (that == null)
52471
        return false;
52472
      if (that instanceof getProductNotificationRequestCount_args)
52473
        return this.equals((getProductNotificationRequestCount_args)that);
52474
      return false;
52475
    }
52476
 
52477
    public boolean equals(getProductNotificationRequestCount_args that) {
52478
      if (that == null)
52479
        return false;
52480
 
52481
      boolean this_present_startDateTime = true;
52482
      boolean that_present_startDateTime = true;
52483
      if (this_present_startDateTime || that_present_startDateTime) {
52484
        if (!(this_present_startDateTime && that_present_startDateTime))
52485
          return false;
52486
        if (this.startDateTime != that.startDateTime)
52487
          return false;
52488
      }
52489
 
52490
      return true;
52491
    }
52492
 
52493
    @Override
52494
    public int hashCode() {
52495
      return 0;
52496
    }
52497
 
52498
    public int compareTo(getProductNotificationRequestCount_args other) {
52499
      if (!getClass().equals(other.getClass())) {
52500
        return getClass().getName().compareTo(other.getClass().getName());
52501
      }
52502
 
52503
      int lastComparison = 0;
52504
      getProductNotificationRequestCount_args typedOther = (getProductNotificationRequestCount_args)other;
52505
 
52506
      lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());
52507
      if (lastComparison != 0) {
52508
        return lastComparison;
52509
      }
52510
      if (isSetStartDateTime()) {
52511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);
52512
        if (lastComparison != 0) {
52513
          return lastComparison;
52514
        }
52515
      }
52516
      return 0;
52517
    }
52518
 
52519
    public _Fields fieldForId(int fieldId) {
52520
      return _Fields.findByThriftId(fieldId);
52521
    }
52522
 
52523
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52524
      org.apache.thrift.protocol.TField field;
52525
      iprot.readStructBegin();
52526
      while (true)
52527
      {
52528
        field = iprot.readFieldBegin();
52529
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52530
          break;
52531
        }
52532
        switch (field.id) {
52533
          case 1: // START_DATE_TIME
52534
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52535
              this.startDateTime = iprot.readI64();
52536
              setStartDateTimeIsSet(true);
52537
            } else { 
52538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52539
            }
52540
            break;
52541
          default:
52542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52543
        }
52544
        iprot.readFieldEnd();
52545
      }
52546
      iprot.readStructEnd();
52547
      validate();
52548
    }
52549
 
52550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52551
      validate();
52552
 
52553
      oprot.writeStructBegin(STRUCT_DESC);
52554
      oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);
52555
      oprot.writeI64(this.startDateTime);
52556
      oprot.writeFieldEnd();
52557
      oprot.writeFieldStop();
52558
      oprot.writeStructEnd();
52559
    }
52560
 
52561
    @Override
52562
    public String toString() {
52563
      StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_args(");
52564
      boolean first = true;
52565
 
52566
      sb.append("startDateTime:");
52567
      sb.append(this.startDateTime);
52568
      first = false;
52569
      sb.append(")");
52570
      return sb.toString();
52571
    }
52572
 
52573
    public void validate() throws org.apache.thrift.TException {
52574
      // check for required fields
52575
    }
52576
 
52577
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52578
      try {
52579
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52580
      } catch (org.apache.thrift.TException te) {
52581
        throw new java.io.IOException(te);
52582
      }
52583
    }
52584
 
52585
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52586
      try {
52587
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52588
        __isset_bit_vector = new BitSet(1);
52589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52590
      } catch (org.apache.thrift.TException te) {
52591
        throw new java.io.IOException(te);
52592
      }
52593
    }
52594
 
52595
  }
52596
 
52597
  public static class getProductNotificationRequestCount_result implements org.apache.thrift.TBase<getProductNotificationRequestCount_result, getProductNotificationRequestCount_result._Fields>, java.io.Serializable, Cloneable   {
52598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_result");
52599
 
52600
    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);
52601
 
52602
    private List<ProductNotificationRequestCount> success; // required
52603
 
52604
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52605
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52606
      SUCCESS((short)0, "success");
52607
 
52608
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52609
 
52610
      static {
52611
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52612
          byName.put(field.getFieldName(), field);
52613
        }
52614
      }
52615
 
52616
      /**
52617
       * Find the _Fields constant that matches fieldId, or null if its not found.
52618
       */
52619
      public static _Fields findByThriftId(int fieldId) {
52620
        switch(fieldId) {
52621
          case 0: // SUCCESS
52622
            return SUCCESS;
52623
          default:
52624
            return null;
52625
        }
52626
      }
52627
 
52628
      /**
52629
       * Find the _Fields constant that matches fieldId, throwing an exception
52630
       * if it is not found.
52631
       */
52632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52633
        _Fields fields = findByThriftId(fieldId);
52634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52635
        return fields;
52636
      }
52637
 
52638
      /**
52639
       * Find the _Fields constant that matches name, or null if its not found.
52640
       */
52641
      public static _Fields findByName(String name) {
52642
        return byName.get(name);
52643
      }
52644
 
52645
      private final short _thriftId;
52646
      private final String _fieldName;
52647
 
52648
      _Fields(short thriftId, String fieldName) {
52649
        _thriftId = thriftId;
52650
        _fieldName = fieldName;
52651
      }
52652
 
52653
      public short getThriftFieldId() {
52654
        return _thriftId;
52655
      }
52656
 
52657
      public String getFieldName() {
52658
        return _fieldName;
52659
      }
52660
    }
52661
 
52662
    // isset id assignments
52663
 
52664
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52665
    static {
52666
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52667
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52668
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52669
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequestCount.class))));
52670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_result.class, metaDataMap);
52672
    }
52673
 
52674
    public getProductNotificationRequestCount_result() {
52675
    }
52676
 
52677
    public getProductNotificationRequestCount_result(
52678
      List<ProductNotificationRequestCount> success)
52679
    {
52680
      this();
52681
      this.success = success;
52682
    }
52683
 
52684
    /**
52685
     * Performs a deep copy on <i>other</i>.
52686
     */
52687
    public getProductNotificationRequestCount_result(getProductNotificationRequestCount_result other) {
52688
      if (other.isSetSuccess()) {
52689
        List<ProductNotificationRequestCount> __this__success = new ArrayList<ProductNotificationRequestCount>();
52690
        for (ProductNotificationRequestCount other_element : other.success) {
52691
          __this__success.add(new ProductNotificationRequestCount(other_element));
52692
        }
52693
        this.success = __this__success;
52694
      }
52695
    }
52696
 
52697
    public getProductNotificationRequestCount_result deepCopy() {
52698
      return new getProductNotificationRequestCount_result(this);
52699
    }
52700
 
52701
    @Override
52702
    public void clear() {
52703
      this.success = null;
52704
    }
52705
 
52706
    public int getSuccessSize() {
52707
      return (this.success == null) ? 0 : this.success.size();
52708
    }
52709
 
52710
    public java.util.Iterator<ProductNotificationRequestCount> getSuccessIterator() {
52711
      return (this.success == null) ? null : this.success.iterator();
52712
    }
52713
 
52714
    public void addToSuccess(ProductNotificationRequestCount elem) {
52715
      if (this.success == null) {
52716
        this.success = new ArrayList<ProductNotificationRequestCount>();
52717
      }
52718
      this.success.add(elem);
52719
    }
52720
 
52721
    public List<ProductNotificationRequestCount> getSuccess() {
52722
      return this.success;
52723
    }
52724
 
52725
    public void setSuccess(List<ProductNotificationRequestCount> success) {
52726
      this.success = success;
52727
    }
52728
 
52729
    public void unsetSuccess() {
52730
      this.success = null;
52731
    }
52732
 
52733
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
52734
    public boolean isSetSuccess() {
52735
      return this.success != null;
52736
    }
52737
 
52738
    public void setSuccessIsSet(boolean value) {
52739
      if (!value) {
52740
        this.success = null;
52741
      }
52742
    }
52743
 
52744
    public void setFieldValue(_Fields field, Object value) {
52745
      switch (field) {
52746
      case SUCCESS:
52747
        if (value == null) {
52748
          unsetSuccess();
52749
        } else {
52750
          setSuccess((List<ProductNotificationRequestCount>)value);
52751
        }
52752
        break;
52753
 
52754
      }
52755
    }
52756
 
52757
    public Object getFieldValue(_Fields field) {
52758
      switch (field) {
52759
      case SUCCESS:
52760
        return getSuccess();
52761
 
52762
      }
52763
      throw new IllegalStateException();
52764
    }
52765
 
52766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52767
    public boolean isSet(_Fields field) {
52768
      if (field == null) {
52769
        throw new IllegalArgumentException();
52770
      }
52771
 
52772
      switch (field) {
52773
      case SUCCESS:
52774
        return isSetSuccess();
52775
      }
52776
      throw new IllegalStateException();
52777
    }
52778
 
52779
    @Override
52780
    public boolean equals(Object that) {
52781
      if (that == null)
52782
        return false;
52783
      if (that instanceof getProductNotificationRequestCount_result)
52784
        return this.equals((getProductNotificationRequestCount_result)that);
52785
      return false;
52786
    }
52787
 
52788
    public boolean equals(getProductNotificationRequestCount_result that) {
52789
      if (that == null)
52790
        return false;
52791
 
52792
      boolean this_present_success = true && this.isSetSuccess();
52793
      boolean that_present_success = true && that.isSetSuccess();
52794
      if (this_present_success || that_present_success) {
52795
        if (!(this_present_success && that_present_success))
52796
          return false;
52797
        if (!this.success.equals(that.success))
52798
          return false;
52799
      }
52800
 
52801
      return true;
52802
    }
52803
 
52804
    @Override
52805
    public int hashCode() {
52806
      return 0;
52807
    }
52808
 
52809
    public int compareTo(getProductNotificationRequestCount_result other) {
52810
      if (!getClass().equals(other.getClass())) {
52811
        return getClass().getName().compareTo(other.getClass().getName());
52812
      }
52813
 
52814
      int lastComparison = 0;
52815
      getProductNotificationRequestCount_result typedOther = (getProductNotificationRequestCount_result)other;
52816
 
52817
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
52818
      if (lastComparison != 0) {
52819
        return lastComparison;
52820
      }
52821
      if (isSetSuccess()) {
52822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
52823
        if (lastComparison != 0) {
52824
          return lastComparison;
52825
        }
52826
      }
52827
      return 0;
52828
    }
52829
 
52830
    public _Fields fieldForId(int fieldId) {
52831
      return _Fields.findByThriftId(fieldId);
52832
    }
52833
 
52834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52835
      org.apache.thrift.protocol.TField field;
52836
      iprot.readStructBegin();
52837
      while (true)
52838
      {
52839
        field = iprot.readFieldBegin();
52840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52841
          break;
52842
        }
52843
        switch (field.id) {
52844
          case 0: // SUCCESS
52845
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52846
              {
6850 kshitij.so 52847
                org.apache.thrift.protocol.TList _list150 = iprot.readListBegin();
52848
                this.success = new ArrayList<ProductNotificationRequestCount>(_list150.size);
52849
                for (int _i151 = 0; _i151 < _list150.size; ++_i151)
5945 mandeep.dh 52850
                {
6850 kshitij.so 52851
                  ProductNotificationRequestCount _elem152; // required
52852
                  _elem152 = new ProductNotificationRequestCount();
52853
                  _elem152.read(iprot);
52854
                  this.success.add(_elem152);
5945 mandeep.dh 52855
                }
52856
                iprot.readListEnd();
52857
              }
52858
            } else { 
52859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52860
            }
52861
            break;
52862
          default:
52863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52864
        }
52865
        iprot.readFieldEnd();
52866
      }
52867
      iprot.readStructEnd();
52868
      validate();
52869
    }
52870
 
52871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52872
      oprot.writeStructBegin(STRUCT_DESC);
52873
 
52874
      if (this.isSetSuccess()) {
52875
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52876
        {
52877
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 52878
          for (ProductNotificationRequestCount _iter153 : this.success)
5945 mandeep.dh 52879
          {
6850 kshitij.so 52880
            _iter153.write(oprot);
5945 mandeep.dh 52881
          }
52882
          oprot.writeListEnd();
52883
        }
52884
        oprot.writeFieldEnd();
52885
      }
52886
      oprot.writeFieldStop();
52887
      oprot.writeStructEnd();
52888
    }
52889
 
52890
    @Override
52891
    public String toString() {
52892
      StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_result(");
52893
      boolean first = true;
52894
 
52895
      sb.append("success:");
52896
      if (this.success == null) {
52897
        sb.append("null");
52898
      } else {
52899
        sb.append(this.success);
52900
      }
52901
      first = false;
52902
      sb.append(")");
52903
      return sb.toString();
52904
    }
52905
 
52906
    public void validate() throws org.apache.thrift.TException {
52907
      // check for required fields
52908
    }
52909
 
52910
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52911
      try {
52912
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52913
      } catch (org.apache.thrift.TException te) {
52914
        throw new java.io.IOException(te);
52915
      }
52916
    }
52917
 
52918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52919
      try {
52920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52921
      } catch (org.apache.thrift.TException te) {
52922
        throw new java.io.IOException(te);
52923
      }
52924
    }
52925
 
52926
  }
52927
 
52928
  public static class addAuthorizationLog_args implements org.apache.thrift.TBase<addAuthorizationLog_args, addAuthorizationLog_args._Fields>, java.io.Serializable, Cloneable   {
52929
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_args");
52930
 
52931
    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);
52932
    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);
52933
    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);
52934
 
52935
    private long itemId; // required
52936
    private String username; // required
52937
    private String reason; // required
52938
 
52939
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52940
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52941
      ITEM_ID((short)1, "itemId"),
52942
      USERNAME((short)2, "username"),
52943
      REASON((short)3, "reason");
52944
 
52945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52946
 
52947
      static {
52948
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52949
          byName.put(field.getFieldName(), field);
52950
        }
52951
      }
52952
 
52953
      /**
52954
       * Find the _Fields constant that matches fieldId, or null if its not found.
52955
       */
52956
      public static _Fields findByThriftId(int fieldId) {
52957
        switch(fieldId) {
52958
          case 1: // ITEM_ID
52959
            return ITEM_ID;
52960
          case 2: // USERNAME
52961
            return USERNAME;
52962
          case 3: // REASON
52963
            return REASON;
52964
          default:
52965
            return null;
52966
        }
52967
      }
52968
 
52969
      /**
52970
       * Find the _Fields constant that matches fieldId, throwing an exception
52971
       * if it is not found.
52972
       */
52973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52974
        _Fields fields = findByThriftId(fieldId);
52975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52976
        return fields;
52977
      }
52978
 
52979
      /**
52980
       * Find the _Fields constant that matches name, or null if its not found.
52981
       */
52982
      public static _Fields findByName(String name) {
52983
        return byName.get(name);
52984
      }
52985
 
52986
      private final short _thriftId;
52987
      private final String _fieldName;
52988
 
52989
      _Fields(short thriftId, String fieldName) {
52990
        _thriftId = thriftId;
52991
        _fieldName = fieldName;
52992
      }
52993
 
52994
      public short getThriftFieldId() {
52995
        return _thriftId;
52996
      }
52997
 
52998
      public String getFieldName() {
52999
        return _fieldName;
53000
      }
53001
    }
53002
 
53003
    // isset id assignments
53004
    private static final int __ITEMID_ISSET_ID = 0;
53005
    private BitSet __isset_bit_vector = new BitSet(1);
53006
 
53007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53008
    static {
53009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53010
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53012
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
53014
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
53016
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53017
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_args.class, metaDataMap);
53018
    }
53019
 
53020
    public addAuthorizationLog_args() {
53021
    }
53022
 
53023
    public addAuthorizationLog_args(
53024
      long itemId,
53025
      String username,
53026
      String reason)
53027
    {
53028
      this();
53029
      this.itemId = itemId;
53030
      setItemIdIsSet(true);
53031
      this.username = username;
53032
      this.reason = reason;
53033
    }
53034
 
53035
    /**
53036
     * Performs a deep copy on <i>other</i>.
53037
     */
53038
    public addAuthorizationLog_args(addAuthorizationLog_args other) {
53039
      __isset_bit_vector.clear();
53040
      __isset_bit_vector.or(other.__isset_bit_vector);
53041
      this.itemId = other.itemId;
53042
      if (other.isSetUsername()) {
53043
        this.username = other.username;
53044
      }
53045
      if (other.isSetReason()) {
53046
        this.reason = other.reason;
53047
      }
53048
    }
53049
 
53050
    public addAuthorizationLog_args deepCopy() {
53051
      return new addAuthorizationLog_args(this);
53052
    }
53053
 
53054
    @Override
53055
    public void clear() {
53056
      setItemIdIsSet(false);
53057
      this.itemId = 0;
53058
      this.username = null;
53059
      this.reason = null;
53060
    }
53061
 
53062
    public long getItemId() {
53063
      return this.itemId;
53064
    }
53065
 
53066
    public void setItemId(long itemId) {
53067
      this.itemId = itemId;
53068
      setItemIdIsSet(true);
53069
    }
53070
 
53071
    public void unsetItemId() {
53072
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
53073
    }
53074
 
53075
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
53076
    public boolean isSetItemId() {
53077
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
53078
    }
53079
 
53080
    public void setItemIdIsSet(boolean value) {
53081
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
53082
    }
53083
 
53084
    public String getUsername() {
53085
      return this.username;
53086
    }
53087
 
53088
    public void setUsername(String username) {
53089
      this.username = username;
53090
    }
53091
 
53092
    public void unsetUsername() {
53093
      this.username = null;
53094
    }
53095
 
53096
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
53097
    public boolean isSetUsername() {
53098
      return this.username != null;
53099
    }
53100
 
53101
    public void setUsernameIsSet(boolean value) {
53102
      if (!value) {
53103
        this.username = null;
53104
      }
53105
    }
53106
 
53107
    public String getReason() {
53108
      return this.reason;
53109
    }
53110
 
53111
    public void setReason(String reason) {
53112
      this.reason = reason;
53113
    }
53114
 
53115
    public void unsetReason() {
53116
      this.reason = null;
53117
    }
53118
 
53119
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
53120
    public boolean isSetReason() {
53121
      return this.reason != null;
53122
    }
53123
 
53124
    public void setReasonIsSet(boolean value) {
53125
      if (!value) {
53126
        this.reason = null;
53127
      }
53128
    }
53129
 
53130
    public void setFieldValue(_Fields field, Object value) {
53131
      switch (field) {
53132
      case ITEM_ID:
53133
        if (value == null) {
53134
          unsetItemId();
53135
        } else {
53136
          setItemId((Long)value);
53137
        }
53138
        break;
53139
 
53140
      case USERNAME:
53141
        if (value == null) {
53142
          unsetUsername();
53143
        } else {
53144
          setUsername((String)value);
53145
        }
53146
        break;
53147
 
53148
      case REASON:
53149
        if (value == null) {
53150
          unsetReason();
53151
        } else {
53152
          setReason((String)value);
53153
        }
53154
        break;
53155
 
53156
      }
53157
    }
53158
 
53159
    public Object getFieldValue(_Fields field) {
53160
      switch (field) {
53161
      case ITEM_ID:
53162
        return Long.valueOf(getItemId());
53163
 
53164
      case USERNAME:
53165
        return getUsername();
53166
 
53167
      case REASON:
53168
        return getReason();
53169
 
53170
      }
53171
      throw new IllegalStateException();
53172
    }
53173
 
53174
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53175
    public boolean isSet(_Fields field) {
53176
      if (field == null) {
53177
        throw new IllegalArgumentException();
53178
      }
53179
 
53180
      switch (field) {
53181
      case ITEM_ID:
53182
        return isSetItemId();
53183
      case USERNAME:
53184
        return isSetUsername();
53185
      case REASON:
53186
        return isSetReason();
53187
      }
53188
      throw new IllegalStateException();
53189
    }
53190
 
53191
    @Override
53192
    public boolean equals(Object that) {
53193
      if (that == null)
53194
        return false;
53195
      if (that instanceof addAuthorizationLog_args)
53196
        return this.equals((addAuthorizationLog_args)that);
53197
      return false;
53198
    }
53199
 
53200
    public boolean equals(addAuthorizationLog_args that) {
53201
      if (that == null)
53202
        return false;
53203
 
53204
      boolean this_present_itemId = true;
53205
      boolean that_present_itemId = true;
53206
      if (this_present_itemId || that_present_itemId) {
53207
        if (!(this_present_itemId && that_present_itemId))
53208
          return false;
53209
        if (this.itemId != that.itemId)
53210
          return false;
53211
      }
53212
 
53213
      boolean this_present_username = true && this.isSetUsername();
53214
      boolean that_present_username = true && that.isSetUsername();
53215
      if (this_present_username || that_present_username) {
53216
        if (!(this_present_username && that_present_username))
53217
          return false;
53218
        if (!this.username.equals(that.username))
53219
          return false;
53220
      }
53221
 
53222
      boolean this_present_reason = true && this.isSetReason();
53223
      boolean that_present_reason = true && that.isSetReason();
53224
      if (this_present_reason || that_present_reason) {
53225
        if (!(this_present_reason && that_present_reason))
53226
          return false;
53227
        if (!this.reason.equals(that.reason))
53228
          return false;
53229
      }
53230
 
53231
      return true;
53232
    }
53233
 
53234
    @Override
53235
    public int hashCode() {
53236
      return 0;
53237
    }
53238
 
53239
    public int compareTo(addAuthorizationLog_args other) {
53240
      if (!getClass().equals(other.getClass())) {
53241
        return getClass().getName().compareTo(other.getClass().getName());
53242
      }
53243
 
53244
      int lastComparison = 0;
53245
      addAuthorizationLog_args typedOther = (addAuthorizationLog_args)other;
53246
 
53247
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
53248
      if (lastComparison != 0) {
53249
        return lastComparison;
53250
      }
53251
      if (isSetItemId()) {
53252
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
53253
        if (lastComparison != 0) {
53254
          return lastComparison;
53255
        }
53256
      }
53257
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
53258
      if (lastComparison != 0) {
53259
        return lastComparison;
53260
      }
53261
      if (isSetUsername()) {
53262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
53263
        if (lastComparison != 0) {
53264
          return lastComparison;
53265
        }
53266
      }
53267
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
53268
      if (lastComparison != 0) {
53269
        return lastComparison;
53270
      }
53271
      if (isSetReason()) {
53272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
53273
        if (lastComparison != 0) {
53274
          return lastComparison;
53275
        }
53276
      }
53277
      return 0;
53278
    }
53279
 
53280
    public _Fields fieldForId(int fieldId) {
53281
      return _Fields.findByThriftId(fieldId);
53282
    }
53283
 
53284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53285
      org.apache.thrift.protocol.TField field;
53286
      iprot.readStructBegin();
53287
      while (true)
53288
      {
53289
        field = iprot.readFieldBegin();
53290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53291
          break;
53292
        }
53293
        switch (field.id) {
53294
          case 1: // ITEM_ID
53295
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53296
              this.itemId = iprot.readI64();
53297
              setItemIdIsSet(true);
53298
            } else { 
53299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53300
            }
53301
            break;
53302
          case 2: // USERNAME
53303
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
53304
              this.username = iprot.readString();
53305
            } else { 
53306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53307
            }
53308
            break;
53309
          case 3: // REASON
53310
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
53311
              this.reason = iprot.readString();
53312
            } else { 
53313
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53314
            }
53315
            break;
53316
          default:
53317
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53318
        }
53319
        iprot.readFieldEnd();
53320
      }
53321
      iprot.readStructEnd();
53322
      validate();
53323
    }
53324
 
53325
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53326
      validate();
53327
 
53328
      oprot.writeStructBegin(STRUCT_DESC);
53329
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
53330
      oprot.writeI64(this.itemId);
53331
      oprot.writeFieldEnd();
53332
      if (this.username != null) {
53333
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
53334
        oprot.writeString(this.username);
53335
        oprot.writeFieldEnd();
53336
      }
53337
      if (this.reason != null) {
53338
        oprot.writeFieldBegin(REASON_FIELD_DESC);
53339
        oprot.writeString(this.reason);
53340
        oprot.writeFieldEnd();
53341
      }
53342
      oprot.writeFieldStop();
53343
      oprot.writeStructEnd();
53344
    }
53345
 
53346
    @Override
53347
    public String toString() {
53348
      StringBuilder sb = new StringBuilder("addAuthorizationLog_args(");
53349
      boolean first = true;
53350
 
53351
      sb.append("itemId:");
53352
      sb.append(this.itemId);
53353
      first = false;
53354
      if (!first) sb.append(", ");
53355
      sb.append("username:");
53356
      if (this.username == null) {
53357
        sb.append("null");
53358
      } else {
53359
        sb.append(this.username);
53360
      }
53361
      first = false;
53362
      if (!first) sb.append(", ");
53363
      sb.append("reason:");
53364
      if (this.reason == null) {
53365
        sb.append("null");
53366
      } else {
53367
        sb.append(this.reason);
53368
      }
53369
      first = false;
53370
      sb.append(")");
53371
      return sb.toString();
53372
    }
53373
 
53374
    public void validate() throws org.apache.thrift.TException {
53375
      // check for required fields
53376
    }
53377
 
53378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53379
      try {
53380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53381
      } catch (org.apache.thrift.TException te) {
53382
        throw new java.io.IOException(te);
53383
      }
53384
    }
53385
 
53386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53387
      try {
53388
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
53389
        __isset_bit_vector = new BitSet(1);
53390
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53391
      } catch (org.apache.thrift.TException te) {
53392
        throw new java.io.IOException(te);
53393
      }
53394
    }
53395
 
53396
  }
53397
 
53398
  public static class addAuthorizationLog_result implements org.apache.thrift.TBase<addAuthorizationLog_result, addAuthorizationLog_result._Fields>, java.io.Serializable, Cloneable   {
53399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_result");
53400
 
53401
    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);
53402
    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);
53403
 
53404
    private boolean success; // required
53405
    private CatalogServiceException cex; // required
53406
 
53407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53409
      SUCCESS((short)0, "success"),
53410
      CEX((short)1, "cex");
53411
 
53412
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53413
 
53414
      static {
53415
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53416
          byName.put(field.getFieldName(), field);
53417
        }
53418
      }
53419
 
53420
      /**
53421
       * Find the _Fields constant that matches fieldId, or null if its not found.
53422
       */
53423
      public static _Fields findByThriftId(int fieldId) {
53424
        switch(fieldId) {
53425
          case 0: // SUCCESS
53426
            return SUCCESS;
53427
          case 1: // CEX
53428
            return CEX;
53429
          default:
53430
            return null;
53431
        }
53432
      }
53433
 
53434
      /**
53435
       * Find the _Fields constant that matches fieldId, throwing an exception
53436
       * if it is not found.
53437
       */
53438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53439
        _Fields fields = findByThriftId(fieldId);
53440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53441
        return fields;
53442
      }
53443
 
53444
      /**
53445
       * Find the _Fields constant that matches name, or null if its not found.
53446
       */
53447
      public static _Fields findByName(String name) {
53448
        return byName.get(name);
53449
      }
53450
 
53451
      private final short _thriftId;
53452
      private final String _fieldName;
53453
 
53454
      _Fields(short thriftId, String fieldName) {
53455
        _thriftId = thriftId;
53456
        _fieldName = fieldName;
53457
      }
53458
 
53459
      public short getThriftFieldId() {
53460
        return _thriftId;
53461
      }
53462
 
53463
      public String getFieldName() {
53464
        return _fieldName;
53465
      }
53466
    }
53467
 
53468
    // isset id assignments
53469
    private static final int __SUCCESS_ISSET_ID = 0;
53470
    private BitSet __isset_bit_vector = new BitSet(1);
53471
 
53472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53473
    static {
53474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53475
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
53477
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53478
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53479
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53480
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_result.class, metaDataMap);
53481
    }
53482
 
53483
    public addAuthorizationLog_result() {
53484
    }
53485
 
53486
    public addAuthorizationLog_result(
53487
      boolean success,
53488
      CatalogServiceException cex)
53489
    {
53490
      this();
53491
      this.success = success;
53492
      setSuccessIsSet(true);
53493
      this.cex = cex;
53494
    }
53495
 
53496
    /**
53497
     * Performs a deep copy on <i>other</i>.
53498
     */
53499
    public addAuthorizationLog_result(addAuthorizationLog_result other) {
53500
      __isset_bit_vector.clear();
53501
      __isset_bit_vector.or(other.__isset_bit_vector);
53502
      this.success = other.success;
53503
      if (other.isSetCex()) {
53504
        this.cex = new CatalogServiceException(other.cex);
53505
      }
53506
    }
53507
 
53508
    public addAuthorizationLog_result deepCopy() {
53509
      return new addAuthorizationLog_result(this);
53510
    }
53511
 
53512
    @Override
53513
    public void clear() {
53514
      setSuccessIsSet(false);
53515
      this.success = false;
53516
      this.cex = null;
53517
    }
53518
 
53519
    public boolean isSuccess() {
53520
      return this.success;
53521
    }
53522
 
53523
    public void setSuccess(boolean success) {
53524
      this.success = success;
53525
      setSuccessIsSet(true);
53526
    }
53527
 
53528
    public void unsetSuccess() {
53529
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
53530
    }
53531
 
53532
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
53533
    public boolean isSetSuccess() {
53534
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
53535
    }
53536
 
53537
    public void setSuccessIsSet(boolean value) {
53538
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
53539
    }
53540
 
53541
    public CatalogServiceException getCex() {
53542
      return this.cex;
53543
    }
53544
 
53545
    public void setCex(CatalogServiceException cex) {
53546
      this.cex = cex;
53547
    }
53548
 
53549
    public void unsetCex() {
53550
      this.cex = null;
53551
    }
53552
 
53553
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
53554
    public boolean isSetCex() {
53555
      return this.cex != null;
53556
    }
53557
 
53558
    public void setCexIsSet(boolean value) {
53559
      if (!value) {
53560
        this.cex = null;
53561
      }
53562
    }
53563
 
53564
    public void setFieldValue(_Fields field, Object value) {
53565
      switch (field) {
53566
      case SUCCESS:
53567
        if (value == null) {
53568
          unsetSuccess();
53569
        } else {
53570
          setSuccess((Boolean)value);
53571
        }
53572
        break;
53573
 
53574
      case CEX:
53575
        if (value == null) {
53576
          unsetCex();
53577
        } else {
53578
          setCex((CatalogServiceException)value);
53579
        }
53580
        break;
53581
 
53582
      }
53583
    }
53584
 
53585
    public Object getFieldValue(_Fields field) {
53586
      switch (field) {
53587
      case SUCCESS:
53588
        return Boolean.valueOf(isSuccess());
53589
 
53590
      case CEX:
53591
        return getCex();
53592
 
53593
      }
53594
      throw new IllegalStateException();
53595
    }
53596
 
53597
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53598
    public boolean isSet(_Fields field) {
53599
      if (field == null) {
53600
        throw new IllegalArgumentException();
53601
      }
53602
 
53603
      switch (field) {
53604
      case SUCCESS:
53605
        return isSetSuccess();
53606
      case CEX:
53607
        return isSetCex();
53608
      }
53609
      throw new IllegalStateException();
53610
    }
53611
 
53612
    @Override
53613
    public boolean equals(Object that) {
53614
      if (that == null)
53615
        return false;
53616
      if (that instanceof addAuthorizationLog_result)
53617
        return this.equals((addAuthorizationLog_result)that);
53618
      return false;
53619
    }
53620
 
53621
    public boolean equals(addAuthorizationLog_result that) {
53622
      if (that == null)
53623
        return false;
53624
 
53625
      boolean this_present_success = true;
53626
      boolean that_present_success = true;
53627
      if (this_present_success || that_present_success) {
53628
        if (!(this_present_success && that_present_success))
53629
          return false;
53630
        if (this.success != that.success)
53631
          return false;
53632
      }
53633
 
53634
      boolean this_present_cex = true && this.isSetCex();
53635
      boolean that_present_cex = true && that.isSetCex();
53636
      if (this_present_cex || that_present_cex) {
53637
        if (!(this_present_cex && that_present_cex))
53638
          return false;
53639
        if (!this.cex.equals(that.cex))
53640
          return false;
53641
      }
53642
 
53643
      return true;
53644
    }
53645
 
53646
    @Override
53647
    public int hashCode() {
53648
      return 0;
53649
    }
53650
 
53651
    public int compareTo(addAuthorizationLog_result other) {
53652
      if (!getClass().equals(other.getClass())) {
53653
        return getClass().getName().compareTo(other.getClass().getName());
53654
      }
53655
 
53656
      int lastComparison = 0;
53657
      addAuthorizationLog_result typedOther = (addAuthorizationLog_result)other;
53658
 
53659
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
53660
      if (lastComparison != 0) {
53661
        return lastComparison;
53662
      }
53663
      if (isSetSuccess()) {
53664
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53665
        if (lastComparison != 0) {
53666
          return lastComparison;
53667
        }
53668
      }
53669
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
53670
      if (lastComparison != 0) {
53671
        return lastComparison;
53672
      }
53673
      if (isSetCex()) {
53674
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
53675
        if (lastComparison != 0) {
53676
          return lastComparison;
53677
        }
53678
      }
53679
      return 0;
53680
    }
53681
 
53682
    public _Fields fieldForId(int fieldId) {
53683
      return _Fields.findByThriftId(fieldId);
53684
    }
53685
 
53686
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53687
      org.apache.thrift.protocol.TField field;
53688
      iprot.readStructBegin();
53689
      while (true)
53690
      {
53691
        field = iprot.readFieldBegin();
53692
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53693
          break;
53694
        }
53695
        switch (field.id) {
53696
          case 0: // SUCCESS
53697
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
53698
              this.success = iprot.readBool();
53699
              setSuccessIsSet(true);
53700
            } else { 
53701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53702
            }
53703
            break;
53704
          case 1: // CEX
53705
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53706
              this.cex = new CatalogServiceException();
53707
              this.cex.read(iprot);
53708
            } else { 
53709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53710
            }
53711
            break;
53712
          default:
53713
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53714
        }
53715
        iprot.readFieldEnd();
53716
      }
53717
      iprot.readStructEnd();
53718
      validate();
53719
    }
53720
 
53721
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53722
      oprot.writeStructBegin(STRUCT_DESC);
53723
 
53724
      if (this.isSetSuccess()) {
53725
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53726
        oprot.writeBool(this.success);
53727
        oprot.writeFieldEnd();
53728
      } else if (this.isSetCex()) {
53729
        oprot.writeFieldBegin(CEX_FIELD_DESC);
53730
        this.cex.write(oprot);
53731
        oprot.writeFieldEnd();
53732
      }
53733
      oprot.writeFieldStop();
53734
      oprot.writeStructEnd();
53735
    }
53736
 
53737
    @Override
53738
    public String toString() {
53739
      StringBuilder sb = new StringBuilder("addAuthorizationLog_result(");
53740
      boolean first = true;
53741
 
53742
      sb.append("success:");
53743
      sb.append(this.success);
53744
      first = false;
53745
      if (!first) sb.append(", ");
53746
      sb.append("cex:");
53747
      if (this.cex == null) {
53748
        sb.append("null");
53749
      } else {
53750
        sb.append(this.cex);
53751
      }
53752
      first = false;
53753
      sb.append(")");
53754
      return sb.toString();
53755
    }
53756
 
53757
    public void validate() throws org.apache.thrift.TException {
53758
      // check for required fields
53759
    }
53760
 
53761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53762
      try {
53763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53764
      } catch (org.apache.thrift.TException te) {
53765
        throw new java.io.IOException(te);
53766
      }
53767
    }
53768
 
53769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53770
      try {
53771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53772
      } catch (org.apache.thrift.TException te) {
53773
        throw new java.io.IOException(te);
53774
      }
53775
    }
53776
 
53777
  }
53778
 
53779
  public static class getClearanceSaleCatalogIds_args implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_args, getClearanceSaleCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
53780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_args");
53781
 
53782
 
53783
 
53784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53786
;
53787
 
53788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53789
 
53790
      static {
53791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53792
          byName.put(field.getFieldName(), field);
53793
        }
53794
      }
53795
 
53796
      /**
53797
       * Find the _Fields constant that matches fieldId, or null if its not found.
53798
       */
53799
      public static _Fields findByThriftId(int fieldId) {
53800
        switch(fieldId) {
53801
          default:
53802
            return null;
53803
        }
53804
      }
53805
 
53806
      /**
53807
       * Find the _Fields constant that matches fieldId, throwing an exception
53808
       * if it is not found.
53809
       */
53810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53811
        _Fields fields = findByThriftId(fieldId);
53812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53813
        return fields;
53814
      }
53815
 
53816
      /**
53817
       * Find the _Fields constant that matches name, or null if its not found.
53818
       */
53819
      public static _Fields findByName(String name) {
53820
        return byName.get(name);
53821
      }
53822
 
53823
      private final short _thriftId;
53824
      private final String _fieldName;
53825
 
53826
      _Fields(short thriftId, String fieldName) {
53827
        _thriftId = thriftId;
53828
        _fieldName = fieldName;
53829
      }
53830
 
53831
      public short getThriftFieldId() {
53832
        return _thriftId;
53833
      }
53834
 
53835
      public String getFieldName() {
53836
        return _fieldName;
53837
      }
53838
    }
53839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53840
    static {
53841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_args.class, metaDataMap);
53844
    }
53845
 
53846
    public getClearanceSaleCatalogIds_args() {
53847
    }
53848
 
53849
    /**
53850
     * Performs a deep copy on <i>other</i>.
53851
     */
53852
    public getClearanceSaleCatalogIds_args(getClearanceSaleCatalogIds_args other) {
53853
    }
53854
 
53855
    public getClearanceSaleCatalogIds_args deepCopy() {
53856
      return new getClearanceSaleCatalogIds_args(this);
53857
    }
53858
 
53859
    @Override
53860
    public void clear() {
53861
    }
53862
 
53863
    public void setFieldValue(_Fields field, Object value) {
53864
      switch (field) {
53865
      }
53866
    }
53867
 
53868
    public Object getFieldValue(_Fields field) {
53869
      switch (field) {
53870
      }
53871
      throw new IllegalStateException();
53872
    }
53873
 
53874
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53875
    public boolean isSet(_Fields field) {
53876
      if (field == null) {
53877
        throw new IllegalArgumentException();
53878
      }
53879
 
53880
      switch (field) {
53881
      }
53882
      throw new IllegalStateException();
53883
    }
53884
 
53885
    @Override
53886
    public boolean equals(Object that) {
53887
      if (that == null)
53888
        return false;
53889
      if (that instanceof getClearanceSaleCatalogIds_args)
53890
        return this.equals((getClearanceSaleCatalogIds_args)that);
53891
      return false;
53892
    }
53893
 
53894
    public boolean equals(getClearanceSaleCatalogIds_args that) {
53895
      if (that == null)
53896
        return false;
53897
 
53898
      return true;
53899
    }
53900
 
53901
    @Override
53902
    public int hashCode() {
53903
      return 0;
53904
    }
53905
 
53906
    public int compareTo(getClearanceSaleCatalogIds_args other) {
53907
      if (!getClass().equals(other.getClass())) {
53908
        return getClass().getName().compareTo(other.getClass().getName());
53909
      }
53910
 
53911
      int lastComparison = 0;
53912
      getClearanceSaleCatalogIds_args typedOther = (getClearanceSaleCatalogIds_args)other;
53913
 
53914
      return 0;
53915
    }
53916
 
53917
    public _Fields fieldForId(int fieldId) {
53918
      return _Fields.findByThriftId(fieldId);
53919
    }
53920
 
53921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53922
      org.apache.thrift.protocol.TField field;
53923
      iprot.readStructBegin();
53924
      while (true)
53925
      {
53926
        field = iprot.readFieldBegin();
53927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53928
          break;
53929
        }
53930
        switch (field.id) {
53931
          default:
53932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53933
        }
53934
        iprot.readFieldEnd();
53935
      }
53936
      iprot.readStructEnd();
53937
      validate();
53938
    }
53939
 
53940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53941
      validate();
53942
 
53943
      oprot.writeStructBegin(STRUCT_DESC);
53944
      oprot.writeFieldStop();
53945
      oprot.writeStructEnd();
53946
    }
53947
 
53948
    @Override
53949
    public String toString() {
53950
      StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_args(");
53951
      boolean first = true;
53952
 
53953
      sb.append(")");
53954
      return sb.toString();
53955
    }
53956
 
53957
    public void validate() throws org.apache.thrift.TException {
53958
      // check for required fields
53959
    }
53960
 
53961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53962
      try {
53963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53964
      } catch (org.apache.thrift.TException te) {
53965
        throw new java.io.IOException(te);
53966
      }
53967
    }
53968
 
53969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53970
      try {
53971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53972
      } catch (org.apache.thrift.TException te) {
53973
        throw new java.io.IOException(te);
53974
      }
53975
    }
53976
 
53977
  }
53978
 
53979
  public static class getClearanceSaleCatalogIds_result implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_result, getClearanceSaleCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
53980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_result");
53981
 
53982
    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);
53983
    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);
53984
 
53985
    private List<Long> success; // required
53986
    private CatalogServiceException cex; // required
53987
 
53988
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53989
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53990
      SUCCESS((short)0, "success"),
53991
      CEX((short)1, "cex");
53992
 
53993
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53994
 
53995
      static {
53996
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53997
          byName.put(field.getFieldName(), field);
53998
        }
53999
      }
54000
 
54001
      /**
54002
       * Find the _Fields constant that matches fieldId, or null if its not found.
54003
       */
54004
      public static _Fields findByThriftId(int fieldId) {
54005
        switch(fieldId) {
54006
          case 0: // SUCCESS
54007
            return SUCCESS;
54008
          case 1: // CEX
54009
            return CEX;
54010
          default:
54011
            return null;
54012
        }
54013
      }
54014
 
54015
      /**
54016
       * Find the _Fields constant that matches fieldId, throwing an exception
54017
       * if it is not found.
54018
       */
54019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54020
        _Fields fields = findByThriftId(fieldId);
54021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54022
        return fields;
54023
      }
54024
 
54025
      /**
54026
       * Find the _Fields constant that matches name, or null if its not found.
54027
       */
54028
      public static _Fields findByName(String name) {
54029
        return byName.get(name);
54030
      }
54031
 
54032
      private final short _thriftId;
54033
      private final String _fieldName;
54034
 
54035
      _Fields(short thriftId, String fieldName) {
54036
        _thriftId = thriftId;
54037
        _fieldName = fieldName;
54038
      }
54039
 
54040
      public short getThriftFieldId() {
54041
        return _thriftId;
54042
      }
54043
 
54044
      public String getFieldName() {
54045
        return _fieldName;
54046
      }
54047
    }
54048
 
54049
    // isset id assignments
54050
 
54051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54052
    static {
54053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54054
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54055
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54056
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
54057
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
54059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_result.class, metaDataMap);
54061
    }
54062
 
54063
    public getClearanceSaleCatalogIds_result() {
54064
    }
54065
 
54066
    public getClearanceSaleCatalogIds_result(
54067
      List<Long> success,
54068
      CatalogServiceException cex)
54069
    {
54070
      this();
54071
      this.success = success;
54072
      this.cex = cex;
54073
    }
54074
 
54075
    /**
54076
     * Performs a deep copy on <i>other</i>.
54077
     */
54078
    public getClearanceSaleCatalogIds_result(getClearanceSaleCatalogIds_result other) {
54079
      if (other.isSetSuccess()) {
54080
        List<Long> __this__success = new ArrayList<Long>();
54081
        for (Long other_element : other.success) {
54082
          __this__success.add(other_element);
54083
        }
54084
        this.success = __this__success;
54085
      }
54086
      if (other.isSetCex()) {
54087
        this.cex = new CatalogServiceException(other.cex);
54088
      }
54089
    }
54090
 
54091
    public getClearanceSaleCatalogIds_result deepCopy() {
54092
      return new getClearanceSaleCatalogIds_result(this);
54093
    }
54094
 
54095
    @Override
54096
    public void clear() {
54097
      this.success = null;
54098
      this.cex = null;
54099
    }
54100
 
54101
    public int getSuccessSize() {
54102
      return (this.success == null) ? 0 : this.success.size();
54103
    }
54104
 
54105
    public java.util.Iterator<Long> getSuccessIterator() {
54106
      return (this.success == null) ? null : this.success.iterator();
54107
    }
54108
 
54109
    public void addToSuccess(long elem) {
54110
      if (this.success == null) {
54111
        this.success = new ArrayList<Long>();
54112
      }
54113
      this.success.add(elem);
54114
    }
54115
 
54116
    public List<Long> getSuccess() {
54117
      return this.success;
54118
    }
54119
 
54120
    public void setSuccess(List<Long> success) {
54121
      this.success = success;
54122
    }
54123
 
54124
    public void unsetSuccess() {
54125
      this.success = null;
54126
    }
54127
 
54128
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
54129
    public boolean isSetSuccess() {
54130
      return this.success != null;
54131
    }
54132
 
54133
    public void setSuccessIsSet(boolean value) {
54134
      if (!value) {
54135
        this.success = null;
54136
      }
54137
    }
54138
 
54139
    public CatalogServiceException getCex() {
54140
      return this.cex;
54141
    }
54142
 
54143
    public void setCex(CatalogServiceException cex) {
54144
      this.cex = cex;
54145
    }
54146
 
54147
    public void unsetCex() {
54148
      this.cex = null;
54149
    }
54150
 
54151
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
54152
    public boolean isSetCex() {
54153
      return this.cex != null;
54154
    }
54155
 
54156
    public void setCexIsSet(boolean value) {
54157
      if (!value) {
54158
        this.cex = null;
54159
      }
54160
    }
54161
 
54162
    public void setFieldValue(_Fields field, Object value) {
54163
      switch (field) {
54164
      case SUCCESS:
54165
        if (value == null) {
54166
          unsetSuccess();
54167
        } else {
54168
          setSuccess((List<Long>)value);
54169
        }
54170
        break;
54171
 
54172
      case CEX:
54173
        if (value == null) {
54174
          unsetCex();
54175
        } else {
54176
          setCex((CatalogServiceException)value);
54177
        }
54178
        break;
54179
 
54180
      }
54181
    }
54182
 
54183
    public Object getFieldValue(_Fields field) {
54184
      switch (field) {
54185
      case SUCCESS:
54186
        return getSuccess();
54187
 
54188
      case CEX:
54189
        return getCex();
54190
 
54191
      }
54192
      throw new IllegalStateException();
54193
    }
54194
 
54195
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54196
    public boolean isSet(_Fields field) {
54197
      if (field == null) {
54198
        throw new IllegalArgumentException();
54199
      }
54200
 
54201
      switch (field) {
54202
      case SUCCESS:
54203
        return isSetSuccess();
54204
      case CEX:
54205
        return isSetCex();
54206
      }
54207
      throw new IllegalStateException();
54208
    }
54209
 
54210
    @Override
54211
    public boolean equals(Object that) {
54212
      if (that == null)
54213
        return false;
54214
      if (that instanceof getClearanceSaleCatalogIds_result)
54215
        return this.equals((getClearanceSaleCatalogIds_result)that);
54216
      return false;
54217
    }
54218
 
54219
    public boolean equals(getClearanceSaleCatalogIds_result that) {
54220
      if (that == null)
54221
        return false;
54222
 
54223
      boolean this_present_success = true && this.isSetSuccess();
54224
      boolean that_present_success = true && that.isSetSuccess();
54225
      if (this_present_success || that_present_success) {
54226
        if (!(this_present_success && that_present_success))
54227
          return false;
54228
        if (!this.success.equals(that.success))
54229
          return false;
54230
      }
54231
 
54232
      boolean this_present_cex = true && this.isSetCex();
54233
      boolean that_present_cex = true && that.isSetCex();
54234
      if (this_present_cex || that_present_cex) {
54235
        if (!(this_present_cex && that_present_cex))
54236
          return false;
54237
        if (!this.cex.equals(that.cex))
54238
          return false;
54239
      }
54240
 
54241
      return true;
54242
    }
54243
 
54244
    @Override
54245
    public int hashCode() {
54246
      return 0;
54247
    }
54248
 
54249
    public int compareTo(getClearanceSaleCatalogIds_result other) {
54250
      if (!getClass().equals(other.getClass())) {
54251
        return getClass().getName().compareTo(other.getClass().getName());
54252
      }
54253
 
54254
      int lastComparison = 0;
54255
      getClearanceSaleCatalogIds_result typedOther = (getClearanceSaleCatalogIds_result)other;
54256
 
54257
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
54258
      if (lastComparison != 0) {
54259
        return lastComparison;
54260
      }
54261
      if (isSetSuccess()) {
54262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54263
        if (lastComparison != 0) {
54264
          return lastComparison;
54265
        }
54266
      }
54267
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
54268
      if (lastComparison != 0) {
54269
        return lastComparison;
54270
      }
54271
      if (isSetCex()) {
54272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
54273
        if (lastComparison != 0) {
54274
          return lastComparison;
54275
        }
54276
      }
54277
      return 0;
54278
    }
54279
 
54280
    public _Fields fieldForId(int fieldId) {
54281
      return _Fields.findByThriftId(fieldId);
54282
    }
54283
 
54284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54285
      org.apache.thrift.protocol.TField field;
54286
      iprot.readStructBegin();
54287
      while (true)
54288
      {
54289
        field = iprot.readFieldBegin();
54290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54291
          break;
54292
        }
54293
        switch (field.id) {
54294
          case 0: // SUCCESS
54295
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54296
              {
6850 kshitij.so 54297
                org.apache.thrift.protocol.TList _list154 = iprot.readListBegin();
54298
                this.success = new ArrayList<Long>(_list154.size);
54299
                for (int _i155 = 0; _i155 < _list154.size; ++_i155)
5945 mandeep.dh 54300
                {
6850 kshitij.so 54301
                  long _elem156; // required
54302
                  _elem156 = iprot.readI64();
54303
                  this.success.add(_elem156);
5945 mandeep.dh 54304
                }
54305
                iprot.readListEnd();
54306
              }
54307
            } else { 
54308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54309
            }
54310
            break;
54311
          case 1: // CEX
54312
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
54313
              this.cex = new CatalogServiceException();
54314
              this.cex.read(iprot);
54315
            } else { 
54316
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54317
            }
54318
            break;
54319
          default:
54320
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54321
        }
54322
        iprot.readFieldEnd();
54323
      }
54324
      iprot.readStructEnd();
54325
      validate();
54326
    }
54327
 
54328
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54329
      oprot.writeStructBegin(STRUCT_DESC);
54330
 
54331
      if (this.isSetSuccess()) {
54332
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54333
        {
54334
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
6850 kshitij.so 54335
          for (long _iter157 : this.success)
5945 mandeep.dh 54336
          {
6850 kshitij.so 54337
            oprot.writeI64(_iter157);
5945 mandeep.dh 54338
          }
54339
          oprot.writeListEnd();
54340
        }
54341
        oprot.writeFieldEnd();
54342
      } else if (this.isSetCex()) {
54343
        oprot.writeFieldBegin(CEX_FIELD_DESC);
54344
        this.cex.write(oprot);
54345
        oprot.writeFieldEnd();
54346
      }
54347
      oprot.writeFieldStop();
54348
      oprot.writeStructEnd();
54349
    }
54350
 
54351
    @Override
54352
    public String toString() {
54353
      StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_result(");
54354
      boolean first = true;
54355
 
54356
      sb.append("success:");
54357
      if (this.success == null) {
54358
        sb.append("null");
54359
      } else {
54360
        sb.append(this.success);
54361
      }
54362
      first = false;
54363
      if (!first) sb.append(", ");
54364
      sb.append("cex:");
54365
      if (this.cex == null) {
54366
        sb.append("null");
54367
      } else {
54368
        sb.append(this.cex);
54369
      }
54370
      first = false;
54371
      sb.append(")");
54372
      return sb.toString();
54373
    }
54374
 
54375
    public void validate() throws org.apache.thrift.TException {
54376
      // check for required fields
54377
    }
54378
 
54379
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54380
      try {
54381
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54382
      } catch (org.apache.thrift.TException te) {
54383
        throw new java.io.IOException(te);
54384
      }
54385
    }
54386
 
54387
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54388
      try {
54389
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54390
      } catch (org.apache.thrift.TException te) {
54391
        throw new java.io.IOException(te);
54392
      }
54393
    }
54394
 
54395
  }
54396
 
54397
  public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
54398
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");
54399
 
54400
    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);
54401
    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);
54402
    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);
54403
 
54404
    private long catalog_item_id; // required
54405
    private long voucherType; // required
54406
    private long voucherAmount; // required
54407
 
54408
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54409
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54410
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
54411
      VOUCHER_TYPE((short)2, "voucherType"),
54412
      VOUCHER_AMOUNT((short)3, "voucherAmount");
54413
 
54414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54415
 
54416
      static {
54417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54418
          byName.put(field.getFieldName(), field);
54419
        }
54420
      }
54421
 
54422
      /**
54423
       * Find the _Fields constant that matches fieldId, or null if its not found.
54424
       */
54425
      public static _Fields findByThriftId(int fieldId) {
54426
        switch(fieldId) {
54427
          case 1: // CATALOG_ITEM_ID
54428
            return CATALOG_ITEM_ID;
54429
          case 2: // VOUCHER_TYPE
54430
            return VOUCHER_TYPE;
54431
          case 3: // VOUCHER_AMOUNT
54432
            return VOUCHER_AMOUNT;
54433
          default:
54434
            return null;
54435
        }
54436
      }
54437
 
54438
      /**
54439
       * Find the _Fields constant that matches fieldId, throwing an exception
54440
       * if it is not found.
54441
       */
54442
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54443
        _Fields fields = findByThriftId(fieldId);
54444
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54445
        return fields;
54446
      }
54447
 
54448
      /**
54449
       * Find the _Fields constant that matches name, or null if its not found.
54450
       */
54451
      public static _Fields findByName(String name) {
54452
        return byName.get(name);
54453
      }
54454
 
54455
      private final short _thriftId;
54456
      private final String _fieldName;
54457
 
54458
      _Fields(short thriftId, String fieldName) {
54459
        _thriftId = thriftId;
54460
        _fieldName = fieldName;
54461
      }
54462
 
54463
      public short getThriftFieldId() {
54464
        return _thriftId;
54465
      }
54466
 
54467
      public String getFieldName() {
54468
        return _fieldName;
54469
      }
54470
    }
54471
 
54472
    // isset id assignments
54473
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
54474
    private static final int __VOUCHERTYPE_ISSET_ID = 1;
54475
    private static final int __VOUCHERAMOUNT_ISSET_ID = 2;
54476
    private BitSet __isset_bit_vector = new BitSet(3);
54477
 
54478
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54479
    static {
54480
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54481
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54482
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54483
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54484
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54485
      tmpMap.put(_Fields.VOUCHER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("voucherAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54487
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54488
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_args.class, metaDataMap);
54489
    }
54490
 
54491
    public addupdateVoucherForItem_args() {
54492
    }
54493
 
54494
    public addupdateVoucherForItem_args(
54495
      long catalog_item_id,
54496
      long voucherType,
54497
      long voucherAmount)
54498
    {
54499
      this();
54500
      this.catalog_item_id = catalog_item_id;
54501
      setCatalog_item_idIsSet(true);
54502
      this.voucherType = voucherType;
54503
      setVoucherTypeIsSet(true);
54504
      this.voucherAmount = voucherAmount;
54505
      setVoucherAmountIsSet(true);
54506
    }
54507
 
54508
    /**
54509
     * Performs a deep copy on <i>other</i>.
54510
     */
54511
    public addupdateVoucherForItem_args(addupdateVoucherForItem_args other) {
54512
      __isset_bit_vector.clear();
54513
      __isset_bit_vector.or(other.__isset_bit_vector);
54514
      this.catalog_item_id = other.catalog_item_id;
54515
      this.voucherType = other.voucherType;
54516
      this.voucherAmount = other.voucherAmount;
54517
    }
54518
 
54519
    public addupdateVoucherForItem_args deepCopy() {
54520
      return new addupdateVoucherForItem_args(this);
54521
    }
54522
 
54523
    @Override
54524
    public void clear() {
54525
      setCatalog_item_idIsSet(false);
54526
      this.catalog_item_id = 0;
54527
      setVoucherTypeIsSet(false);
54528
      this.voucherType = 0;
54529
      setVoucherAmountIsSet(false);
54530
      this.voucherAmount = 0;
54531
    }
54532
 
54533
    public long getCatalog_item_id() {
54534
      return this.catalog_item_id;
54535
    }
54536
 
54537
    public void setCatalog_item_id(long catalog_item_id) {
54538
      this.catalog_item_id = catalog_item_id;
54539
      setCatalog_item_idIsSet(true);
54540
    }
54541
 
54542
    public void unsetCatalog_item_id() {
54543
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
54544
    }
54545
 
54546
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
54547
    public boolean isSetCatalog_item_id() {
54548
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
54549
    }
54550
 
54551
    public void setCatalog_item_idIsSet(boolean value) {
54552
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
54553
    }
54554
 
54555
    public long getVoucherType() {
54556
      return this.voucherType;
54557
    }
54558
 
54559
    public void setVoucherType(long voucherType) {
54560
      this.voucherType = voucherType;
54561
      setVoucherTypeIsSet(true);
54562
    }
54563
 
54564
    public void unsetVoucherType() {
54565
      __isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);
54566
    }
54567
 
54568
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
54569
    public boolean isSetVoucherType() {
54570
      return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);
54571
    }
54572
 
54573
    public void setVoucherTypeIsSet(boolean value) {
54574
      __isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);
54575
    }
54576
 
54577
    public long getVoucherAmount() {
54578
      return this.voucherAmount;
54579
    }
54580
 
54581
    public void setVoucherAmount(long voucherAmount) {
54582
      this.voucherAmount = voucherAmount;
54583
      setVoucherAmountIsSet(true);
54584
    }
54585
 
54586
    public void unsetVoucherAmount() {
54587
      __isset_bit_vector.clear(__VOUCHERAMOUNT_ISSET_ID);
54588
    }
54589
 
54590
    /** Returns true if field voucherAmount is set (has been assigned a value) and false otherwise */
54591
    public boolean isSetVoucherAmount() {
54592
      return __isset_bit_vector.get(__VOUCHERAMOUNT_ISSET_ID);
54593
    }
54594
 
54595
    public void setVoucherAmountIsSet(boolean value) {
54596
      __isset_bit_vector.set(__VOUCHERAMOUNT_ISSET_ID, value);
54597
    }
54598
 
54599
    public void setFieldValue(_Fields field, Object value) {
54600
      switch (field) {
54601
      case CATALOG_ITEM_ID:
54602
        if (value == null) {
54603
          unsetCatalog_item_id();
54604
        } else {
54605
          setCatalog_item_id((Long)value);
54606
        }
54607
        break;
54608
 
54609
      case VOUCHER_TYPE:
54610
        if (value == null) {
54611
          unsetVoucherType();
54612
        } else {
54613
          setVoucherType((Long)value);
54614
        }
54615
        break;
54616
 
54617
      case VOUCHER_AMOUNT:
54618
        if (value == null) {
54619
          unsetVoucherAmount();
54620
        } else {
54621
          setVoucherAmount((Long)value);
54622
        }
54623
        break;
54624
 
54625
      }
54626
    }
54627
 
54628
    public Object getFieldValue(_Fields field) {
54629
      switch (field) {
54630
      case CATALOG_ITEM_ID:
54631
        return Long.valueOf(getCatalog_item_id());
54632
 
54633
      case VOUCHER_TYPE:
54634
        return Long.valueOf(getVoucherType());
54635
 
54636
      case VOUCHER_AMOUNT:
54637
        return Long.valueOf(getVoucherAmount());
54638
 
54639
      }
54640
      throw new IllegalStateException();
54641
    }
54642
 
54643
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54644
    public boolean isSet(_Fields field) {
54645
      if (field == null) {
54646
        throw new IllegalArgumentException();
54647
      }
54648
 
54649
      switch (field) {
54650
      case CATALOG_ITEM_ID:
54651
        return isSetCatalog_item_id();
54652
      case VOUCHER_TYPE:
54653
        return isSetVoucherType();
54654
      case VOUCHER_AMOUNT:
54655
        return isSetVoucherAmount();
54656
      }
54657
      throw new IllegalStateException();
54658
    }
54659
 
54660
    @Override
54661
    public boolean equals(Object that) {
54662
      if (that == null)
54663
        return false;
54664
      if (that instanceof addupdateVoucherForItem_args)
54665
        return this.equals((addupdateVoucherForItem_args)that);
54666
      return false;
54667
    }
54668
 
54669
    public boolean equals(addupdateVoucherForItem_args that) {
54670
      if (that == null)
54671
        return false;
54672
 
54673
      boolean this_present_catalog_item_id = true;
54674
      boolean that_present_catalog_item_id = true;
54675
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
54676
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
54677
          return false;
54678
        if (this.catalog_item_id != that.catalog_item_id)
54679
          return false;
54680
      }
54681
 
54682
      boolean this_present_voucherType = true;
54683
      boolean that_present_voucherType = true;
54684
      if (this_present_voucherType || that_present_voucherType) {
54685
        if (!(this_present_voucherType && that_present_voucherType))
54686
          return false;
54687
        if (this.voucherType != that.voucherType)
54688
          return false;
54689
      }
54690
 
54691
      boolean this_present_voucherAmount = true;
54692
      boolean that_present_voucherAmount = true;
54693
      if (this_present_voucherAmount || that_present_voucherAmount) {
54694
        if (!(this_present_voucherAmount && that_present_voucherAmount))
54695
          return false;
54696
        if (this.voucherAmount != that.voucherAmount)
54697
          return false;
54698
      }
54699
 
54700
      return true;
54701
    }
54702
 
54703
    @Override
54704
    public int hashCode() {
54705
      return 0;
54706
    }
54707
 
54708
    public int compareTo(addupdateVoucherForItem_args other) {
54709
      if (!getClass().equals(other.getClass())) {
54710
        return getClass().getName().compareTo(other.getClass().getName());
54711
      }
54712
 
54713
      int lastComparison = 0;
54714
      addupdateVoucherForItem_args typedOther = (addupdateVoucherForItem_args)other;
54715
 
54716
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
54717
      if (lastComparison != 0) {
54718
        return lastComparison;
54719
      }
54720
      if (isSetCatalog_item_id()) {
54721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
54722
        if (lastComparison != 0) {
54723
          return lastComparison;
54724
        }
54725
      }
54726
      lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());
54727
      if (lastComparison != 0) {
54728
        return lastComparison;
54729
      }
54730
      if (isSetVoucherType()) {
54731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);
54732
        if (lastComparison != 0) {
54733
          return lastComparison;
54734
        }
54735
      }
54736
      lastComparison = Boolean.valueOf(isSetVoucherAmount()).compareTo(typedOther.isSetVoucherAmount());
54737
      if (lastComparison != 0) {
54738
        return lastComparison;
54739
      }
54740
      if (isSetVoucherAmount()) {
54741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherAmount, typedOther.voucherAmount);
54742
        if (lastComparison != 0) {
54743
          return lastComparison;
54744
        }
54745
      }
54746
      return 0;
54747
    }
54748
 
54749
    public _Fields fieldForId(int fieldId) {
54750
      return _Fields.findByThriftId(fieldId);
54751
    }
54752
 
54753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54754
      org.apache.thrift.protocol.TField field;
54755
      iprot.readStructBegin();
54756
      while (true)
54757
      {
54758
        field = iprot.readFieldBegin();
54759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54760
          break;
54761
        }
54762
        switch (field.id) {
54763
          case 1: // CATALOG_ITEM_ID
54764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54765
              this.catalog_item_id = iprot.readI64();
54766
              setCatalog_item_idIsSet(true);
54767
            } else { 
54768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54769
            }
54770
            break;
54771
          case 2: // VOUCHER_TYPE
54772
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54773
              this.voucherType = iprot.readI64();
54774
              setVoucherTypeIsSet(true);
54775
            } else { 
54776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54777
            }
54778
            break;
54779
          case 3: // VOUCHER_AMOUNT
54780
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54781
              this.voucherAmount = iprot.readI64();
54782
              setVoucherAmountIsSet(true);
54783
            } else { 
54784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54785
            }
54786
            break;
54787
          default:
54788
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54789
        }
54790
        iprot.readFieldEnd();
54791
      }
54792
      iprot.readStructEnd();
54793
      validate();
54794
    }
54795
 
54796
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54797
      validate();
54798
 
54799
      oprot.writeStructBegin(STRUCT_DESC);
54800
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
54801
      oprot.writeI64(this.catalog_item_id);
54802
      oprot.writeFieldEnd();
54803
      oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
54804
      oprot.writeI64(this.voucherType);
54805
      oprot.writeFieldEnd();
54806
      oprot.writeFieldBegin(VOUCHER_AMOUNT_FIELD_DESC);
54807
      oprot.writeI64(this.voucherAmount);
54808
      oprot.writeFieldEnd();
54809
      oprot.writeFieldStop();
54810
      oprot.writeStructEnd();
54811
    }
54812
 
54813
    @Override
54814
    public String toString() {
54815
      StringBuilder sb = new StringBuilder("addupdateVoucherForItem_args(");
54816
      boolean first = true;
54817
 
54818
      sb.append("catalog_item_id:");
54819
      sb.append(this.catalog_item_id);
54820
      first = false;
54821
      if (!first) sb.append(", ");
54822
      sb.append("voucherType:");
54823
      sb.append(this.voucherType);
54824
      first = false;
54825
      if (!first) sb.append(", ");
54826
      sb.append("voucherAmount:");
54827
      sb.append(this.voucherAmount);
54828
      first = false;
54829
      sb.append(")");
54830
      return sb.toString();
54831
    }
54832
 
54833
    public void validate() throws org.apache.thrift.TException {
54834
      // check for required fields
54835
    }
54836
 
54837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54838
      try {
54839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54840
      } catch (org.apache.thrift.TException te) {
54841
        throw new java.io.IOException(te);
54842
      }
54843
    }
54844
 
54845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54846
      try {
6850 kshitij.so 54847
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
54848
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 54849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54850
      } catch (org.apache.thrift.TException te) {
54851
        throw new java.io.IOException(te);
54852
      }
54853
    }
54854
 
54855
  }
54856
 
54857
  public static class addupdateVoucherForItem_result implements org.apache.thrift.TBase<addupdateVoucherForItem_result, addupdateVoucherForItem_result._Fields>, java.io.Serializable, Cloneable   {
54858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_result");
54859
 
54860
    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);
54861
    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);
54862
 
54863
    private boolean success; // required
54864
    private CatalogServiceException cex; // required
54865
 
54866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54868
      SUCCESS((short)0, "success"),
54869
      CEX((short)1, "cex");
54870
 
54871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54872
 
54873
      static {
54874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54875
          byName.put(field.getFieldName(), field);
54876
        }
54877
      }
54878
 
54879
      /**
54880
       * Find the _Fields constant that matches fieldId, or null if its not found.
54881
       */
54882
      public static _Fields findByThriftId(int fieldId) {
54883
        switch(fieldId) {
54884
          case 0: // SUCCESS
54885
            return SUCCESS;
54886
          case 1: // CEX
54887
            return CEX;
54888
          default:
54889
            return null;
54890
        }
54891
      }
54892
 
54893
      /**
54894
       * Find the _Fields constant that matches fieldId, throwing an exception
54895
       * if it is not found.
54896
       */
54897
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54898
        _Fields fields = findByThriftId(fieldId);
54899
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54900
        return fields;
54901
      }
54902
 
54903
      /**
54904
       * Find the _Fields constant that matches name, or null if its not found.
54905
       */
54906
      public static _Fields findByName(String name) {
54907
        return byName.get(name);
54908
      }
54909
 
54910
      private final short _thriftId;
54911
      private final String _fieldName;
54912
 
54913
      _Fields(short thriftId, String fieldName) {
54914
        _thriftId = thriftId;
54915
        _fieldName = fieldName;
54916
      }
54917
 
54918
      public short getThriftFieldId() {
54919
        return _thriftId;
54920
      }
54921
 
54922
      public String getFieldName() {
54923
        return _fieldName;
54924
      }
54925
    }
54926
 
54927
    // isset id assignments
54928
    private static final int __SUCCESS_ISSET_ID = 0;
54929
    private BitSet __isset_bit_vector = new BitSet(1);
54930
 
54931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54932
    static {
54933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54934
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
54936
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
54938
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54939
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_result.class, metaDataMap);
54940
    }
54941
 
54942
    public addupdateVoucherForItem_result() {
54943
    }
54944
 
54945
    public addupdateVoucherForItem_result(
54946
      boolean success,
54947
      CatalogServiceException cex)
54948
    {
54949
      this();
54950
      this.success = success;
54951
      setSuccessIsSet(true);
54952
      this.cex = cex;
54953
    }
54954
 
54955
    /**
54956
     * Performs a deep copy on <i>other</i>.
54957
     */
54958
    public addupdateVoucherForItem_result(addupdateVoucherForItem_result other) {
54959
      __isset_bit_vector.clear();
54960
      __isset_bit_vector.or(other.__isset_bit_vector);
54961
      this.success = other.success;
54962
      if (other.isSetCex()) {
54963
        this.cex = new CatalogServiceException(other.cex);
54964
      }
54965
    }
54966
 
54967
    public addupdateVoucherForItem_result deepCopy() {
54968
      return new addupdateVoucherForItem_result(this);
54969
    }
54970
 
54971
    @Override
54972
    public void clear() {
54973
      setSuccessIsSet(false);
54974
      this.success = false;
54975
      this.cex = null;
54976
    }
54977
 
54978
    public boolean isSuccess() {
54979
      return this.success;
54980
    }
54981
 
54982
    public void setSuccess(boolean success) {
54983
      this.success = success;
54984
      setSuccessIsSet(true);
54985
    }
54986
 
54987
    public void unsetSuccess() {
54988
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
54989
    }
54990
 
54991
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
54992
    public boolean isSetSuccess() {
54993
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
54994
    }
54995
 
54996
    public void setSuccessIsSet(boolean value) {
54997
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
54998
    }
54999
 
55000
    public CatalogServiceException getCex() {
55001
      return this.cex;
55002
    }
55003
 
55004
    public void setCex(CatalogServiceException cex) {
55005
      this.cex = cex;
55006
    }
55007
 
55008
    public void unsetCex() {
55009
      this.cex = null;
55010
    }
55011
 
55012
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
55013
    public boolean isSetCex() {
55014
      return this.cex != null;
55015
    }
55016
 
55017
    public void setCexIsSet(boolean value) {
55018
      if (!value) {
55019
        this.cex = null;
55020
      }
55021
    }
55022
 
55023
    public void setFieldValue(_Fields field, Object value) {
55024
      switch (field) {
55025
      case SUCCESS:
55026
        if (value == null) {
55027
          unsetSuccess();
55028
        } else {
55029
          setSuccess((Boolean)value);
55030
        }
55031
        break;
55032
 
55033
      case CEX:
55034
        if (value == null) {
55035
          unsetCex();
55036
        } else {
55037
          setCex((CatalogServiceException)value);
55038
        }
55039
        break;
55040
 
55041
      }
55042
    }
55043
 
55044
    public Object getFieldValue(_Fields field) {
55045
      switch (field) {
55046
      case SUCCESS:
55047
        return Boolean.valueOf(isSuccess());
55048
 
55049
      case CEX:
55050
        return getCex();
55051
 
55052
      }
55053
      throw new IllegalStateException();
55054
    }
55055
 
55056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55057
    public boolean isSet(_Fields field) {
55058
      if (field == null) {
55059
        throw new IllegalArgumentException();
55060
      }
55061
 
55062
      switch (field) {
55063
      case SUCCESS:
55064
        return isSetSuccess();
55065
      case CEX:
55066
        return isSetCex();
55067
      }
55068
      throw new IllegalStateException();
55069
    }
55070
 
55071
    @Override
55072
    public boolean equals(Object that) {
55073
      if (that == null)
55074
        return false;
55075
      if (that instanceof addupdateVoucherForItem_result)
55076
        return this.equals((addupdateVoucherForItem_result)that);
55077
      return false;
55078
    }
55079
 
55080
    public boolean equals(addupdateVoucherForItem_result that) {
55081
      if (that == null)
55082
        return false;
55083
 
55084
      boolean this_present_success = true;
55085
      boolean that_present_success = true;
55086
      if (this_present_success || that_present_success) {
55087
        if (!(this_present_success && that_present_success))
55088
          return false;
55089
        if (this.success != that.success)
55090
          return false;
55091
      }
55092
 
55093
      boolean this_present_cex = true && this.isSetCex();
55094
      boolean that_present_cex = true && that.isSetCex();
55095
      if (this_present_cex || that_present_cex) {
55096
        if (!(this_present_cex && that_present_cex))
55097
          return false;
55098
        if (!this.cex.equals(that.cex))
55099
          return false;
55100
      }
55101
 
55102
      return true;
55103
    }
55104
 
55105
    @Override
55106
    public int hashCode() {
55107
      return 0;
55108
    }
55109
 
55110
    public int compareTo(addupdateVoucherForItem_result other) {
55111
      if (!getClass().equals(other.getClass())) {
55112
        return getClass().getName().compareTo(other.getClass().getName());
55113
      }
55114
 
55115
      int lastComparison = 0;
55116
      addupdateVoucherForItem_result typedOther = (addupdateVoucherForItem_result)other;
55117
 
55118
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
55119
      if (lastComparison != 0) {
55120
        return lastComparison;
55121
      }
55122
      if (isSetSuccess()) {
55123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55124
        if (lastComparison != 0) {
55125
          return lastComparison;
55126
        }
55127
      }
55128
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
55129
      if (lastComparison != 0) {
55130
        return lastComparison;
55131
      }
55132
      if (isSetCex()) {
55133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
55134
        if (lastComparison != 0) {
55135
          return lastComparison;
55136
        }
55137
      }
55138
      return 0;
55139
    }
55140
 
55141
    public _Fields fieldForId(int fieldId) {
55142
      return _Fields.findByThriftId(fieldId);
55143
    }
55144
 
55145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55146
      org.apache.thrift.protocol.TField field;
55147
      iprot.readStructBegin();
55148
      while (true)
55149
      {
55150
        field = iprot.readFieldBegin();
55151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55152
          break;
55153
        }
55154
        switch (field.id) {
55155
          case 0: // SUCCESS
55156
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
55157
              this.success = iprot.readBool();
55158
              setSuccessIsSet(true);
55159
            } else { 
55160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55161
            }
55162
            break;
55163
          case 1: // CEX
55164
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
55165
              this.cex = new CatalogServiceException();
55166
              this.cex.read(iprot);
55167
            } else { 
55168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55169
            }
55170
            break;
55171
          default:
55172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55173
        }
55174
        iprot.readFieldEnd();
55175
      }
55176
      iprot.readStructEnd();
55177
      validate();
55178
    }
55179
 
55180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55181
      oprot.writeStructBegin(STRUCT_DESC);
55182
 
55183
      if (this.isSetSuccess()) {
55184
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55185
        oprot.writeBool(this.success);
55186
        oprot.writeFieldEnd();
55187
      } else if (this.isSetCex()) {
55188
        oprot.writeFieldBegin(CEX_FIELD_DESC);
55189
        this.cex.write(oprot);
55190
        oprot.writeFieldEnd();
55191
      }
55192
      oprot.writeFieldStop();
55193
      oprot.writeStructEnd();
55194
    }
55195
 
55196
    @Override
55197
    public String toString() {
55198
      StringBuilder sb = new StringBuilder("addupdateVoucherForItem_result(");
55199
      boolean first = true;
55200
 
55201
      sb.append("success:");
55202
      sb.append(this.success);
55203
      first = false;
55204
      if (!first) sb.append(", ");
55205
      sb.append("cex:");
55206
      if (this.cex == null) {
55207
        sb.append("null");
55208
      } else {
55209
        sb.append(this.cex);
55210
      }
55211
      first = false;
55212
      sb.append(")");
55213
      return sb.toString();
55214
    }
55215
 
55216
    public void validate() throws org.apache.thrift.TException {
55217
      // check for required fields
55218
    }
55219
 
55220
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55221
      try {
55222
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55223
      } catch (org.apache.thrift.TException te) {
55224
        throw new java.io.IOException(te);
55225
      }
55226
    }
55227
 
55228
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55229
      try {
55230
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55231
      } catch (org.apache.thrift.TException te) {
55232
        throw new java.io.IOException(te);
55233
      }
55234
    }
55235
 
55236
  }
55237
 
55238
  public static class deleteVoucherForItem_args implements org.apache.thrift.TBase<deleteVoucherForItem_args, deleteVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
55239
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_args");
55240
 
55241
    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);
55242
    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);
55243
 
55244
    private long catalog_item_id; // required
55245
    private long voucherType; // required
55246
 
55247
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55248
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55249
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
55250
      VOUCHER_TYPE((short)2, "voucherType");
55251
 
55252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55253
 
55254
      static {
55255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55256
          byName.put(field.getFieldName(), field);
55257
        }
55258
      }
55259
 
55260
      /**
55261
       * Find the _Fields constant that matches fieldId, or null if its not found.
55262
       */
55263
      public static _Fields findByThriftId(int fieldId) {
55264
        switch(fieldId) {
55265
          case 1: // CATALOG_ITEM_ID
55266
            return CATALOG_ITEM_ID;
55267
          case 2: // VOUCHER_TYPE
55268
            return VOUCHER_TYPE;
55269
          default:
55270
            return null;
55271
        }
55272
      }
55273
 
55274
      /**
55275
       * Find the _Fields constant that matches fieldId, throwing an exception
55276
       * if it is not found.
55277
       */
55278
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55279
        _Fields fields = findByThriftId(fieldId);
55280
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55281
        return fields;
55282
      }
55283
 
55284
      /**
55285
       * Find the _Fields constant that matches name, or null if its not found.
55286
       */
55287
      public static _Fields findByName(String name) {
55288
        return byName.get(name);
55289
      }
55290
 
55291
      private final short _thriftId;
55292
      private final String _fieldName;
55293
 
55294
      _Fields(short thriftId, String fieldName) {
55295
        _thriftId = thriftId;
55296
        _fieldName = fieldName;
55297
      }
55298
 
55299
      public short getThriftFieldId() {
55300
        return _thriftId;
55301
      }
55302
 
55303
      public String getFieldName() {
55304
        return _fieldName;
55305
      }
55306
    }
55307
 
55308
    // isset id assignments
55309
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
55310
    private static final int __VOUCHERTYPE_ISSET_ID = 1;
55311
    private BitSet __isset_bit_vector = new BitSet(2);
55312
 
55313
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55314
    static {
55315
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55316
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55317
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55318
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_args.class, metaDataMap);
55322
    }
55323
 
55324
    public deleteVoucherForItem_args() {
55325
    }
55326
 
55327
    public deleteVoucherForItem_args(
55328
      long catalog_item_id,
55329
      long voucherType)
55330
    {
55331
      this();
55332
      this.catalog_item_id = catalog_item_id;
55333
      setCatalog_item_idIsSet(true);
55334
      this.voucherType = voucherType;
55335
      setVoucherTypeIsSet(true);
55336
    }
55337
 
55338
    /**
55339
     * Performs a deep copy on <i>other</i>.
55340
     */
55341
    public deleteVoucherForItem_args(deleteVoucherForItem_args other) {
55342
      __isset_bit_vector.clear();
55343
      __isset_bit_vector.or(other.__isset_bit_vector);
55344
      this.catalog_item_id = other.catalog_item_id;
55345
      this.voucherType = other.voucherType;
55346
    }
55347
 
55348
    public deleteVoucherForItem_args deepCopy() {
55349
      return new deleteVoucherForItem_args(this);
55350
    }
55351
 
55352
    @Override
55353
    public void clear() {
55354
      setCatalog_item_idIsSet(false);
55355
      this.catalog_item_id = 0;
55356
      setVoucherTypeIsSet(false);
55357
      this.voucherType = 0;
55358
    }
55359
 
55360
    public long getCatalog_item_id() {
55361
      return this.catalog_item_id;
55362
    }
55363
 
55364
    public void setCatalog_item_id(long catalog_item_id) {
55365
      this.catalog_item_id = catalog_item_id;
55366
      setCatalog_item_idIsSet(true);
55367
    }
55368
 
55369
    public void unsetCatalog_item_id() {
55370
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
55371
    }
55372
 
55373
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
55374
    public boolean isSetCatalog_item_id() {
55375
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
55376
    }
55377
 
55378
    public void setCatalog_item_idIsSet(boolean value) {
55379
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
55380
    }
55381
 
55382
    public long getVoucherType() {
55383
      return this.voucherType;
55384
    }
55385
 
55386
    public void setVoucherType(long voucherType) {
55387
      this.voucherType = voucherType;
55388
      setVoucherTypeIsSet(true);
55389
    }
55390
 
55391
    public void unsetVoucherType() {
55392
      __isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);
55393
    }
55394
 
55395
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
55396
    public boolean isSetVoucherType() {
55397
      return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);
55398
    }
55399
 
55400
    public void setVoucherTypeIsSet(boolean value) {
55401
      __isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);
55402
    }
55403
 
55404
    public void setFieldValue(_Fields field, Object value) {
55405
      switch (field) {
55406
      case CATALOG_ITEM_ID:
55407
        if (value == null) {
55408
          unsetCatalog_item_id();
55409
        } else {
55410
          setCatalog_item_id((Long)value);
55411
        }
55412
        break;
55413
 
55414
      case VOUCHER_TYPE:
55415
        if (value == null) {
55416
          unsetVoucherType();
55417
        } else {
55418
          setVoucherType((Long)value);
55419
        }
55420
        break;
55421
 
55422
      }
55423
    }
55424
 
55425
    public Object getFieldValue(_Fields field) {
55426
      switch (field) {
55427
      case CATALOG_ITEM_ID:
55428
        return Long.valueOf(getCatalog_item_id());
55429
 
55430
      case VOUCHER_TYPE:
55431
        return Long.valueOf(getVoucherType());
55432
 
55433
      }
55434
      throw new IllegalStateException();
55435
    }
55436
 
55437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55438
    public boolean isSet(_Fields field) {
55439
      if (field == null) {
55440
        throw new IllegalArgumentException();
55441
      }
55442
 
55443
      switch (field) {
55444
      case CATALOG_ITEM_ID:
55445
        return isSetCatalog_item_id();
55446
      case VOUCHER_TYPE:
55447
        return isSetVoucherType();
55448
      }
55449
      throw new IllegalStateException();
55450
    }
55451
 
55452
    @Override
55453
    public boolean equals(Object that) {
55454
      if (that == null)
55455
        return false;
55456
      if (that instanceof deleteVoucherForItem_args)
55457
        return this.equals((deleteVoucherForItem_args)that);
55458
      return false;
55459
    }
55460
 
55461
    public boolean equals(deleteVoucherForItem_args that) {
55462
      if (that == null)
55463
        return false;
55464
 
55465
      boolean this_present_catalog_item_id = true;
55466
      boolean that_present_catalog_item_id = true;
55467
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
55468
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
55469
          return false;
55470
        if (this.catalog_item_id != that.catalog_item_id)
55471
          return false;
55472
      }
55473
 
55474
      boolean this_present_voucherType = true;
55475
      boolean that_present_voucherType = true;
55476
      if (this_present_voucherType || that_present_voucherType) {
55477
        if (!(this_present_voucherType && that_present_voucherType))
55478
          return false;
55479
        if (this.voucherType != that.voucherType)
55480
          return false;
55481
      }
55482
 
55483
      return true;
55484
    }
55485
 
55486
    @Override
55487
    public int hashCode() {
55488
      return 0;
55489
    }
55490
 
55491
    public int compareTo(deleteVoucherForItem_args other) {
55492
      if (!getClass().equals(other.getClass())) {
55493
        return getClass().getName().compareTo(other.getClass().getName());
55494
      }
55495
 
55496
      int lastComparison = 0;
55497
      deleteVoucherForItem_args typedOther = (deleteVoucherForItem_args)other;
55498
 
55499
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
55500
      if (lastComparison != 0) {
55501
        return lastComparison;
55502
      }
55503
      if (isSetCatalog_item_id()) {
55504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
55505
        if (lastComparison != 0) {
55506
          return lastComparison;
55507
        }
55508
      }
55509
      lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());
55510
      if (lastComparison != 0) {
55511
        return lastComparison;
55512
      }
55513
      if (isSetVoucherType()) {
55514
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);
55515
        if (lastComparison != 0) {
55516
          return lastComparison;
55517
        }
55518
      }
55519
      return 0;
55520
    }
55521
 
55522
    public _Fields fieldForId(int fieldId) {
55523
      return _Fields.findByThriftId(fieldId);
55524
    }
55525
 
55526
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55527
      org.apache.thrift.protocol.TField field;
55528
      iprot.readStructBegin();
55529
      while (true)
55530
      {
55531
        field = iprot.readFieldBegin();
55532
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55533
          break;
55534
        }
55535
        switch (field.id) {
55536
          case 1: // CATALOG_ITEM_ID
55537
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55538
              this.catalog_item_id = iprot.readI64();
55539
              setCatalog_item_idIsSet(true);
55540
            } else { 
55541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55542
            }
55543
            break;
55544
          case 2: // VOUCHER_TYPE
55545
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55546
              this.voucherType = iprot.readI64();
55547
              setVoucherTypeIsSet(true);
55548
            } else { 
55549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55550
            }
55551
            break;
55552
          default:
55553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55554
        }
55555
        iprot.readFieldEnd();
55556
      }
55557
      iprot.readStructEnd();
55558
      validate();
55559
    }
55560
 
55561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55562
      validate();
55563
 
55564
      oprot.writeStructBegin(STRUCT_DESC);
55565
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
55566
      oprot.writeI64(this.catalog_item_id);
55567
      oprot.writeFieldEnd();
55568
      oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
55569
      oprot.writeI64(this.voucherType);
55570
      oprot.writeFieldEnd();
55571
      oprot.writeFieldStop();
55572
      oprot.writeStructEnd();
55573
    }
55574
 
55575
    @Override
55576
    public String toString() {
55577
      StringBuilder sb = new StringBuilder("deleteVoucherForItem_args(");
55578
      boolean first = true;
55579
 
55580
      sb.append("catalog_item_id:");
55581
      sb.append(this.catalog_item_id);
55582
      first = false;
55583
      if (!first) sb.append(", ");
55584
      sb.append("voucherType:");
55585
      sb.append(this.voucherType);
55586
      first = false;
55587
      sb.append(")");
55588
      return sb.toString();
55589
    }
55590
 
55591
    public void validate() throws org.apache.thrift.TException {
55592
      // check for required fields
55593
    }
55594
 
55595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55596
      try {
55597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55598
      } catch (org.apache.thrift.TException te) {
55599
        throw new java.io.IOException(te);
55600
      }
55601
    }
55602
 
55603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55604
      try {
55605
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
55606
        __isset_bit_vector = new BitSet(1);
55607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55608
      } catch (org.apache.thrift.TException te) {
55609
        throw new java.io.IOException(te);
55610
      }
55611
    }
55612
 
55613
  }
55614
 
55615
  public static class deleteVoucherForItem_result implements org.apache.thrift.TBase<deleteVoucherForItem_result, deleteVoucherForItem_result._Fields>, java.io.Serializable, Cloneable   {
55616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_result");
55617
 
55618
    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);
55619
    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);
55620
 
55621
    private boolean success; // required
55622
    private CatalogServiceException cex; // required
55623
 
55624
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55625
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55626
      SUCCESS((short)0, "success"),
55627
      CEX((short)1, "cex");
55628
 
55629
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55630
 
55631
      static {
55632
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55633
          byName.put(field.getFieldName(), field);
55634
        }
55635
      }
55636
 
55637
      /**
55638
       * Find the _Fields constant that matches fieldId, or null if its not found.
55639
       */
55640
      public static _Fields findByThriftId(int fieldId) {
55641
        switch(fieldId) {
55642
          case 0: // SUCCESS
55643
            return SUCCESS;
55644
          case 1: // CEX
55645
            return CEX;
55646
          default:
55647
            return null;
55648
        }
55649
      }
55650
 
55651
      /**
55652
       * Find the _Fields constant that matches fieldId, throwing an exception
55653
       * if it is not found.
55654
       */
55655
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55656
        _Fields fields = findByThriftId(fieldId);
55657
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55658
        return fields;
55659
      }
55660
 
55661
      /**
55662
       * Find the _Fields constant that matches name, or null if its not found.
55663
       */
55664
      public static _Fields findByName(String name) {
55665
        return byName.get(name);
55666
      }
55667
 
55668
      private final short _thriftId;
55669
      private final String _fieldName;
55670
 
55671
      _Fields(short thriftId, String fieldName) {
55672
        _thriftId = thriftId;
55673
        _fieldName = fieldName;
55674
      }
55675
 
55676
      public short getThriftFieldId() {
55677
        return _thriftId;
55678
      }
55679
 
55680
      public String getFieldName() {
55681
        return _fieldName;
55682
      }
55683
    }
55684
 
55685
    // isset id assignments
55686
    private static final int __SUCCESS_ISSET_ID = 0;
55687
    private BitSet __isset_bit_vector = new BitSet(1);
55688
 
55689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55690
    static {
55691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55692
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
55694
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
55696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_result.class, metaDataMap);
55698
    }
55699
 
55700
    public deleteVoucherForItem_result() {
55701
    }
55702
 
55703
    public deleteVoucherForItem_result(
55704
      boolean success,
55705
      CatalogServiceException cex)
55706
    {
55707
      this();
55708
      this.success = success;
55709
      setSuccessIsSet(true);
55710
      this.cex = cex;
55711
    }
55712
 
55713
    /**
55714
     * Performs a deep copy on <i>other</i>.
55715
     */
55716
    public deleteVoucherForItem_result(deleteVoucherForItem_result other) {
55717
      __isset_bit_vector.clear();
55718
      __isset_bit_vector.or(other.__isset_bit_vector);
55719
      this.success = other.success;
55720
      if (other.isSetCex()) {
55721
        this.cex = new CatalogServiceException(other.cex);
55722
      }
55723
    }
55724
 
55725
    public deleteVoucherForItem_result deepCopy() {
55726
      return new deleteVoucherForItem_result(this);
55727
    }
55728
 
55729
    @Override
55730
    public void clear() {
55731
      setSuccessIsSet(false);
55732
      this.success = false;
55733
      this.cex = null;
55734
    }
55735
 
55736
    public boolean isSuccess() {
55737
      return this.success;
55738
    }
55739
 
55740
    public void setSuccess(boolean success) {
55741
      this.success = success;
55742
      setSuccessIsSet(true);
55743
    }
55744
 
55745
    public void unsetSuccess() {
55746
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
55747
    }
55748
 
55749
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
55750
    public boolean isSetSuccess() {
55751
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
55752
    }
55753
 
55754
    public void setSuccessIsSet(boolean value) {
55755
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
55756
    }
55757
 
55758
    public CatalogServiceException getCex() {
55759
      return this.cex;
55760
    }
55761
 
55762
    public void setCex(CatalogServiceException cex) {
55763
      this.cex = cex;
55764
    }
55765
 
55766
    public void unsetCex() {
55767
      this.cex = null;
55768
    }
55769
 
55770
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
55771
    public boolean isSetCex() {
55772
      return this.cex != null;
55773
    }
55774
 
55775
    public void setCexIsSet(boolean value) {
55776
      if (!value) {
55777
        this.cex = null;
55778
      }
55779
    }
55780
 
55781
    public void setFieldValue(_Fields field, Object value) {
55782
      switch (field) {
55783
      case SUCCESS:
55784
        if (value == null) {
55785
          unsetSuccess();
55786
        } else {
55787
          setSuccess((Boolean)value);
55788
        }
55789
        break;
55790
 
55791
      case CEX:
55792
        if (value == null) {
55793
          unsetCex();
55794
        } else {
55795
          setCex((CatalogServiceException)value);
55796
        }
55797
        break;
55798
 
55799
      }
55800
    }
55801
 
55802
    public Object getFieldValue(_Fields field) {
55803
      switch (field) {
55804
      case SUCCESS:
55805
        return Boolean.valueOf(isSuccess());
55806
 
55807
      case CEX:
55808
        return getCex();
55809
 
55810
      }
55811
      throw new IllegalStateException();
55812
    }
55813
 
55814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55815
    public boolean isSet(_Fields field) {
55816
      if (field == null) {
55817
        throw new IllegalArgumentException();
55818
      }
55819
 
55820
      switch (field) {
55821
      case SUCCESS:
55822
        return isSetSuccess();
55823
      case CEX:
55824
        return isSetCex();
55825
      }
55826
      throw new IllegalStateException();
55827
    }
55828
 
55829
    @Override
55830
    public boolean equals(Object that) {
55831
      if (that == null)
55832
        return false;
55833
      if (that instanceof deleteVoucherForItem_result)
55834
        return this.equals((deleteVoucherForItem_result)that);
55835
      return false;
55836
    }
55837
 
55838
    public boolean equals(deleteVoucherForItem_result that) {
55839
      if (that == null)
55840
        return false;
55841
 
55842
      boolean this_present_success = true;
55843
      boolean that_present_success = true;
55844
      if (this_present_success || that_present_success) {
55845
        if (!(this_present_success && that_present_success))
55846
          return false;
55847
        if (this.success != that.success)
55848
          return false;
55849
      }
55850
 
55851
      boolean this_present_cex = true && this.isSetCex();
55852
      boolean that_present_cex = true && that.isSetCex();
55853
      if (this_present_cex || that_present_cex) {
55854
        if (!(this_present_cex && that_present_cex))
55855
          return false;
55856
        if (!this.cex.equals(that.cex))
55857
          return false;
55858
      }
55859
 
55860
      return true;
55861
    }
55862
 
55863
    @Override
55864
    public int hashCode() {
55865
      return 0;
55866
    }
55867
 
55868
    public int compareTo(deleteVoucherForItem_result other) {
55869
      if (!getClass().equals(other.getClass())) {
55870
        return getClass().getName().compareTo(other.getClass().getName());
55871
      }
55872
 
55873
      int lastComparison = 0;
55874
      deleteVoucherForItem_result typedOther = (deleteVoucherForItem_result)other;
55875
 
55876
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
55877
      if (lastComparison != 0) {
55878
        return lastComparison;
55879
      }
55880
      if (isSetSuccess()) {
55881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55882
        if (lastComparison != 0) {
55883
          return lastComparison;
55884
        }
55885
      }
55886
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
55887
      if (lastComparison != 0) {
55888
        return lastComparison;
55889
      }
55890
      if (isSetCex()) {
55891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
55892
        if (lastComparison != 0) {
55893
          return lastComparison;
55894
        }
55895
      }
55896
      return 0;
55897
    }
55898
 
55899
    public _Fields fieldForId(int fieldId) {
55900
      return _Fields.findByThriftId(fieldId);
55901
    }
55902
 
55903
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55904
      org.apache.thrift.protocol.TField field;
55905
      iprot.readStructBegin();
55906
      while (true)
55907
      {
55908
        field = iprot.readFieldBegin();
55909
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55910
          break;
55911
        }
55912
        switch (field.id) {
55913
          case 0: // SUCCESS
55914
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
55915
              this.success = iprot.readBool();
55916
              setSuccessIsSet(true);
55917
            } else { 
55918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55919
            }
55920
            break;
55921
          case 1: // CEX
55922
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
55923
              this.cex = new CatalogServiceException();
55924
              this.cex.read(iprot);
55925
            } else { 
55926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55927
            }
55928
            break;
55929
          default:
55930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55931
        }
55932
        iprot.readFieldEnd();
55933
      }
55934
      iprot.readStructEnd();
55935
      validate();
55936
    }
55937
 
55938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55939
      oprot.writeStructBegin(STRUCT_DESC);
55940
 
55941
      if (this.isSetSuccess()) {
55942
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55943
        oprot.writeBool(this.success);
55944
        oprot.writeFieldEnd();
55945
      } else if (this.isSetCex()) {
55946
        oprot.writeFieldBegin(CEX_FIELD_DESC);
55947
        this.cex.write(oprot);
55948
        oprot.writeFieldEnd();
55949
      }
55950
      oprot.writeFieldStop();
55951
      oprot.writeStructEnd();
55952
    }
55953
 
55954
    @Override
55955
    public String toString() {
55956
      StringBuilder sb = new StringBuilder("deleteVoucherForItem_result(");
55957
      boolean first = true;
55958
 
55959
      sb.append("success:");
55960
      sb.append(this.success);
55961
      first = false;
55962
      if (!first) sb.append(", ");
55963
      sb.append("cex:");
55964
      if (this.cex == null) {
55965
        sb.append("null");
55966
      } else {
55967
        sb.append(this.cex);
55968
      }
55969
      first = false;
55970
      sb.append(")");
55971
      return sb.toString();
55972
    }
55973
 
55974
    public void validate() throws org.apache.thrift.TException {
55975
      // check for required fields
55976
    }
55977
 
55978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55979
      try {
55980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55981
      } catch (org.apache.thrift.TException te) {
55982
        throw new java.io.IOException(te);
55983
      }
55984
    }
55985
 
55986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55987
      try {
55988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55989
      } catch (org.apache.thrift.TException te) {
55990
        throw new java.io.IOException(te);
55991
      }
55992
    }
55993
 
55994
  }
55995
 
55996
  public static class getVoucherAmount_args implements org.apache.thrift.TBase<getVoucherAmount_args, getVoucherAmount_args._Fields>, java.io.Serializable, Cloneable   {
55997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_args");
55998
 
55999
    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);
56000
    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);
56001
 
56002
    private long itemId; // required
56003
    private long voucherType; // required
56004
 
56005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56007
      ITEM_ID((short)1, "itemId"),
56008
      VOUCHER_TYPE((short)2, "voucherType");
56009
 
56010
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56011
 
56012
      static {
56013
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56014
          byName.put(field.getFieldName(), field);
56015
        }
56016
      }
56017
 
56018
      /**
56019
       * Find the _Fields constant that matches fieldId, or null if its not found.
56020
       */
56021
      public static _Fields findByThriftId(int fieldId) {
56022
        switch(fieldId) {
56023
          case 1: // ITEM_ID
56024
            return ITEM_ID;
56025
          case 2: // VOUCHER_TYPE
56026
            return VOUCHER_TYPE;
56027
          default:
56028
            return null;
56029
        }
56030
      }
56031
 
56032
      /**
56033
       * Find the _Fields constant that matches fieldId, throwing an exception
56034
       * if it is not found.
56035
       */
56036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56037
        _Fields fields = findByThriftId(fieldId);
56038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56039
        return fields;
56040
      }
56041
 
56042
      /**
56043
       * Find the _Fields constant that matches name, or null if its not found.
56044
       */
56045
      public static _Fields findByName(String name) {
56046
        return byName.get(name);
56047
      }
56048
 
56049
      private final short _thriftId;
56050
      private final String _fieldName;
56051
 
56052
      _Fields(short thriftId, String fieldName) {
56053
        _thriftId = thriftId;
56054
        _fieldName = fieldName;
56055
      }
56056
 
56057
      public short getThriftFieldId() {
56058
        return _thriftId;
56059
      }
56060
 
56061
      public String getFieldName() {
56062
        return _fieldName;
56063
      }
56064
    }
56065
 
56066
    // isset id assignments
56067
    private static final int __ITEMID_ISSET_ID = 0;
56068
    private static final int __VOUCHERTYPE_ISSET_ID = 1;
56069
    private BitSet __isset_bit_vector = new BitSet(2);
56070
 
56071
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56072
    static {
56073
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56074
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56076
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56078
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56079
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_args.class, metaDataMap);
56080
    }
56081
 
56082
    public getVoucherAmount_args() {
56083
    }
56084
 
56085
    public getVoucherAmount_args(
56086
      long itemId,
56087
      long voucherType)
56088
    {
56089
      this();
56090
      this.itemId = itemId;
56091
      setItemIdIsSet(true);
56092
      this.voucherType = voucherType;
56093
      setVoucherTypeIsSet(true);
56094
    }
56095
 
56096
    /**
56097
     * Performs a deep copy on <i>other</i>.
56098
     */
56099
    public getVoucherAmount_args(getVoucherAmount_args other) {
56100
      __isset_bit_vector.clear();
56101
      __isset_bit_vector.or(other.__isset_bit_vector);
56102
      this.itemId = other.itemId;
56103
      this.voucherType = other.voucherType;
56104
    }
56105
 
56106
    public getVoucherAmount_args deepCopy() {
56107
      return new getVoucherAmount_args(this);
56108
    }
56109
 
56110
    @Override
56111
    public void clear() {
56112
      setItemIdIsSet(false);
56113
      this.itemId = 0;
56114
      setVoucherTypeIsSet(false);
56115
      this.voucherType = 0;
56116
    }
56117
 
56118
    public long getItemId() {
56119
      return this.itemId;
56120
    }
56121
 
56122
    public void setItemId(long itemId) {
56123
      this.itemId = itemId;
56124
      setItemIdIsSet(true);
56125
    }
56126
 
56127
    public void unsetItemId() {
56128
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
56129
    }
56130
 
56131
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
56132
    public boolean isSetItemId() {
56133
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
56134
    }
56135
 
56136
    public void setItemIdIsSet(boolean value) {
56137
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
56138
    }
56139
 
56140
    public long getVoucherType() {
56141
      return this.voucherType;
56142
    }
56143
 
56144
    public void setVoucherType(long voucherType) {
56145
      this.voucherType = voucherType;
56146
      setVoucherTypeIsSet(true);
56147
    }
56148
 
56149
    public void unsetVoucherType() {
56150
      __isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);
56151
    }
56152
 
56153
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
56154
    public boolean isSetVoucherType() {
56155
      return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);
56156
    }
56157
 
56158
    public void setVoucherTypeIsSet(boolean value) {
56159
      __isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);
56160
    }
56161
 
56162
    public void setFieldValue(_Fields field, Object value) {
56163
      switch (field) {
56164
      case ITEM_ID:
56165
        if (value == null) {
56166
          unsetItemId();
56167
        } else {
56168
          setItemId((Long)value);
56169
        }
56170
        break;
56171
 
56172
      case VOUCHER_TYPE:
56173
        if (value == null) {
56174
          unsetVoucherType();
56175
        } else {
56176
          setVoucherType((Long)value);
56177
        }
56178
        break;
56179
 
56180
      }
56181
    }
56182
 
56183
    public Object getFieldValue(_Fields field) {
56184
      switch (field) {
56185
      case ITEM_ID:
56186
        return Long.valueOf(getItemId());
56187
 
56188
      case VOUCHER_TYPE:
56189
        return Long.valueOf(getVoucherType());
56190
 
56191
      }
56192
      throw new IllegalStateException();
56193
    }
56194
 
56195
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56196
    public boolean isSet(_Fields field) {
56197
      if (field == null) {
56198
        throw new IllegalArgumentException();
56199
      }
56200
 
56201
      switch (field) {
56202
      case ITEM_ID:
56203
        return isSetItemId();
56204
      case VOUCHER_TYPE:
56205
        return isSetVoucherType();
56206
      }
56207
      throw new IllegalStateException();
56208
    }
56209
 
56210
    @Override
56211
    public boolean equals(Object that) {
56212
      if (that == null)
56213
        return false;
56214
      if (that instanceof getVoucherAmount_args)
56215
        return this.equals((getVoucherAmount_args)that);
56216
      return false;
56217
    }
56218
 
56219
    public boolean equals(getVoucherAmount_args that) {
56220
      if (that == null)
56221
        return false;
56222
 
56223
      boolean this_present_itemId = true;
56224
      boolean that_present_itemId = true;
56225
      if (this_present_itemId || that_present_itemId) {
56226
        if (!(this_present_itemId && that_present_itemId))
56227
          return false;
56228
        if (this.itemId != that.itemId)
56229
          return false;
56230
      }
56231
 
56232
      boolean this_present_voucherType = true;
56233
      boolean that_present_voucherType = true;
56234
      if (this_present_voucherType || that_present_voucherType) {
56235
        if (!(this_present_voucherType && that_present_voucherType))
56236
          return false;
56237
        if (this.voucherType != that.voucherType)
56238
          return false;
56239
      }
56240
 
56241
      return true;
56242
    }
56243
 
56244
    @Override
56245
    public int hashCode() {
56246
      return 0;
56247
    }
56248
 
56249
    public int compareTo(getVoucherAmount_args other) {
56250
      if (!getClass().equals(other.getClass())) {
56251
        return getClass().getName().compareTo(other.getClass().getName());
56252
      }
56253
 
56254
      int lastComparison = 0;
56255
      getVoucherAmount_args typedOther = (getVoucherAmount_args)other;
56256
 
56257
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
56258
      if (lastComparison != 0) {
56259
        return lastComparison;
56260
      }
56261
      if (isSetItemId()) {
56262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
56263
        if (lastComparison != 0) {
56264
          return lastComparison;
56265
        }
56266
      }
56267
      lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());
56268
      if (lastComparison != 0) {
56269
        return lastComparison;
56270
      }
56271
      if (isSetVoucherType()) {
56272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);
56273
        if (lastComparison != 0) {
56274
          return lastComparison;
56275
        }
56276
      }
56277
      return 0;
56278
    }
56279
 
56280
    public _Fields fieldForId(int fieldId) {
56281
      return _Fields.findByThriftId(fieldId);
56282
    }
56283
 
56284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56285
      org.apache.thrift.protocol.TField field;
56286
      iprot.readStructBegin();
56287
      while (true)
56288
      {
56289
        field = iprot.readFieldBegin();
56290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56291
          break;
56292
        }
56293
        switch (field.id) {
56294
          case 1: // ITEM_ID
56295
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56296
              this.itemId = iprot.readI64();
56297
              setItemIdIsSet(true);
56298
            } else { 
56299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56300
            }
56301
            break;
56302
          case 2: // VOUCHER_TYPE
56303
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56304
              this.voucherType = iprot.readI64();
56305
              setVoucherTypeIsSet(true);
56306
            } else { 
56307
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56308
            }
56309
            break;
56310
          default:
56311
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56312
        }
56313
        iprot.readFieldEnd();
56314
      }
56315
      iprot.readStructEnd();
56316
      validate();
56317
    }
56318
 
56319
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56320
      validate();
56321
 
56322
      oprot.writeStructBegin(STRUCT_DESC);
56323
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
56324
      oprot.writeI64(this.itemId);
56325
      oprot.writeFieldEnd();
56326
      oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
56327
      oprot.writeI64(this.voucherType);
56328
      oprot.writeFieldEnd();
56329
      oprot.writeFieldStop();
56330
      oprot.writeStructEnd();
56331
    }
56332
 
56333
    @Override
56334
    public String toString() {
56335
      StringBuilder sb = new StringBuilder("getVoucherAmount_args(");
56336
      boolean first = true;
56337
 
56338
      sb.append("itemId:");
56339
      sb.append(this.itemId);
56340
      first = false;
56341
      if (!first) sb.append(", ");
56342
      sb.append("voucherType:");
56343
      sb.append(this.voucherType);
56344
      first = false;
56345
      sb.append(")");
56346
      return sb.toString();
56347
    }
56348
 
56349
    public void validate() throws org.apache.thrift.TException {
56350
      // check for required fields
56351
    }
56352
 
56353
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56354
      try {
56355
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56356
      } catch (org.apache.thrift.TException te) {
56357
        throw new java.io.IOException(te);
56358
      }
56359
    }
56360
 
56361
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56362
      try {
56363
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
56364
        __isset_bit_vector = new BitSet(1);
56365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56366
      } catch (org.apache.thrift.TException te) {
56367
        throw new java.io.IOException(te);
56368
      }
56369
    }
56370
 
56371
  }
56372
 
56373
  public static class getVoucherAmount_result implements org.apache.thrift.TBase<getVoucherAmount_result, getVoucherAmount_result._Fields>, java.io.Serializable, Cloneable   {
56374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_result");
56375
 
56376
    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);
56377
 
56378
    private long success; // required
56379
 
56380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56382
      SUCCESS((short)0, "success");
56383
 
56384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56385
 
56386
      static {
56387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56388
          byName.put(field.getFieldName(), field);
56389
        }
56390
      }
56391
 
56392
      /**
56393
       * Find the _Fields constant that matches fieldId, or null if its not found.
56394
       */
56395
      public static _Fields findByThriftId(int fieldId) {
56396
        switch(fieldId) {
56397
          case 0: // SUCCESS
56398
            return SUCCESS;
56399
          default:
56400
            return null;
56401
        }
56402
      }
56403
 
56404
      /**
56405
       * Find the _Fields constant that matches fieldId, throwing an exception
56406
       * if it is not found.
56407
       */
56408
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56409
        _Fields fields = findByThriftId(fieldId);
56410
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56411
        return fields;
56412
      }
56413
 
56414
      /**
56415
       * Find the _Fields constant that matches name, or null if its not found.
56416
       */
56417
      public static _Fields findByName(String name) {
56418
        return byName.get(name);
56419
      }
56420
 
56421
      private final short _thriftId;
56422
      private final String _fieldName;
56423
 
56424
      _Fields(short thriftId, String fieldName) {
56425
        _thriftId = thriftId;
56426
        _fieldName = fieldName;
56427
      }
56428
 
56429
      public short getThriftFieldId() {
56430
        return _thriftId;
56431
      }
56432
 
56433
      public String getFieldName() {
56434
        return _fieldName;
56435
      }
56436
    }
56437
 
56438
    // isset id assignments
56439
    private static final int __SUCCESS_ISSET_ID = 0;
56440
    private BitSet __isset_bit_vector = new BitSet(1);
56441
 
56442
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56443
    static {
56444
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56445
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_result.class, metaDataMap);
56449
    }
56450
 
56451
    public getVoucherAmount_result() {
56452
    }
56453
 
56454
    public getVoucherAmount_result(
56455
      long success)
56456
    {
56457
      this();
56458
      this.success = success;
56459
      setSuccessIsSet(true);
56460
    }
56461
 
56462
    /**
56463
     * Performs a deep copy on <i>other</i>.
56464
     */
56465
    public getVoucherAmount_result(getVoucherAmount_result other) {
56466
      __isset_bit_vector.clear();
56467
      __isset_bit_vector.or(other.__isset_bit_vector);
56468
      this.success = other.success;
56469
    }
56470
 
56471
    public getVoucherAmount_result deepCopy() {
56472
      return new getVoucherAmount_result(this);
56473
    }
56474
 
56475
    @Override
56476
    public void clear() {
56477
      setSuccessIsSet(false);
56478
      this.success = 0;
56479
    }
56480
 
56481
    public long getSuccess() {
56482
      return this.success;
56483
    }
56484
 
56485
    public void setSuccess(long success) {
56486
      this.success = success;
56487
      setSuccessIsSet(true);
56488
    }
56489
 
56490
    public void unsetSuccess() {
56491
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
56492
    }
56493
 
56494
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
56495
    public boolean isSetSuccess() {
56496
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
56497
    }
56498
 
56499
    public void setSuccessIsSet(boolean value) {
56500
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
56501
    }
56502
 
56503
    public void setFieldValue(_Fields field, Object value) {
56504
      switch (field) {
56505
      case SUCCESS:
56506
        if (value == null) {
56507
          unsetSuccess();
56508
        } else {
56509
          setSuccess((Long)value);
56510
        }
56511
        break;
56512
 
56513
      }
56514
    }
56515
 
56516
    public Object getFieldValue(_Fields field) {
56517
      switch (field) {
56518
      case SUCCESS:
56519
        return Long.valueOf(getSuccess());
56520
 
56521
      }
56522
      throw new IllegalStateException();
56523
    }
56524
 
56525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56526
    public boolean isSet(_Fields field) {
56527
      if (field == null) {
56528
        throw new IllegalArgumentException();
56529
      }
56530
 
56531
      switch (field) {
56532
      case SUCCESS:
56533
        return isSetSuccess();
56534
      }
56535
      throw new IllegalStateException();
56536
    }
56537
 
56538
    @Override
56539
    public boolean equals(Object that) {
56540
      if (that == null)
56541
        return false;
56542
      if (that instanceof getVoucherAmount_result)
56543
        return this.equals((getVoucherAmount_result)that);
56544
      return false;
56545
    }
56546
 
56547
    public boolean equals(getVoucherAmount_result that) {
56548
      if (that == null)
56549
        return false;
56550
 
56551
      boolean this_present_success = true;
56552
      boolean that_present_success = true;
56553
      if (this_present_success || that_present_success) {
56554
        if (!(this_present_success && that_present_success))
56555
          return false;
56556
        if (this.success != that.success)
56557
          return false;
56558
      }
56559
 
56560
      return true;
56561
    }
56562
 
56563
    @Override
56564
    public int hashCode() {
56565
      return 0;
56566
    }
56567
 
56568
    public int compareTo(getVoucherAmount_result other) {
56569
      if (!getClass().equals(other.getClass())) {
56570
        return getClass().getName().compareTo(other.getClass().getName());
56571
      }
56572
 
56573
      int lastComparison = 0;
56574
      getVoucherAmount_result typedOther = (getVoucherAmount_result)other;
56575
 
56576
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
56577
      if (lastComparison != 0) {
56578
        return lastComparison;
56579
      }
56580
      if (isSetSuccess()) {
56581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
56582
        if (lastComparison != 0) {
56583
          return lastComparison;
56584
        }
56585
      }
56586
      return 0;
56587
    }
56588
 
56589
    public _Fields fieldForId(int fieldId) {
56590
      return _Fields.findByThriftId(fieldId);
56591
    }
56592
 
56593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56594
      org.apache.thrift.protocol.TField field;
56595
      iprot.readStructBegin();
56596
      while (true)
56597
      {
56598
        field = iprot.readFieldBegin();
56599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56600
          break;
56601
        }
56602
        switch (field.id) {
56603
          case 0: // SUCCESS
56604
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56605
              this.success = iprot.readI64();
56606
              setSuccessIsSet(true);
56607
            } else { 
56608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56609
            }
56610
            break;
56611
          default:
56612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56613
        }
56614
        iprot.readFieldEnd();
56615
      }
56616
      iprot.readStructEnd();
56617
      validate();
56618
    }
56619
 
56620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56621
      oprot.writeStructBegin(STRUCT_DESC);
56622
 
56623
      if (this.isSetSuccess()) {
56624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56625
        oprot.writeI64(this.success);
56626
        oprot.writeFieldEnd();
56627
      }
56628
      oprot.writeFieldStop();
56629
      oprot.writeStructEnd();
56630
    }
56631
 
56632
    @Override
56633
    public String toString() {
56634
      StringBuilder sb = new StringBuilder("getVoucherAmount_result(");
56635
      boolean first = true;
56636
 
56637
      sb.append("success:");
56638
      sb.append(this.success);
56639
      first = false;
56640
      sb.append(")");
56641
      return sb.toString();
56642
    }
56643
 
56644
    public void validate() throws org.apache.thrift.TException {
56645
      // check for required fields
56646
    }
56647
 
56648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56649
      try {
56650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56651
      } catch (org.apache.thrift.TException te) {
56652
        throw new java.io.IOException(te);
56653
      }
56654
    }
56655
 
56656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56657
      try {
56658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56659
      } catch (org.apache.thrift.TException te) {
56660
        throw new java.io.IOException(te);
56661
      }
56662
    }
56663
 
56664
  }
56665
 
56666
  public static class getAllItemVouchers_args implements org.apache.thrift.TBase<getAllItemVouchers_args, getAllItemVouchers_args._Fields>, java.io.Serializable, Cloneable   {
56667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_args");
56668
 
56669
    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);
56670
 
56671
    private long itemId; // required
56672
 
56673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56675
      ITEM_ID((short)1, "itemId");
56676
 
56677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56678
 
56679
      static {
56680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56681
          byName.put(field.getFieldName(), field);
56682
        }
56683
      }
56684
 
56685
      /**
56686
       * Find the _Fields constant that matches fieldId, or null if its not found.
56687
       */
56688
      public static _Fields findByThriftId(int fieldId) {
56689
        switch(fieldId) {
56690
          case 1: // ITEM_ID
56691
            return ITEM_ID;
56692
          default:
56693
            return null;
56694
        }
56695
      }
56696
 
56697
      /**
56698
       * Find the _Fields constant that matches fieldId, throwing an exception
56699
       * if it is not found.
56700
       */
56701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56702
        _Fields fields = findByThriftId(fieldId);
56703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56704
        return fields;
56705
      }
56706
 
56707
      /**
56708
       * Find the _Fields constant that matches name, or null if its not found.
56709
       */
56710
      public static _Fields findByName(String name) {
56711
        return byName.get(name);
56712
      }
56713
 
56714
      private final short _thriftId;
56715
      private final String _fieldName;
56716
 
56717
      _Fields(short thriftId, String fieldName) {
56718
        _thriftId = thriftId;
56719
        _fieldName = fieldName;
56720
      }
56721
 
56722
      public short getThriftFieldId() {
56723
        return _thriftId;
56724
      }
56725
 
56726
      public String getFieldName() {
56727
        return _fieldName;
56728
      }
56729
    }
56730
 
56731
    // isset id assignments
56732
    private static final int __ITEMID_ISSET_ID = 0;
56733
    private BitSet __isset_bit_vector = new BitSet(1);
56734
 
56735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56736
    static {
56737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56738
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56740
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56741
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_args.class, metaDataMap);
56742
    }
56743
 
56744
    public getAllItemVouchers_args() {
56745
    }
56746
 
56747
    public getAllItemVouchers_args(
56748
      long itemId)
56749
    {
56750
      this();
56751
      this.itemId = itemId;
56752
      setItemIdIsSet(true);
56753
    }
56754
 
56755
    /**
56756
     * Performs a deep copy on <i>other</i>.
56757
     */
56758
    public getAllItemVouchers_args(getAllItemVouchers_args other) {
56759
      __isset_bit_vector.clear();
56760
      __isset_bit_vector.or(other.__isset_bit_vector);
56761
      this.itemId = other.itemId;
56762
    }
56763
 
56764
    public getAllItemVouchers_args deepCopy() {
56765
      return new getAllItemVouchers_args(this);
56766
    }
56767
 
56768
    @Override
56769
    public void clear() {
56770
      setItemIdIsSet(false);
56771
      this.itemId = 0;
56772
    }
56773
 
56774
    public long getItemId() {
56775
      return this.itemId;
56776
    }
56777
 
56778
    public void setItemId(long itemId) {
56779
      this.itemId = itemId;
56780
      setItemIdIsSet(true);
56781
    }
56782
 
56783
    public void unsetItemId() {
56784
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
56785
    }
56786
 
56787
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
56788
    public boolean isSetItemId() {
56789
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
56790
    }
56791
 
56792
    public void setItemIdIsSet(boolean value) {
56793
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
56794
    }
56795
 
56796
    public void setFieldValue(_Fields field, Object value) {
56797
      switch (field) {
56798
      case ITEM_ID:
56799
        if (value == null) {
56800
          unsetItemId();
56801
        } else {
56802
          setItemId((Long)value);
56803
        }
56804
        break;
56805
 
56806
      }
56807
    }
56808
 
56809
    public Object getFieldValue(_Fields field) {
56810
      switch (field) {
56811
      case ITEM_ID:
56812
        return Long.valueOf(getItemId());
56813
 
56814
      }
56815
      throw new IllegalStateException();
56816
    }
56817
 
56818
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56819
    public boolean isSet(_Fields field) {
56820
      if (field == null) {
56821
        throw new IllegalArgumentException();
56822
      }
56823
 
56824
      switch (field) {
56825
      case ITEM_ID:
56826
        return isSetItemId();
56827
      }
56828
      throw new IllegalStateException();
56829
    }
56830
 
56831
    @Override
56832
    public boolean equals(Object that) {
56833
      if (that == null)
56834
        return false;
56835
      if (that instanceof getAllItemVouchers_args)
56836
        return this.equals((getAllItemVouchers_args)that);
56837
      return false;
56838
    }
56839
 
56840
    public boolean equals(getAllItemVouchers_args that) {
56841
      if (that == null)
56842
        return false;
56843
 
56844
      boolean this_present_itemId = true;
56845
      boolean that_present_itemId = true;
56846
      if (this_present_itemId || that_present_itemId) {
56847
        if (!(this_present_itemId && that_present_itemId))
56848
          return false;
56849
        if (this.itemId != that.itemId)
56850
          return false;
56851
      }
56852
 
56853
      return true;
56854
    }
56855
 
56856
    @Override
56857
    public int hashCode() {
56858
      return 0;
56859
    }
56860
 
56861
    public int compareTo(getAllItemVouchers_args other) {
56862
      if (!getClass().equals(other.getClass())) {
56863
        return getClass().getName().compareTo(other.getClass().getName());
56864
      }
56865
 
56866
      int lastComparison = 0;
56867
      getAllItemVouchers_args typedOther = (getAllItemVouchers_args)other;
56868
 
56869
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
56870
      if (lastComparison != 0) {
56871
        return lastComparison;
56872
      }
56873
      if (isSetItemId()) {
56874
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
56875
        if (lastComparison != 0) {
56876
          return lastComparison;
56877
        }
56878
      }
56879
      return 0;
56880
    }
56881
 
56882
    public _Fields fieldForId(int fieldId) {
56883
      return _Fields.findByThriftId(fieldId);
56884
    }
56885
 
56886
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56887
      org.apache.thrift.protocol.TField field;
56888
      iprot.readStructBegin();
56889
      while (true)
56890
      {
56891
        field = iprot.readFieldBegin();
56892
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56893
          break;
56894
        }
56895
        switch (field.id) {
56896
          case 1: // ITEM_ID
56897
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56898
              this.itemId = iprot.readI64();
56899
              setItemIdIsSet(true);
56900
            } else { 
56901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56902
            }
56903
            break;
56904
          default:
56905
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56906
        }
56907
        iprot.readFieldEnd();
56908
      }
56909
      iprot.readStructEnd();
56910
      validate();
56911
    }
56912
 
56913
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56914
      validate();
56915
 
56916
      oprot.writeStructBegin(STRUCT_DESC);
56917
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
56918
      oprot.writeI64(this.itemId);
56919
      oprot.writeFieldEnd();
56920
      oprot.writeFieldStop();
56921
      oprot.writeStructEnd();
56922
    }
56923
 
56924
    @Override
56925
    public String toString() {
56926
      StringBuilder sb = new StringBuilder("getAllItemVouchers_args(");
56927
      boolean first = true;
56928
 
56929
      sb.append("itemId:");
56930
      sb.append(this.itemId);
56931
      first = false;
56932
      sb.append(")");
56933
      return sb.toString();
56934
    }
56935
 
56936
    public void validate() throws org.apache.thrift.TException {
56937
      // check for required fields
56938
    }
56939
 
56940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56941
      try {
56942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56943
      } catch (org.apache.thrift.TException te) {
56944
        throw new java.io.IOException(te);
56945
      }
56946
    }
56947
 
56948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56949
      try {
6849 kshitij.so 56950
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
56951
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 56952
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56953
      } catch (org.apache.thrift.TException te) {
56954
        throw new java.io.IOException(te);
56955
      }
56956
    }
56957
 
56958
  }
56959
 
56960
  public static class getAllItemVouchers_result implements org.apache.thrift.TBase<getAllItemVouchers_result, getAllItemVouchers_result._Fields>, java.io.Serializable, Cloneable   {
56961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_result");
56962
 
56963
    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);
56964
 
56965
    private List<VoucherItemMapping> success; // required
56966
 
56967
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56968
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56969
      SUCCESS((short)0, "success");
56970
 
56971
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56972
 
56973
      static {
56974
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56975
          byName.put(field.getFieldName(), field);
56976
        }
56977
      }
56978
 
56979
      /**
56980
       * Find the _Fields constant that matches fieldId, or null if its not found.
56981
       */
56982
      public static _Fields findByThriftId(int fieldId) {
56983
        switch(fieldId) {
56984
          case 0: // SUCCESS
56985
            return SUCCESS;
56986
          default:
56987
            return null;
56988
        }
56989
      }
56990
 
56991
      /**
56992
       * Find the _Fields constant that matches fieldId, throwing an exception
56993
       * if it is not found.
56994
       */
56995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56996
        _Fields fields = findByThriftId(fieldId);
56997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56998
        return fields;
56999
      }
57000
 
57001
      /**
57002
       * Find the _Fields constant that matches name, or null if its not found.
57003
       */
57004
      public static _Fields findByName(String name) {
57005
        return byName.get(name);
57006
      }
57007
 
57008
      private final short _thriftId;
57009
      private final String _fieldName;
57010
 
57011
      _Fields(short thriftId, String fieldName) {
57012
        _thriftId = thriftId;
57013
        _fieldName = fieldName;
57014
      }
57015
 
57016
      public short getThriftFieldId() {
57017
        return _thriftId;
57018
      }
57019
 
57020
      public String getFieldName() {
57021
        return _fieldName;
57022
      }
57023
    }
57024
 
57025
    // isset id assignments
57026
 
57027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57028
    static {
57029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57030
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57031
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
57032
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VoucherItemMapping.class))));
57033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_result.class, metaDataMap);
57035
    }
57036
 
57037
    public getAllItemVouchers_result() {
57038
    }
57039
 
57040
    public getAllItemVouchers_result(
57041
      List<VoucherItemMapping> success)
57042
    {
57043
      this();
57044
      this.success = success;
57045
    }
57046
 
57047
    /**
57048
     * Performs a deep copy on <i>other</i>.
57049
     */
57050
    public getAllItemVouchers_result(getAllItemVouchers_result other) {
57051
      if (other.isSetSuccess()) {
57052
        List<VoucherItemMapping> __this__success = new ArrayList<VoucherItemMapping>();
57053
        for (VoucherItemMapping other_element : other.success) {
57054
          __this__success.add(new VoucherItemMapping(other_element));
57055
        }
57056
        this.success = __this__success;
57057
      }
57058
    }
57059
 
57060
    public getAllItemVouchers_result deepCopy() {
57061
      return new getAllItemVouchers_result(this);
57062
    }
57063
 
57064
    @Override
57065
    public void clear() {
57066
      this.success = null;
57067
    }
57068
 
57069
    public int getSuccessSize() {
57070
      return (this.success == null) ? 0 : this.success.size();
57071
    }
57072
 
57073
    public java.util.Iterator<VoucherItemMapping> getSuccessIterator() {
57074
      return (this.success == null) ? null : this.success.iterator();
57075
    }
57076
 
57077
    public void addToSuccess(VoucherItemMapping elem) {
57078
      if (this.success == null) {
57079
        this.success = new ArrayList<VoucherItemMapping>();
57080
      }
57081
      this.success.add(elem);
57082
    }
57083
 
57084
    public List<VoucherItemMapping> getSuccess() {
57085
      return this.success;
57086
    }
57087
 
57088
    public void setSuccess(List<VoucherItemMapping> success) {
57089
      this.success = success;
57090
    }
57091
 
57092
    public void unsetSuccess() {
57093
      this.success = null;
57094
    }
57095
 
57096
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
57097
    public boolean isSetSuccess() {
57098
      return this.success != null;
57099
    }
57100
 
57101
    public void setSuccessIsSet(boolean value) {
57102
      if (!value) {
57103
        this.success = null;
57104
      }
57105
    }
57106
 
57107
    public void setFieldValue(_Fields field, Object value) {
57108
      switch (field) {
57109
      case SUCCESS:
57110
        if (value == null) {
57111
          unsetSuccess();
57112
        } else {
57113
          setSuccess((List<VoucherItemMapping>)value);
57114
        }
57115
        break;
57116
 
57117
      }
57118
    }
57119
 
57120
    public Object getFieldValue(_Fields field) {
57121
      switch (field) {
57122
      case SUCCESS:
57123
        return getSuccess();
57124
 
57125
      }
57126
      throw new IllegalStateException();
57127
    }
57128
 
57129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57130
    public boolean isSet(_Fields field) {
57131
      if (field == null) {
57132
        throw new IllegalArgumentException();
57133
      }
57134
 
57135
      switch (field) {
57136
      case SUCCESS:
57137
        return isSetSuccess();
57138
      }
57139
      throw new IllegalStateException();
57140
    }
57141
 
57142
    @Override
57143
    public boolean equals(Object that) {
57144
      if (that == null)
57145
        return false;
57146
      if (that instanceof getAllItemVouchers_result)
57147
        return this.equals((getAllItemVouchers_result)that);
57148
      return false;
57149
    }
57150
 
57151
    public boolean equals(getAllItemVouchers_result that) {
57152
      if (that == null)
57153
        return false;
57154
 
57155
      boolean this_present_success = true && this.isSetSuccess();
57156
      boolean that_present_success = true && that.isSetSuccess();
57157
      if (this_present_success || that_present_success) {
57158
        if (!(this_present_success && that_present_success))
57159
          return false;
57160
        if (!this.success.equals(that.success))
57161
          return false;
57162
      }
57163
 
57164
      return true;
57165
    }
57166
 
57167
    @Override
57168
    public int hashCode() {
57169
      return 0;
57170
    }
57171
 
57172
    public int compareTo(getAllItemVouchers_result other) {
57173
      if (!getClass().equals(other.getClass())) {
57174
        return getClass().getName().compareTo(other.getClass().getName());
57175
      }
57176
 
57177
      int lastComparison = 0;
57178
      getAllItemVouchers_result typedOther = (getAllItemVouchers_result)other;
57179
 
57180
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
57181
      if (lastComparison != 0) {
57182
        return lastComparison;
57183
      }
57184
      if (isSetSuccess()) {
57185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
57186
        if (lastComparison != 0) {
57187
          return lastComparison;
57188
        }
57189
      }
57190
      return 0;
57191
    }
57192
 
57193
    public _Fields fieldForId(int fieldId) {
57194
      return _Fields.findByThriftId(fieldId);
57195
    }
57196
 
57197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57198
      org.apache.thrift.protocol.TField field;
57199
      iprot.readStructBegin();
57200
      while (true)
57201
      {
57202
        field = iprot.readFieldBegin();
57203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57204
          break;
57205
        }
57206
        switch (field.id) {
57207
          case 0: // SUCCESS
57208
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57209
              {
6850 kshitij.so 57210
                org.apache.thrift.protocol.TList _list158 = iprot.readListBegin();
57211
                this.success = new ArrayList<VoucherItemMapping>(_list158.size);
57212
                for (int _i159 = 0; _i159 < _list158.size; ++_i159)
5945 mandeep.dh 57213
                {
6850 kshitij.so 57214
                  VoucherItemMapping _elem160; // required
57215
                  _elem160 = new VoucherItemMapping();
57216
                  _elem160.read(iprot);
57217
                  this.success.add(_elem160);
5945 mandeep.dh 57218
                }
57219
                iprot.readListEnd();
57220
              }
57221
            } else { 
57222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57223
            }
57224
            break;
57225
          default:
57226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57227
        }
57228
        iprot.readFieldEnd();
57229
      }
57230
      iprot.readStructEnd();
57231
      validate();
57232
    }
57233
 
57234
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57235
      oprot.writeStructBegin(STRUCT_DESC);
57236
 
57237
      if (this.isSetSuccess()) {
57238
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57239
        {
57240
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 57241
          for (VoucherItemMapping _iter161 : this.success)
5945 mandeep.dh 57242
          {
6850 kshitij.so 57243
            _iter161.write(oprot);
5945 mandeep.dh 57244
          }
57245
          oprot.writeListEnd();
57246
        }
57247
        oprot.writeFieldEnd();
57248
      }
57249
      oprot.writeFieldStop();
57250
      oprot.writeStructEnd();
57251
    }
57252
 
57253
    @Override
57254
    public String toString() {
57255
      StringBuilder sb = new StringBuilder("getAllItemVouchers_result(");
57256
      boolean first = true;
57257
 
57258
      sb.append("success:");
57259
      if (this.success == null) {
57260
        sb.append("null");
57261
      } else {
57262
        sb.append(this.success);
57263
      }
57264
      first = false;
57265
      sb.append(")");
57266
      return sb.toString();
57267
    }
57268
 
57269
    public void validate() throws org.apache.thrift.TException {
57270
      // check for required fields
57271
    }
57272
 
57273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57274
      try {
57275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57276
      } catch (org.apache.thrift.TException te) {
57277
        throw new java.io.IOException(te);
57278
      }
57279
    }
57280
 
57281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57282
      try {
57283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57284
      } catch (org.apache.thrift.TException te) {
57285
        throw new java.io.IOException(te);
57286
      }
57287
    }
57288
 
57289
  }
57290
 
57291
  public static class isValidCatalogItemId_args implements org.apache.thrift.TBase<isValidCatalogItemId_args, isValidCatalogItemId_args._Fields>, java.io.Serializable, Cloneable   {
57292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isValidCatalogItemId_args");
57293
 
57294
    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);
57295
 
57296
    private long catalog_item_id; // required
57297
 
57298
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57299
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57300
      CATALOG_ITEM_ID((short)1, "catalog_item_id");
57301
 
57302
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57303
 
57304
      static {
57305
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57306
          byName.put(field.getFieldName(), field);
57307
        }
57308
      }
57309
 
57310
      /**
57311
       * Find the _Fields constant that matches fieldId, or null if its not found.
57312
       */
57313
      public static _Fields findByThriftId(int fieldId) {
57314
        switch(fieldId) {
57315
          case 1: // CATALOG_ITEM_ID
57316
            return CATALOG_ITEM_ID;
57317
          default:
57318
            return null;
57319
        }
57320
      }
57321
 
57322
      /**
57323
       * Find the _Fields constant that matches fieldId, throwing an exception
57324
       * if it is not found.
57325
       */
57326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57327
        _Fields fields = findByThriftId(fieldId);
57328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57329
        return fields;
57330
      }
57331
 
57332
      /**
57333
       * Find the _Fields constant that matches name, or null if its not found.
57334
       */
57335
      public static _Fields findByName(String name) {
57336
        return byName.get(name);
57337
      }
57338
 
57339
      private final short _thriftId;
57340
      private final String _fieldName;
57341
 
57342
      _Fields(short thriftId, String fieldName) {
57343
        _thriftId = thriftId;
57344
        _fieldName = fieldName;
57345
      }
57346
 
57347
      public short getThriftFieldId() {
57348
        return _thriftId;
57349
      }
57350
 
57351
      public String getFieldName() {
57352
        return _fieldName;
57353
      }
57354
    }
57355
 
57356
    // isset id assignments
57357
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
57358
    private BitSet __isset_bit_vector = new BitSet(1);
57359
 
57360
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57361
    static {
57362
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57363
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isValidCatalogItemId_args.class, metaDataMap);
57367
    }
57368
 
57369
    public isValidCatalogItemId_args() {
57370
    }
57371
 
57372
    public isValidCatalogItemId_args(
57373
      long catalog_item_id)
57374
    {
57375
      this();
57376
      this.catalog_item_id = catalog_item_id;
57377
      setCatalog_item_idIsSet(true);
57378
    }
57379
 
57380
    /**
57381
     * Performs a deep copy on <i>other</i>.
57382
     */
57383
    public isValidCatalogItemId_args(isValidCatalogItemId_args other) {
57384
      __isset_bit_vector.clear();
57385
      __isset_bit_vector.or(other.__isset_bit_vector);
57386
      this.catalog_item_id = other.catalog_item_id;
57387
    }
57388
 
57389
    public isValidCatalogItemId_args deepCopy() {
57390
      return new isValidCatalogItemId_args(this);
57391
    }
57392
 
57393
    @Override
57394
    public void clear() {
57395
      setCatalog_item_idIsSet(false);
57396
      this.catalog_item_id = 0;
57397
    }
57398
 
57399
    public long getCatalog_item_id() {
57400
      return this.catalog_item_id;
57401
    }
57402
 
57403
    public void setCatalog_item_id(long catalog_item_id) {
57404
      this.catalog_item_id = catalog_item_id;
57405
      setCatalog_item_idIsSet(true);
57406
    }
57407
 
57408
    public void unsetCatalog_item_id() {
57409
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
57410
    }
57411
 
57412
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
57413
    public boolean isSetCatalog_item_id() {
57414
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
57415
    }
57416
 
57417
    public void setCatalog_item_idIsSet(boolean value) {
57418
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
57419
    }
57420
 
57421
    public void setFieldValue(_Fields field, Object value) {
57422
      switch (field) {
57423
      case CATALOG_ITEM_ID:
57424
        if (value == null) {
57425
          unsetCatalog_item_id();
57426
        } else {
57427
          setCatalog_item_id((Long)value);
57428
        }
57429
        break;
57430
 
57431
      }
57432
    }
57433
 
57434
    public Object getFieldValue(_Fields field) {
57435
      switch (field) {
57436
      case CATALOG_ITEM_ID:
57437
        return Long.valueOf(getCatalog_item_id());
57438
 
57439
      }
57440
      throw new IllegalStateException();
57441
    }
57442
 
57443
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57444
    public boolean isSet(_Fields field) {
57445
      if (field == null) {
57446
        throw new IllegalArgumentException();
57447
      }
57448
 
57449
      switch (field) {
57450
      case CATALOG_ITEM_ID:
57451
        return isSetCatalog_item_id();
57452
      }
57453
      throw new IllegalStateException();
57454
    }
57455
 
57456
    @Override
57457
    public boolean equals(Object that) {
57458
      if (that == null)
57459
        return false;
57460
      if (that instanceof isValidCatalogItemId_args)
57461
        return this.equals((isValidCatalogItemId_args)that);
57462
      return false;
57463
    }
57464
 
57465
    public boolean equals(isValidCatalogItemId_args that) {
57466
      if (that == null)
57467
        return false;
57468
 
57469
      boolean this_present_catalog_item_id = true;
57470
      boolean that_present_catalog_item_id = true;
57471
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
57472
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
57473
          return false;
57474
        if (this.catalog_item_id != that.catalog_item_id)
57475
          return false;
57476
      }
57477
 
57478
      return true;
57479
    }
57480
 
57481
    @Override
57482
    public int hashCode() {
57483
      return 0;
57484
    }
57485
 
57486
    public int compareTo(isValidCatalogItemId_args other) {
57487
      if (!getClass().equals(other.getClass())) {
57488
        return getClass().getName().compareTo(other.getClass().getName());
57489
      }
57490
 
57491
      int lastComparison = 0;
57492
      isValidCatalogItemId_args typedOther = (isValidCatalogItemId_args)other;
57493
 
57494
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
57495
      if (lastComparison != 0) {
57496
        return lastComparison;
57497
      }
57498
      if (isSetCatalog_item_id()) {
57499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
57500
        if (lastComparison != 0) {
57501
          return lastComparison;
57502
        }
57503
      }
57504
      return 0;
57505
    }
57506
 
57507
    public _Fields fieldForId(int fieldId) {
57508
      return _Fields.findByThriftId(fieldId);
57509
    }
57510
 
57511
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57512
      org.apache.thrift.protocol.TField field;
57513
      iprot.readStructBegin();
57514
      while (true)
57515
      {
57516
        field = iprot.readFieldBegin();
57517
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57518
          break;
57519
        }
57520
        switch (field.id) {
57521
          case 1: // CATALOG_ITEM_ID
57522
            if (field.type == org.apache.thrift.protocol.TType.I64) {
57523
              this.catalog_item_id = iprot.readI64();
57524
              setCatalog_item_idIsSet(true);
57525
            } else { 
57526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57527
            }
57528
            break;
57529
          default:
57530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57531
        }
57532
        iprot.readFieldEnd();
57533
      }
57534
      iprot.readStructEnd();
57535
      validate();
57536
    }
57537
 
57538
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57539
      validate();
57540
 
57541
      oprot.writeStructBegin(STRUCT_DESC);
57542
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
57543
      oprot.writeI64(this.catalog_item_id);
57544
      oprot.writeFieldEnd();
57545
      oprot.writeFieldStop();
57546
      oprot.writeStructEnd();
57547
    }
57548
 
57549
    @Override
57550
    public String toString() {
57551
      StringBuilder sb = new StringBuilder("isValidCatalogItemId_args(");
57552
      boolean first = true;
57553
 
57554
      sb.append("catalog_item_id:");
57555
      sb.append(this.catalog_item_id);
57556
      first = false;
57557
      sb.append(")");
57558
      return sb.toString();
57559
    }
57560
 
57561
    public void validate() throws org.apache.thrift.TException {
57562
      // check for required fields
57563
    }
57564
 
57565
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57566
      try {
57567
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57568
      } catch (org.apache.thrift.TException te) {
57569
        throw new java.io.IOException(te);
57570
      }
57571
    }
57572
 
57573
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57574
      try {
6849 kshitij.so 57575
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
57576
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 57577
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57578
      } catch (org.apache.thrift.TException te) {
57579
        throw new java.io.IOException(te);
57580
      }
57581
    }
57582
 
57583
  }
57584
 
57585
  public static class isValidCatalogItemId_result implements org.apache.thrift.TBase<isValidCatalogItemId_result, isValidCatalogItemId_result._Fields>, java.io.Serializable, Cloneable   {
57586
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isValidCatalogItemId_result");
57587
 
57588
    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);
57589
 
57590
    private boolean success; // required
57591
 
57592
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57593
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57594
      SUCCESS((short)0, "success");
57595
 
57596
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57597
 
57598
      static {
57599
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57600
          byName.put(field.getFieldName(), field);
57601
        }
57602
      }
57603
 
57604
      /**
57605
       * Find the _Fields constant that matches fieldId, or null if its not found.
57606
       */
57607
      public static _Fields findByThriftId(int fieldId) {
57608
        switch(fieldId) {
57609
          case 0: // SUCCESS
57610
            return SUCCESS;
57611
          default:
57612
            return null;
57613
        }
57614
      }
57615
 
57616
      /**
57617
       * Find the _Fields constant that matches fieldId, throwing an exception
57618
       * if it is not found.
57619
       */
57620
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57621
        _Fields fields = findByThriftId(fieldId);
57622
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57623
        return fields;
57624
      }
57625
 
57626
      /**
57627
       * Find the _Fields constant that matches name, or null if its not found.
57628
       */
57629
      public static _Fields findByName(String name) {
57630
        return byName.get(name);
57631
      }
57632
 
57633
      private final short _thriftId;
57634
      private final String _fieldName;
57635
 
57636
      _Fields(short thriftId, String fieldName) {
57637
        _thriftId = thriftId;
57638
        _fieldName = fieldName;
57639
      }
57640
 
57641
      public short getThriftFieldId() {
57642
        return _thriftId;
57643
      }
57644
 
57645
      public String getFieldName() {
57646
        return _fieldName;
57647
      }
57648
    }
57649
 
57650
    // isset id assignments
57651
    private static final int __SUCCESS_ISSET_ID = 0;
57652
    private BitSet __isset_bit_vector = new BitSet(1);
57653
 
57654
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57655
    static {
57656
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57657
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57658
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
57659
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57660
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isValidCatalogItemId_result.class, metaDataMap);
57661
    }
57662
 
57663
    public isValidCatalogItemId_result() {
57664
    }
57665
 
57666
    public isValidCatalogItemId_result(
57667
      boolean success)
57668
    {
57669
      this();
57670
      this.success = success;
57671
      setSuccessIsSet(true);
57672
    }
57673
 
57674
    /**
57675
     * Performs a deep copy on <i>other</i>.
57676
     */
57677
    public isValidCatalogItemId_result(isValidCatalogItemId_result other) {
57678
      __isset_bit_vector.clear();
57679
      __isset_bit_vector.or(other.__isset_bit_vector);
57680
      this.success = other.success;
57681
    }
57682
 
57683
    public isValidCatalogItemId_result deepCopy() {
57684
      return new isValidCatalogItemId_result(this);
57685
    }
57686
 
57687
    @Override
57688
    public void clear() {
57689
      setSuccessIsSet(false);
57690
      this.success = false;
57691
    }
57692
 
57693
    public boolean isSuccess() {
57694
      return this.success;
57695
    }
57696
 
57697
    public void setSuccess(boolean success) {
57698
      this.success = success;
57699
      setSuccessIsSet(true);
57700
    }
57701
 
57702
    public void unsetSuccess() {
57703
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
57704
    }
57705
 
57706
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
57707
    public boolean isSetSuccess() {
57708
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
57709
    }
57710
 
57711
    public void setSuccessIsSet(boolean value) {
57712
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
57713
    }
57714
 
57715
    public void setFieldValue(_Fields field, Object value) {
57716
      switch (field) {
57717
      case SUCCESS:
57718
        if (value == null) {
57719
          unsetSuccess();
57720
        } else {
57721
          setSuccess((Boolean)value);
57722
        }
57723
        break;
57724
 
57725
      }
57726
    }
57727
 
57728
    public Object getFieldValue(_Fields field) {
57729
      switch (field) {
57730
      case SUCCESS:
57731
        return Boolean.valueOf(isSuccess());
57732
 
57733
      }
57734
      throw new IllegalStateException();
57735
    }
57736
 
57737
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57738
    public boolean isSet(_Fields field) {
57739
      if (field == null) {
57740
        throw new IllegalArgumentException();
57741
      }
57742
 
57743
      switch (field) {
57744
      case SUCCESS:
57745
        return isSetSuccess();
57746
      }
57747
      throw new IllegalStateException();
57748
    }
57749
 
57750
    @Override
57751
    public boolean equals(Object that) {
57752
      if (that == null)
57753
        return false;
57754
      if (that instanceof isValidCatalogItemId_result)
57755
        return this.equals((isValidCatalogItemId_result)that);
57756
      return false;
57757
    }
57758
 
57759
    public boolean equals(isValidCatalogItemId_result that) {
57760
      if (that == null)
57761
        return false;
57762
 
57763
      boolean this_present_success = true;
57764
      boolean that_present_success = true;
57765
      if (this_present_success || that_present_success) {
57766
        if (!(this_present_success && that_present_success))
57767
          return false;
57768
        if (this.success != that.success)
57769
          return false;
57770
      }
57771
 
57772
      return true;
57773
    }
57774
 
57775
    @Override
57776
    public int hashCode() {
57777
      return 0;
57778
    }
57779
 
57780
    public int compareTo(isValidCatalogItemId_result other) {
57781
      if (!getClass().equals(other.getClass())) {
57782
        return getClass().getName().compareTo(other.getClass().getName());
57783
      }
57784
 
57785
      int lastComparison = 0;
57786
      isValidCatalogItemId_result typedOther = (isValidCatalogItemId_result)other;
57787
 
57788
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
57789
      if (lastComparison != 0) {
57790
        return lastComparison;
57791
      }
57792
      if (isSetSuccess()) {
57793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
57794
        if (lastComparison != 0) {
57795
          return lastComparison;
57796
        }
57797
      }
57798
      return 0;
57799
    }
57800
 
57801
    public _Fields fieldForId(int fieldId) {
57802
      return _Fields.findByThriftId(fieldId);
57803
    }
57804
 
57805
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57806
      org.apache.thrift.protocol.TField field;
57807
      iprot.readStructBegin();
57808
      while (true)
57809
      {
57810
        field = iprot.readFieldBegin();
57811
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57812
          break;
57813
        }
57814
        switch (field.id) {
57815
          case 0: // SUCCESS
57816
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
57817
              this.success = iprot.readBool();
57818
              setSuccessIsSet(true);
57819
            } else { 
57820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57821
            }
57822
            break;
57823
          default:
57824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57825
        }
57826
        iprot.readFieldEnd();
57827
      }
57828
      iprot.readStructEnd();
57829
      validate();
57830
    }
57831
 
57832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57833
      oprot.writeStructBegin(STRUCT_DESC);
57834
 
57835
      if (this.isSetSuccess()) {
57836
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57837
        oprot.writeBool(this.success);
57838
        oprot.writeFieldEnd();
57839
      }
57840
      oprot.writeFieldStop();
57841
      oprot.writeStructEnd();
57842
    }
57843
 
57844
    @Override
57845
    public String toString() {
57846
      StringBuilder sb = new StringBuilder("isValidCatalogItemId_result(");
57847
      boolean first = true;
57848
 
57849
      sb.append("success:");
57850
      sb.append(this.success);
57851
      first = false;
57852
      sb.append(")");
57853
      return sb.toString();
57854
    }
57855
 
57856
    public void validate() throws org.apache.thrift.TException {
57857
      // check for required fields
57858
    }
57859
 
57860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57861
      try {
57862
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57863
      } catch (org.apache.thrift.TException te) {
57864
        throw new java.io.IOException(te);
57865
      }
57866
    }
57867
 
57868
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57869
      try {
57870
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57871
      } catch (org.apache.thrift.TException te) {
57872
        throw new java.io.IOException(te);
57873
      }
57874
    }
57875
 
57876
  }
57877
 
6039 amit.gupta 57878
  public static class getVatPercentageForItem_args implements org.apache.thrift.TBase<getVatPercentageForItem_args, getVatPercentageForItem_args._Fields>, java.io.Serializable, Cloneable   {
57879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_args");
57880
 
57881
    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);
57882
    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);
57883
 
57884
    private long itemId; // required
57885
    private double price; // required
57886
 
57887
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57888
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57889
      ITEM_ID((short)1, "itemId"),
57890
      PRICE((short)2, "price");
57891
 
57892
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57893
 
57894
      static {
57895
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57896
          byName.put(field.getFieldName(), field);
57897
        }
57898
      }
57899
 
57900
      /**
57901
       * Find the _Fields constant that matches fieldId, or null if its not found.
57902
       */
57903
      public static _Fields findByThriftId(int fieldId) {
57904
        switch(fieldId) {
57905
          case 1: // ITEM_ID
57906
            return ITEM_ID;
57907
          case 2: // PRICE
57908
            return PRICE;
57909
          default:
57910
            return null;
57911
        }
57912
      }
57913
 
57914
      /**
57915
       * Find the _Fields constant that matches fieldId, throwing an exception
57916
       * if it is not found.
57917
       */
57918
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57919
        _Fields fields = findByThriftId(fieldId);
57920
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57921
        return fields;
57922
      }
57923
 
57924
      /**
57925
       * Find the _Fields constant that matches name, or null if its not found.
57926
       */
57927
      public static _Fields findByName(String name) {
57928
        return byName.get(name);
57929
      }
57930
 
57931
      private final short _thriftId;
57932
      private final String _fieldName;
57933
 
57934
      _Fields(short thriftId, String fieldName) {
57935
        _thriftId = thriftId;
57936
        _fieldName = fieldName;
57937
      }
57938
 
57939
      public short getThriftFieldId() {
57940
        return _thriftId;
57941
      }
57942
 
57943
      public String getFieldName() {
57944
        return _fieldName;
57945
      }
57946
    }
57947
 
57948
    // isset id assignments
57949
    private static final int __ITEMID_ISSET_ID = 0;
57950
    private static final int __PRICE_ISSET_ID = 1;
57951
    private BitSet __isset_bit_vector = new BitSet(2);
57952
 
57953
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57954
    static {
57955
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57956
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57957
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57958
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57959
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
57960
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57961
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_args.class, metaDataMap);
57962
    }
57963
 
57964
    public getVatPercentageForItem_args() {
57965
    }
57966
 
57967
    public getVatPercentageForItem_args(
57968
      long itemId,
57969
      double price)
57970
    {
57971
      this();
57972
      this.itemId = itemId;
57973
      setItemIdIsSet(true);
57974
      this.price = price;
57975
      setPriceIsSet(true);
57976
    }
57977
 
57978
    /**
57979
     * Performs a deep copy on <i>other</i>.
57980
     */
57981
    public getVatPercentageForItem_args(getVatPercentageForItem_args other) {
57982
      __isset_bit_vector.clear();
57983
      __isset_bit_vector.or(other.__isset_bit_vector);
57984
      this.itemId = other.itemId;
57985
      this.price = other.price;
57986
    }
57987
 
57988
    public getVatPercentageForItem_args deepCopy() {
57989
      return new getVatPercentageForItem_args(this);
57990
    }
57991
 
57992
    @Override
57993
    public void clear() {
57994
      setItemIdIsSet(false);
57995
      this.itemId = 0;
57996
      setPriceIsSet(false);
57997
      this.price = 0.0;
57998
    }
57999
 
58000
    public long getItemId() {
58001
      return this.itemId;
58002
    }
58003
 
58004
    public void setItemId(long itemId) {
58005
      this.itemId = itemId;
58006
      setItemIdIsSet(true);
58007
    }
58008
 
58009
    public void unsetItemId() {
58010
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
58011
    }
58012
 
58013
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
58014
    public boolean isSetItemId() {
58015
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
58016
    }
58017
 
58018
    public void setItemIdIsSet(boolean value) {
58019
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
58020
    }
58021
 
58022
    public double getPrice() {
58023
      return this.price;
58024
    }
58025
 
58026
    public void setPrice(double price) {
58027
      this.price = price;
58028
      setPriceIsSet(true);
58029
    }
58030
 
58031
    public void unsetPrice() {
58032
      __isset_bit_vector.clear(__PRICE_ISSET_ID);
58033
    }
58034
 
58035
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
58036
    public boolean isSetPrice() {
58037
      return __isset_bit_vector.get(__PRICE_ISSET_ID);
58038
    }
58039
 
58040
    public void setPriceIsSet(boolean value) {
58041
      __isset_bit_vector.set(__PRICE_ISSET_ID, value);
58042
    }
58043
 
58044
    public void setFieldValue(_Fields field, Object value) {
58045
      switch (field) {
58046
      case ITEM_ID:
58047
        if (value == null) {
58048
          unsetItemId();
58049
        } else {
58050
          setItemId((Long)value);
58051
        }
58052
        break;
58053
 
58054
      case PRICE:
58055
        if (value == null) {
58056
          unsetPrice();
58057
        } else {
58058
          setPrice((Double)value);
58059
        }
58060
        break;
58061
 
58062
      }
58063
    }
58064
 
58065
    public Object getFieldValue(_Fields field) {
58066
      switch (field) {
58067
      case ITEM_ID:
58068
        return Long.valueOf(getItemId());
58069
 
58070
      case PRICE:
58071
        return Double.valueOf(getPrice());
58072
 
58073
      }
58074
      throw new IllegalStateException();
58075
    }
58076
 
58077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
58078
    public boolean isSet(_Fields field) {
58079
      if (field == null) {
58080
        throw new IllegalArgumentException();
58081
      }
58082
 
58083
      switch (field) {
58084
      case ITEM_ID:
58085
        return isSetItemId();
58086
      case PRICE:
58087
        return isSetPrice();
58088
      }
58089
      throw new IllegalStateException();
58090
    }
58091
 
58092
    @Override
58093
    public boolean equals(Object that) {
58094
      if (that == null)
58095
        return false;
58096
      if (that instanceof getVatPercentageForItem_args)
58097
        return this.equals((getVatPercentageForItem_args)that);
58098
      return false;
58099
    }
58100
 
58101
    public boolean equals(getVatPercentageForItem_args that) {
58102
      if (that == null)
58103
        return false;
58104
 
58105
      boolean this_present_itemId = true;
58106
      boolean that_present_itemId = true;
58107
      if (this_present_itemId || that_present_itemId) {
58108
        if (!(this_present_itemId && that_present_itemId))
58109
          return false;
58110
        if (this.itemId != that.itemId)
58111
          return false;
58112
      }
58113
 
58114
      boolean this_present_price = true;
58115
      boolean that_present_price = true;
58116
      if (this_present_price || that_present_price) {
58117
        if (!(this_present_price && that_present_price))
58118
          return false;
58119
        if (this.price != that.price)
58120
          return false;
58121
      }
58122
 
58123
      return true;
58124
    }
58125
 
58126
    @Override
58127
    public int hashCode() {
58128
      return 0;
58129
    }
58130
 
58131
    public int compareTo(getVatPercentageForItem_args other) {
58132
      if (!getClass().equals(other.getClass())) {
58133
        return getClass().getName().compareTo(other.getClass().getName());
58134
      }
58135
 
58136
      int lastComparison = 0;
58137
      getVatPercentageForItem_args typedOther = (getVatPercentageForItem_args)other;
58138
 
58139
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
58140
      if (lastComparison != 0) {
58141
        return lastComparison;
58142
      }
58143
      if (isSetItemId()) {
58144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
58145
        if (lastComparison != 0) {
58146
          return lastComparison;
58147
        }
58148
      }
58149
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
58150
      if (lastComparison != 0) {
58151
        return lastComparison;
58152
      }
58153
      if (isSetPrice()) {
58154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
58155
        if (lastComparison != 0) {
58156
          return lastComparison;
58157
        }
58158
      }
58159
      return 0;
58160
    }
58161
 
58162
    public _Fields fieldForId(int fieldId) {
58163
      return _Fields.findByThriftId(fieldId);
58164
    }
58165
 
58166
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
58167
      org.apache.thrift.protocol.TField field;
58168
      iprot.readStructBegin();
58169
      while (true)
58170
      {
58171
        field = iprot.readFieldBegin();
58172
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58173
          break;
58174
        }
58175
        switch (field.id) {
58176
          case 1: // ITEM_ID
58177
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58178
              this.itemId = iprot.readI64();
58179
              setItemIdIsSet(true);
58180
            } else { 
58181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58182
            }
58183
            break;
58184
          case 2: // PRICE
58185
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
58186
              this.price = iprot.readDouble();
58187
              setPriceIsSet(true);
58188
            } else { 
58189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58190
            }
58191
            break;
58192
          default:
58193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58194
        }
58195
        iprot.readFieldEnd();
58196
      }
58197
      iprot.readStructEnd();
58198
      validate();
58199
    }
58200
 
58201
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58202
      validate();
58203
 
58204
      oprot.writeStructBegin(STRUCT_DESC);
58205
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
58206
      oprot.writeI64(this.itemId);
58207
      oprot.writeFieldEnd();
58208
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
58209
      oprot.writeDouble(this.price);
58210
      oprot.writeFieldEnd();
58211
      oprot.writeFieldStop();
58212
      oprot.writeStructEnd();
58213
    }
58214
 
58215
    @Override
58216
    public String toString() {
58217
      StringBuilder sb = new StringBuilder("getVatPercentageForItem_args(");
58218
      boolean first = true;
58219
 
58220
      sb.append("itemId:");
58221
      sb.append(this.itemId);
58222
      first = false;
58223
      if (!first) sb.append(", ");
58224
      sb.append("price:");
58225
      sb.append(this.price);
58226
      first = false;
58227
      sb.append(")");
58228
      return sb.toString();
58229
    }
58230
 
58231
    public void validate() throws org.apache.thrift.TException {
58232
      // check for required fields
58233
    }
58234
 
58235
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58236
      try {
58237
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58238
      } catch (org.apache.thrift.TException te) {
58239
        throw new java.io.IOException(te);
58240
      }
58241
    }
58242
 
58243
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58244
      try {
58245
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
58246
        __isset_bit_vector = new BitSet(1);
58247
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58248
      } catch (org.apache.thrift.TException te) {
58249
        throw new java.io.IOException(te);
58250
      }
58251
    }
58252
 
58253
  }
58254
 
58255
  public static class getVatPercentageForItem_result implements org.apache.thrift.TBase<getVatPercentageForItem_result, getVatPercentageForItem_result._Fields>, java.io.Serializable, Cloneable   {
58256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_result");
58257
 
58258
    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);
58259
 
58260
    private double success; // required
58261
 
58262
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58263
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58264
      SUCCESS((short)0, "success");
58265
 
58266
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58267
 
58268
      static {
58269
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58270
          byName.put(field.getFieldName(), field);
58271
        }
58272
      }
58273
 
58274
      /**
58275
       * Find the _Fields constant that matches fieldId, or null if its not found.
58276
       */
58277
      public static _Fields findByThriftId(int fieldId) {
58278
        switch(fieldId) {
58279
          case 0: // SUCCESS
58280
            return SUCCESS;
58281
          default:
58282
            return null;
58283
        }
58284
      }
58285
 
58286
      /**
58287
       * Find the _Fields constant that matches fieldId, throwing an exception
58288
       * if it is not found.
58289
       */
58290
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58291
        _Fields fields = findByThriftId(fieldId);
58292
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58293
        return fields;
58294
      }
58295
 
58296
      /**
58297
       * Find the _Fields constant that matches name, or null if its not found.
58298
       */
58299
      public static _Fields findByName(String name) {
58300
        return byName.get(name);
58301
      }
58302
 
58303
      private final short _thriftId;
58304
      private final String _fieldName;
58305
 
58306
      _Fields(short thriftId, String fieldName) {
58307
        _thriftId = thriftId;
58308
        _fieldName = fieldName;
58309
      }
58310
 
58311
      public short getThriftFieldId() {
58312
        return _thriftId;
58313
      }
58314
 
58315
      public String getFieldName() {
58316
        return _fieldName;
58317
      }
58318
    }
58319
 
58320
    // isset id assignments
58321
    private static final int __SUCCESS_ISSET_ID = 0;
58322
    private BitSet __isset_bit_vector = new BitSet(1);
58323
 
58324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58325
    static {
58326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58327
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58328
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
58329
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58330
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_result.class, metaDataMap);
58331
    }
58332
 
58333
    public getVatPercentageForItem_result() {
58334
    }
58335
 
58336
    public getVatPercentageForItem_result(
58337
      double success)
58338
    {
58339
      this();
58340
      this.success = success;
58341
      setSuccessIsSet(true);
58342
    }
58343
 
58344
    /**
58345
     * Performs a deep copy on <i>other</i>.
58346
     */
58347
    public getVatPercentageForItem_result(getVatPercentageForItem_result other) {
58348
      __isset_bit_vector.clear();
58349
      __isset_bit_vector.or(other.__isset_bit_vector);
58350
      this.success = other.success;
58351
    }
58352
 
58353
    public getVatPercentageForItem_result deepCopy() {
58354
      return new getVatPercentageForItem_result(this);
58355
    }
58356
 
58357
    @Override
58358
    public void clear() {
58359
      setSuccessIsSet(false);
58360
      this.success = 0.0;
58361
    }
58362
 
58363
    public double getSuccess() {
58364
      return this.success;
58365
    }
58366
 
58367
    public void setSuccess(double success) {
58368
      this.success = success;
58369
      setSuccessIsSet(true);
58370
    }
58371
 
58372
    public void unsetSuccess() {
58373
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
58374
    }
58375
 
58376
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
58377
    public boolean isSetSuccess() {
58378
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
58379
    }
58380
 
58381
    public void setSuccessIsSet(boolean value) {
58382
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
58383
    }
58384
 
58385
    public void setFieldValue(_Fields field, Object value) {
58386
      switch (field) {
58387
      case SUCCESS:
58388
        if (value == null) {
58389
          unsetSuccess();
58390
        } else {
58391
          setSuccess((Double)value);
58392
        }
58393
        break;
58394
 
58395
      }
58396
    }
58397
 
58398
    public Object getFieldValue(_Fields field) {
58399
      switch (field) {
58400
      case SUCCESS:
58401
        return Double.valueOf(getSuccess());
58402
 
58403
      }
58404
      throw new IllegalStateException();
58405
    }
58406
 
58407
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
58408
    public boolean isSet(_Fields field) {
58409
      if (field == null) {
58410
        throw new IllegalArgumentException();
58411
      }
58412
 
58413
      switch (field) {
58414
      case SUCCESS:
58415
        return isSetSuccess();
58416
      }
58417
      throw new IllegalStateException();
58418
    }
58419
 
58420
    @Override
58421
    public boolean equals(Object that) {
58422
      if (that == null)
58423
        return false;
58424
      if (that instanceof getVatPercentageForItem_result)
58425
        return this.equals((getVatPercentageForItem_result)that);
58426
      return false;
58427
    }
58428
 
58429
    public boolean equals(getVatPercentageForItem_result that) {
58430
      if (that == null)
58431
        return false;
58432
 
58433
      boolean this_present_success = true;
58434
      boolean that_present_success = true;
58435
      if (this_present_success || that_present_success) {
58436
        if (!(this_present_success && that_present_success))
58437
          return false;
58438
        if (this.success != that.success)
58439
          return false;
58440
      }
58441
 
58442
      return true;
58443
    }
58444
 
58445
    @Override
58446
    public int hashCode() {
58447
      return 0;
58448
    }
58449
 
58450
    public int compareTo(getVatPercentageForItem_result other) {
58451
      if (!getClass().equals(other.getClass())) {
58452
        return getClass().getName().compareTo(other.getClass().getName());
58453
      }
58454
 
58455
      int lastComparison = 0;
58456
      getVatPercentageForItem_result typedOther = (getVatPercentageForItem_result)other;
58457
 
58458
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
58459
      if (lastComparison != 0) {
58460
        return lastComparison;
58461
      }
58462
      if (isSetSuccess()) {
58463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
58464
        if (lastComparison != 0) {
58465
          return lastComparison;
58466
        }
58467
      }
58468
      return 0;
58469
    }
58470
 
58471
    public _Fields fieldForId(int fieldId) {
58472
      return _Fields.findByThriftId(fieldId);
58473
    }
58474
 
58475
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
58476
      org.apache.thrift.protocol.TField field;
58477
      iprot.readStructBegin();
58478
      while (true)
58479
      {
58480
        field = iprot.readFieldBegin();
58481
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58482
          break;
58483
        }
58484
        switch (field.id) {
58485
          case 0: // SUCCESS
58486
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
58487
              this.success = iprot.readDouble();
58488
              setSuccessIsSet(true);
58489
            } else { 
58490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58491
            }
58492
            break;
58493
          default:
58494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58495
        }
58496
        iprot.readFieldEnd();
58497
      }
58498
      iprot.readStructEnd();
58499
      validate();
58500
    }
58501
 
58502
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58503
      oprot.writeStructBegin(STRUCT_DESC);
58504
 
58505
      if (this.isSetSuccess()) {
58506
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58507
        oprot.writeDouble(this.success);
58508
        oprot.writeFieldEnd();
58509
      }
58510
      oprot.writeFieldStop();
58511
      oprot.writeStructEnd();
58512
    }
58513
 
58514
    @Override
58515
    public String toString() {
58516
      StringBuilder sb = new StringBuilder("getVatPercentageForItem_result(");
58517
      boolean first = true;
58518
 
58519
      sb.append("success:");
58520
      sb.append(this.success);
58521
      first = false;
58522
      sb.append(")");
58523
      return sb.toString();
58524
    }
58525
 
58526
    public void validate() throws org.apache.thrift.TException {
58527
      // check for required fields
58528
    }
58529
 
58530
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58531
      try {
58532
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58533
      } catch (org.apache.thrift.TException te) {
58534
        throw new java.io.IOException(te);
58535
      }
58536
    }
58537
 
58538
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58539
      try {
58540
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58541
      } catch (org.apache.thrift.TException te) {
58542
        throw new java.io.IOException(te);
58543
      }
58544
    }
58545
 
58546
  }
58547
 
58548
  public static class getVatAmountForItem_args implements org.apache.thrift.TBase<getVatAmountForItem_args, getVatAmountForItem_args._Fields>, java.io.Serializable, Cloneable   {
58549
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatAmountForItem_args");
58550
 
58551
    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);
58552
    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);
58553
 
58554
    private long itemId; // required
58555
    private double price; // required
58556
 
58557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58559
      ITEM_ID((short)1, "itemId"),
58560
      PRICE((short)2, "price");
58561
 
58562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58563
 
58564
      static {
58565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58566
          byName.put(field.getFieldName(), field);
58567
        }
58568
      }
58569
 
58570
      /**
58571
       * Find the _Fields constant that matches fieldId, or null if its not found.
58572
       */
58573
      public static _Fields findByThriftId(int fieldId) {
58574
        switch(fieldId) {
58575
          case 1: // ITEM_ID
58576
            return ITEM_ID;
58577
          case 2: // PRICE
58578
            return PRICE;
58579
          default:
58580
            return null;
58581
        }
58582
      }
58583
 
58584
      /**
58585
       * Find the _Fields constant that matches fieldId, throwing an exception
58586
       * if it is not found.
58587
       */
58588
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58589
        _Fields fields = findByThriftId(fieldId);
58590
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58591
        return fields;
58592
      }
58593
 
58594
      /**
58595
       * Find the _Fields constant that matches name, or null if its not found.
58596
       */
58597
      public static _Fields findByName(String name) {
58598
        return byName.get(name);
58599
      }
58600
 
58601
      private final short _thriftId;
58602
      private final String _fieldName;
58603
 
58604
      _Fields(short thriftId, String fieldName) {
58605
        _thriftId = thriftId;
58606
        _fieldName = fieldName;
58607
      }
58608
 
58609
      public short getThriftFieldId() {
58610
        return _thriftId;
58611
      }
58612
 
58613
      public String getFieldName() {
58614
        return _fieldName;
58615
      }
58616
    }
58617
 
58618
    // isset id assignments
58619
    private static final int __ITEMID_ISSET_ID = 0;
58620
    private static final int __PRICE_ISSET_ID = 1;
58621
    private BitSet __isset_bit_vector = new BitSet(2);
58622
 
58623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58624
    static {
58625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58626
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58628
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58629
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
58630
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58631
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatAmountForItem_args.class, metaDataMap);
58632
    }
58633
 
58634
    public getVatAmountForItem_args() {
58635
    }
58636
 
58637
    public getVatAmountForItem_args(
58638
      long itemId,
58639
      double price)
58640
    {
58641
      this();
58642
      this.itemId = itemId;
58643
      setItemIdIsSet(true);
58644
      this.price = price;
58645
      setPriceIsSet(true);
58646
    }
58647
 
58648
    /**
58649
     * Performs a deep copy on <i>other</i>.
58650
     */
58651
    public getVatAmountForItem_args(getVatAmountForItem_args other) {
58652
      __isset_bit_vector.clear();
58653
      __isset_bit_vector.or(other.__isset_bit_vector);
58654
      this.itemId = other.itemId;
58655
      this.price = other.price;
58656
    }
58657
 
58658
    public getVatAmountForItem_args deepCopy() {
58659
      return new getVatAmountForItem_args(this);
58660
    }
58661
 
58662
    @Override
58663
    public void clear() {
58664
      setItemIdIsSet(false);
58665
      this.itemId = 0;
58666
      setPriceIsSet(false);
58667
      this.price = 0.0;
58668
    }
58669
 
58670
    public long getItemId() {
58671
      return this.itemId;
58672
    }
58673
 
58674
    public void setItemId(long itemId) {
58675
      this.itemId = itemId;
58676
      setItemIdIsSet(true);
58677
    }
58678
 
58679
    public void unsetItemId() {
58680
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
58681
    }
58682
 
58683
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
58684
    public boolean isSetItemId() {
58685
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
58686
    }
58687
 
58688
    public void setItemIdIsSet(boolean value) {
58689
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
58690
    }
58691
 
58692
    public double getPrice() {
58693
      return this.price;
58694
    }
58695
 
58696
    public void setPrice(double price) {
58697
      this.price = price;
58698
      setPriceIsSet(true);
58699
    }
58700
 
58701
    public void unsetPrice() {
58702
      __isset_bit_vector.clear(__PRICE_ISSET_ID);
58703
    }
58704
 
58705
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
58706
    public boolean isSetPrice() {
58707
      return __isset_bit_vector.get(__PRICE_ISSET_ID);
58708
    }
58709
 
58710
    public void setPriceIsSet(boolean value) {
58711
      __isset_bit_vector.set(__PRICE_ISSET_ID, value);
58712
    }
58713
 
58714
    public void setFieldValue(_Fields field, Object value) {
58715
      switch (field) {
58716
      case ITEM_ID:
58717
        if (value == null) {
58718
          unsetItemId();
58719
        } else {
58720
          setItemId((Long)value);
58721
        }
58722
        break;
58723
 
58724
      case PRICE:
58725
        if (value == null) {
58726
          unsetPrice();
58727
        } else {
58728
          setPrice((Double)value);
58729
        }
58730
        break;
58731
 
58732
      }
58733
    }
58734
 
58735
    public Object getFieldValue(_Fields field) {
58736
      switch (field) {
58737
      case ITEM_ID:
58738
        return Long.valueOf(getItemId());
58739
 
58740
      case PRICE:
58741
        return Double.valueOf(getPrice());
58742
 
58743
      }
58744
      throw new IllegalStateException();
58745
    }
58746
 
58747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
58748
    public boolean isSet(_Fields field) {
58749
      if (field == null) {
58750
        throw new IllegalArgumentException();
58751
      }
58752
 
58753
      switch (field) {
58754
      case ITEM_ID:
58755
        return isSetItemId();
58756
      case PRICE:
58757
        return isSetPrice();
58758
      }
58759
      throw new IllegalStateException();
58760
    }
58761
 
58762
    @Override
58763
    public boolean equals(Object that) {
58764
      if (that == null)
58765
        return false;
58766
      if (that instanceof getVatAmountForItem_args)
58767
        return this.equals((getVatAmountForItem_args)that);
58768
      return false;
58769
    }
58770
 
58771
    public boolean equals(getVatAmountForItem_args that) {
58772
      if (that == null)
58773
        return false;
58774
 
58775
      boolean this_present_itemId = true;
58776
      boolean that_present_itemId = true;
58777
      if (this_present_itemId || that_present_itemId) {
58778
        if (!(this_present_itemId && that_present_itemId))
58779
          return false;
58780
        if (this.itemId != that.itemId)
58781
          return false;
58782
      }
58783
 
58784
      boolean this_present_price = true;
58785
      boolean that_present_price = true;
58786
      if (this_present_price || that_present_price) {
58787
        if (!(this_present_price && that_present_price))
58788
          return false;
58789
        if (this.price != that.price)
58790
          return false;
58791
      }
58792
 
58793
      return true;
58794
    }
58795
 
58796
    @Override
58797
    public int hashCode() {
58798
      return 0;
58799
    }
58800
 
58801
    public int compareTo(getVatAmountForItem_args other) {
58802
      if (!getClass().equals(other.getClass())) {
58803
        return getClass().getName().compareTo(other.getClass().getName());
58804
      }
58805
 
58806
      int lastComparison = 0;
58807
      getVatAmountForItem_args typedOther = (getVatAmountForItem_args)other;
58808
 
58809
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
58810
      if (lastComparison != 0) {
58811
        return lastComparison;
58812
      }
58813
      if (isSetItemId()) {
58814
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
58815
        if (lastComparison != 0) {
58816
          return lastComparison;
58817
        }
58818
      }
58819
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
58820
      if (lastComparison != 0) {
58821
        return lastComparison;
58822
      }
58823
      if (isSetPrice()) {
58824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
58825
        if (lastComparison != 0) {
58826
          return lastComparison;
58827
        }
58828
      }
58829
      return 0;
58830
    }
58831
 
58832
    public _Fields fieldForId(int fieldId) {
58833
      return _Fields.findByThriftId(fieldId);
58834
    }
58835
 
58836
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
58837
      org.apache.thrift.protocol.TField field;
58838
      iprot.readStructBegin();
58839
      while (true)
58840
      {
58841
        field = iprot.readFieldBegin();
58842
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58843
          break;
58844
        }
58845
        switch (field.id) {
58846
          case 1: // ITEM_ID
58847
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58848
              this.itemId = iprot.readI64();
58849
              setItemIdIsSet(true);
58850
            } else { 
58851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58852
            }
58853
            break;
58854
          case 2: // PRICE
58855
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
58856
              this.price = iprot.readDouble();
58857
              setPriceIsSet(true);
58858
            } else { 
58859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58860
            }
58861
            break;
58862
          default:
58863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58864
        }
58865
        iprot.readFieldEnd();
58866
      }
58867
      iprot.readStructEnd();
58868
      validate();
58869
    }
58870
 
58871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58872
      validate();
58873
 
58874
      oprot.writeStructBegin(STRUCT_DESC);
58875
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
58876
      oprot.writeI64(this.itemId);
58877
      oprot.writeFieldEnd();
58878
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
58879
      oprot.writeDouble(this.price);
58880
      oprot.writeFieldEnd();
58881
      oprot.writeFieldStop();
58882
      oprot.writeStructEnd();
58883
    }
58884
 
58885
    @Override
58886
    public String toString() {
58887
      StringBuilder sb = new StringBuilder("getVatAmountForItem_args(");
58888
      boolean first = true;
58889
 
58890
      sb.append("itemId:");
58891
      sb.append(this.itemId);
58892
      first = false;
58893
      if (!first) sb.append(", ");
58894
      sb.append("price:");
58895
      sb.append(this.price);
58896
      first = false;
58897
      sb.append(")");
58898
      return sb.toString();
58899
    }
58900
 
58901
    public void validate() throws org.apache.thrift.TException {
58902
      // check for required fields
58903
    }
58904
 
58905
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58906
      try {
58907
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58908
      } catch (org.apache.thrift.TException te) {
58909
        throw new java.io.IOException(te);
58910
      }
58911
    }
58912
 
58913
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58914
      try {
58915
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
58916
        __isset_bit_vector = new BitSet(1);
58917
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58918
      } catch (org.apache.thrift.TException te) {
58919
        throw new java.io.IOException(te);
58920
      }
58921
    }
58922
 
58923
  }
58924
 
58925
  public static class getVatAmountForItem_result implements org.apache.thrift.TBase<getVatAmountForItem_result, getVatAmountForItem_result._Fields>, java.io.Serializable, Cloneable   {
58926
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatAmountForItem_result");
58927
 
58928
    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);
58929
 
58930
    private double success; // required
58931
 
58932
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58933
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58934
      SUCCESS((short)0, "success");
58935
 
58936
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58937
 
58938
      static {
58939
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58940
          byName.put(field.getFieldName(), field);
58941
        }
58942
      }
58943
 
58944
      /**
58945
       * Find the _Fields constant that matches fieldId, or null if its not found.
58946
       */
58947
      public static _Fields findByThriftId(int fieldId) {
58948
        switch(fieldId) {
58949
          case 0: // SUCCESS
58950
            return SUCCESS;
58951
          default:
58952
            return null;
58953
        }
58954
      }
58955
 
58956
      /**
58957
       * Find the _Fields constant that matches fieldId, throwing an exception
58958
       * if it is not found.
58959
       */
58960
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58961
        _Fields fields = findByThriftId(fieldId);
58962
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58963
        return fields;
58964
      }
58965
 
58966
      /**
58967
       * Find the _Fields constant that matches name, or null if its not found.
58968
       */
58969
      public static _Fields findByName(String name) {
58970
        return byName.get(name);
58971
      }
58972
 
58973
      private final short _thriftId;
58974
      private final String _fieldName;
58975
 
58976
      _Fields(short thriftId, String fieldName) {
58977
        _thriftId = thriftId;
58978
        _fieldName = fieldName;
58979
      }
58980
 
58981
      public short getThriftFieldId() {
58982
        return _thriftId;
58983
      }
58984
 
58985
      public String getFieldName() {
58986
        return _fieldName;
58987
      }
58988
    }
58989
 
58990
    // isset id assignments
58991
    private static final int __SUCCESS_ISSET_ID = 0;
58992
    private BitSet __isset_bit_vector = new BitSet(1);
58993
 
58994
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58995
    static {
58996
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58997
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58998
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
58999
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59000
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatAmountForItem_result.class, metaDataMap);
59001
    }
59002
 
59003
    public getVatAmountForItem_result() {
59004
    }
59005
 
59006
    public getVatAmountForItem_result(
59007
      double success)
59008
    {
59009
      this();
59010
      this.success = success;
59011
      setSuccessIsSet(true);
59012
    }
59013
 
59014
    /**
59015
     * Performs a deep copy on <i>other</i>.
59016
     */
59017
    public getVatAmountForItem_result(getVatAmountForItem_result other) {
59018
      __isset_bit_vector.clear();
59019
      __isset_bit_vector.or(other.__isset_bit_vector);
59020
      this.success = other.success;
59021
    }
59022
 
59023
    public getVatAmountForItem_result deepCopy() {
59024
      return new getVatAmountForItem_result(this);
59025
    }
59026
 
59027
    @Override
59028
    public void clear() {
59029
      setSuccessIsSet(false);
59030
      this.success = 0.0;
59031
    }
59032
 
59033
    public double getSuccess() {
59034
      return this.success;
59035
    }
59036
 
59037
    public void setSuccess(double success) {
59038
      this.success = success;
59039
      setSuccessIsSet(true);
59040
    }
59041
 
59042
    public void unsetSuccess() {
59043
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
59044
    }
59045
 
59046
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
59047
    public boolean isSetSuccess() {
59048
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
59049
    }
59050
 
59051
    public void setSuccessIsSet(boolean value) {
59052
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
59053
    }
59054
 
59055
    public void setFieldValue(_Fields field, Object value) {
59056
      switch (field) {
59057
      case SUCCESS:
59058
        if (value == null) {
59059
          unsetSuccess();
59060
        } else {
59061
          setSuccess((Double)value);
59062
        }
59063
        break;
59064
 
59065
      }
59066
    }
59067
 
59068
    public Object getFieldValue(_Fields field) {
59069
      switch (field) {
59070
      case SUCCESS:
59071
        return Double.valueOf(getSuccess());
59072
 
59073
      }
59074
      throw new IllegalStateException();
59075
    }
59076
 
59077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59078
    public boolean isSet(_Fields field) {
59079
      if (field == null) {
59080
        throw new IllegalArgumentException();
59081
      }
59082
 
59083
      switch (field) {
59084
      case SUCCESS:
59085
        return isSetSuccess();
59086
      }
59087
      throw new IllegalStateException();
59088
    }
59089
 
59090
    @Override
59091
    public boolean equals(Object that) {
59092
      if (that == null)
59093
        return false;
59094
      if (that instanceof getVatAmountForItem_result)
59095
        return this.equals((getVatAmountForItem_result)that);
59096
      return false;
59097
    }
59098
 
59099
    public boolean equals(getVatAmountForItem_result that) {
59100
      if (that == null)
59101
        return false;
59102
 
59103
      boolean this_present_success = true;
59104
      boolean that_present_success = true;
59105
      if (this_present_success || that_present_success) {
59106
        if (!(this_present_success && that_present_success))
59107
          return false;
59108
        if (this.success != that.success)
59109
          return false;
59110
      }
59111
 
59112
      return true;
59113
    }
59114
 
59115
    @Override
59116
    public int hashCode() {
59117
      return 0;
59118
    }
59119
 
59120
    public int compareTo(getVatAmountForItem_result other) {
59121
      if (!getClass().equals(other.getClass())) {
59122
        return getClass().getName().compareTo(other.getClass().getName());
59123
      }
59124
 
59125
      int lastComparison = 0;
59126
      getVatAmountForItem_result typedOther = (getVatAmountForItem_result)other;
59127
 
59128
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
59129
      if (lastComparison != 0) {
59130
        return lastComparison;
59131
      }
59132
      if (isSetSuccess()) {
59133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
59134
        if (lastComparison != 0) {
59135
          return lastComparison;
59136
        }
59137
      }
59138
      return 0;
59139
    }
59140
 
59141
    public _Fields fieldForId(int fieldId) {
59142
      return _Fields.findByThriftId(fieldId);
59143
    }
59144
 
59145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
59146
      org.apache.thrift.protocol.TField field;
59147
      iprot.readStructBegin();
59148
      while (true)
59149
      {
59150
        field = iprot.readFieldBegin();
59151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59152
          break;
59153
        }
59154
        switch (field.id) {
59155
          case 0: // SUCCESS
59156
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
59157
              this.success = iprot.readDouble();
59158
              setSuccessIsSet(true);
59159
            } else { 
59160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59161
            }
59162
            break;
59163
          default:
59164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59165
        }
59166
        iprot.readFieldEnd();
59167
      }
59168
      iprot.readStructEnd();
59169
      validate();
59170
    }
59171
 
59172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59173
      oprot.writeStructBegin(STRUCT_DESC);
59174
 
59175
      if (this.isSetSuccess()) {
59176
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59177
        oprot.writeDouble(this.success);
59178
        oprot.writeFieldEnd();
59179
      }
59180
      oprot.writeFieldStop();
59181
      oprot.writeStructEnd();
59182
    }
59183
 
59184
    @Override
59185
    public String toString() {
59186
      StringBuilder sb = new StringBuilder("getVatAmountForItem_result(");
59187
      boolean first = true;
59188
 
59189
      sb.append("success:");
59190
      sb.append(this.success);
59191
      first = false;
59192
      sb.append(")");
59193
      return sb.toString();
59194
    }
59195
 
59196
    public void validate() throws org.apache.thrift.TException {
59197
      // check for required fields
59198
    }
59199
 
59200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59201
      try {
59202
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
59203
      } catch (org.apache.thrift.TException te) {
59204
        throw new java.io.IOException(te);
59205
      }
59206
    }
59207
 
59208
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59209
      try {
59210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59211
      } catch (org.apache.thrift.TException te) {
59212
        throw new java.io.IOException(te);
59213
      }
59214
    }
59215
 
59216
  }
59217
 
6531 vikram.rag 59218
  public static class getAllIgnoredInventoryUpdateItemsList_args implements org.apache.thrift.TBase<getAllIgnoredInventoryUpdateItemsList_args, getAllIgnoredInventoryUpdateItemsList_args._Fields>, java.io.Serializable, Cloneable   {
59219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryUpdateItemsList_args");
59220
 
59221
    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);
59222
    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);
59223
 
59224
    private int offset; // required
59225
    private int limit; // required
59226
 
59227
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59228
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59229
      OFFSET((short)1, "offset"),
59230
      LIMIT((short)2, "limit");
59231
 
59232
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59233
 
59234
      static {
59235
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59236
          byName.put(field.getFieldName(), field);
59237
        }
59238
      }
59239
 
59240
      /**
59241
       * Find the _Fields constant that matches fieldId, or null if its not found.
59242
       */
59243
      public static _Fields findByThriftId(int fieldId) {
59244
        switch(fieldId) {
59245
          case 1: // OFFSET
59246
            return OFFSET;
59247
          case 2: // LIMIT
59248
            return LIMIT;
59249
          default:
59250
            return null;
59251
        }
59252
      }
59253
 
59254
      /**
59255
       * Find the _Fields constant that matches fieldId, throwing an exception
59256
       * if it is not found.
59257
       */
59258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
59259
        _Fields fields = findByThriftId(fieldId);
59260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
59261
        return fields;
59262
      }
59263
 
59264
      /**
59265
       * Find the _Fields constant that matches name, or null if its not found.
59266
       */
59267
      public static _Fields findByName(String name) {
59268
        return byName.get(name);
59269
      }
59270
 
59271
      private final short _thriftId;
59272
      private final String _fieldName;
59273
 
59274
      _Fields(short thriftId, String fieldName) {
59275
        _thriftId = thriftId;
59276
        _fieldName = fieldName;
59277
      }
59278
 
59279
      public short getThriftFieldId() {
59280
        return _thriftId;
59281
      }
59282
 
59283
      public String getFieldName() {
59284
        return _fieldName;
59285
      }
59286
    }
59287
 
59288
    // isset id assignments
59289
    private static final int __OFFSET_ISSET_ID = 0;
59290
    private static final int __LIMIT_ISSET_ID = 1;
59291
    private BitSet __isset_bit_vector = new BitSet(2);
59292
 
59293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59294
    static {
59295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59296
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59297
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
59298
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
59300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryUpdateItemsList_args.class, metaDataMap);
59302
    }
59303
 
59304
    public getAllIgnoredInventoryUpdateItemsList_args() {
59305
    }
59306
 
59307
    public getAllIgnoredInventoryUpdateItemsList_args(
59308
      int offset,
59309
      int limit)
59310
    {
59311
      this();
59312
      this.offset = offset;
59313
      setOffsetIsSet(true);
59314
      this.limit = limit;
59315
      setLimitIsSet(true);
59316
    }
59317
 
59318
    /**
59319
     * Performs a deep copy on <i>other</i>.
59320
     */
59321
    public getAllIgnoredInventoryUpdateItemsList_args(getAllIgnoredInventoryUpdateItemsList_args other) {
59322
      __isset_bit_vector.clear();
59323
      __isset_bit_vector.or(other.__isset_bit_vector);
59324
      this.offset = other.offset;
59325
      this.limit = other.limit;
59326
    }
59327
 
59328
    public getAllIgnoredInventoryUpdateItemsList_args deepCopy() {
59329
      return new getAllIgnoredInventoryUpdateItemsList_args(this);
59330
    }
59331
 
59332
    @Override
59333
    public void clear() {
59334
      setOffsetIsSet(false);
59335
      this.offset = 0;
59336
      setLimitIsSet(false);
59337
      this.limit = 0;
59338
    }
59339
 
59340
    public int getOffset() {
59341
      return this.offset;
59342
    }
59343
 
59344
    public void setOffset(int offset) {
59345
      this.offset = offset;
59346
      setOffsetIsSet(true);
59347
    }
59348
 
59349
    public void unsetOffset() {
59350
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
59351
    }
59352
 
59353
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
59354
    public boolean isSetOffset() {
59355
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
59356
    }
59357
 
59358
    public void setOffsetIsSet(boolean value) {
59359
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
59360
    }
59361
 
59362
    public int getLimit() {
59363
      return this.limit;
59364
    }
59365
 
59366
    public void setLimit(int limit) {
59367
      this.limit = limit;
59368
      setLimitIsSet(true);
59369
    }
59370
 
59371
    public void unsetLimit() {
59372
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
59373
    }
59374
 
59375
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
59376
    public boolean isSetLimit() {
59377
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
59378
    }
59379
 
59380
    public void setLimitIsSet(boolean value) {
59381
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
59382
    }
59383
 
59384
    public void setFieldValue(_Fields field, Object value) {
59385
      switch (field) {
59386
      case OFFSET:
59387
        if (value == null) {
59388
          unsetOffset();
59389
        } else {
59390
          setOffset((Integer)value);
59391
        }
59392
        break;
59393
 
59394
      case LIMIT:
59395
        if (value == null) {
59396
          unsetLimit();
59397
        } else {
59398
          setLimit((Integer)value);
59399
        }
59400
        break;
59401
 
59402
      }
59403
    }
59404
 
59405
    public Object getFieldValue(_Fields field) {
59406
      switch (field) {
59407
      case OFFSET:
59408
        return Integer.valueOf(getOffset());
59409
 
59410
      case LIMIT:
59411
        return Integer.valueOf(getLimit());
59412
 
59413
      }
59414
      throw new IllegalStateException();
59415
    }
59416
 
59417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59418
    public boolean isSet(_Fields field) {
59419
      if (field == null) {
59420
        throw new IllegalArgumentException();
59421
      }
59422
 
59423
      switch (field) {
59424
      case OFFSET:
59425
        return isSetOffset();
59426
      case LIMIT:
59427
        return isSetLimit();
59428
      }
59429
      throw new IllegalStateException();
59430
    }
59431
 
59432
    @Override
59433
    public boolean equals(Object that) {
59434
      if (that == null)
59435
        return false;
59436
      if (that instanceof getAllIgnoredInventoryUpdateItemsList_args)
59437
        return this.equals((getAllIgnoredInventoryUpdateItemsList_args)that);
59438
      return false;
59439
    }
59440
 
59441
    public boolean equals(getAllIgnoredInventoryUpdateItemsList_args that) {
59442
      if (that == null)
59443
        return false;
59444
 
59445
      boolean this_present_offset = true;
59446
      boolean that_present_offset = true;
59447
      if (this_present_offset || that_present_offset) {
59448
        if (!(this_present_offset && that_present_offset))
59449
          return false;
59450
        if (this.offset != that.offset)
59451
          return false;
59452
      }
59453
 
59454
      boolean this_present_limit = true;
59455
      boolean that_present_limit = true;
59456
      if (this_present_limit || that_present_limit) {
59457
        if (!(this_present_limit && that_present_limit))
59458
          return false;
59459
        if (this.limit != that.limit)
59460
          return false;
59461
      }
59462
 
59463
      return true;
59464
    }
59465
 
59466
    @Override
59467
    public int hashCode() {
59468
      return 0;
59469
    }
59470
 
59471
    public int compareTo(getAllIgnoredInventoryUpdateItemsList_args other) {
59472
      if (!getClass().equals(other.getClass())) {
59473
        return getClass().getName().compareTo(other.getClass().getName());
59474
      }
59475
 
59476
      int lastComparison = 0;
59477
      getAllIgnoredInventoryUpdateItemsList_args typedOther = (getAllIgnoredInventoryUpdateItemsList_args)other;
59478
 
59479
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
59480
      if (lastComparison != 0) {
59481
        return lastComparison;
59482
      }
59483
      if (isSetOffset()) {
59484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
59485
        if (lastComparison != 0) {
59486
          return lastComparison;
59487
        }
59488
      }
59489
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
59490
      if (lastComparison != 0) {
59491
        return lastComparison;
59492
      }
59493
      if (isSetLimit()) {
59494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
59495
        if (lastComparison != 0) {
59496
          return lastComparison;
59497
        }
59498
      }
59499
      return 0;
59500
    }
59501
 
59502
    public _Fields fieldForId(int fieldId) {
59503
      return _Fields.findByThriftId(fieldId);
59504
    }
59505
 
59506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
59507
      org.apache.thrift.protocol.TField field;
59508
      iprot.readStructBegin();
59509
      while (true)
59510
      {
59511
        field = iprot.readFieldBegin();
59512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59513
          break;
59514
        }
59515
        switch (field.id) {
59516
          case 1: // OFFSET
59517
            if (field.type == org.apache.thrift.protocol.TType.I32) {
59518
              this.offset = iprot.readI32();
59519
              setOffsetIsSet(true);
59520
            } else { 
59521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59522
            }
59523
            break;
59524
          case 2: // LIMIT
59525
            if (field.type == org.apache.thrift.protocol.TType.I32) {
59526
              this.limit = iprot.readI32();
59527
              setLimitIsSet(true);
59528
            } else { 
59529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59530
            }
59531
            break;
59532
          default:
59533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59534
        }
59535
        iprot.readFieldEnd();
59536
      }
59537
      iprot.readStructEnd();
59538
      validate();
59539
    }
59540
 
59541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59542
      validate();
59543
 
59544
      oprot.writeStructBegin(STRUCT_DESC);
59545
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
59546
      oprot.writeI32(this.offset);
59547
      oprot.writeFieldEnd();
59548
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
59549
      oprot.writeI32(this.limit);
59550
      oprot.writeFieldEnd();
59551
      oprot.writeFieldStop();
59552
      oprot.writeStructEnd();
59553
    }
59554
 
59555
    @Override
59556
    public String toString() {
59557
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryUpdateItemsList_args(");
59558
      boolean first = true;
59559
 
59560
      sb.append("offset:");
59561
      sb.append(this.offset);
59562
      first = false;
59563
      if (!first) sb.append(", ");
59564
      sb.append("limit:");
59565
      sb.append(this.limit);
59566
      first = false;
59567
      sb.append(")");
59568
      return sb.toString();
59569
    }
59570
 
59571
    public void validate() throws org.apache.thrift.TException {
59572
      // check for required fields
59573
    }
59574
 
59575
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59576
      try {
59577
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
59578
      } catch (org.apache.thrift.TException te) {
59579
        throw new java.io.IOException(te);
59580
      }
59581
    }
59582
 
59583
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59584
      try {
59585
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
59586
        __isset_bit_vector = new BitSet(1);
59587
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59588
      } catch (org.apache.thrift.TException te) {
59589
        throw new java.io.IOException(te);
59590
      }
59591
    }
59592
 
59593
  }
59594
 
59595
  public static class getAllIgnoredInventoryUpdateItemsList_result implements org.apache.thrift.TBase<getAllIgnoredInventoryUpdateItemsList_result, getAllIgnoredInventoryUpdateItemsList_result._Fields>, java.io.Serializable, Cloneable   {
59596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryUpdateItemsList_result");
59597
 
59598
    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);
59599
 
59600
    private List<Item> success; // required
59601
 
59602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59604
      SUCCESS((short)0, "success");
59605
 
59606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59607
 
59608
      static {
59609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59610
          byName.put(field.getFieldName(), field);
59611
        }
59612
      }
59613
 
59614
      /**
59615
       * Find the _Fields constant that matches fieldId, or null if its not found.
59616
       */
59617
      public static _Fields findByThriftId(int fieldId) {
59618
        switch(fieldId) {
59619
          case 0: // SUCCESS
59620
            return SUCCESS;
59621
          default:
59622
            return null;
59623
        }
59624
      }
59625
 
59626
      /**
59627
       * Find the _Fields constant that matches fieldId, throwing an exception
59628
       * if it is not found.
59629
       */
59630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
59631
        _Fields fields = findByThriftId(fieldId);
59632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
59633
        return fields;
59634
      }
59635
 
59636
      /**
59637
       * Find the _Fields constant that matches name, or null if its not found.
59638
       */
59639
      public static _Fields findByName(String name) {
59640
        return byName.get(name);
59641
      }
59642
 
59643
      private final short _thriftId;
59644
      private final String _fieldName;
59645
 
59646
      _Fields(short thriftId, String fieldName) {
59647
        _thriftId = thriftId;
59648
        _fieldName = fieldName;
59649
      }
59650
 
59651
      public short getThriftFieldId() {
59652
        return _thriftId;
59653
      }
59654
 
59655
      public String getFieldName() {
59656
        return _fieldName;
59657
      }
59658
    }
59659
 
59660
    // isset id assignments
59661
 
59662
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59663
    static {
59664
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59665
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59666
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
59667
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
59668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryUpdateItemsList_result.class, metaDataMap);
59670
    }
59671
 
59672
    public getAllIgnoredInventoryUpdateItemsList_result() {
59673
    }
59674
 
59675
    public getAllIgnoredInventoryUpdateItemsList_result(
59676
      List<Item> success)
59677
    {
59678
      this();
59679
      this.success = success;
59680
    }
59681
 
59682
    /**
59683
     * Performs a deep copy on <i>other</i>.
59684
     */
59685
    public getAllIgnoredInventoryUpdateItemsList_result(getAllIgnoredInventoryUpdateItemsList_result other) {
59686
      if (other.isSetSuccess()) {
59687
        List<Item> __this__success = new ArrayList<Item>();
59688
        for (Item other_element : other.success) {
59689
          __this__success.add(new Item(other_element));
59690
        }
59691
        this.success = __this__success;
59692
      }
59693
    }
59694
 
59695
    public getAllIgnoredInventoryUpdateItemsList_result deepCopy() {
59696
      return new getAllIgnoredInventoryUpdateItemsList_result(this);
59697
    }
59698
 
59699
    @Override
59700
    public void clear() {
59701
      this.success = null;
59702
    }
59703
 
59704
    public int getSuccessSize() {
59705
      return (this.success == null) ? 0 : this.success.size();
59706
    }
59707
 
59708
    public java.util.Iterator<Item> getSuccessIterator() {
59709
      return (this.success == null) ? null : this.success.iterator();
59710
    }
59711
 
59712
    public void addToSuccess(Item elem) {
59713
      if (this.success == null) {
59714
        this.success = new ArrayList<Item>();
59715
      }
59716
      this.success.add(elem);
59717
    }
59718
 
59719
    public List<Item> getSuccess() {
59720
      return this.success;
59721
    }
59722
 
59723
    public void setSuccess(List<Item> success) {
59724
      this.success = success;
59725
    }
59726
 
59727
    public void unsetSuccess() {
59728
      this.success = null;
59729
    }
59730
 
59731
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
59732
    public boolean isSetSuccess() {
59733
      return this.success != null;
59734
    }
59735
 
59736
    public void setSuccessIsSet(boolean value) {
59737
      if (!value) {
59738
        this.success = null;
59739
      }
59740
    }
59741
 
59742
    public void setFieldValue(_Fields field, Object value) {
59743
      switch (field) {
59744
      case SUCCESS:
59745
        if (value == null) {
59746
          unsetSuccess();
59747
        } else {
59748
          setSuccess((List<Item>)value);
59749
        }
59750
        break;
59751
 
59752
      }
59753
    }
59754
 
59755
    public Object getFieldValue(_Fields field) {
59756
      switch (field) {
59757
      case SUCCESS:
59758
        return getSuccess();
59759
 
59760
      }
59761
      throw new IllegalStateException();
59762
    }
59763
 
59764
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59765
    public boolean isSet(_Fields field) {
59766
      if (field == null) {
59767
        throw new IllegalArgumentException();
59768
      }
59769
 
59770
      switch (field) {
59771
      case SUCCESS:
59772
        return isSetSuccess();
59773
      }
59774
      throw new IllegalStateException();
59775
    }
59776
 
59777
    @Override
59778
    public boolean equals(Object that) {
59779
      if (that == null)
59780
        return false;
59781
      if (that instanceof getAllIgnoredInventoryUpdateItemsList_result)
59782
        return this.equals((getAllIgnoredInventoryUpdateItemsList_result)that);
59783
      return false;
59784
    }
59785
 
59786
    public boolean equals(getAllIgnoredInventoryUpdateItemsList_result that) {
59787
      if (that == null)
59788
        return false;
59789
 
59790
      boolean this_present_success = true && this.isSetSuccess();
59791
      boolean that_present_success = true && that.isSetSuccess();
59792
      if (this_present_success || that_present_success) {
59793
        if (!(this_present_success && that_present_success))
59794
          return false;
59795
        if (!this.success.equals(that.success))
59796
          return false;
59797
      }
59798
 
59799
      return true;
59800
    }
59801
 
59802
    @Override
59803
    public int hashCode() {
59804
      return 0;
59805
    }
59806
 
59807
    public int compareTo(getAllIgnoredInventoryUpdateItemsList_result other) {
59808
      if (!getClass().equals(other.getClass())) {
59809
        return getClass().getName().compareTo(other.getClass().getName());
59810
      }
59811
 
59812
      int lastComparison = 0;
59813
      getAllIgnoredInventoryUpdateItemsList_result typedOther = (getAllIgnoredInventoryUpdateItemsList_result)other;
59814
 
59815
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
59816
      if (lastComparison != 0) {
59817
        return lastComparison;
59818
      }
59819
      if (isSetSuccess()) {
59820
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
59821
        if (lastComparison != 0) {
59822
          return lastComparison;
59823
        }
59824
      }
59825
      return 0;
59826
    }
59827
 
59828
    public _Fields fieldForId(int fieldId) {
59829
      return _Fields.findByThriftId(fieldId);
59830
    }
59831
 
59832
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
59833
      org.apache.thrift.protocol.TField field;
59834
      iprot.readStructBegin();
59835
      while (true)
59836
      {
59837
        field = iprot.readFieldBegin();
59838
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59839
          break;
59840
        }
59841
        switch (field.id) {
59842
          case 0: // SUCCESS
59843
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59844
              {
6850 kshitij.so 59845
                org.apache.thrift.protocol.TList _list162 = iprot.readListBegin();
59846
                this.success = new ArrayList<Item>(_list162.size);
59847
                for (int _i163 = 0; _i163 < _list162.size; ++_i163)
6531 vikram.rag 59848
                {
6850 kshitij.so 59849
                  Item _elem164; // required
59850
                  _elem164 = new Item();
59851
                  _elem164.read(iprot);
59852
                  this.success.add(_elem164);
6531 vikram.rag 59853
                }
59854
                iprot.readListEnd();
59855
              }
59856
            } else { 
59857
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59858
            }
59859
            break;
59860
          default:
59861
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59862
        }
59863
        iprot.readFieldEnd();
59864
      }
59865
      iprot.readStructEnd();
59866
      validate();
59867
    }
59868
 
59869
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59870
      oprot.writeStructBegin(STRUCT_DESC);
59871
 
59872
      if (this.isSetSuccess()) {
59873
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59874
        {
59875
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 59876
          for (Item _iter165 : this.success)
6531 vikram.rag 59877
          {
6850 kshitij.so 59878
            _iter165.write(oprot);
6531 vikram.rag 59879
          }
59880
          oprot.writeListEnd();
59881
        }
59882
        oprot.writeFieldEnd();
59883
      }
59884
      oprot.writeFieldStop();
59885
      oprot.writeStructEnd();
59886
    }
59887
 
59888
    @Override
59889
    public String toString() {
59890
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryUpdateItemsList_result(");
59891
      boolean first = true;
59892
 
59893
      sb.append("success:");
59894
      if (this.success == null) {
59895
        sb.append("null");
59896
      } else {
59897
        sb.append(this.success);
59898
      }
59899
      first = false;
59900
      sb.append(")");
59901
      return sb.toString();
59902
    }
59903
 
59904
    public void validate() throws org.apache.thrift.TException {
59905
      // check for required fields
59906
    }
59907
 
59908
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59909
      try {
59910
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
59911
      } catch (org.apache.thrift.TException te) {
59912
        throw new java.io.IOException(te);
59913
      }
59914
    }
59915
 
59916
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59917
      try {
59918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59919
      } catch (org.apache.thrift.TException te) {
59920
        throw new java.io.IOException(te);
59921
      }
59922
    }
59923
 
59924
  }
59925
 
6821 amar.kumar 59926
  public static class getAllAliveItems_args implements org.apache.thrift.TBase<getAllAliveItems_args, getAllAliveItems_args._Fields>, java.io.Serializable, Cloneable   {
59927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAliveItems_args");
59928
 
59929
 
59930
 
59931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59933
;
59934
 
59935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59936
 
59937
      static {
59938
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59939
          byName.put(field.getFieldName(), field);
59940
        }
59941
      }
59942
 
59943
      /**
59944
       * Find the _Fields constant that matches fieldId, or null if its not found.
59945
       */
59946
      public static _Fields findByThriftId(int fieldId) {
59947
        switch(fieldId) {
59948
          default:
59949
            return null;
59950
        }
59951
      }
59952
 
59953
      /**
59954
       * Find the _Fields constant that matches fieldId, throwing an exception
59955
       * if it is not found.
59956
       */
59957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
59958
        _Fields fields = findByThriftId(fieldId);
59959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
59960
        return fields;
59961
      }
59962
 
59963
      /**
59964
       * Find the _Fields constant that matches name, or null if its not found.
59965
       */
59966
      public static _Fields findByName(String name) {
59967
        return byName.get(name);
59968
      }
59969
 
59970
      private final short _thriftId;
59971
      private final String _fieldName;
59972
 
59973
      _Fields(short thriftId, String fieldName) {
59974
        _thriftId = thriftId;
59975
        _fieldName = fieldName;
59976
      }
59977
 
59978
      public short getThriftFieldId() {
59979
        return _thriftId;
59980
      }
59981
 
59982
      public String getFieldName() {
59983
        return _fieldName;
59984
      }
59985
    }
59986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59987
    static {
59988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAliveItems_args.class, metaDataMap);
59991
    }
59992
 
59993
    public getAllAliveItems_args() {
59994
    }
59995
 
59996
    /**
59997
     * Performs a deep copy on <i>other</i>.
59998
     */
59999
    public getAllAliveItems_args(getAllAliveItems_args other) {
60000
    }
60001
 
60002
    public getAllAliveItems_args deepCopy() {
60003
      return new getAllAliveItems_args(this);
60004
    }
60005
 
60006
    @Override
60007
    public void clear() {
60008
    }
60009
 
60010
    public void setFieldValue(_Fields field, Object value) {
60011
      switch (field) {
60012
      }
60013
    }
60014
 
60015
    public Object getFieldValue(_Fields field) {
60016
      switch (field) {
60017
      }
60018
      throw new IllegalStateException();
60019
    }
60020
 
60021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60022
    public boolean isSet(_Fields field) {
60023
      if (field == null) {
60024
        throw new IllegalArgumentException();
60025
      }
60026
 
60027
      switch (field) {
60028
      }
60029
      throw new IllegalStateException();
60030
    }
60031
 
60032
    @Override
60033
    public boolean equals(Object that) {
60034
      if (that == null)
60035
        return false;
60036
      if (that instanceof getAllAliveItems_args)
60037
        return this.equals((getAllAliveItems_args)that);
60038
      return false;
60039
    }
60040
 
60041
    public boolean equals(getAllAliveItems_args that) {
60042
      if (that == null)
60043
        return false;
60044
 
60045
      return true;
60046
    }
60047
 
60048
    @Override
60049
    public int hashCode() {
60050
      return 0;
60051
    }
60052
 
60053
    public int compareTo(getAllAliveItems_args other) {
60054
      if (!getClass().equals(other.getClass())) {
60055
        return getClass().getName().compareTo(other.getClass().getName());
60056
      }
60057
 
60058
      int lastComparison = 0;
60059
      getAllAliveItems_args typedOther = (getAllAliveItems_args)other;
60060
 
60061
      return 0;
60062
    }
60063
 
60064
    public _Fields fieldForId(int fieldId) {
60065
      return _Fields.findByThriftId(fieldId);
60066
    }
60067
 
60068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60069
      org.apache.thrift.protocol.TField field;
60070
      iprot.readStructBegin();
60071
      while (true)
60072
      {
60073
        field = iprot.readFieldBegin();
60074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60075
          break;
60076
        }
60077
        switch (field.id) {
60078
          default:
60079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60080
        }
60081
        iprot.readFieldEnd();
60082
      }
60083
      iprot.readStructEnd();
60084
      validate();
60085
    }
60086
 
60087
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60088
      validate();
60089
 
60090
      oprot.writeStructBegin(STRUCT_DESC);
60091
      oprot.writeFieldStop();
60092
      oprot.writeStructEnd();
60093
    }
60094
 
60095
    @Override
60096
    public String toString() {
60097
      StringBuilder sb = new StringBuilder("getAllAliveItems_args(");
60098
      boolean first = true;
60099
 
60100
      sb.append(")");
60101
      return sb.toString();
60102
    }
60103
 
60104
    public void validate() throws org.apache.thrift.TException {
60105
      // check for required fields
60106
    }
60107
 
60108
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
60109
      try {
60110
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
60111
      } catch (org.apache.thrift.TException te) {
60112
        throw new java.io.IOException(te);
60113
      }
60114
    }
60115
 
60116
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60117
      try {
60118
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60119
      } catch (org.apache.thrift.TException te) {
60120
        throw new java.io.IOException(te);
60121
      }
60122
    }
60123
 
60124
  }
60125
 
60126
  public static class getAllAliveItems_result implements org.apache.thrift.TBase<getAllAliveItems_result, getAllAliveItems_result._Fields>, java.io.Serializable, Cloneable   {
60127
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAliveItems_result");
60128
 
60129
    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);
60130
 
60131
    private List<Item> success; // required
60132
 
60133
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60134
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60135
      SUCCESS((short)0, "success");
60136
 
60137
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60138
 
60139
      static {
60140
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60141
          byName.put(field.getFieldName(), field);
60142
        }
60143
      }
60144
 
60145
      /**
60146
       * Find the _Fields constant that matches fieldId, or null if its not found.
60147
       */
60148
      public static _Fields findByThriftId(int fieldId) {
60149
        switch(fieldId) {
60150
          case 0: // SUCCESS
60151
            return SUCCESS;
60152
          default:
60153
            return null;
60154
        }
60155
      }
60156
 
60157
      /**
60158
       * Find the _Fields constant that matches fieldId, throwing an exception
60159
       * if it is not found.
60160
       */
60161
      public static _Fields findByThriftIdOrThrow(int fieldId) {
60162
        _Fields fields = findByThriftId(fieldId);
60163
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
60164
        return fields;
60165
      }
60166
 
60167
      /**
60168
       * Find the _Fields constant that matches name, or null if its not found.
60169
       */
60170
      public static _Fields findByName(String name) {
60171
        return byName.get(name);
60172
      }
60173
 
60174
      private final short _thriftId;
60175
      private final String _fieldName;
60176
 
60177
      _Fields(short thriftId, String fieldName) {
60178
        _thriftId = thriftId;
60179
        _fieldName = fieldName;
60180
      }
60181
 
60182
      public short getThriftFieldId() {
60183
        return _thriftId;
60184
      }
60185
 
60186
      public String getFieldName() {
60187
        return _fieldName;
60188
      }
60189
    }
60190
 
60191
    // isset id assignments
60192
 
60193
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60194
    static {
60195
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60196
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60197
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
60198
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
60199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAliveItems_result.class, metaDataMap);
60201
    }
60202
 
60203
    public getAllAliveItems_result() {
60204
    }
60205
 
60206
    public getAllAliveItems_result(
60207
      List<Item> success)
60208
    {
60209
      this();
60210
      this.success = success;
60211
    }
60212
 
60213
    /**
60214
     * Performs a deep copy on <i>other</i>.
60215
     */
60216
    public getAllAliveItems_result(getAllAliveItems_result other) {
60217
      if (other.isSetSuccess()) {
60218
        List<Item> __this__success = new ArrayList<Item>();
60219
        for (Item other_element : other.success) {
60220
          __this__success.add(new Item(other_element));
60221
        }
60222
        this.success = __this__success;
60223
      }
60224
    }
60225
 
60226
    public getAllAliveItems_result deepCopy() {
60227
      return new getAllAliveItems_result(this);
60228
    }
60229
 
60230
    @Override
60231
    public void clear() {
60232
      this.success = null;
60233
    }
60234
 
60235
    public int getSuccessSize() {
60236
      return (this.success == null) ? 0 : this.success.size();
60237
    }
60238
 
60239
    public java.util.Iterator<Item> getSuccessIterator() {
60240
      return (this.success == null) ? null : this.success.iterator();
60241
    }
60242
 
60243
    public void addToSuccess(Item elem) {
60244
      if (this.success == null) {
60245
        this.success = new ArrayList<Item>();
60246
      }
60247
      this.success.add(elem);
60248
    }
60249
 
60250
    public List<Item> getSuccess() {
60251
      return this.success;
60252
    }
60253
 
60254
    public void setSuccess(List<Item> success) {
60255
      this.success = success;
60256
    }
60257
 
60258
    public void unsetSuccess() {
60259
      this.success = null;
60260
    }
60261
 
60262
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
60263
    public boolean isSetSuccess() {
60264
      return this.success != null;
60265
    }
60266
 
60267
    public void setSuccessIsSet(boolean value) {
60268
      if (!value) {
60269
        this.success = null;
60270
      }
60271
    }
60272
 
60273
    public void setFieldValue(_Fields field, Object value) {
60274
      switch (field) {
60275
      case SUCCESS:
60276
        if (value == null) {
60277
          unsetSuccess();
60278
        } else {
60279
          setSuccess((List<Item>)value);
60280
        }
60281
        break;
60282
 
60283
      }
60284
    }
60285
 
60286
    public Object getFieldValue(_Fields field) {
60287
      switch (field) {
60288
      case SUCCESS:
60289
        return getSuccess();
60290
 
60291
      }
60292
      throw new IllegalStateException();
60293
    }
60294
 
60295
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60296
    public boolean isSet(_Fields field) {
60297
      if (field == null) {
60298
        throw new IllegalArgumentException();
60299
      }
60300
 
60301
      switch (field) {
60302
      case SUCCESS:
60303
        return isSetSuccess();
60304
      }
60305
      throw new IllegalStateException();
60306
    }
60307
 
60308
    @Override
60309
    public boolean equals(Object that) {
60310
      if (that == null)
60311
        return false;
60312
      if (that instanceof getAllAliveItems_result)
60313
        return this.equals((getAllAliveItems_result)that);
60314
      return false;
60315
    }
60316
 
60317
    public boolean equals(getAllAliveItems_result that) {
60318
      if (that == null)
60319
        return false;
60320
 
60321
      boolean this_present_success = true && this.isSetSuccess();
60322
      boolean that_present_success = true && that.isSetSuccess();
60323
      if (this_present_success || that_present_success) {
60324
        if (!(this_present_success && that_present_success))
60325
          return false;
60326
        if (!this.success.equals(that.success))
60327
          return false;
60328
      }
60329
 
60330
      return true;
60331
    }
60332
 
60333
    @Override
60334
    public int hashCode() {
60335
      return 0;
60336
    }
60337
 
60338
    public int compareTo(getAllAliveItems_result other) {
60339
      if (!getClass().equals(other.getClass())) {
60340
        return getClass().getName().compareTo(other.getClass().getName());
60341
      }
60342
 
60343
      int lastComparison = 0;
60344
      getAllAliveItems_result typedOther = (getAllAliveItems_result)other;
60345
 
60346
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
60347
      if (lastComparison != 0) {
60348
        return lastComparison;
60349
      }
60350
      if (isSetSuccess()) {
60351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
60352
        if (lastComparison != 0) {
60353
          return lastComparison;
60354
        }
60355
      }
60356
      return 0;
60357
    }
60358
 
60359
    public _Fields fieldForId(int fieldId) {
60360
      return _Fields.findByThriftId(fieldId);
60361
    }
60362
 
60363
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60364
      org.apache.thrift.protocol.TField field;
60365
      iprot.readStructBegin();
60366
      while (true)
60367
      {
60368
        field = iprot.readFieldBegin();
60369
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60370
          break;
60371
        }
60372
        switch (field.id) {
60373
          case 0: // SUCCESS
60374
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60375
              {
6850 kshitij.so 60376
                org.apache.thrift.protocol.TList _list166 = iprot.readListBegin();
60377
                this.success = new ArrayList<Item>(_list166.size);
60378
                for (int _i167 = 0; _i167 < _list166.size; ++_i167)
6821 amar.kumar 60379
                {
6850 kshitij.so 60380
                  Item _elem168; // required
60381
                  _elem168 = new Item();
60382
                  _elem168.read(iprot);
60383
                  this.success.add(_elem168);
6821 amar.kumar 60384
                }
60385
                iprot.readListEnd();
60386
              }
60387
            } else { 
60388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60389
            }
60390
            break;
60391
          default:
60392
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60393
        }
60394
        iprot.readFieldEnd();
60395
      }
60396
      iprot.readStructEnd();
60397
      validate();
60398
    }
60399
 
60400
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60401
      oprot.writeStructBegin(STRUCT_DESC);
60402
 
60403
      if (this.isSetSuccess()) {
60404
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60405
        {
60406
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 60407
          for (Item _iter169 : this.success)
6821 amar.kumar 60408
          {
6850 kshitij.so 60409
            _iter169.write(oprot);
6821 amar.kumar 60410
          }
60411
          oprot.writeListEnd();
60412
        }
60413
        oprot.writeFieldEnd();
60414
      }
60415
      oprot.writeFieldStop();
60416
      oprot.writeStructEnd();
60417
    }
60418
 
60419
    @Override
60420
    public String toString() {
60421
      StringBuilder sb = new StringBuilder("getAllAliveItems_result(");
60422
      boolean first = true;
60423
 
60424
      sb.append("success:");
60425
      if (this.success == null) {
60426
        sb.append("null");
60427
      } else {
60428
        sb.append(this.success);
60429
      }
60430
      first = false;
60431
      sb.append(")");
60432
      return sb.toString();
60433
    }
60434
 
60435
    public void validate() throws org.apache.thrift.TException {
60436
      // check for required fields
60437
    }
60438
 
60439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
60440
      try {
60441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
60442
      } catch (org.apache.thrift.TException te) {
60443
        throw new java.io.IOException(te);
60444
      }
60445
    }
60446
 
60447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60448
      try {
60449
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60450
      } catch (org.apache.thrift.TException te) {
60451
        throw new java.io.IOException(te);
60452
      }
60453
    }
60454
 
60455
  }
60456
 
6805 anupam.sin 60457
  public static class getInsuranceAmount_args implements org.apache.thrift.TBase<getInsuranceAmount_args, getInsuranceAmount_args._Fields>, java.io.Serializable, Cloneable   {
60458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_args");
60459
 
60460
    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);
60461
    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)2);
60462
    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)3);
60463
 
60464
    private long itemId; // required
60465
    private long insurerId; // required
60466
    private long quantity; // required
60467
 
60468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60470
      ITEM_ID((short)1, "itemId"),
60471
      INSURER_ID((short)2, "insurerId"),
60472
      QUANTITY((short)3, "quantity");
60473
 
60474
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60475
 
60476
      static {
60477
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60478
          byName.put(field.getFieldName(), field);
60479
        }
60480
      }
60481
 
60482
      /**
60483
       * Find the _Fields constant that matches fieldId, or null if its not found.
60484
       */
60485
      public static _Fields findByThriftId(int fieldId) {
60486
        switch(fieldId) {
60487
          case 1: // ITEM_ID
60488
            return ITEM_ID;
60489
          case 2: // INSURER_ID
60490
            return INSURER_ID;
60491
          case 3: // QUANTITY
60492
            return QUANTITY;
60493
          default:
60494
            return null;
60495
        }
60496
      }
60497
 
60498
      /**
60499
       * Find the _Fields constant that matches fieldId, throwing an exception
60500
       * if it is not found.
60501
       */
60502
      public static _Fields findByThriftIdOrThrow(int fieldId) {
60503
        _Fields fields = findByThriftId(fieldId);
60504
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
60505
        return fields;
60506
      }
60507
 
60508
      /**
60509
       * Find the _Fields constant that matches name, or null if its not found.
60510
       */
60511
      public static _Fields findByName(String name) {
60512
        return byName.get(name);
60513
      }
60514
 
60515
      private final short _thriftId;
60516
      private final String _fieldName;
60517
 
60518
      _Fields(short thriftId, String fieldName) {
60519
        _thriftId = thriftId;
60520
        _fieldName = fieldName;
60521
      }
60522
 
60523
      public short getThriftFieldId() {
60524
        return _thriftId;
60525
      }
60526
 
60527
      public String getFieldName() {
60528
        return _fieldName;
60529
      }
60530
    }
60531
 
60532
    // isset id assignments
60533
    private static final int __ITEMID_ISSET_ID = 0;
60534
    private static final int __INSURERID_ISSET_ID = 1;
60535
    private static final int __QUANTITY_ISSET_ID = 2;
60536
    private BitSet __isset_bit_vector = new BitSet(3);
60537
 
60538
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60539
    static {
60540
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60541
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60543
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60545
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60548
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsuranceAmount_args.class, metaDataMap);
60549
    }
60550
 
60551
    public getInsuranceAmount_args() {
60552
    }
60553
 
60554
    public getInsuranceAmount_args(
60555
      long itemId,
60556
      long insurerId,
60557
      long quantity)
60558
    {
60559
      this();
60560
      this.itemId = itemId;
60561
      setItemIdIsSet(true);
60562
      this.insurerId = insurerId;
60563
      setInsurerIdIsSet(true);
60564
      this.quantity = quantity;
60565
      setQuantityIsSet(true);
60566
    }
60567
 
60568
    /**
60569
     * Performs a deep copy on <i>other</i>.
60570
     */
60571
    public getInsuranceAmount_args(getInsuranceAmount_args other) {
60572
      __isset_bit_vector.clear();
60573
      __isset_bit_vector.or(other.__isset_bit_vector);
60574
      this.itemId = other.itemId;
60575
      this.insurerId = other.insurerId;
60576
      this.quantity = other.quantity;
60577
    }
60578
 
60579
    public getInsuranceAmount_args deepCopy() {
60580
      return new getInsuranceAmount_args(this);
60581
    }
60582
 
60583
    @Override
60584
    public void clear() {
60585
      setItemIdIsSet(false);
60586
      this.itemId = 0;
60587
      setInsurerIdIsSet(false);
60588
      this.insurerId = 0;
60589
      setQuantityIsSet(false);
60590
      this.quantity = 0;
60591
    }
60592
 
60593
    public long getItemId() {
60594
      return this.itemId;
60595
    }
60596
 
60597
    public void setItemId(long itemId) {
60598
      this.itemId = itemId;
60599
      setItemIdIsSet(true);
60600
    }
60601
 
60602
    public void unsetItemId() {
60603
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
60604
    }
60605
 
60606
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
60607
    public boolean isSetItemId() {
60608
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
60609
    }
60610
 
60611
    public void setItemIdIsSet(boolean value) {
60612
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
60613
    }
60614
 
60615
    public long getInsurerId() {
60616
      return this.insurerId;
60617
    }
60618
 
60619
    public void setInsurerId(long insurerId) {
60620
      this.insurerId = insurerId;
60621
      setInsurerIdIsSet(true);
60622
    }
60623
 
60624
    public void unsetInsurerId() {
60625
      __isset_bit_vector.clear(__INSURERID_ISSET_ID);
60626
    }
60627
 
60628
    /** Returns true if field insurerId is set (has been assigned a value) and false otherwise */
60629
    public boolean isSetInsurerId() {
60630
      return __isset_bit_vector.get(__INSURERID_ISSET_ID);
60631
    }
60632
 
60633
    public void setInsurerIdIsSet(boolean value) {
60634
      __isset_bit_vector.set(__INSURERID_ISSET_ID, value);
60635
    }
60636
 
60637
    public long getQuantity() {
60638
      return this.quantity;
60639
    }
60640
 
60641
    public void setQuantity(long quantity) {
60642
      this.quantity = quantity;
60643
      setQuantityIsSet(true);
60644
    }
60645
 
60646
    public void unsetQuantity() {
60647
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
60648
    }
60649
 
60650
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
60651
    public boolean isSetQuantity() {
60652
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
60653
    }
60654
 
60655
    public void setQuantityIsSet(boolean value) {
60656
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
60657
    }
60658
 
60659
    public void setFieldValue(_Fields field, Object value) {
60660
      switch (field) {
60661
      case ITEM_ID:
60662
        if (value == null) {
60663
          unsetItemId();
60664
        } else {
60665
          setItemId((Long)value);
60666
        }
60667
        break;
60668
 
60669
      case INSURER_ID:
60670
        if (value == null) {
60671
          unsetInsurerId();
60672
        } else {
60673
          setInsurerId((Long)value);
60674
        }
60675
        break;
60676
 
60677
      case QUANTITY:
60678
        if (value == null) {
60679
          unsetQuantity();
60680
        } else {
60681
          setQuantity((Long)value);
60682
        }
60683
        break;
60684
 
60685
      }
60686
    }
60687
 
60688
    public Object getFieldValue(_Fields field) {
60689
      switch (field) {
60690
      case ITEM_ID:
60691
        return Long.valueOf(getItemId());
60692
 
60693
      case INSURER_ID:
60694
        return Long.valueOf(getInsurerId());
60695
 
60696
      case QUANTITY:
60697
        return Long.valueOf(getQuantity());
60698
 
60699
      }
60700
      throw new IllegalStateException();
60701
    }
60702
 
60703
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60704
    public boolean isSet(_Fields field) {
60705
      if (field == null) {
60706
        throw new IllegalArgumentException();
60707
      }
60708
 
60709
      switch (field) {
60710
      case ITEM_ID:
60711
        return isSetItemId();
60712
      case INSURER_ID:
60713
        return isSetInsurerId();
60714
      case QUANTITY:
60715
        return isSetQuantity();
60716
      }
60717
      throw new IllegalStateException();
60718
    }
60719
 
60720
    @Override
60721
    public boolean equals(Object that) {
60722
      if (that == null)
60723
        return false;
60724
      if (that instanceof getInsuranceAmount_args)
60725
        return this.equals((getInsuranceAmount_args)that);
60726
      return false;
60727
    }
60728
 
60729
    public boolean equals(getInsuranceAmount_args that) {
60730
      if (that == null)
60731
        return false;
60732
 
60733
      boolean this_present_itemId = true;
60734
      boolean that_present_itemId = true;
60735
      if (this_present_itemId || that_present_itemId) {
60736
        if (!(this_present_itemId && that_present_itemId))
60737
          return false;
60738
        if (this.itemId != that.itemId)
60739
          return false;
60740
      }
60741
 
60742
      boolean this_present_insurerId = true;
60743
      boolean that_present_insurerId = true;
60744
      if (this_present_insurerId || that_present_insurerId) {
60745
        if (!(this_present_insurerId && that_present_insurerId))
60746
          return false;
60747
        if (this.insurerId != that.insurerId)
60748
          return false;
60749
      }
60750
 
60751
      boolean this_present_quantity = true;
60752
      boolean that_present_quantity = true;
60753
      if (this_present_quantity || that_present_quantity) {
60754
        if (!(this_present_quantity && that_present_quantity))
60755
          return false;
60756
        if (this.quantity != that.quantity)
60757
          return false;
60758
      }
60759
 
60760
      return true;
60761
    }
60762
 
60763
    @Override
60764
    public int hashCode() {
60765
      return 0;
60766
    }
60767
 
60768
    public int compareTo(getInsuranceAmount_args other) {
60769
      if (!getClass().equals(other.getClass())) {
60770
        return getClass().getName().compareTo(other.getClass().getName());
60771
      }
60772
 
60773
      int lastComparison = 0;
60774
      getInsuranceAmount_args typedOther = (getInsuranceAmount_args)other;
60775
 
60776
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
60777
      if (lastComparison != 0) {
60778
        return lastComparison;
60779
      }
60780
      if (isSetItemId()) {
60781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
60782
        if (lastComparison != 0) {
60783
          return lastComparison;
60784
        }
60785
      }
60786
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
60787
      if (lastComparison != 0) {
60788
        return lastComparison;
60789
      }
60790
      if (isSetInsurerId()) {
60791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);
60792
        if (lastComparison != 0) {
60793
          return lastComparison;
60794
        }
60795
      }
60796
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
60797
      if (lastComparison != 0) {
60798
        return lastComparison;
60799
      }
60800
      if (isSetQuantity()) {
60801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
60802
        if (lastComparison != 0) {
60803
          return lastComparison;
60804
        }
60805
      }
60806
      return 0;
60807
    }
60808
 
60809
    public _Fields fieldForId(int fieldId) {
60810
      return _Fields.findByThriftId(fieldId);
60811
    }
60812
 
60813
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60814
      org.apache.thrift.protocol.TField field;
60815
      iprot.readStructBegin();
60816
      while (true)
60817
      {
60818
        field = iprot.readFieldBegin();
60819
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60820
          break;
60821
        }
60822
        switch (field.id) {
60823
          case 1: // ITEM_ID
60824
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60825
              this.itemId = iprot.readI64();
60826
              setItemIdIsSet(true);
60827
            } else { 
60828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60829
            }
60830
            break;
60831
          case 2: // INSURER_ID
60832
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60833
              this.insurerId = iprot.readI64();
60834
              setInsurerIdIsSet(true);
60835
            } else { 
60836
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60837
            }
60838
            break;
60839
          case 3: // QUANTITY
60840
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60841
              this.quantity = iprot.readI64();
60842
              setQuantityIsSet(true);
60843
            } else { 
60844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60845
            }
60846
            break;
60847
          default:
60848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60849
        }
60850
        iprot.readFieldEnd();
60851
      }
60852
      iprot.readStructEnd();
60853
      validate();
60854
    }
60855
 
60856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60857
      validate();
60858
 
60859
      oprot.writeStructBegin(STRUCT_DESC);
60860
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
60861
      oprot.writeI64(this.itemId);
60862
      oprot.writeFieldEnd();
60863
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
60864
      oprot.writeI64(this.insurerId);
60865
      oprot.writeFieldEnd();
60866
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
60867
      oprot.writeI64(this.quantity);
60868
      oprot.writeFieldEnd();
60869
      oprot.writeFieldStop();
60870
      oprot.writeStructEnd();
60871
    }
60872
 
60873
    @Override
60874
    public String toString() {
60875
      StringBuilder sb = new StringBuilder("getInsuranceAmount_args(");
60876
      boolean first = true;
60877
 
60878
      sb.append("itemId:");
60879
      sb.append(this.itemId);
60880
      first = false;
60881
      if (!first) sb.append(", ");
60882
      sb.append("insurerId:");
60883
      sb.append(this.insurerId);
60884
      first = false;
60885
      if (!first) sb.append(", ");
60886
      sb.append("quantity:");
60887
      sb.append(this.quantity);
60888
      first = false;
60889
      sb.append(")");
60890
      return sb.toString();
60891
    }
60892
 
60893
    public void validate() throws org.apache.thrift.TException {
60894
      // check for required fields
60895
    }
60896
 
60897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
60898
      try {
60899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
60900
      } catch (org.apache.thrift.TException te) {
60901
        throw new java.io.IOException(te);
60902
      }
60903
    }
60904
 
60905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60906
      try {
60907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60908
      } catch (org.apache.thrift.TException te) {
60909
        throw new java.io.IOException(te);
60910
      }
60911
    }
60912
 
60913
  }
60914
 
60915
  public static class getInsuranceAmount_result implements org.apache.thrift.TBase<getInsuranceAmount_result, getInsuranceAmount_result._Fields>, java.io.Serializable, Cloneable   {
60916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_result");
60917
 
60918
    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);
60919
 
60920
    private long success; // required
60921
 
60922
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60923
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60924
      SUCCESS((short)0, "success");
60925
 
60926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60927
 
60928
      static {
60929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60930
          byName.put(field.getFieldName(), field);
60931
        }
60932
      }
60933
 
60934
      /**
60935
       * Find the _Fields constant that matches fieldId, or null if its not found.
60936
       */
60937
      public static _Fields findByThriftId(int fieldId) {
60938
        switch(fieldId) {
60939
          case 0: // SUCCESS
60940
            return SUCCESS;
60941
          default:
60942
            return null;
60943
        }
60944
      }
60945
 
60946
      /**
60947
       * Find the _Fields constant that matches fieldId, throwing an exception
60948
       * if it is not found.
60949
       */
60950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
60951
        _Fields fields = findByThriftId(fieldId);
60952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
60953
        return fields;
60954
      }
60955
 
60956
      /**
60957
       * Find the _Fields constant that matches name, or null if its not found.
60958
       */
60959
      public static _Fields findByName(String name) {
60960
        return byName.get(name);
60961
      }
60962
 
60963
      private final short _thriftId;
60964
      private final String _fieldName;
60965
 
60966
      _Fields(short thriftId, String fieldName) {
60967
        _thriftId = thriftId;
60968
        _fieldName = fieldName;
60969
      }
60970
 
60971
      public short getThriftFieldId() {
60972
        return _thriftId;
60973
      }
60974
 
60975
      public String getFieldName() {
60976
        return _fieldName;
60977
      }
60978
    }
60979
 
60980
    // isset id assignments
60981
    private static final int __SUCCESS_ISSET_ID = 0;
60982
    private BitSet __isset_bit_vector = new BitSet(1);
60983
 
60984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60985
    static {
60986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60987
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsuranceAmount_result.class, metaDataMap);
60991
    }
60992
 
60993
    public getInsuranceAmount_result() {
60994
    }
60995
 
60996
    public getInsuranceAmount_result(
60997
      long success)
60998
    {
60999
      this();
61000
      this.success = success;
61001
      setSuccessIsSet(true);
61002
    }
61003
 
61004
    /**
61005
     * Performs a deep copy on <i>other</i>.
61006
     */
61007
    public getInsuranceAmount_result(getInsuranceAmount_result other) {
61008
      __isset_bit_vector.clear();
61009
      __isset_bit_vector.or(other.__isset_bit_vector);
61010
      this.success = other.success;
61011
    }
61012
 
61013
    public getInsuranceAmount_result deepCopy() {
61014
      return new getInsuranceAmount_result(this);
61015
    }
61016
 
61017
    @Override
61018
    public void clear() {
61019
      setSuccessIsSet(false);
61020
      this.success = 0;
61021
    }
61022
 
61023
    public long getSuccess() {
61024
      return this.success;
61025
    }
61026
 
61027
    public void setSuccess(long success) {
61028
      this.success = success;
61029
      setSuccessIsSet(true);
61030
    }
61031
 
61032
    public void unsetSuccess() {
61033
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
61034
    }
61035
 
61036
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
61037
    public boolean isSetSuccess() {
61038
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
61039
    }
61040
 
61041
    public void setSuccessIsSet(boolean value) {
61042
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
61043
    }
61044
 
61045
    public void setFieldValue(_Fields field, Object value) {
61046
      switch (field) {
61047
      case SUCCESS:
61048
        if (value == null) {
61049
          unsetSuccess();
61050
        } else {
61051
          setSuccess((Long)value);
61052
        }
61053
        break;
61054
 
61055
      }
61056
    }
61057
 
61058
    public Object getFieldValue(_Fields field) {
61059
      switch (field) {
61060
      case SUCCESS:
61061
        return Long.valueOf(getSuccess());
61062
 
61063
      }
61064
      throw new IllegalStateException();
61065
    }
61066
 
61067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
61068
    public boolean isSet(_Fields field) {
61069
      if (field == null) {
61070
        throw new IllegalArgumentException();
61071
      }
61072
 
61073
      switch (field) {
61074
      case SUCCESS:
61075
        return isSetSuccess();
61076
      }
61077
      throw new IllegalStateException();
61078
    }
61079
 
61080
    @Override
61081
    public boolean equals(Object that) {
61082
      if (that == null)
61083
        return false;
61084
      if (that instanceof getInsuranceAmount_result)
61085
        return this.equals((getInsuranceAmount_result)that);
61086
      return false;
61087
    }
61088
 
61089
    public boolean equals(getInsuranceAmount_result that) {
61090
      if (that == null)
61091
        return false;
61092
 
61093
      boolean this_present_success = true;
61094
      boolean that_present_success = true;
61095
      if (this_present_success || that_present_success) {
61096
        if (!(this_present_success && that_present_success))
61097
          return false;
61098
        if (this.success != that.success)
61099
          return false;
61100
      }
61101
 
61102
      return true;
61103
    }
61104
 
61105
    @Override
61106
    public int hashCode() {
61107
      return 0;
61108
    }
61109
 
61110
    public int compareTo(getInsuranceAmount_result other) {
61111
      if (!getClass().equals(other.getClass())) {
61112
        return getClass().getName().compareTo(other.getClass().getName());
61113
      }
61114
 
61115
      int lastComparison = 0;
61116
      getInsuranceAmount_result typedOther = (getInsuranceAmount_result)other;
61117
 
61118
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
61119
      if (lastComparison != 0) {
61120
        return lastComparison;
61121
      }
61122
      if (isSetSuccess()) {
61123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
61124
        if (lastComparison != 0) {
61125
          return lastComparison;
61126
        }
61127
      }
61128
      return 0;
61129
    }
61130
 
61131
    public _Fields fieldForId(int fieldId) {
61132
      return _Fields.findByThriftId(fieldId);
61133
    }
61134
 
61135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
61136
      org.apache.thrift.protocol.TField field;
61137
      iprot.readStructBegin();
61138
      while (true)
61139
      {
61140
        field = iprot.readFieldBegin();
61141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
61142
          break;
61143
        }
61144
        switch (field.id) {
61145
          case 0: // SUCCESS
61146
            if (field.type == org.apache.thrift.protocol.TType.I64) {
61147
              this.success = iprot.readI64();
61148
              setSuccessIsSet(true);
61149
            } else { 
61150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61151
            }
61152
            break;
61153
          default:
61154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61155
        }
61156
        iprot.readFieldEnd();
61157
      }
61158
      iprot.readStructEnd();
61159
      validate();
61160
    }
61161
 
61162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
61163
      oprot.writeStructBegin(STRUCT_DESC);
61164
 
61165
      if (this.isSetSuccess()) {
61166
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
61167
        oprot.writeI64(this.success);
61168
        oprot.writeFieldEnd();
61169
      }
61170
      oprot.writeFieldStop();
61171
      oprot.writeStructEnd();
61172
    }
61173
 
61174
    @Override
61175
    public String toString() {
61176
      StringBuilder sb = new StringBuilder("getInsuranceAmount_result(");
61177
      boolean first = true;
61178
 
61179
      sb.append("success:");
61180
      sb.append(this.success);
61181
      first = false;
61182
      sb.append(")");
61183
      return sb.toString();
61184
    }
61185
 
61186
    public void validate() throws org.apache.thrift.TException {
61187
      // check for required fields
61188
    }
61189
 
61190
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61191
      try {
61192
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
61193
      } catch (org.apache.thrift.TException te) {
61194
        throw new java.io.IOException(te);
61195
      }
61196
    }
61197
 
61198
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61199
      try {
61200
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61201
      } catch (org.apache.thrift.TException te) {
61202
        throw new java.io.IOException(te);
61203
      }
61204
    }
61205
 
61206
  }
61207
 
61208
  public static class getInsurer_args implements org.apache.thrift.TBase<getInsurer_args, getInsurer_args._Fields>, java.io.Serializable, Cloneable   {
61209
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsurer_args");
61210
 
61211
    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);
61212
 
61213
    private long insurerId; // required
61214
 
61215
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61216
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
61217
      INSURER_ID((short)1, "insurerId");
61218
 
61219
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61220
 
61221
      static {
61222
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
61223
          byName.put(field.getFieldName(), field);
61224
        }
61225
      }
61226
 
61227
      /**
61228
       * Find the _Fields constant that matches fieldId, or null if its not found.
61229
       */
61230
      public static _Fields findByThriftId(int fieldId) {
61231
        switch(fieldId) {
61232
          case 1: // INSURER_ID
61233
            return INSURER_ID;
61234
          default:
61235
            return null;
61236
        }
61237
      }
61238
 
61239
      /**
61240
       * Find the _Fields constant that matches fieldId, throwing an exception
61241
       * if it is not found.
61242
       */
61243
      public static _Fields findByThriftIdOrThrow(int fieldId) {
61244
        _Fields fields = findByThriftId(fieldId);
61245
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
61246
        return fields;
61247
      }
61248
 
61249
      /**
61250
       * Find the _Fields constant that matches name, or null if its not found.
61251
       */
61252
      public static _Fields findByName(String name) {
61253
        return byName.get(name);
61254
      }
61255
 
61256
      private final short _thriftId;
61257
      private final String _fieldName;
61258
 
61259
      _Fields(short thriftId, String fieldName) {
61260
        _thriftId = thriftId;
61261
        _fieldName = fieldName;
61262
      }
61263
 
61264
      public short getThriftFieldId() {
61265
        return _thriftId;
61266
      }
61267
 
61268
      public String getFieldName() {
61269
        return _fieldName;
61270
      }
61271
    }
61272
 
61273
    // isset id assignments
61274
    private static final int __INSURERID_ISSET_ID = 0;
61275
    private BitSet __isset_bit_vector = new BitSet(1);
61276
 
61277
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
61278
    static {
61279
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
61280
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
61281
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
61282
      metaDataMap = Collections.unmodifiableMap(tmpMap);
61283
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsurer_args.class, metaDataMap);
61284
    }
61285
 
61286
    public getInsurer_args() {
61287
    }
61288
 
61289
    public getInsurer_args(
61290
      long insurerId)
61291
    {
61292
      this();
61293
      this.insurerId = insurerId;
61294
      setInsurerIdIsSet(true);
61295
    }
61296
 
61297
    /**
61298
     * Performs a deep copy on <i>other</i>.
61299
     */
61300
    public getInsurer_args(getInsurer_args other) {
61301
      __isset_bit_vector.clear();
61302
      __isset_bit_vector.or(other.__isset_bit_vector);
61303
      this.insurerId = other.insurerId;
61304
    }
61305
 
61306
    public getInsurer_args deepCopy() {
61307
      return new getInsurer_args(this);
61308
    }
61309
 
61310
    @Override
61311
    public void clear() {
61312
      setInsurerIdIsSet(false);
61313
      this.insurerId = 0;
61314
    }
61315
 
61316
    public long getInsurerId() {
61317
      return this.insurerId;
61318
    }
61319
 
61320
    public void setInsurerId(long insurerId) {
61321
      this.insurerId = insurerId;
61322
      setInsurerIdIsSet(true);
61323
    }
61324
 
61325
    public void unsetInsurerId() {
61326
      __isset_bit_vector.clear(__INSURERID_ISSET_ID);
61327
    }
61328
 
61329
    /** Returns true if field insurerId is set (has been assigned a value) and false otherwise */
61330
    public boolean isSetInsurerId() {
61331
      return __isset_bit_vector.get(__INSURERID_ISSET_ID);
61332
    }
61333
 
61334
    public void setInsurerIdIsSet(boolean value) {
61335
      __isset_bit_vector.set(__INSURERID_ISSET_ID, value);
61336
    }
61337
 
61338
    public void setFieldValue(_Fields field, Object value) {
61339
      switch (field) {
61340
      case INSURER_ID:
61341
        if (value == null) {
61342
          unsetInsurerId();
61343
        } else {
61344
          setInsurerId((Long)value);
61345
        }
61346
        break;
61347
 
61348
      }
61349
    }
61350
 
61351
    public Object getFieldValue(_Fields field) {
61352
      switch (field) {
61353
      case INSURER_ID:
61354
        return Long.valueOf(getInsurerId());
61355
 
61356
      }
61357
      throw new IllegalStateException();
61358
    }
61359
 
61360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
61361
    public boolean isSet(_Fields field) {
61362
      if (field == null) {
61363
        throw new IllegalArgumentException();
61364
      }
61365
 
61366
      switch (field) {
61367
      case INSURER_ID:
61368
        return isSetInsurerId();
61369
      }
61370
      throw new IllegalStateException();
61371
    }
61372
 
61373
    @Override
61374
    public boolean equals(Object that) {
61375
      if (that == null)
61376
        return false;
61377
      if (that instanceof getInsurer_args)
61378
        return this.equals((getInsurer_args)that);
61379
      return false;
61380
    }
61381
 
61382
    public boolean equals(getInsurer_args that) {
61383
      if (that == null)
61384
        return false;
61385
 
61386
      boolean this_present_insurerId = true;
61387
      boolean that_present_insurerId = true;
61388
      if (this_present_insurerId || that_present_insurerId) {
61389
        if (!(this_present_insurerId && that_present_insurerId))
61390
          return false;
61391
        if (this.insurerId != that.insurerId)
61392
          return false;
61393
      }
61394
 
61395
      return true;
61396
    }
61397
 
61398
    @Override
61399
    public int hashCode() {
61400
      return 0;
61401
    }
61402
 
61403
    public int compareTo(getInsurer_args other) {
61404
      if (!getClass().equals(other.getClass())) {
61405
        return getClass().getName().compareTo(other.getClass().getName());
61406
      }
61407
 
61408
      int lastComparison = 0;
61409
      getInsurer_args typedOther = (getInsurer_args)other;
61410
 
61411
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
61412
      if (lastComparison != 0) {
61413
        return lastComparison;
61414
      }
61415
      if (isSetInsurerId()) {
61416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);
61417
        if (lastComparison != 0) {
61418
          return lastComparison;
61419
        }
61420
      }
61421
      return 0;
61422
    }
61423
 
61424
    public _Fields fieldForId(int fieldId) {
61425
      return _Fields.findByThriftId(fieldId);
61426
    }
61427
 
61428
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
61429
      org.apache.thrift.protocol.TField field;
61430
      iprot.readStructBegin();
61431
      while (true)
61432
      {
61433
        field = iprot.readFieldBegin();
61434
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
61435
          break;
61436
        }
61437
        switch (field.id) {
61438
          case 1: // INSURER_ID
61439
            if (field.type == org.apache.thrift.protocol.TType.I64) {
61440
              this.insurerId = iprot.readI64();
61441
              setInsurerIdIsSet(true);
61442
            } else { 
61443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61444
            }
61445
            break;
61446
          default:
61447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61448
        }
61449
        iprot.readFieldEnd();
61450
      }
61451
      iprot.readStructEnd();
61452
      validate();
61453
    }
61454
 
61455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
61456
      validate();
61457
 
61458
      oprot.writeStructBegin(STRUCT_DESC);
61459
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
61460
      oprot.writeI64(this.insurerId);
61461
      oprot.writeFieldEnd();
61462
      oprot.writeFieldStop();
61463
      oprot.writeStructEnd();
61464
    }
61465
 
61466
    @Override
61467
    public String toString() {
61468
      StringBuilder sb = new StringBuilder("getInsurer_args(");
61469
      boolean first = true;
61470
 
61471
      sb.append("insurerId:");
61472
      sb.append(this.insurerId);
61473
      first = false;
61474
      sb.append(")");
61475
      return sb.toString();
61476
    }
61477
 
61478
    public void validate() throws org.apache.thrift.TException {
61479
      // check for required fields
61480
    }
61481
 
61482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61483
      try {
61484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
61485
      } catch (org.apache.thrift.TException te) {
61486
        throw new java.io.IOException(te);
61487
      }
61488
    }
61489
 
61490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61491
      try {
61492
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
61493
        __isset_bit_vector = new BitSet(1);
61494
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61495
      } catch (org.apache.thrift.TException te) {
61496
        throw new java.io.IOException(te);
61497
      }
61498
    }
61499
 
61500
  }
61501
 
61502
  public static class getInsurer_result implements org.apache.thrift.TBase<getInsurer_result, getInsurer_result._Fields>, java.io.Serializable, Cloneable   {
61503
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsurer_result");
61504
 
61505
    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);
61506
 
61507
    private Insurer success; // required
61508
 
61509
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61510
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
61511
      SUCCESS((short)0, "success");
61512
 
61513
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61514
 
61515
      static {
61516
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
61517
          byName.put(field.getFieldName(), field);
61518
        }
61519
      }
61520
 
61521
      /**
61522
       * Find the _Fields constant that matches fieldId, or null if its not found.
61523
       */
61524
      public static _Fields findByThriftId(int fieldId) {
61525
        switch(fieldId) {
61526
          case 0: // SUCCESS
61527
            return SUCCESS;
61528
          default:
61529
            return null;
61530
        }
61531
      }
61532
 
61533
      /**
61534
       * Find the _Fields constant that matches fieldId, throwing an exception
61535
       * if it is not found.
61536
       */
61537
      public static _Fields findByThriftIdOrThrow(int fieldId) {
61538
        _Fields fields = findByThriftId(fieldId);
61539
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
61540
        return fields;
61541
      }
61542
 
61543
      /**
61544
       * Find the _Fields constant that matches name, or null if its not found.
61545
       */
61546
      public static _Fields findByName(String name) {
61547
        return byName.get(name);
61548
      }
61549
 
61550
      private final short _thriftId;
61551
      private final String _fieldName;
61552
 
61553
      _Fields(short thriftId, String fieldName) {
61554
        _thriftId = thriftId;
61555
        _fieldName = fieldName;
61556
      }
61557
 
61558
      public short getThriftFieldId() {
61559
        return _thriftId;
61560
      }
61561
 
61562
      public String getFieldName() {
61563
        return _fieldName;
61564
      }
61565
    }
61566
 
61567
    // isset id assignments
61568
 
61569
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
61570
    static {
61571
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
61572
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
61573
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Insurer.class)));
61574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
61575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsurer_result.class, metaDataMap);
61576
    }
61577
 
61578
    public getInsurer_result() {
61579
    }
61580
 
61581
    public getInsurer_result(
61582
      Insurer success)
61583
    {
61584
      this();
61585
      this.success = success;
61586
    }
61587
 
61588
    /**
61589
     * Performs a deep copy on <i>other</i>.
61590
     */
61591
    public getInsurer_result(getInsurer_result other) {
61592
      if (other.isSetSuccess()) {
61593
        this.success = new Insurer(other.success);
61594
      }
61595
    }
61596
 
61597
    public getInsurer_result deepCopy() {
61598
      return new getInsurer_result(this);
61599
    }
61600
 
61601
    @Override
61602
    public void clear() {
61603
      this.success = null;
61604
    }
61605
 
61606
    public Insurer getSuccess() {
61607
      return this.success;
61608
    }
61609
 
61610
    public void setSuccess(Insurer success) {
61611
      this.success = success;
61612
    }
61613
 
61614
    public void unsetSuccess() {
61615
      this.success = null;
61616
    }
61617
 
61618
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
61619
    public boolean isSetSuccess() {
61620
      return this.success != null;
61621
    }
61622
 
61623
    public void setSuccessIsSet(boolean value) {
61624
      if (!value) {
61625
        this.success = null;
61626
      }
61627
    }
61628
 
61629
    public void setFieldValue(_Fields field, Object value) {
61630
      switch (field) {
61631
      case SUCCESS:
61632
        if (value == null) {
61633
          unsetSuccess();
61634
        } else {
61635
          setSuccess((Insurer)value);
61636
        }
61637
        break;
61638
 
61639
      }
61640
    }
61641
 
61642
    public Object getFieldValue(_Fields field) {
61643
      switch (field) {
61644
      case SUCCESS:
61645
        return getSuccess();
61646
 
61647
      }
61648
      throw new IllegalStateException();
61649
    }
61650
 
61651
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
61652
    public boolean isSet(_Fields field) {
61653
      if (field == null) {
61654
        throw new IllegalArgumentException();
61655
      }
61656
 
61657
      switch (field) {
61658
      case SUCCESS:
61659
        return isSetSuccess();
61660
      }
61661
      throw new IllegalStateException();
61662
    }
61663
 
61664
    @Override
61665
    public boolean equals(Object that) {
61666
      if (that == null)
61667
        return false;
61668
      if (that instanceof getInsurer_result)
61669
        return this.equals((getInsurer_result)that);
61670
      return false;
61671
    }
61672
 
61673
    public boolean equals(getInsurer_result that) {
61674
      if (that == null)
61675
        return false;
61676
 
61677
      boolean this_present_success = true && this.isSetSuccess();
61678
      boolean that_present_success = true && that.isSetSuccess();
61679
      if (this_present_success || that_present_success) {
61680
        if (!(this_present_success && that_present_success))
61681
          return false;
61682
        if (!this.success.equals(that.success))
61683
          return false;
61684
      }
61685
 
61686
      return true;
61687
    }
61688
 
61689
    @Override
61690
    public int hashCode() {
61691
      return 0;
61692
    }
61693
 
61694
    public int compareTo(getInsurer_result other) {
61695
      if (!getClass().equals(other.getClass())) {
61696
        return getClass().getName().compareTo(other.getClass().getName());
61697
      }
61698
 
61699
      int lastComparison = 0;
61700
      getInsurer_result typedOther = (getInsurer_result)other;
61701
 
61702
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
61703
      if (lastComparison != 0) {
61704
        return lastComparison;
61705
      }
61706
      if (isSetSuccess()) {
61707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
61708
        if (lastComparison != 0) {
61709
          return lastComparison;
61710
        }
61711
      }
61712
      return 0;
61713
    }
61714
 
61715
    public _Fields fieldForId(int fieldId) {
61716
      return _Fields.findByThriftId(fieldId);
61717
    }
61718
 
61719
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
61720
      org.apache.thrift.protocol.TField field;
61721
      iprot.readStructBegin();
61722
      while (true)
61723
      {
61724
        field = iprot.readFieldBegin();
61725
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
61726
          break;
61727
        }
61728
        switch (field.id) {
61729
          case 0: // SUCCESS
61730
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
61731
              this.success = new Insurer();
61732
              this.success.read(iprot);
61733
            } else { 
61734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61735
            }
61736
            break;
61737
          default:
61738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61739
        }
61740
        iprot.readFieldEnd();
61741
      }
61742
      iprot.readStructEnd();
61743
      validate();
61744
    }
61745
 
61746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
61747
      oprot.writeStructBegin(STRUCT_DESC);
61748
 
61749
      if (this.isSetSuccess()) {
61750
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
61751
        this.success.write(oprot);
61752
        oprot.writeFieldEnd();
61753
      }
61754
      oprot.writeFieldStop();
61755
      oprot.writeStructEnd();
61756
    }
61757
 
61758
    @Override
61759
    public String toString() {
61760
      StringBuilder sb = new StringBuilder("getInsurer_result(");
61761
      boolean first = true;
61762
 
61763
      sb.append("success:");
61764
      if (this.success == null) {
61765
        sb.append("null");
61766
      } else {
61767
        sb.append(this.success);
61768
      }
61769
      first = false;
61770
      sb.append(")");
61771
      return sb.toString();
61772
    }
61773
 
61774
    public void validate() throws org.apache.thrift.TException {
61775
      // check for required fields
61776
    }
61777
 
61778
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61779
      try {
61780
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
61781
      } catch (org.apache.thrift.TException te) {
61782
        throw new java.io.IOException(te);
61783
      }
61784
    }
61785
 
61786
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61787
      try {
61788
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61789
      } catch (org.apache.thrift.TException te) {
61790
        throw new java.io.IOException(te);
61791
      }
61792
    }
61793
 
61794
  }
61795
 
6838 vikram.rag 61796
  public static class getAllInsurers_args implements org.apache.thrift.TBase<getAllInsurers_args, getAllInsurers_args._Fields>, java.io.Serializable, Cloneable   {
61797
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllInsurers_args");
61798
 
61799
 
61800
 
61801
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61802
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
61803
;
61804
 
61805
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61806
 
61807
      static {
61808
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
61809
          byName.put(field.getFieldName(), field);
61810
        }
61811
      }
61812
 
61813
      /**
61814
       * Find the _Fields constant that matches fieldId, or null if its not found.
61815
       */
61816
      public static _Fields findByThriftId(int fieldId) {
61817
        switch(fieldId) {
61818
          default:
61819
            return null;
61820
        }
61821
      }
61822
 
61823
      /**
61824
       * Find the _Fields constant that matches fieldId, throwing an exception
61825
       * if it is not found.
61826
       */
61827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
61828
        _Fields fields = findByThriftId(fieldId);
61829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
61830
        return fields;
61831
      }
61832
 
61833
      /**
61834
       * Find the _Fields constant that matches name, or null if its not found.
61835
       */
61836
      public static _Fields findByName(String name) {
61837
        return byName.get(name);
61838
      }
61839
 
61840
      private final short _thriftId;
61841
      private final String _fieldName;
61842
 
61843
      _Fields(short thriftId, String fieldName) {
61844
        _thriftId = thriftId;
61845
        _fieldName = fieldName;
61846
      }
61847
 
61848
      public short getThriftFieldId() {
61849
        return _thriftId;
61850
      }
61851
 
61852
      public String getFieldName() {
61853
        return _fieldName;
61854
      }
61855
    }
61856
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
61857
    static {
61858
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
61859
      metaDataMap = Collections.unmodifiableMap(tmpMap);
61860
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllInsurers_args.class, metaDataMap);
61861
    }
61862
 
61863
    public getAllInsurers_args() {
61864
    }
61865
 
61866
    /**
61867
     * Performs a deep copy on <i>other</i>.
61868
     */
61869
    public getAllInsurers_args(getAllInsurers_args other) {
61870
    }
61871
 
61872
    public getAllInsurers_args deepCopy() {
61873
      return new getAllInsurers_args(this);
61874
    }
61875
 
61876
    @Override
61877
    public void clear() {
61878
    }
61879
 
61880
    public void setFieldValue(_Fields field, Object value) {
61881
      switch (field) {
61882
      }
61883
    }
61884
 
61885
    public Object getFieldValue(_Fields field) {
61886
      switch (field) {
61887
      }
61888
      throw new IllegalStateException();
61889
    }
61890
 
61891
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
61892
    public boolean isSet(_Fields field) {
61893
      if (field == null) {
61894
        throw new IllegalArgumentException();
61895
      }
61896
 
61897
      switch (field) {
61898
      }
61899
      throw new IllegalStateException();
61900
    }
61901
 
61902
    @Override
61903
    public boolean equals(Object that) {
61904
      if (that == null)
61905
        return false;
61906
      if (that instanceof getAllInsurers_args)
61907
        return this.equals((getAllInsurers_args)that);
61908
      return false;
61909
    }
61910
 
61911
    public boolean equals(getAllInsurers_args that) {
61912
      if (that == null)
61913
        return false;
61914
 
61915
      return true;
61916
    }
61917
 
61918
    @Override
61919
    public int hashCode() {
61920
      return 0;
61921
    }
61922
 
61923
    public int compareTo(getAllInsurers_args other) {
61924
      if (!getClass().equals(other.getClass())) {
61925
        return getClass().getName().compareTo(other.getClass().getName());
61926
      }
61927
 
61928
      int lastComparison = 0;
61929
      getAllInsurers_args typedOther = (getAllInsurers_args)other;
61930
 
61931
      return 0;
61932
    }
61933
 
61934
    public _Fields fieldForId(int fieldId) {
61935
      return _Fields.findByThriftId(fieldId);
61936
    }
61937
 
61938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
61939
      org.apache.thrift.protocol.TField field;
61940
      iprot.readStructBegin();
61941
      while (true)
61942
      {
61943
        field = iprot.readFieldBegin();
61944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
61945
          break;
61946
        }
61947
        switch (field.id) {
61948
          default:
61949
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61950
        }
61951
        iprot.readFieldEnd();
61952
      }
61953
      iprot.readStructEnd();
61954
      validate();
61955
    }
61956
 
61957
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
61958
      validate();
61959
 
61960
      oprot.writeStructBegin(STRUCT_DESC);
61961
      oprot.writeFieldStop();
61962
      oprot.writeStructEnd();
61963
    }
61964
 
61965
    @Override
61966
    public String toString() {
61967
      StringBuilder sb = new StringBuilder("getAllInsurers_args(");
61968
      boolean first = true;
61969
 
61970
      sb.append(")");
61971
      return sb.toString();
61972
    }
61973
 
61974
    public void validate() throws org.apache.thrift.TException {
61975
      // check for required fields
61976
    }
61977
 
61978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61979
      try {
61980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
61981
      } catch (org.apache.thrift.TException te) {
61982
        throw new java.io.IOException(te);
61983
      }
61984
    }
61985
 
61986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61987
      try {
61988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61989
      } catch (org.apache.thrift.TException te) {
61990
        throw new java.io.IOException(te);
61991
      }
61992
    }
61993
 
61994
  }
61995
 
61996
  public static class getAllInsurers_result implements org.apache.thrift.TBase<getAllInsurers_result, getAllInsurers_result._Fields>, java.io.Serializable, Cloneable   {
61997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllInsurers_result");
61998
 
61999
    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);
62000
 
62001
    private List<Insurer> success; // required
62002
 
62003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62005
      SUCCESS((short)0, "success");
62006
 
62007
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62008
 
62009
      static {
62010
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
62011
          byName.put(field.getFieldName(), field);
62012
        }
62013
      }
62014
 
62015
      /**
62016
       * Find the _Fields constant that matches fieldId, or null if its not found.
62017
       */
62018
      public static _Fields findByThriftId(int fieldId) {
62019
        switch(fieldId) {
62020
          case 0: // SUCCESS
62021
            return SUCCESS;
62022
          default:
62023
            return null;
62024
        }
62025
      }
62026
 
62027
      /**
62028
       * Find the _Fields constant that matches fieldId, throwing an exception
62029
       * if it is not found.
62030
       */
62031
      public static _Fields findByThriftIdOrThrow(int fieldId) {
62032
        _Fields fields = findByThriftId(fieldId);
62033
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
62034
        return fields;
62035
      }
62036
 
62037
      /**
62038
       * Find the _Fields constant that matches name, or null if its not found.
62039
       */
62040
      public static _Fields findByName(String name) {
62041
        return byName.get(name);
62042
      }
62043
 
62044
      private final short _thriftId;
62045
      private final String _fieldName;
62046
 
62047
      _Fields(short thriftId, String fieldName) {
62048
        _thriftId = thriftId;
62049
        _fieldName = fieldName;
62050
      }
62051
 
62052
      public short getThriftFieldId() {
62053
        return _thriftId;
62054
      }
62055
 
62056
      public String getFieldName() {
62057
        return _fieldName;
62058
      }
62059
    }
62060
 
62061
    // isset id assignments
62062
 
62063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
62064
    static {
62065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
62066
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
62067
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
62068
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Insurer.class))));
62069
      metaDataMap = Collections.unmodifiableMap(tmpMap);
62070
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllInsurers_result.class, metaDataMap);
62071
    }
62072
 
62073
    public getAllInsurers_result() {
62074
    }
62075
 
62076
    public getAllInsurers_result(
62077
      List<Insurer> success)
62078
    {
62079
      this();
62080
      this.success = success;
62081
    }
62082
 
62083
    /**
62084
     * Performs a deep copy on <i>other</i>.
62085
     */
62086
    public getAllInsurers_result(getAllInsurers_result other) {
62087
      if (other.isSetSuccess()) {
62088
        List<Insurer> __this__success = new ArrayList<Insurer>();
62089
        for (Insurer other_element : other.success) {
62090
          __this__success.add(new Insurer(other_element));
62091
        }
62092
        this.success = __this__success;
62093
      }
62094
    }
62095
 
62096
    public getAllInsurers_result deepCopy() {
62097
      return new getAllInsurers_result(this);
62098
    }
62099
 
62100
    @Override
62101
    public void clear() {
62102
      this.success = null;
62103
    }
62104
 
62105
    public int getSuccessSize() {
62106
      return (this.success == null) ? 0 : this.success.size();
62107
    }
62108
 
62109
    public java.util.Iterator<Insurer> getSuccessIterator() {
62110
      return (this.success == null) ? null : this.success.iterator();
62111
    }
62112
 
62113
    public void addToSuccess(Insurer elem) {
62114
      if (this.success == null) {
62115
        this.success = new ArrayList<Insurer>();
62116
      }
62117
      this.success.add(elem);
62118
    }
62119
 
62120
    public List<Insurer> getSuccess() {
62121
      return this.success;
62122
    }
62123
 
62124
    public void setSuccess(List<Insurer> success) {
62125
      this.success = success;
62126
    }
62127
 
62128
    public void unsetSuccess() {
62129
      this.success = null;
62130
    }
62131
 
62132
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
62133
    public boolean isSetSuccess() {
62134
      return this.success != null;
62135
    }
62136
 
62137
    public void setSuccessIsSet(boolean value) {
62138
      if (!value) {
62139
        this.success = null;
62140
      }
62141
    }
62142
 
62143
    public void setFieldValue(_Fields field, Object value) {
62144
      switch (field) {
62145
      case SUCCESS:
62146
        if (value == null) {
62147
          unsetSuccess();
62148
        } else {
62149
          setSuccess((List<Insurer>)value);
62150
        }
62151
        break;
62152
 
62153
      }
62154
    }
62155
 
62156
    public Object getFieldValue(_Fields field) {
62157
      switch (field) {
62158
      case SUCCESS:
62159
        return getSuccess();
62160
 
62161
      }
62162
      throw new IllegalStateException();
62163
    }
62164
 
62165
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
62166
    public boolean isSet(_Fields field) {
62167
      if (field == null) {
62168
        throw new IllegalArgumentException();
62169
      }
62170
 
62171
      switch (field) {
62172
      case SUCCESS:
62173
        return isSetSuccess();
62174
      }
62175
      throw new IllegalStateException();
62176
    }
62177
 
62178
    @Override
62179
    public boolean equals(Object that) {
62180
      if (that == null)
62181
        return false;
62182
      if (that instanceof getAllInsurers_result)
62183
        return this.equals((getAllInsurers_result)that);
62184
      return false;
62185
    }
62186
 
62187
    public boolean equals(getAllInsurers_result that) {
62188
      if (that == null)
62189
        return false;
62190
 
62191
      boolean this_present_success = true && this.isSetSuccess();
62192
      boolean that_present_success = true && that.isSetSuccess();
62193
      if (this_present_success || that_present_success) {
62194
        if (!(this_present_success && that_present_success))
62195
          return false;
62196
        if (!this.success.equals(that.success))
62197
          return false;
62198
      }
62199
 
62200
      return true;
62201
    }
62202
 
62203
    @Override
62204
    public int hashCode() {
62205
      return 0;
62206
    }
62207
 
62208
    public int compareTo(getAllInsurers_result other) {
62209
      if (!getClass().equals(other.getClass())) {
62210
        return getClass().getName().compareTo(other.getClass().getName());
62211
      }
62212
 
62213
      int lastComparison = 0;
62214
      getAllInsurers_result typedOther = (getAllInsurers_result)other;
62215
 
62216
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
62217
      if (lastComparison != 0) {
62218
        return lastComparison;
62219
      }
62220
      if (isSetSuccess()) {
62221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
62222
        if (lastComparison != 0) {
62223
          return lastComparison;
62224
        }
62225
      }
62226
      return 0;
62227
    }
62228
 
62229
    public _Fields fieldForId(int fieldId) {
62230
      return _Fields.findByThriftId(fieldId);
62231
    }
62232
 
62233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
62234
      org.apache.thrift.protocol.TField field;
62235
      iprot.readStructBegin();
62236
      while (true)
62237
      {
62238
        field = iprot.readFieldBegin();
62239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
62240
          break;
62241
        }
62242
        switch (field.id) {
62243
          case 0: // SUCCESS
62244
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62245
              {
6850 kshitij.so 62246
                org.apache.thrift.protocol.TList _list170 = iprot.readListBegin();
62247
                this.success = new ArrayList<Insurer>(_list170.size);
62248
                for (int _i171 = 0; _i171 < _list170.size; ++_i171)
6838 vikram.rag 62249
                {
6850 kshitij.so 62250
                  Insurer _elem172; // required
62251
                  _elem172 = new Insurer();
62252
                  _elem172.read(iprot);
62253
                  this.success.add(_elem172);
6838 vikram.rag 62254
                }
62255
                iprot.readListEnd();
62256
              }
62257
            } else { 
62258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
62259
            }
62260
            break;
62261
          default:
62262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
62263
        }
62264
        iprot.readFieldEnd();
62265
      }
62266
      iprot.readStructEnd();
62267
      validate();
62268
    }
62269
 
62270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
62271
      oprot.writeStructBegin(STRUCT_DESC);
62272
 
62273
      if (this.isSetSuccess()) {
62274
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
62275
        {
62276
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6850 kshitij.so 62277
          for (Insurer _iter173 : this.success)
6838 vikram.rag 62278
          {
6850 kshitij.so 62279
            _iter173.write(oprot);
6838 vikram.rag 62280
          }
62281
          oprot.writeListEnd();
62282
        }
62283
        oprot.writeFieldEnd();
62284
      }
62285
      oprot.writeFieldStop();
62286
      oprot.writeStructEnd();
62287
    }
62288
 
62289
    @Override
62290
    public String toString() {
62291
      StringBuilder sb = new StringBuilder("getAllInsurers_result(");
62292
      boolean first = true;
62293
 
62294
      sb.append("success:");
62295
      if (this.success == null) {
62296
        sb.append("null");
62297
      } else {
62298
        sb.append(this.success);
62299
      }
62300
      first = false;
62301
      sb.append(")");
62302
      return sb.toString();
62303
    }
62304
 
62305
    public void validate() throws org.apache.thrift.TException {
62306
      // check for required fields
62307
    }
62308
 
62309
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
62310
      try {
62311
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
62312
      } catch (org.apache.thrift.TException te) {
62313
        throw new java.io.IOException(te);
62314
      }
62315
    }
62316
 
62317
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62318
      try {
62319
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62320
      } catch (org.apache.thrift.TException te) {
62321
        throw new java.io.IOException(te);
62322
      }
62323
    }
62324
 
62325
  }
62326
 
5945 mandeep.dh 62327
}