Subversion Repositories SmartDukaan

Rev

Rev 4725 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4725 Rev 4762
Line 280... Line 280...
280
     * @param catalogItemId
280
     * @param catalogItemId
281
     */
281
     */
282
    public boolean deleteSimilarItem(long itemId, long catalogItemId) throws InventoryServiceException, org.apache.thrift.TException;
282
    public boolean deleteSimilarItem(long itemId, long catalogItemId) throws InventoryServiceException, org.apache.thrift.TException;
283
 
283
 
284
    /**
284
    /**
285
     * Checks if the item exists in VendorItemMapping for the given hotspot parameters (ProductGroup,Brand,ModelNumber,Color),
-
 
286
     * vendor and category.
-
 
287
     * Returns true if it exists else false.
-
 
288
     * 
-
 
289
     * @param productGroup
-
 
290
     * @param brand
-
 
291
     * @param modelNumber
-
 
292
     * @param color
-
 
293
     * @param vendor_id
-
 
294
     * @param category
-
 
295
     */
-
 
296
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws org.apache.thrift.TException;
-
 
297
 
-
 
298
    /**
-
 
299
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
285
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
300
     * 
286
     * 
301
     * @param key
287
     * @param key
302
     * @param vendorItemMapping
288
     * @param vendorItemMapping
303
     */
289
     */
Line 334... Line 320...
334
     * Returns list of items marked as risky.
320
     * Returns list of items marked as risky.
335
     */
321
     */
336
    public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException;
322
    public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException;
337
 
323
 
338
    /**
324
    /**
339
     * Returns list of items with any status except PHASED_OUT and filtered by vendor category.
325
     * Returns list of items with any status except PHASED_OUT and filtered by category.
340
     * Raises exception if vendorCategory is null.
326
     * Raises exception if category is null.
341
     * 
327
     * 
342
     * @param vendorCategory
328
     * @param category
343
     */
329
     */
344
    public List<Item> getItemsByVendorCategory(String vendorCategory) throws org.apache.thrift.TException;
330
    public List<Item> getItemsByCategory(String category) throws org.apache.thrift.TException;
345
 
331
 
346
    /**
332
    /**
347
     * Returns list of catalog ids of items with same similarity index as of the given itemId
333
     * Returns list of catalog ids of items with same similarity index as of the given itemId
348
     * 
334
     * 
349
     * @param beginIndex
335
     * @param beginIndex
Line 571... Line 557...
571
 
557
 
572
    public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
558
    public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
573
 
559
 
574
    public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
560
    public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
575
 
561
 
576
    public void itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.itemExists_call> resultHandler) throws org.apache.thrift.TException;
-
 
577
 
-
 
578
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
562
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
579
 
563
 
580
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
564
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
581
 
565
 
582
    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;
566
    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;
583
 
567
 
584
    public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;
568
    public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;
585
 
569
 
586
    public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;
570
    public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;
587
 
571
 
588
    public void getItemsByVendorCategory(String vendorCategory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByVendorCategory_call> resultHandler) throws org.apache.thrift.TException;
572
    public void getItemsByCategory(String category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByCategory_call> resultHandler) throws org.apache.thrift.TException;
589
 
573
 
590
    public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
574
    public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
591
 
575
 
592
    public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addProductNotification_call> resultHandler) throws org.apache.thrift.TException;
576
    public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addProductNotification_call> resultHandler) throws org.apache.thrift.TException;
593
 
577
 
Line 1991... Line 1975...
1991
        throw result.cex;
1975
        throw result.cex;
1992
      }
1976
      }
1993
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1977
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1994
    }
1978
    }
1995
 
1979
 
1996
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws org.apache.thrift.TException
-
 
1997
    {
-
 
1998
      send_itemExists(productGroup, brand, modelNumber, color, vendor_id, category);
-
 
1999
      return recv_itemExists();
-
 
2000
    }
-
 
2001
 
-
 
2002
    public void send_itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws org.apache.thrift.TException
-
 
2003
    {
-
 
2004
      itemExists_args args = new itemExists_args();
-
 
2005
      args.setProductGroup(productGroup);
-
 
2006
      args.setBrand(brand);
-
 
2007
      args.setModelNumber(modelNumber);
-
 
2008
      args.setColor(color);
-
 
2009
      args.setVendor_id(vendor_id);
-
 
2010
      args.setCategory(category);
-
 
2011
      sendBase("itemExists", args);
-
 
2012
    }
-
 
2013
 
-
 
2014
    public boolean recv_itemExists() throws org.apache.thrift.TException
-
 
2015
    {
-
 
2016
      itemExists_result result = new itemExists_result();
-
 
2017
      receiveBase(result, "itemExists");
-
 
2018
      if (result.isSetSuccess()) {
-
 
2019
        return result.success;
-
 
2020
      }
-
 
2021
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "itemExists failed: unknown result");
-
 
2022
    }
-
 
2023
 
-
 
2024
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
1980
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
2025
    {
1981
    {
2026
      send_addVendorItemMapping(key, vendorItemMapping);
1982
      send_addVendorItemMapping(key, vendorItemMapping);
2027
      recv_addVendorItemMapping();
1983
      recv_addVendorItemMapping();
2028
    }
1984
    }
Line 2138... Line 2094...
2138
        return result.success;
2094
        return result.success;
2139
      }
2095
      }
2140
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2096
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2141
    }
2097
    }
2142
 
2098
 
2143
    public List<Item> getItemsByVendorCategory(String vendorCategory) throws org.apache.thrift.TException
2099
    public List<Item> getItemsByCategory(String category) throws org.apache.thrift.TException
2144
    {
2100
    {
2145
      send_getItemsByVendorCategory(vendorCategory);
2101
      send_getItemsByCategory(category);
2146
      return recv_getItemsByVendorCategory();
2102
      return recv_getItemsByCategory();
2147
    }
2103
    }
2148
 
2104
 
2149
    public void send_getItemsByVendorCategory(String vendorCategory) throws org.apache.thrift.TException
2105
    public void send_getItemsByCategory(String category) throws org.apache.thrift.TException
2150
    {
2106
    {
2151
      getItemsByVendorCategory_args args = new getItemsByVendorCategory_args();
2107
      getItemsByCategory_args args = new getItemsByCategory_args();
2152
      args.setVendorCategory(vendorCategory);
2108
      args.setCategory(category);
2153
      sendBase("getItemsByVendorCategory", args);
2109
      sendBase("getItemsByCategory", args);
2154
    }
2110
    }
2155
 
2111
 
2156
    public List<Item> recv_getItemsByVendorCategory() throws org.apache.thrift.TException
2112
    public List<Item> recv_getItemsByCategory() throws org.apache.thrift.TException
2157
    {
2113
    {
2158
      getItemsByVendorCategory_result result = new getItemsByVendorCategory_result();
2114
      getItemsByCategory_result result = new getItemsByCategory_result();
2159
      receiveBase(result, "getItemsByVendorCategory");
2115
      receiveBase(result, "getItemsByCategory");
2160
      if (result.isSetSuccess()) {
2116
      if (result.isSetSuccess()) {
2161
        return result.success;
2117
        return result.success;
2162
      }
2118
      }
2163
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByVendorCategory failed: unknown result");
2119
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByCategory failed: unknown result");
2164
    }
2120
    }
2165
 
2121
 
2166
    public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException
2122
    public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException
2167
    {
2123
    {
2168
      send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId);
2124
      send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId);
Line 4350... Line 4306...
4350
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4306
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4351
        return (new Client(prot)).recv_deleteSimilarItem();
4307
        return (new Client(prot)).recv_deleteSimilarItem();
4352
      }
4308
      }
4353
    }
4309
    }
4354
 
4310
 
4355
    public void itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category, org.apache.thrift.async.AsyncMethodCallback<itemExists_call> resultHandler) throws org.apache.thrift.TException {
-
 
4356
      checkReady();
-
 
4357
      itemExists_call method_call = new itemExists_call(productGroup, brand, modelNumber, color, vendor_id, category, resultHandler, this, ___protocolFactory, ___transport);
-
 
4358
      this.___currentMethod = method_call;
-
 
4359
      ___manager.call(method_call);
-
 
4360
    }
-
 
4361
 
-
 
4362
    public static class itemExists_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4363
      private String productGroup;
-
 
4364
      private String brand;
-
 
4365
      private String modelNumber;
-
 
4366
      private String color;
-
 
4367
      private long vendor_id;
-
 
4368
      private String category;
-
 
4369
      public itemExists_call(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category, org.apache.thrift.async.AsyncMethodCallback<itemExists_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4370
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4371
        this.productGroup = productGroup;
-
 
4372
        this.brand = brand;
-
 
4373
        this.modelNumber = modelNumber;
-
 
4374
        this.color = color;
-
 
4375
        this.vendor_id = vendor_id;
-
 
4376
        this.category = category;
-
 
4377
      }
-
 
4378
 
-
 
4379
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4380
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("itemExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4381
        itemExists_args args = new itemExists_args();
-
 
4382
        args.setProductGroup(productGroup);
-
 
4383
        args.setBrand(brand);
-
 
4384
        args.setModelNumber(modelNumber);
-
 
4385
        args.setColor(color);
-
 
4386
        args.setVendor_id(vendor_id);
-
 
4387
        args.setCategory(category);
-
 
4388
        args.write(prot);
-
 
4389
        prot.writeMessageEnd();
-
 
4390
      }
-
 
4391
 
-
 
4392
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4394
          throw new IllegalStateException("Method call not finished!");
-
 
4395
        }
-
 
4396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4398
        return (new Client(prot)).recv_itemExists();
-
 
4399
      }
-
 
4400
    }
-
 
4401
 
-
 
4402
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
4311
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
4403
      checkReady();
4312
      checkReady();
4404
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
4313
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
4405
      this.___currentMethod = method_call;
4314
      this.___currentMethod = method_call;
4406
      ___manager.call(method_call);
4315
      ___manager.call(method_call);
Line 4569... Line 4478...
4569
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4478
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4570
        return (new Client(prot)).recv_getItemsByRiskyFlag();
4479
        return (new Client(prot)).recv_getItemsByRiskyFlag();
4571
      }
4480
      }
4572
    }
4481
    }
4573
 
4482
 
4574
    public void getItemsByVendorCategory(String vendorCategory, org.apache.thrift.async.AsyncMethodCallback<getItemsByVendorCategory_call> resultHandler) throws org.apache.thrift.TException {
4483
    public void getItemsByCategory(String category, org.apache.thrift.async.AsyncMethodCallback<getItemsByCategory_call> resultHandler) throws org.apache.thrift.TException {
4575
      checkReady();
4484
      checkReady();
4576
      getItemsByVendorCategory_call method_call = new getItemsByVendorCategory_call(vendorCategory, resultHandler, this, ___protocolFactory, ___transport);
4485
      getItemsByCategory_call method_call = new getItemsByCategory_call(category, resultHandler, this, ___protocolFactory, ___transport);
4577
      this.___currentMethod = method_call;
4486
      this.___currentMethod = method_call;
4578
      ___manager.call(method_call);
4487
      ___manager.call(method_call);
4579
    }
4488
    }
4580
 
4489
 
4581
    public static class getItemsByVendorCategory_call extends org.apache.thrift.async.TAsyncMethodCall {
4490
    public static class getItemsByCategory_call extends org.apache.thrift.async.TAsyncMethodCall {
4582
      private String vendorCategory;
4491
      private String category;
4583
      public getItemsByVendorCategory_call(String vendorCategory, org.apache.thrift.async.AsyncMethodCallback<getItemsByVendorCategory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4492
      public getItemsByCategory_call(String category, org.apache.thrift.async.AsyncMethodCallback<getItemsByCategory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4584
        super(client, protocolFactory, transport, resultHandler, false);
4493
        super(client, protocolFactory, transport, resultHandler, false);
4585
        this.vendorCategory = vendorCategory;
4494
        this.category = category;
4586
      }
4495
      }
4587
 
4496
 
4588
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4497
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4589
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByVendorCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4498
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4590
        getItemsByVendorCategory_args args = new getItemsByVendorCategory_args();
4499
        getItemsByCategory_args args = new getItemsByCategory_args();
4591
        args.setVendorCategory(vendorCategory);
4500
        args.setCategory(category);
4592
        args.write(prot);
4501
        args.write(prot);
4593
        prot.writeMessageEnd();
4502
        prot.writeMessageEnd();
4594
      }
4503
      }
4595
 
4504
 
4596
      public List<Item> getResult() throws org.apache.thrift.TException {
4505
      public List<Item> getResult() throws org.apache.thrift.TException {
4597
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4506
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4598
          throw new IllegalStateException("Method call not finished!");
4507
          throw new IllegalStateException("Method call not finished!");
4599
        }
4508
        }
4600
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4509
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4601
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4510
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4602
        return (new Client(prot)).recv_getItemsByVendorCategory();
4511
        return (new Client(prot)).recv_getItemsByCategory();
4603
      }
4512
      }
4604
    }
4513
    }
4605
 
4514
 
4606
    public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
4515
    public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
4607
      checkReady();
4516
      checkReady();
Line 5203... Line 5112...
5203
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
5112
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
5204
      processMap.put("getAllVendors", new getAllVendors());
5113
      processMap.put("getAllVendors", new getAllVendors());
5205
      processMap.put("getAllSimilarItems", new getAllSimilarItems());
5114
      processMap.put("getAllSimilarItems", new getAllSimilarItems());
5206
      processMap.put("addSimilarItem", new addSimilarItem());
5115
      processMap.put("addSimilarItem", new addSimilarItem());
5207
      processMap.put("deleteSimilarItem", new deleteSimilarItem());
5116
      processMap.put("deleteSimilarItem", new deleteSimilarItem());
5208
      processMap.put("itemExists", new itemExists());
-
 
5209
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
5117
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
5210
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
5118
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
5211
      processMap.put("checkSimilarItem", new checkSimilarItem());
5119
      processMap.put("checkSimilarItem", new checkSimilarItem());
5212
      processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());
5120
      processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());
5213
      processMap.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());
5121
      processMap.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());
5214
      processMap.put("getItemsByVendorCategory", new getItemsByVendorCategory());
5122
      processMap.put("getItemsByCategory", new getItemsByCategory());
5215
      processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
5123
      processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
5216
      processMap.put("addProductNotification", new addProductNotification());
5124
      processMap.put("addProductNotification", new addProductNotification());
5217
      processMap.put("sendProductNotifications", new sendProductNotifications());
5125
      processMap.put("sendProductNotifications", new sendProductNotifications());
5218
      processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());
5126
      processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());
5219
      processMap.put("getAllSources", new getAllSources());
5127
      processMap.put("getAllSources", new getAllSources());
Line 6265... Line 6173...
6265
        }
6173
        }
6266
        return result;
6174
        return result;
6267
      }
6175
      }
6268
    }
6176
    }
6269
 
6177
 
6270
    private static class itemExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, itemExists_args> {
-
 
6271
      public itemExists() {
-
 
6272
        super("itemExists");
-
 
6273
      }
-
 
6274
 
-
 
6275
      protected itemExists_args getEmptyArgsInstance() {
-
 
6276
        return new itemExists_args();
-
 
6277
      }
-
 
6278
 
-
 
6279
      protected itemExists_result getResult(I iface, itemExists_args args) throws org.apache.thrift.TException {
-
 
6280
        itemExists_result result = new itemExists_result();
-
 
6281
        result.success = iface.itemExists(args.productGroup, args.brand, args.modelNumber, args.color, args.vendor_id, args.category);
-
 
6282
        result.setSuccessIsSet(true);
-
 
6283
        return result;
-
 
6284
      }
-
 
6285
    }
-
 
6286
 
-
 
6287
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
6178
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
6288
      public addVendorItemMapping() {
6179
      public addVendorItemMapping() {
6289
        super("addVendorItemMapping");
6180
        super("addVendorItemMapping");
6290
      }
6181
      }
6291
 
6182
 
Line 6371... Line 6262...
6371
        result.success = iface.getItemsByRiskyFlag();
6262
        result.success = iface.getItemsByRiskyFlag();
6372
        return result;
6263
        return result;
6373
      }
6264
      }
6374
    }
6265
    }
6375
 
6266
 
6376
    private static class getItemsByVendorCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByVendorCategory_args> {
6267
    private static class getItemsByCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByCategory_args> {
6377
      public getItemsByVendorCategory() {
6268
      public getItemsByCategory() {
6378
        super("getItemsByVendorCategory");
6269
        super("getItemsByCategory");
6379
      }
6270
      }
6380
 
6271
 
6381
      protected getItemsByVendorCategory_args getEmptyArgsInstance() {
6272
      protected getItemsByCategory_args getEmptyArgsInstance() {
6382
        return new getItemsByVendorCategory_args();
6273
        return new getItemsByCategory_args();
6383
      }
6274
      }
6384
 
6275
 
6385
      protected getItemsByVendorCategory_result getResult(I iface, getItemsByVendorCategory_args args) throws org.apache.thrift.TException {
6276
      protected getItemsByCategory_result getResult(I iface, getItemsByCategory_args args) throws org.apache.thrift.TException {
6386
        getItemsByVendorCategory_result result = new getItemsByVendorCategory_result();
6277
        getItemsByCategory_result result = new getItemsByCategory_result();
6387
        result.success = iface.getItemsByVendorCategory(args.vendorCategory);
6278
        result.success = iface.getItemsByCategory(args.category);
6388
        return result;
6279
        return result;
6389
      }
6280
      }
6390
    }
6281
    }
6391
 
6282
 
6392
    private static class getSimilarItemsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSimilarItemsCatalogIds_args> {
6283
    private static class getSimilarItemsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSimilarItemsCatalogIds_args> {
Line 44129... Line 44020...
44129
      }
44020
      }
44130
    }
44021
    }
44131
 
44022
 
44132
  }
44023
  }
44133
 
44024
 
44134
  public static class itemExists_args implements org.apache.thrift.TBase<itemExists_args, itemExists_args._Fields>, java.io.Serializable, Cloneable   {
-
 
44135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("itemExists_args");
-
 
44136
 
-
 
44137
    private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
44138
    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);
-
 
44139
    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)3);
-
 
44140
    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);
-
 
44141
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor_id", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
44142
    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)6);
-
 
44143
 
-
 
44144
    private String productGroup; // required
-
 
44145
    private String brand; // required
-
 
44146
    private String modelNumber; // required
-
 
44147
    private String color; // required
-
 
44148
    private long vendor_id; // required
-
 
44149
    private String category; // required
-
 
44150
 
-
 
44151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
44152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
44153
      PRODUCT_GROUP((short)1, "productGroup"),
-
 
44154
      BRAND((short)2, "brand"),
-
 
44155
      MODEL_NUMBER((short)3, "modelNumber"),
-
 
44156
      COLOR((short)4, "color"),
-
 
44157
      VENDOR_ID((short)5, "vendor_id"),
-
 
44158
      CATEGORY((short)6, "category");
-
 
44159
 
-
 
44160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
44161
 
-
 
44162
      static {
-
 
44163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
44164
          byName.put(field.getFieldName(), field);
-
 
44165
        }
-
 
44166
      }
-
 
44167
 
-
 
44168
      /**
-
 
44169
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
44170
       */
-
 
44171
      public static _Fields findByThriftId(int fieldId) {
-
 
44172
        switch(fieldId) {
-
 
44173
          case 1: // PRODUCT_GROUP
-
 
44174
            return PRODUCT_GROUP;
-
 
44175
          case 2: // BRAND
-
 
44176
            return BRAND;
-
 
44177
          case 3: // MODEL_NUMBER
-
 
44178
            return MODEL_NUMBER;
-
 
44179
          case 4: // COLOR
-
 
44180
            return COLOR;
-
 
44181
          case 5: // VENDOR_ID
-
 
44182
            return VENDOR_ID;
-
 
44183
          case 6: // CATEGORY
-
 
44184
            return CATEGORY;
-
 
44185
          default:
-
 
44186
            return null;
-
 
44187
        }
-
 
44188
      }
-
 
44189
 
-
 
44190
      /**
-
 
44191
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
44192
       * if it is not found.
-
 
44193
       */
-
 
44194
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
44195
        _Fields fields = findByThriftId(fieldId);
-
 
44196
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
44197
        return fields;
-
 
44198
      }
-
 
44199
 
-
 
44200
      /**
-
 
44201
       * Find the _Fields constant that matches name, or null if its not found.
-
 
44202
       */
-
 
44203
      public static _Fields findByName(String name) {
-
 
44204
        return byName.get(name);
-
 
44205
      }
-
 
44206
 
-
 
44207
      private final short _thriftId;
-
 
44208
      private final String _fieldName;
-
 
44209
 
-
 
44210
      _Fields(short thriftId, String fieldName) {
-
 
44211
        _thriftId = thriftId;
-
 
44212
        _fieldName = fieldName;
-
 
44213
      }
-
 
44214
 
-
 
44215
      public short getThriftFieldId() {
-
 
44216
        return _thriftId;
-
 
44217
      }
-
 
44218
 
-
 
44219
      public String getFieldName() {
-
 
44220
        return _fieldName;
-
 
44221
      }
-
 
44222
    }
-
 
44223
 
-
 
44224
    // isset id assignments
-
 
44225
    private static final int __VENDOR_ID_ISSET_ID = 0;
-
 
44226
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
44227
 
-
 
44228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44229
    static {
-
 
44230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44231
      tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
44233
      tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
44235
      tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44236
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
44237
      tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
44239
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendor_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
44241
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
44243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(itemExists_args.class, metaDataMap);
-
 
44245
    }
-
 
44246
 
-
 
44247
    public itemExists_args() {
-
 
44248
    }
-
 
44249
 
-
 
44250
    public itemExists_args(
-
 
44251
      String productGroup,
-
 
44252
      String brand,
-
 
44253
      String modelNumber,
-
 
44254
      String color,
-
 
44255
      long vendor_id,
-
 
44256
      String category)
-
 
44257
    {
-
 
44258
      this();
-
 
44259
      this.productGroup = productGroup;
-
 
44260
      this.brand = brand;
-
 
44261
      this.modelNumber = modelNumber;
-
 
44262
      this.color = color;
-
 
44263
      this.vendor_id = vendor_id;
-
 
44264
      setVendor_idIsSet(true);
-
 
44265
      this.category = category;
-
 
44266
    }
-
 
44267
 
-
 
44268
    /**
-
 
44269
     * Performs a deep copy on <i>other</i>.
-
 
44270
     */
-
 
44271
    public itemExists_args(itemExists_args other) {
-
 
44272
      __isset_bit_vector.clear();
-
 
44273
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
44274
      if (other.isSetProductGroup()) {
-
 
44275
        this.productGroup = other.productGroup;
-
 
44276
      }
-
 
44277
      if (other.isSetBrand()) {
-
 
44278
        this.brand = other.brand;
-
 
44279
      }
-
 
44280
      if (other.isSetModelNumber()) {
-
 
44281
        this.modelNumber = other.modelNumber;
-
 
44282
      }
-
 
44283
      if (other.isSetColor()) {
-
 
44284
        this.color = other.color;
-
 
44285
      }
-
 
44286
      this.vendor_id = other.vendor_id;
-
 
44287
      if (other.isSetCategory()) {
-
 
44288
        this.category = other.category;
-
 
44289
      }
-
 
44290
    }
-
 
44291
 
-
 
44292
    public itemExists_args deepCopy() {
-
 
44293
      return new itemExists_args(this);
-
 
44294
    }
-
 
44295
 
-
 
44296
    @Override
-
 
44297
    public void clear() {
-
 
44298
      this.productGroup = null;
-
 
44299
      this.brand = null;
-
 
44300
      this.modelNumber = null;
-
 
44301
      this.color = null;
-
 
44302
      setVendor_idIsSet(false);
-
 
44303
      this.vendor_id = 0;
-
 
44304
      this.category = null;
-
 
44305
    }
-
 
44306
 
-
 
44307
    public String getProductGroup() {
-
 
44308
      return this.productGroup;
-
 
44309
    }
-
 
44310
 
-
 
44311
    public void setProductGroup(String productGroup) {
-
 
44312
      this.productGroup = productGroup;
-
 
44313
    }
-
 
44314
 
-
 
44315
    public void unsetProductGroup() {
-
 
44316
      this.productGroup = null;
-
 
44317
    }
-
 
44318
 
-
 
44319
    /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
-
 
44320
    public boolean isSetProductGroup() {
-
 
44321
      return this.productGroup != null;
-
 
44322
    }
-
 
44323
 
-
 
44324
    public void setProductGroupIsSet(boolean value) {
-
 
44325
      if (!value) {
-
 
44326
        this.productGroup = null;
-
 
44327
      }
-
 
44328
    }
-
 
44329
 
-
 
44330
    public String getBrand() {
-
 
44331
      return this.brand;
-
 
44332
    }
-
 
44333
 
-
 
44334
    public void setBrand(String brand) {
-
 
44335
      this.brand = brand;
-
 
44336
    }
-
 
44337
 
-
 
44338
    public void unsetBrand() {
-
 
44339
      this.brand = null;
-
 
44340
    }
-
 
44341
 
-
 
44342
    /** Returns true if field brand is set (has been assigned a value) and false otherwise */
-
 
44343
    public boolean isSetBrand() {
-
 
44344
      return this.brand != null;
-
 
44345
    }
-
 
44346
 
-
 
44347
    public void setBrandIsSet(boolean value) {
-
 
44348
      if (!value) {
-
 
44349
        this.brand = null;
-
 
44350
      }
-
 
44351
    }
-
 
44352
 
-
 
44353
    public String getModelNumber() {
-
 
44354
      return this.modelNumber;
-
 
44355
    }
-
 
44356
 
-
 
44357
    public void setModelNumber(String modelNumber) {
-
 
44358
      this.modelNumber = modelNumber;
-
 
44359
    }
-
 
44360
 
-
 
44361
    public void unsetModelNumber() {
-
 
44362
      this.modelNumber = null;
-
 
44363
    }
-
 
44364
 
-
 
44365
    /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
-
 
44366
    public boolean isSetModelNumber() {
-
 
44367
      return this.modelNumber != null;
-
 
44368
    }
-
 
44369
 
-
 
44370
    public void setModelNumberIsSet(boolean value) {
-
 
44371
      if (!value) {
-
 
44372
        this.modelNumber = null;
-
 
44373
      }
-
 
44374
    }
-
 
44375
 
-
 
44376
    public String getColor() {
-
 
44377
      return this.color;
-
 
44378
    }
-
 
44379
 
-
 
44380
    public void setColor(String color) {
-
 
44381
      this.color = color;
-
 
44382
    }
-
 
44383
 
-
 
44384
    public void unsetColor() {
-
 
44385
      this.color = null;
-
 
44386
    }
-
 
44387
 
-
 
44388
    /** Returns true if field color is set (has been assigned a value) and false otherwise */
-
 
44389
    public boolean isSetColor() {
-
 
44390
      return this.color != null;
-
 
44391
    }
-
 
44392
 
-
 
44393
    public void setColorIsSet(boolean value) {
-
 
44394
      if (!value) {
-
 
44395
        this.color = null;
-
 
44396
      }
-
 
44397
    }
-
 
44398
 
-
 
44399
    public long getVendor_id() {
-
 
44400
      return this.vendor_id;
-
 
44401
    }
-
 
44402
 
-
 
44403
    public void setVendor_id(long vendor_id) {
-
 
44404
      this.vendor_id = vendor_id;
-
 
44405
      setVendor_idIsSet(true);
-
 
44406
    }
-
 
44407
 
-
 
44408
    public void unsetVendor_id() {
-
 
44409
      __isset_bit_vector.clear(__VENDOR_ID_ISSET_ID);
-
 
44410
    }
-
 
44411
 
-
 
44412
    /** Returns true if field vendor_id is set (has been assigned a value) and false otherwise */
-
 
44413
    public boolean isSetVendor_id() {
-
 
44414
      return __isset_bit_vector.get(__VENDOR_ID_ISSET_ID);
-
 
44415
    }
-
 
44416
 
-
 
44417
    public void setVendor_idIsSet(boolean value) {
-
 
44418
      __isset_bit_vector.set(__VENDOR_ID_ISSET_ID, value);
-
 
44419
    }
-
 
44420
 
-
 
44421
    public String getCategory() {
-
 
44422
      return this.category;
-
 
44423
    }
-
 
44424
 
-
 
44425
    public void setCategory(String category) {
-
 
44426
      this.category = category;
-
 
44427
    }
-
 
44428
 
-
 
44429
    public void unsetCategory() {
-
 
44430
      this.category = null;
-
 
44431
    }
-
 
44432
 
-
 
44433
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
-
 
44434
    public boolean isSetCategory() {
-
 
44435
      return this.category != null;
-
 
44436
    }
-
 
44437
 
-
 
44438
    public void setCategoryIsSet(boolean value) {
-
 
44439
      if (!value) {
-
 
44440
        this.category = null;
-
 
44441
      }
-
 
44442
    }
-
 
44443
 
-
 
44444
    public void setFieldValue(_Fields field, Object value) {
-
 
44445
      switch (field) {
-
 
44446
      case PRODUCT_GROUP:
-
 
44447
        if (value == null) {
-
 
44448
          unsetProductGroup();
-
 
44449
        } else {
-
 
44450
          setProductGroup((String)value);
-
 
44451
        }
-
 
44452
        break;
-
 
44453
 
-
 
44454
      case BRAND:
-
 
44455
        if (value == null) {
-
 
44456
          unsetBrand();
-
 
44457
        } else {
-
 
44458
          setBrand((String)value);
-
 
44459
        }
-
 
44460
        break;
-
 
44461
 
-
 
44462
      case MODEL_NUMBER:
-
 
44463
        if (value == null) {
-
 
44464
          unsetModelNumber();
-
 
44465
        } else {
-
 
44466
          setModelNumber((String)value);
-
 
44467
        }
-
 
44468
        break;
-
 
44469
 
-
 
44470
      case COLOR:
-
 
44471
        if (value == null) {
-
 
44472
          unsetColor();
-
 
44473
        } else {
-
 
44474
          setColor((String)value);
-
 
44475
        }
-
 
44476
        break;
-
 
44477
 
-
 
44478
      case VENDOR_ID:
-
 
44479
        if (value == null) {
-
 
44480
          unsetVendor_id();
-
 
44481
        } else {
-
 
44482
          setVendor_id((Long)value);
-
 
44483
        }
-
 
44484
        break;
-
 
44485
 
-
 
44486
      case CATEGORY:
-
 
44487
        if (value == null) {
-
 
44488
          unsetCategory();
-
 
44489
        } else {
-
 
44490
          setCategory((String)value);
-
 
44491
        }
-
 
44492
        break;
-
 
44493
 
-
 
44494
      }
-
 
44495
    }
-
 
44496
 
-
 
44497
    public Object getFieldValue(_Fields field) {
-
 
44498
      switch (field) {
-
 
44499
      case PRODUCT_GROUP:
-
 
44500
        return getProductGroup();
-
 
44501
 
-
 
44502
      case BRAND:
-
 
44503
        return getBrand();
-
 
44504
 
-
 
44505
      case MODEL_NUMBER:
-
 
44506
        return getModelNumber();
-
 
44507
 
-
 
44508
      case COLOR:
-
 
44509
        return getColor();
-
 
44510
 
-
 
44511
      case VENDOR_ID:
-
 
44512
        return Long.valueOf(getVendor_id());
-
 
44513
 
-
 
44514
      case CATEGORY:
-
 
44515
        return getCategory();
-
 
44516
 
-
 
44517
      }
-
 
44518
      throw new IllegalStateException();
-
 
44519
    }
-
 
44520
 
-
 
44521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
44522
    public boolean isSet(_Fields field) {
-
 
44523
      if (field == null) {
-
 
44524
        throw new IllegalArgumentException();
-
 
44525
      }
-
 
44526
 
-
 
44527
      switch (field) {
-
 
44528
      case PRODUCT_GROUP:
-
 
44529
        return isSetProductGroup();
-
 
44530
      case BRAND:
-
 
44531
        return isSetBrand();
-
 
44532
      case MODEL_NUMBER:
-
 
44533
        return isSetModelNumber();
-
 
44534
      case COLOR:
-
 
44535
        return isSetColor();
-
 
44536
      case VENDOR_ID:
-
 
44537
        return isSetVendor_id();
-
 
44538
      case CATEGORY:
-
 
44539
        return isSetCategory();
-
 
44540
      }
-
 
44541
      throw new IllegalStateException();
-
 
44542
    }
-
 
44543
 
-
 
44544
    @Override
-
 
44545
    public boolean equals(Object that) {
-
 
44546
      if (that == null)
-
 
44547
        return false;
-
 
44548
      if (that instanceof itemExists_args)
-
 
44549
        return this.equals((itemExists_args)that);
-
 
44550
      return false;
-
 
44551
    }
-
 
44552
 
-
 
44553
    public boolean equals(itemExists_args that) {
-
 
44554
      if (that == null)
-
 
44555
        return false;
-
 
44556
 
-
 
44557
      boolean this_present_productGroup = true && this.isSetProductGroup();
-
 
44558
      boolean that_present_productGroup = true && that.isSetProductGroup();
-
 
44559
      if (this_present_productGroup || that_present_productGroup) {
-
 
44560
        if (!(this_present_productGroup && that_present_productGroup))
-
 
44561
          return false;
-
 
44562
        if (!this.productGroup.equals(that.productGroup))
-
 
44563
          return false;
-
 
44564
      }
-
 
44565
 
-
 
44566
      boolean this_present_brand = true && this.isSetBrand();
-
 
44567
      boolean that_present_brand = true && that.isSetBrand();
-
 
44568
      if (this_present_brand || that_present_brand) {
-
 
44569
        if (!(this_present_brand && that_present_brand))
-
 
44570
          return false;
-
 
44571
        if (!this.brand.equals(that.brand))
-
 
44572
          return false;
-
 
44573
      }
-
 
44574
 
-
 
44575
      boolean this_present_modelNumber = true && this.isSetModelNumber();
-
 
44576
      boolean that_present_modelNumber = true && that.isSetModelNumber();
-
 
44577
      if (this_present_modelNumber || that_present_modelNumber) {
-
 
44578
        if (!(this_present_modelNumber && that_present_modelNumber))
-
 
44579
          return false;
-
 
44580
        if (!this.modelNumber.equals(that.modelNumber))
-
 
44581
          return false;
-
 
44582
      }
-
 
44583
 
-
 
44584
      boolean this_present_color = true && this.isSetColor();
-
 
44585
      boolean that_present_color = true && that.isSetColor();
-
 
44586
      if (this_present_color || that_present_color) {
-
 
44587
        if (!(this_present_color && that_present_color))
-
 
44588
          return false;
-
 
44589
        if (!this.color.equals(that.color))
-
 
44590
          return false;
-
 
44591
      }
-
 
44592
 
-
 
44593
      boolean this_present_vendor_id = true;
-
 
44594
      boolean that_present_vendor_id = true;
-
 
44595
      if (this_present_vendor_id || that_present_vendor_id) {
-
 
44596
        if (!(this_present_vendor_id && that_present_vendor_id))
-
 
44597
          return false;
-
 
44598
        if (this.vendor_id != that.vendor_id)
-
 
44599
          return false;
-
 
44600
      }
-
 
44601
 
-
 
44602
      boolean this_present_category = true && this.isSetCategory();
-
 
44603
      boolean that_present_category = true && that.isSetCategory();
-
 
44604
      if (this_present_category || that_present_category) {
-
 
44605
        if (!(this_present_category && that_present_category))
-
 
44606
          return false;
-
 
44607
        if (!this.category.equals(that.category))
-
 
44608
          return false;
-
 
44609
      }
-
 
44610
 
-
 
44611
      return true;
-
 
44612
    }
-
 
44613
 
-
 
44614
    @Override
-
 
44615
    public int hashCode() {
-
 
44616
      return 0;
-
 
44617
    }
-
 
44618
 
-
 
44619
    public int compareTo(itemExists_args other) {
-
 
44620
      if (!getClass().equals(other.getClass())) {
-
 
44621
        return getClass().getName().compareTo(other.getClass().getName());
-
 
44622
      }
-
 
44623
 
-
 
44624
      int lastComparison = 0;
-
 
44625
      itemExists_args typedOther = (itemExists_args)other;
-
 
44626
 
-
 
44627
      lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
-
 
44628
      if (lastComparison != 0) {
-
 
44629
        return lastComparison;
-
 
44630
      }
-
 
44631
      if (isSetProductGroup()) {
-
 
44632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
-
 
44633
        if (lastComparison != 0) {
-
 
44634
          return lastComparison;
-
 
44635
        }
-
 
44636
      }
-
 
44637
      lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
-
 
44638
      if (lastComparison != 0) {
-
 
44639
        return lastComparison;
-
 
44640
      }
-
 
44641
      if (isSetBrand()) {
-
 
44642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
-
 
44643
        if (lastComparison != 0) {
-
 
44644
          return lastComparison;
-
 
44645
        }
-
 
44646
      }
-
 
44647
      lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
-
 
44648
      if (lastComparison != 0) {
-
 
44649
        return lastComparison;
-
 
44650
      }
-
 
44651
      if (isSetModelNumber()) {
-
 
44652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
-
 
44653
        if (lastComparison != 0) {
-
 
44654
          return lastComparison;
-
 
44655
        }
-
 
44656
      }
-
 
44657
      lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
-
 
44658
      if (lastComparison != 0) {
-
 
44659
        return lastComparison;
-
 
44660
      }
-
 
44661
      if (isSetColor()) {
-
 
44662
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
-
 
44663
        if (lastComparison != 0) {
-
 
44664
          return lastComparison;
-
 
44665
        }
-
 
44666
      }
-
 
44667
      lastComparison = Boolean.valueOf(isSetVendor_id()).compareTo(typedOther.isSetVendor_id());
-
 
44668
      if (lastComparison != 0) {
-
 
44669
        return lastComparison;
-
 
44670
      }
-
 
44671
      if (isSetVendor_id()) {
-
 
44672
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor_id, typedOther.vendor_id);
-
 
44673
        if (lastComparison != 0) {
-
 
44674
          return lastComparison;
-
 
44675
        }
-
 
44676
      }
-
 
44677
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
-
 
44678
      if (lastComparison != 0) {
-
 
44679
        return lastComparison;
-
 
44680
      }
-
 
44681
      if (isSetCategory()) {
-
 
44682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
-
 
44683
        if (lastComparison != 0) {
-
 
44684
          return lastComparison;
-
 
44685
        }
-
 
44686
      }
-
 
44687
      return 0;
-
 
44688
    }
-
 
44689
 
-
 
44690
    public _Fields fieldForId(int fieldId) {
-
 
44691
      return _Fields.findByThriftId(fieldId);
-
 
44692
    }
-
 
44693
 
-
 
44694
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
44695
      org.apache.thrift.protocol.TField field;
-
 
44696
      iprot.readStructBegin();
-
 
44697
      while (true)
-
 
44698
      {
-
 
44699
        field = iprot.readFieldBegin();
-
 
44700
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
44701
          break;
-
 
44702
        }
-
 
44703
        switch (field.id) {
-
 
44704
          case 1: // PRODUCT_GROUP
-
 
44705
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
44706
              this.productGroup = iprot.readString();
-
 
44707
            } else { 
-
 
44708
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44709
            }
-
 
44710
            break;
-
 
44711
          case 2: // BRAND
-
 
44712
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
44713
              this.brand = iprot.readString();
-
 
44714
            } else { 
-
 
44715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44716
            }
-
 
44717
            break;
-
 
44718
          case 3: // MODEL_NUMBER
-
 
44719
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
44720
              this.modelNumber = iprot.readString();
-
 
44721
            } else { 
-
 
44722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44723
            }
-
 
44724
            break;
-
 
44725
          case 4: // COLOR
-
 
44726
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
44727
              this.color = iprot.readString();
-
 
44728
            } else { 
-
 
44729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44730
            }
-
 
44731
            break;
-
 
44732
          case 5: // VENDOR_ID
-
 
44733
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
44734
              this.vendor_id = iprot.readI64();
-
 
44735
              setVendor_idIsSet(true);
-
 
44736
            } else { 
-
 
44737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44738
            }
-
 
44739
            break;
-
 
44740
          case 6: // CATEGORY
-
 
44741
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
44742
              this.category = iprot.readString();
-
 
44743
            } else { 
-
 
44744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44745
            }
-
 
44746
            break;
-
 
44747
          default:
-
 
44748
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44749
        }
-
 
44750
        iprot.readFieldEnd();
-
 
44751
      }
-
 
44752
      iprot.readStructEnd();
-
 
44753
      validate();
-
 
44754
    }
-
 
44755
 
-
 
44756
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
44757
      validate();
-
 
44758
 
-
 
44759
      oprot.writeStructBegin(STRUCT_DESC);
-
 
44760
      if (this.productGroup != null) {
-
 
44761
        oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
-
 
44762
        oprot.writeString(this.productGroup);
-
 
44763
        oprot.writeFieldEnd();
-
 
44764
      }
-
 
44765
      if (this.brand != null) {
-
 
44766
        oprot.writeFieldBegin(BRAND_FIELD_DESC);
-
 
44767
        oprot.writeString(this.brand);
-
 
44768
        oprot.writeFieldEnd();
-
 
44769
      }
-
 
44770
      if (this.modelNumber != null) {
-
 
44771
        oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
-
 
44772
        oprot.writeString(this.modelNumber);
-
 
44773
        oprot.writeFieldEnd();
-
 
44774
      }
-
 
44775
      if (this.color != null) {
-
 
44776
        oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
44777
        oprot.writeString(this.color);
-
 
44778
        oprot.writeFieldEnd();
-
 
44779
      }
-
 
44780
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
44781
      oprot.writeI64(this.vendor_id);
-
 
44782
      oprot.writeFieldEnd();
-
 
44783
      if (this.category != null) {
-
 
44784
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
-
 
44785
        oprot.writeString(this.category);
-
 
44786
        oprot.writeFieldEnd();
-
 
44787
      }
-
 
44788
      oprot.writeFieldStop();
-
 
44789
      oprot.writeStructEnd();
-
 
44790
    }
-
 
44791
 
-
 
44792
    @Override
-
 
44793
    public String toString() {
-
 
44794
      StringBuilder sb = new StringBuilder("itemExists_args(");
-
 
44795
      boolean first = true;
-
 
44796
 
-
 
44797
      sb.append("productGroup:");
-
 
44798
      if (this.productGroup == null) {
-
 
44799
        sb.append("null");
-
 
44800
      } else {
-
 
44801
        sb.append(this.productGroup);
-
 
44802
      }
-
 
44803
      first = false;
-
 
44804
      if (!first) sb.append(", ");
-
 
44805
      sb.append("brand:");
-
 
44806
      if (this.brand == null) {
-
 
44807
        sb.append("null");
-
 
44808
      } else {
-
 
44809
        sb.append(this.brand);
-
 
44810
      }
-
 
44811
      first = false;
-
 
44812
      if (!first) sb.append(", ");
-
 
44813
      sb.append("modelNumber:");
-
 
44814
      if (this.modelNumber == null) {
-
 
44815
        sb.append("null");
-
 
44816
      } else {
-
 
44817
        sb.append(this.modelNumber);
-
 
44818
      }
-
 
44819
      first = false;
-
 
44820
      if (!first) sb.append(", ");
-
 
44821
      sb.append("color:");
-
 
44822
      if (this.color == null) {
-
 
44823
        sb.append("null");
-
 
44824
      } else {
-
 
44825
        sb.append(this.color);
-
 
44826
      }
-
 
44827
      first = false;
-
 
44828
      if (!first) sb.append(", ");
-
 
44829
      sb.append("vendor_id:");
-
 
44830
      sb.append(this.vendor_id);
-
 
44831
      first = false;
-
 
44832
      if (!first) sb.append(", ");
-
 
44833
      sb.append("category:");
-
 
44834
      if (this.category == null) {
-
 
44835
        sb.append("null");
-
 
44836
      } else {
-
 
44837
        sb.append(this.category);
-
 
44838
      }
-
 
44839
      first = false;
-
 
44840
      sb.append(")");
-
 
44841
      return sb.toString();
-
 
44842
    }
-
 
44843
 
-
 
44844
    public void validate() throws org.apache.thrift.TException {
-
 
44845
      // check for required fields
-
 
44846
    }
-
 
44847
 
-
 
44848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
44849
      try {
-
 
44850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
44851
      } catch (org.apache.thrift.TException te) {
-
 
44852
        throw new java.io.IOException(te);
-
 
44853
      }
-
 
44854
    }
-
 
44855
 
-
 
44856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
44857
      try {
-
 
44858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
44859
      } catch (org.apache.thrift.TException te) {
-
 
44860
        throw new java.io.IOException(te);
-
 
44861
      }
-
 
44862
    }
-
 
44863
 
-
 
44864
  }
-
 
44865
 
-
 
44866
  public static class itemExists_result implements org.apache.thrift.TBase<itemExists_result, itemExists_result._Fields>, java.io.Serializable, Cloneable   {
-
 
44867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("itemExists_result");
-
 
44868
 
-
 
44869
    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);
-
 
44870
 
-
 
44871
    private boolean success; // required
-
 
44872
 
-
 
44873
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
44874
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
44875
      SUCCESS((short)0, "success");
-
 
44876
 
-
 
44877
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
44878
 
-
 
44879
      static {
-
 
44880
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
44881
          byName.put(field.getFieldName(), field);
-
 
44882
        }
-
 
44883
      }
-
 
44884
 
-
 
44885
      /**
-
 
44886
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
44887
       */
-
 
44888
      public static _Fields findByThriftId(int fieldId) {
-
 
44889
        switch(fieldId) {
-
 
44890
          case 0: // SUCCESS
-
 
44891
            return SUCCESS;
-
 
44892
          default:
-
 
44893
            return null;
-
 
44894
        }
-
 
44895
      }
-
 
44896
 
-
 
44897
      /**
-
 
44898
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
44899
       * if it is not found.
-
 
44900
       */
-
 
44901
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
44902
        _Fields fields = findByThriftId(fieldId);
-
 
44903
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
44904
        return fields;
-
 
44905
      }
-
 
44906
 
-
 
44907
      /**
-
 
44908
       * Find the _Fields constant that matches name, or null if its not found.
-
 
44909
       */
-
 
44910
      public static _Fields findByName(String name) {
-
 
44911
        return byName.get(name);
-
 
44912
      }
-
 
44913
 
-
 
44914
      private final short _thriftId;
-
 
44915
      private final String _fieldName;
-
 
44916
 
-
 
44917
      _Fields(short thriftId, String fieldName) {
-
 
44918
        _thriftId = thriftId;
-
 
44919
        _fieldName = fieldName;
-
 
44920
      }
-
 
44921
 
-
 
44922
      public short getThriftFieldId() {
-
 
44923
        return _thriftId;
-
 
44924
      }
-
 
44925
 
-
 
44926
      public String getFieldName() {
-
 
44927
        return _fieldName;
-
 
44928
      }
-
 
44929
    }
-
 
44930
 
-
 
44931
    // isset id assignments
-
 
44932
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
44933
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
44934
 
-
 
44935
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
44936
    static {
-
 
44937
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
44938
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
44940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
44941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(itemExists_result.class, metaDataMap);
-
 
44942
    }
-
 
44943
 
-
 
44944
    public itemExists_result() {
-
 
44945
    }
-
 
44946
 
-
 
44947
    public itemExists_result(
-
 
44948
      boolean success)
-
 
44949
    {
-
 
44950
      this();
-
 
44951
      this.success = success;
-
 
44952
      setSuccessIsSet(true);
-
 
44953
    }
-
 
44954
 
-
 
44955
    /**
-
 
44956
     * Performs a deep copy on <i>other</i>.
-
 
44957
     */
-
 
44958
    public itemExists_result(itemExists_result other) {
-
 
44959
      __isset_bit_vector.clear();
-
 
44960
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
44961
      this.success = other.success;
-
 
44962
    }
-
 
44963
 
-
 
44964
    public itemExists_result deepCopy() {
-
 
44965
      return new itemExists_result(this);
-
 
44966
    }
-
 
44967
 
-
 
44968
    @Override
-
 
44969
    public void clear() {
-
 
44970
      setSuccessIsSet(false);
-
 
44971
      this.success = false;
-
 
44972
    }
-
 
44973
 
-
 
44974
    public boolean isSuccess() {
-
 
44975
      return this.success;
-
 
44976
    }
-
 
44977
 
-
 
44978
    public void setSuccess(boolean success) {
-
 
44979
      this.success = success;
-
 
44980
      setSuccessIsSet(true);
-
 
44981
    }
-
 
44982
 
-
 
44983
    public void unsetSuccess() {
-
 
44984
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
44985
    }
-
 
44986
 
-
 
44987
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
44988
    public boolean isSetSuccess() {
-
 
44989
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
44990
    }
-
 
44991
 
-
 
44992
    public void setSuccessIsSet(boolean value) {
-
 
44993
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
44994
    }
-
 
44995
 
-
 
44996
    public void setFieldValue(_Fields field, Object value) {
-
 
44997
      switch (field) {
-
 
44998
      case SUCCESS:
-
 
44999
        if (value == null) {
-
 
45000
          unsetSuccess();
-
 
45001
        } else {
-
 
45002
          setSuccess((Boolean)value);
-
 
45003
        }
-
 
45004
        break;
-
 
45005
 
-
 
45006
      }
-
 
45007
    }
-
 
45008
 
-
 
45009
    public Object getFieldValue(_Fields field) {
-
 
45010
      switch (field) {
-
 
45011
      case SUCCESS:
-
 
45012
        return Boolean.valueOf(isSuccess());
-
 
45013
 
-
 
45014
      }
-
 
45015
      throw new IllegalStateException();
-
 
45016
    }
-
 
45017
 
-
 
45018
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45019
    public boolean isSet(_Fields field) {
-
 
45020
      if (field == null) {
-
 
45021
        throw new IllegalArgumentException();
-
 
45022
      }
-
 
45023
 
-
 
45024
      switch (field) {
-
 
45025
      case SUCCESS:
-
 
45026
        return isSetSuccess();
-
 
45027
      }
-
 
45028
      throw new IllegalStateException();
-
 
45029
    }
-
 
45030
 
-
 
45031
    @Override
-
 
45032
    public boolean equals(Object that) {
-
 
45033
      if (that == null)
-
 
45034
        return false;
-
 
45035
      if (that instanceof itemExists_result)
-
 
45036
        return this.equals((itemExists_result)that);
-
 
45037
      return false;
-
 
45038
    }
-
 
45039
 
-
 
45040
    public boolean equals(itemExists_result that) {
-
 
45041
      if (that == null)
-
 
45042
        return false;
-
 
45043
 
-
 
45044
      boolean this_present_success = true;
-
 
45045
      boolean that_present_success = true;
-
 
45046
      if (this_present_success || that_present_success) {
-
 
45047
        if (!(this_present_success && that_present_success))
-
 
45048
          return false;
-
 
45049
        if (this.success != that.success)
-
 
45050
          return false;
-
 
45051
      }
-
 
45052
 
-
 
45053
      return true;
-
 
45054
    }
-
 
45055
 
-
 
45056
    @Override
-
 
45057
    public int hashCode() {
-
 
45058
      return 0;
-
 
45059
    }
-
 
45060
 
-
 
45061
    public int compareTo(itemExists_result other) {
-
 
45062
      if (!getClass().equals(other.getClass())) {
-
 
45063
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45064
      }
-
 
45065
 
-
 
45066
      int lastComparison = 0;
-
 
45067
      itemExists_result typedOther = (itemExists_result)other;
-
 
45068
 
-
 
45069
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
45070
      if (lastComparison != 0) {
-
 
45071
        return lastComparison;
-
 
45072
      }
-
 
45073
      if (isSetSuccess()) {
-
 
45074
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
45075
        if (lastComparison != 0) {
-
 
45076
          return lastComparison;
-
 
45077
        }
-
 
45078
      }
-
 
45079
      return 0;
-
 
45080
    }
-
 
45081
 
-
 
45082
    public _Fields fieldForId(int fieldId) {
-
 
45083
      return _Fields.findByThriftId(fieldId);
-
 
45084
    }
-
 
45085
 
-
 
45086
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45087
      org.apache.thrift.protocol.TField field;
-
 
45088
      iprot.readStructBegin();
-
 
45089
      while (true)
-
 
45090
      {
-
 
45091
        field = iprot.readFieldBegin();
-
 
45092
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45093
          break;
-
 
45094
        }
-
 
45095
        switch (field.id) {
-
 
45096
          case 0: // SUCCESS
-
 
45097
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
45098
              this.success = iprot.readBool();
-
 
45099
              setSuccessIsSet(true);
-
 
45100
            } else { 
-
 
45101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45102
            }
-
 
45103
            break;
-
 
45104
          default:
-
 
45105
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45106
        }
-
 
45107
        iprot.readFieldEnd();
-
 
45108
      }
-
 
45109
      iprot.readStructEnd();
-
 
45110
      validate();
-
 
45111
    }
-
 
45112
 
-
 
45113
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45114
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45115
 
-
 
45116
      if (this.isSetSuccess()) {
-
 
45117
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
45118
        oprot.writeBool(this.success);
-
 
45119
        oprot.writeFieldEnd();
-
 
45120
      }
-
 
45121
      oprot.writeFieldStop();
-
 
45122
      oprot.writeStructEnd();
-
 
45123
    }
-
 
45124
 
-
 
45125
    @Override
-
 
45126
    public String toString() {
-
 
45127
      StringBuilder sb = new StringBuilder("itemExists_result(");
-
 
45128
      boolean first = true;
-
 
45129
 
-
 
45130
      sb.append("success:");
-
 
45131
      sb.append(this.success);
-
 
45132
      first = false;
-
 
45133
      sb.append(")");
-
 
45134
      return sb.toString();
-
 
45135
    }
-
 
45136
 
-
 
45137
    public void validate() throws org.apache.thrift.TException {
-
 
45138
      // check for required fields
-
 
45139
    }
-
 
45140
 
-
 
45141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45142
      try {
-
 
45143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45144
      } catch (org.apache.thrift.TException te) {
-
 
45145
        throw new java.io.IOException(te);
-
 
45146
      }
-
 
45147
    }
-
 
45148
 
-
 
45149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45150
      try {
-
 
45151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45152
      } catch (org.apache.thrift.TException te) {
-
 
45153
        throw new java.io.IOException(te);
-
 
45154
      }
-
 
45155
    }
-
 
45156
 
-
 
45157
  }
-
 
45158
 
-
 
45159
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
44025
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
45160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
44026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
45161
 
44027
 
45162
    private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1);
44028
    private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1);
45163
    private static final org.apache.thrift.protocol.TField VENDOR_ITEM_MAPPING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorItemMapping", org.apache.thrift.protocol.TType.STRUCT, (short)2);
44029
    private static final org.apache.thrift.protocol.TField VENDOR_ITEM_MAPPING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorItemMapping", org.apache.thrift.protocol.TType.STRUCT, (short)2);
Line 48498... Line 47364...
48498
      }
47364
      }
48499
    }
47365
    }
48500
 
47366
 
48501
  }
47367
  }
48502
 
47368
 
48503
  public static class getItemsByVendorCategory_args implements org.apache.thrift.TBase<getItemsByVendorCategory_args, getItemsByVendorCategory_args._Fields>, java.io.Serializable, Cloneable   {
47369
  public static class getItemsByCategory_args implements org.apache.thrift.TBase<getItemsByCategory_args, getItemsByCategory_args._Fields>, java.io.Serializable, Cloneable   {
48504
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByVendorCategory_args");
47370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCategory_args");
48505
 
47371
 
48506
    private static final org.apache.thrift.protocol.TField VENDOR_CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorCategory", org.apache.thrift.protocol.TType.STRING, (short)1);
47372
    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);
48507
 
47373
 
48508
    private String vendorCategory; // required
47374
    private String category; // required
48509
 
47375
 
48510
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48511
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47377
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48512
      VENDOR_CATEGORY((short)1, "vendorCategory");
47378
      CATEGORY((short)1, "category");
48513
 
47379
 
48514
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48515
 
47381
 
48516
      static {
47382
      static {
48517
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 48522... Line 47388...
48522
      /**
47388
      /**
48523
       * Find the _Fields constant that matches fieldId, or null if its not found.
47389
       * Find the _Fields constant that matches fieldId, or null if its not found.
48524
       */
47390
       */
48525
      public static _Fields findByThriftId(int fieldId) {
47391
      public static _Fields findByThriftId(int fieldId) {
48526
        switch(fieldId) {
47392
        switch(fieldId) {
48527
          case 1: // VENDOR_CATEGORY
47393
          case 1: // CATEGORY
48528
            return VENDOR_CATEGORY;
47394
            return CATEGORY;
48529
          default:
47395
          default:
48530
            return null;
47396
            return null;
48531
        }
47397
        }
48532
      }
47398
      }
48533
 
47399
 
Line 48568... Line 47434...
48568
    // isset id assignments
47434
    // isset id assignments
48569
 
47435
 
48570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48571
    static {
47437
    static {
48572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48573
      tmpMap.put(_Fields.VENDOR_CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("vendorCategory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47439
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
47440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
48575
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47441
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48576
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByVendorCategory_args.class, metaDataMap);
47442
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCategory_args.class, metaDataMap);
48577
    }
47443
    }
48578
 
47444
 
48579
    public getItemsByVendorCategory_args() {
47445
    public getItemsByCategory_args() {
48580
    }
47446
    }
48581
 
47447
 
48582
    public getItemsByVendorCategory_args(
47448
    public getItemsByCategory_args(
48583
      String vendorCategory)
47449
      String category)
48584
    {
47450
    {
48585
      this();
47451
      this();
48586
      this.vendorCategory = vendorCategory;
47452
      this.category = category;
48587
    }
47453
    }
48588
 
47454
 
48589
    /**
47455
    /**
48590
     * Performs a deep copy on <i>other</i>.
47456
     * Performs a deep copy on <i>other</i>.
48591
     */
47457
     */
48592
    public getItemsByVendorCategory_args(getItemsByVendorCategory_args other) {
47458
    public getItemsByCategory_args(getItemsByCategory_args other) {
48593
      if (other.isSetVendorCategory()) {
47459
      if (other.isSetCategory()) {
48594
        this.vendorCategory = other.vendorCategory;
47460
        this.category = other.category;
48595
      }
47461
      }
48596
    }
47462
    }
48597
 
47463
 
48598
    public getItemsByVendorCategory_args deepCopy() {
47464
    public getItemsByCategory_args deepCopy() {
48599
      return new getItemsByVendorCategory_args(this);
47465
      return new getItemsByCategory_args(this);
48600
    }
47466
    }
48601
 
47467
 
48602
    @Override
47468
    @Override
48603
    public void clear() {
47469
    public void clear() {
48604
      this.vendorCategory = null;
47470
      this.category = null;
48605
    }
47471
    }
48606
 
47472
 
48607
    public String getVendorCategory() {
47473
    public String getCategory() {
48608
      return this.vendorCategory;
47474
      return this.category;
48609
    }
47475
    }
48610
 
47476
 
48611
    public void setVendorCategory(String vendorCategory) {
47477
    public void setCategory(String category) {
48612
      this.vendorCategory = vendorCategory;
47478
      this.category = category;
48613
    }
47479
    }
48614
 
47480
 
48615
    public void unsetVendorCategory() {
47481
    public void unsetCategory() {
48616
      this.vendorCategory = null;
47482
      this.category = null;
48617
    }
47483
    }
48618
 
47484
 
48619
    /** Returns true if field vendorCategory is set (has been assigned a value) and false otherwise */
47485
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
48620
    public boolean isSetVendorCategory() {
47486
    public boolean isSetCategory() {
48621
      return this.vendorCategory != null;
47487
      return this.category != null;
48622
    }
47488
    }
48623
 
47489
 
48624
    public void setVendorCategoryIsSet(boolean value) {
47490
    public void setCategoryIsSet(boolean value) {
48625
      if (!value) {
47491
      if (!value) {
48626
        this.vendorCategory = null;
47492
        this.category = null;
48627
      }
47493
      }
48628
    }
47494
    }
48629
 
47495
 
48630
    public void setFieldValue(_Fields field, Object value) {
47496
    public void setFieldValue(_Fields field, Object value) {
48631
      switch (field) {
47497
      switch (field) {
48632
      case VENDOR_CATEGORY:
47498
      case CATEGORY:
48633
        if (value == null) {
47499
        if (value == null) {
48634
          unsetVendorCategory();
47500
          unsetCategory();
48635
        } else {
47501
        } else {
48636
          setVendorCategory((String)value);
47502
          setCategory((String)value);
48637
        }
47503
        }
48638
        break;
47504
        break;
48639
 
47505
 
48640
      }
47506
      }
48641
    }
47507
    }
48642
 
47508
 
48643
    public Object getFieldValue(_Fields field) {
47509
    public Object getFieldValue(_Fields field) {
48644
      switch (field) {
47510
      switch (field) {
48645
      case VENDOR_CATEGORY:
47511
      case CATEGORY:
48646
        return getVendorCategory();
47512
        return getCategory();
48647
 
47513
 
48648
      }
47514
      }
48649
      throw new IllegalStateException();
47515
      throw new IllegalStateException();
48650
    }
47516
    }
48651
 
47517
 
Line 48654... Line 47520...
48654
      if (field == null) {
47520
      if (field == null) {
48655
        throw new IllegalArgumentException();
47521
        throw new IllegalArgumentException();
48656
      }
47522
      }
48657
 
47523
 
48658
      switch (field) {
47524
      switch (field) {
48659
      case VENDOR_CATEGORY:
47525
      case CATEGORY:
48660
        return isSetVendorCategory();
47526
        return isSetCategory();
48661
      }
47527
      }
48662
      throw new IllegalStateException();
47528
      throw new IllegalStateException();
48663
    }
47529
    }
48664
 
47530
 
48665
    @Override
47531
    @Override
48666
    public boolean equals(Object that) {
47532
    public boolean equals(Object that) {
48667
      if (that == null)
47533
      if (that == null)
48668
        return false;
47534
        return false;
48669
      if (that instanceof getItemsByVendorCategory_args)
47535
      if (that instanceof getItemsByCategory_args)
48670
        return this.equals((getItemsByVendorCategory_args)that);
47536
        return this.equals((getItemsByCategory_args)that);
48671
      return false;
47537
      return false;
48672
    }
47538
    }
48673
 
47539
 
48674
    public boolean equals(getItemsByVendorCategory_args that) {
47540
    public boolean equals(getItemsByCategory_args that) {
48675
      if (that == null)
47541
      if (that == null)
48676
        return false;
47542
        return false;
48677
 
47543
 
48678
      boolean this_present_vendorCategory = true && this.isSetVendorCategory();
47544
      boolean this_present_category = true && this.isSetCategory();
48679
      boolean that_present_vendorCategory = true && that.isSetVendorCategory();
47545
      boolean that_present_category = true && that.isSetCategory();
48680
      if (this_present_vendorCategory || that_present_vendorCategory) {
47546
      if (this_present_category || that_present_category) {
48681
        if (!(this_present_vendorCategory && that_present_vendorCategory))
47547
        if (!(this_present_category && that_present_category))
48682
          return false;
47548
          return false;
48683
        if (!this.vendorCategory.equals(that.vendorCategory))
47549
        if (!this.category.equals(that.category))
48684
          return false;
47550
          return false;
48685
      }
47551
      }
48686
 
47552
 
48687
      return true;
47553
      return true;
48688
    }
47554
    }
Line 48690... Line 47556...
48690
    @Override
47556
    @Override
48691
    public int hashCode() {
47557
    public int hashCode() {
48692
      return 0;
47558
      return 0;
48693
    }
47559
    }
48694
 
47560
 
48695
    public int compareTo(getItemsByVendorCategory_args other) {
47561
    public int compareTo(getItemsByCategory_args other) {
48696
      if (!getClass().equals(other.getClass())) {
47562
      if (!getClass().equals(other.getClass())) {
48697
        return getClass().getName().compareTo(other.getClass().getName());
47563
        return getClass().getName().compareTo(other.getClass().getName());
48698
      }
47564
      }
48699
 
47565
 
48700
      int lastComparison = 0;
47566
      int lastComparison = 0;
48701
      getItemsByVendorCategory_args typedOther = (getItemsByVendorCategory_args)other;
47567
      getItemsByCategory_args typedOther = (getItemsByCategory_args)other;
48702
 
47568
 
48703
      lastComparison = Boolean.valueOf(isSetVendorCategory()).compareTo(typedOther.isSetVendorCategory());
47569
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
48704
      if (lastComparison != 0) {
47570
      if (lastComparison != 0) {
48705
        return lastComparison;
47571
        return lastComparison;
48706
      }
47572
      }
48707
      if (isSetVendorCategory()) {
47573
      if (isSetCategory()) {
48708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorCategory, typedOther.vendorCategory);
47574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
48709
        if (lastComparison != 0) {
47575
        if (lastComparison != 0) {
48710
          return lastComparison;
47576
          return lastComparison;
48711
        }
47577
        }
48712
      }
47578
      }
48713
      return 0;
47579
      return 0;
Line 48725... Line 47591...
48725
        field = iprot.readFieldBegin();
47591
        field = iprot.readFieldBegin();
48726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47592
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48727
          break;
47593
          break;
48728
        }
47594
        }
48729
        switch (field.id) {
47595
        switch (field.id) {
48730
          case 1: // VENDOR_CATEGORY
47596
          case 1: // CATEGORY
48731
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
47597
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
48732
              this.vendorCategory = iprot.readString();
47598
              this.category = iprot.readString();
48733
            } else { 
47599
            } else { 
48734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48735
            }
47601
            }
48736
            break;
47602
            break;
48737
          default:
47603
          default:
Line 48745... Line 47611...
48745
 
47611
 
48746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48747
      validate();
47613
      validate();
48748
 
47614
 
48749
      oprot.writeStructBegin(STRUCT_DESC);
47615
      oprot.writeStructBegin(STRUCT_DESC);
48750
      if (this.vendorCategory != null) {
47616
      if (this.category != null) {
48751
        oprot.writeFieldBegin(VENDOR_CATEGORY_FIELD_DESC);
47617
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
48752
        oprot.writeString(this.vendorCategory);
47618
        oprot.writeString(this.category);
48753
        oprot.writeFieldEnd();
47619
        oprot.writeFieldEnd();
48754
      }
47620
      }
48755
      oprot.writeFieldStop();
47621
      oprot.writeFieldStop();
48756
      oprot.writeStructEnd();
47622
      oprot.writeStructEnd();
48757
    }
47623
    }
48758
 
47624
 
48759
    @Override
47625
    @Override
48760
    public String toString() {
47626
    public String toString() {
48761
      StringBuilder sb = new StringBuilder("getItemsByVendorCategory_args(");
47627
      StringBuilder sb = new StringBuilder("getItemsByCategory_args(");
48762
      boolean first = true;
47628
      boolean first = true;
48763
 
47629
 
48764
      sb.append("vendorCategory:");
47630
      sb.append("category:");
48765
      if (this.vendorCategory == null) {
47631
      if (this.category == null) {
48766
        sb.append("null");
47632
        sb.append("null");
48767
      } else {
47633
      } else {
48768
        sb.append(this.vendorCategory);
47634
        sb.append(this.category);
48769
      }
47635
      }
48770
      first = false;
47636
      first = false;
48771
      sb.append(")");
47637
      sb.append(")");
48772
      return sb.toString();
47638
      return sb.toString();
48773
    }
47639
    }
Line 48792... Line 47658...
48792
      }
47658
      }
48793
    }
47659
    }
48794
 
47660
 
48795
  }
47661
  }
48796
 
47662
 
48797
  public static class getItemsByVendorCategory_result implements org.apache.thrift.TBase<getItemsByVendorCategory_result, getItemsByVendorCategory_result._Fields>, java.io.Serializable, Cloneable   {
47663
  public static class getItemsByCategory_result implements org.apache.thrift.TBase<getItemsByCategory_result, getItemsByCategory_result._Fields>, java.io.Serializable, Cloneable   {
48798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByVendorCategory_result");
47664
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCategory_result");
48799
 
47665
 
48800
    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);
47666
    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);
48801
 
47667
 
48802
    private List<Item> success; // required
47668
    private List<Item> success; // required
48803
 
47669
 
Line 48866... Line 47732...
48866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47732
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48867
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47733
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48868
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
47734
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
48869
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
47735
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
48870
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48871
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByVendorCategory_result.class, metaDataMap);
47737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCategory_result.class, metaDataMap);
48872
    }
47738
    }
48873
 
47739
 
48874
    public getItemsByVendorCategory_result() {
47740
    public getItemsByCategory_result() {
48875
    }
47741
    }
48876
 
47742
 
48877
    public getItemsByVendorCategory_result(
47743
    public getItemsByCategory_result(
48878
      List<Item> success)
47744
      List<Item> success)
48879
    {
47745
    {
48880
      this();
47746
      this();
48881
      this.success = success;
47747
      this.success = success;
48882
    }
47748
    }
48883
 
47749
 
48884
    /**
47750
    /**
48885
     * Performs a deep copy on <i>other</i>.
47751
     * Performs a deep copy on <i>other</i>.
48886
     */
47752
     */
48887
    public getItemsByVendorCategory_result(getItemsByVendorCategory_result other) {
47753
    public getItemsByCategory_result(getItemsByCategory_result other) {
48888
      if (other.isSetSuccess()) {
47754
      if (other.isSetSuccess()) {
48889
        List<Item> __this__success = new ArrayList<Item>();
47755
        List<Item> __this__success = new ArrayList<Item>();
48890
        for (Item other_element : other.success) {
47756
        for (Item other_element : other.success) {
48891
          __this__success.add(new Item(other_element));
47757
          __this__success.add(new Item(other_element));
48892
        }
47758
        }
48893
        this.success = __this__success;
47759
        this.success = __this__success;
48894
      }
47760
      }
48895
    }
47761
    }
48896
 
47762
 
48897
    public getItemsByVendorCategory_result deepCopy() {
47763
    public getItemsByCategory_result deepCopy() {
48898
      return new getItemsByVendorCategory_result(this);
47764
      return new getItemsByCategory_result(this);
48899
    }
47765
    }
48900
 
47766
 
48901
    @Override
47767
    @Override
48902
    public void clear() {
47768
    public void clear() {
48903
      this.success = null;
47769
      this.success = null;
Line 48978... Line 47844...
48978
 
47844
 
48979
    @Override
47845
    @Override
48980
    public boolean equals(Object that) {
47846
    public boolean equals(Object that) {
48981
      if (that == null)
47847
      if (that == null)
48982
        return false;
47848
        return false;
48983
      if (that instanceof getItemsByVendorCategory_result)
47849
      if (that instanceof getItemsByCategory_result)
48984
        return this.equals((getItemsByVendorCategory_result)that);
47850
        return this.equals((getItemsByCategory_result)that);
48985
      return false;
47851
      return false;
48986
    }
47852
    }
48987
 
47853
 
48988
    public boolean equals(getItemsByVendorCategory_result that) {
47854
    public boolean equals(getItemsByCategory_result that) {
48989
      if (that == null)
47855
      if (that == null)
48990
        return false;
47856
        return false;
48991
 
47857
 
48992
      boolean this_present_success = true && this.isSetSuccess();
47858
      boolean this_present_success = true && this.isSetSuccess();
48993
      boolean that_present_success = true && that.isSetSuccess();
47859
      boolean that_present_success = true && that.isSetSuccess();
Line 49004... Line 47870...
49004
    @Override
47870
    @Override
49005
    public int hashCode() {
47871
    public int hashCode() {
49006
      return 0;
47872
      return 0;
49007
    }
47873
    }
49008
 
47874
 
49009
    public int compareTo(getItemsByVendorCategory_result other) {
47875
    public int compareTo(getItemsByCategory_result other) {
49010
      if (!getClass().equals(other.getClass())) {
47876
      if (!getClass().equals(other.getClass())) {
49011
        return getClass().getName().compareTo(other.getClass().getName());
47877
        return getClass().getName().compareTo(other.getClass().getName());
49012
      }
47878
      }
49013
 
47879
 
49014
      int lastComparison = 0;
47880
      int lastComparison = 0;
49015
      getItemsByVendorCategory_result typedOther = (getItemsByVendorCategory_result)other;
47881
      getItemsByCategory_result typedOther = (getItemsByCategory_result)other;
49016
 
47882
 
49017
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47883
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49018
      if (lastComparison != 0) {
47884
      if (lastComparison != 0) {
49019
        return lastComparison;
47885
        return lastComparison;
49020
      }
47886
      }
Line 49087... Line 47953...
49087
      oprot.writeStructEnd();
47953
      oprot.writeStructEnd();
49088
    }
47954
    }
49089
 
47955
 
49090
    @Override
47956
    @Override
49091
    public String toString() {
47957
    public String toString() {
49092
      StringBuilder sb = new StringBuilder("getItemsByVendorCategory_result(");
47958
      StringBuilder sb = new StringBuilder("getItemsByCategory_result(");
49093
      boolean first = true;
47959
      boolean first = true;
49094
 
47960
 
49095
      sb.append("success:");
47961
      sb.append("success:");
49096
      if (this.success == null) {
47962
      if (this.success == null) {
49097
        sb.append("null");
47963
        sb.append("null");