Subversion Repositories SmartDukaan

Rev

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

Rev 4431 Rev 4490
Line 99... Line 99...
99
 
99
 
100
    public List<Item> getAllItems(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
100
    public List<Item> getAllItems(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
101
 
101
 
102
    public List<Item> getAllItemsByStatus(status itemStatus) throws InventoryServiceException, org.apache.thrift.TException;
102
    public List<Item> getAllItemsByStatus(status itemStatus) throws InventoryServiceException, org.apache.thrift.TException;
103
 
103
 
-
 
104
    public ItemInventory getItemInventory(long item_id) throws InventoryServiceException, org.apache.thrift.TException;
-
 
105
 
104
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException;
106
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException;
105
 
107
 
106
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException;
108
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException;
107
 
109
 
108
    public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws InventoryServiceException, org.apache.thrift.TException;
110
    public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws InventoryServiceException, org.apache.thrift.TException;
Line 257... Line 259...
257
     * Return list of all vendors
259
     * Return list of all vendors
258
     */
260
     */
259
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException;
261
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException;
260
 
262
 
261
    /**
263
    /**
262
     * Returns the list of similar items.
-
 
263
     * 
-
 
264
     * @param itemId
-
 
265
     */
-
 
266
    public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException;
-
 
267
 
-
 
268
    /**
-
 
269
     * Adds similar item.
-
 
270
     * 
-
 
271
     * @param itemId
-
 
272
     * @param catalogItemId
-
 
273
     */
-
 
274
    public Item addSimilarItem(long itemId, long catalogItemId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
275
 
-
 
276
    /**
-
 
277
     * Delete similar item.
-
 
278
     * 
-
 
279
     * @param itemId
-
 
280
     * @param catalogItemId
-
 
281
     */
-
 
282
    public boolean deleteSimilarItem(long itemId, long catalogItemId) throws InventoryServiceException, org.apache.thrift.TException;
-
 
283
 
-
 
284
    /**
-
 
285
     * Checks if the item exists in VendorItemMapping for the given hotspot parameters (ProductGroup,Brand,ModelNumber,Color),
264
     * Checks if the item exists in VendorItemMapping for the given hotspot parameters (ProductGroup,Brand,ModelNumber,Color),
286
     * vendor and category.
265
     * vendor and category.
287
     * Returns true if it exists else false.
266
     * Returns true if it exists else false.
288
     * 
267
     * 
289
     * @param productGroup
268
     * @param productGroup
Line 496... Line 475...
496
 
475
 
497
    public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItems_call> resultHandler) throws org.apache.thrift.TException;
476
    public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItems_call> resultHandler) throws org.apache.thrift.TException;
498
 
477
 
499
    public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException;
478
    public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException;
500
 
479
 
-
 
480
    public void getItemInventory(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
481
 
501
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
482
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
502
 
483
 
503
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
484
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
504
 
485
 
505
    public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException;
486
    public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException;
Line 556... Line 537...
556
 
537
 
557
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
538
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
558
 
539
 
559
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
540
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
560
 
541
 
561
    public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
562
 
-
 
563
    public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
564
 
-
 
565
    public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
566
 
-
 
567
    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;
542
    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;
568
 
543
 
569
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
544
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
570
 
545
 
571
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
546
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
Line 1129... Line 1104...
1129
        throw result.cex;
1104
        throw result.cex;
1130
      }
1105
      }
1131
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1106
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1132
    }
1107
    }
1133
 
1108
 
-
 
1109
    public ItemInventory getItemInventory(long item_id) throws InventoryServiceException, org.apache.thrift.TException
-
 
1110
    {
-
 
1111
      send_getItemInventory(item_id);
-
 
1112
      return recv_getItemInventory();
-
 
1113
    }
-
 
1114
 
-
 
1115
    public void send_getItemInventory(long item_id) throws org.apache.thrift.TException
-
 
1116
    {
-
 
1117
      getItemInventory_args args = new getItemInventory_args();
-
 
1118
      args.setItem_id(item_id);
-
 
1119
      sendBase("getItemInventory", args);
-
 
1120
    }
-
 
1121
 
-
 
1122
    public ItemInventory recv_getItemInventory() throws InventoryServiceException, org.apache.thrift.TException
-
 
1123
    {
-
 
1124
      getItemInventory_result result = new getItemInventory_result();
-
 
1125
      receiveBase(result, "getItemInventory");
-
 
1126
      if (result.isSetSuccess()) {
-
 
1127
        return result.success;
-
 
1128
      }
-
 
1129
      if (result.cex != null) {
-
 
1130
        throw result.cex;
-
 
1131
      }
-
 
1132
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventory failed: unknown result");
-
 
1133
    }
-
 
1134
 
1134
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
1135
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
1135
    {
1136
    {
1136
      send_getItemInventoryByItemId(item_id);
1137
      send_getItemInventoryByItemId(item_id);
1137
      return recv_getItemInventoryByItemId();
1138
      return recv_getItemInventoryByItemId();
1138
    }
1139
    }
Line 1903... Line 1904...
1903
        return result.success;
1904
        return result.success;
1904
      }
1905
      }
1905
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1906
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1906
    }
1907
    }
1907
 
1908
 
1908
    public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException
-
 
1909
    {
-
 
1910
      send_getAllSimilarItems(itemId);
-
 
1911
      return recv_getAllSimilarItems();
-
 
1912
    }
-
 
1913
 
-
 
1914
    public void send_getAllSimilarItems(long itemId) throws org.apache.thrift.TException
-
 
1915
    {
-
 
1916
      getAllSimilarItems_args args = new getAllSimilarItems_args();
-
 
1917
      args.setItemId(itemId);
-
 
1918
      sendBase("getAllSimilarItems", args);
-
 
1919
    }
-
 
1920
 
-
 
1921
    public List<Item> recv_getAllSimilarItems() throws org.apache.thrift.TException
-
 
1922
    {
-
 
1923
      getAllSimilarItems_result result = new getAllSimilarItems_result();
-
 
1924
      receiveBase(result, "getAllSimilarItems");
-
 
1925
      if (result.isSetSuccess()) {
-
 
1926
        return result.success;
-
 
1927
      }
-
 
1928
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
-
 
1929
    }
-
 
1930
 
-
 
1931
    public Item addSimilarItem(long itemId, long catalogItemId) throws InventoryServiceException, org.apache.thrift.TException
-
 
1932
    {
-
 
1933
      send_addSimilarItem(itemId, catalogItemId);
-
 
1934
      return recv_addSimilarItem();
-
 
1935
    }
-
 
1936
 
-
 
1937
    public void send_addSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException
-
 
1938
    {
-
 
1939
      addSimilarItem_args args = new addSimilarItem_args();
-
 
1940
      args.setItemId(itemId);
-
 
1941
      args.setCatalogItemId(catalogItemId);
-
 
1942
      sendBase("addSimilarItem", args);
-
 
1943
    }
-
 
1944
 
-
 
1945
    public Item recv_addSimilarItem() throws InventoryServiceException, org.apache.thrift.TException
-
 
1946
    {
-
 
1947
      addSimilarItem_result result = new addSimilarItem_result();
-
 
1948
      receiveBase(result, "addSimilarItem");
-
 
1949
      if (result.isSetSuccess()) {
-
 
1950
        return result.success;
-
 
1951
      }
-
 
1952
      if (result.cex != null) {
-
 
1953
        throw result.cex;
-
 
1954
      }
-
 
1955
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
-
 
1956
    }
-
 
1957
 
-
 
1958
    public boolean deleteSimilarItem(long itemId, long catalogItemId) throws InventoryServiceException, org.apache.thrift.TException
-
 
1959
    {
-
 
1960
      send_deleteSimilarItem(itemId, catalogItemId);
-
 
1961
      return recv_deleteSimilarItem();
-
 
1962
    }
-
 
1963
 
-
 
1964
    public void send_deleteSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException
-
 
1965
    {
-
 
1966
      deleteSimilarItem_args args = new deleteSimilarItem_args();
-
 
1967
      args.setItemId(itemId);
-
 
1968
      args.setCatalogItemId(catalogItemId);
-
 
1969
      sendBase("deleteSimilarItem", args);
-
 
1970
    }
-
 
1971
 
-
 
1972
    public boolean recv_deleteSimilarItem() throws InventoryServiceException, org.apache.thrift.TException
-
 
1973
    {
-
 
1974
      deleteSimilarItem_result result = new deleteSimilarItem_result();
-
 
1975
      receiveBase(result, "deleteSimilarItem");
-
 
1976
      if (result.isSetSuccess()) {
-
 
1977
        return result.success;
-
 
1978
      }
-
 
1979
      if (result.cex != null) {
-
 
1980
        throw result.cex;
-
 
1981
      }
-
 
1982
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
-
 
1983
    }
-
 
1984
 
-
 
1985
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws org.apache.thrift.TException
1909
    public boolean itemExists(String productGroup, String brand, String modelNumber, String color, long vendor_id, String category) throws org.apache.thrift.TException
1986
    {
1910
    {
1987
      send_itemExists(productGroup, brand, modelNumber, color, vendor_id, category);
1911
      send_itemExists(productGroup, brand, modelNumber, color, vendor_id, category);
1988
      return recv_itemExists();
1912
      return recv_itemExists();
1989
    }
1913
    }
Line 3204... Line 3128...
3204
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3128
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3205
        return (new Client(prot)).recv_getAllItemsByStatus();
3129
        return (new Client(prot)).recv_getAllItemsByStatus();
3206
      }
3130
      }
3207
    }
3131
    }
3208
 
3132
 
-
 
3133
    public void getItemInventory(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventory_call> resultHandler) throws org.apache.thrift.TException {
-
 
3134
      checkReady();
-
 
3135
      getItemInventory_call method_call = new getItemInventory_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
3136
      this.___currentMethod = method_call;
-
 
3137
      ___manager.call(method_call);
-
 
3138
    }
-
 
3139
 
-
 
3140
    public static class getItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3141
      private long item_id;
-
 
3142
      public getItemInventory_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3143
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3144
        this.item_id = item_id;
-
 
3145
      }
-
 
3146
 
-
 
3147
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3148
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3149
        getItemInventory_args args = new getItemInventory_args();
-
 
3150
        args.setItem_id(item_id);
-
 
3151
        args.write(prot);
-
 
3152
        prot.writeMessageEnd();
-
 
3153
      }
-
 
3154
 
-
 
3155
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
3156
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3157
          throw new IllegalStateException("Method call not finished!");
-
 
3158
        }
-
 
3159
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3160
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3161
        return (new Client(prot)).recv_getItemInventory();
-
 
3162
      }
-
 
3163
    }
-
 
3164
 
3209
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
3165
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
3210
      checkReady();
3166
      checkReady();
3211
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3167
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3212
      this.___currentMethod = method_call;
3168
      this.___currentMethod = method_call;
3213
      ___manager.call(method_call);
3169
      ___manager.call(method_call);
Line 4209... Line 4165...
4209
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4210
        return (new Client(prot)).recv_getAllVendors();
4166
        return (new Client(prot)).recv_getAllVendors();
4211
      }
4167
      }
4212
    }
4168
    }
4213
 
4169
 
4214
    public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
4215
      checkReady();
-
 
4216
      getAllSimilarItems_call method_call = new getAllSimilarItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4217
      this.___currentMethod = method_call;
-
 
4218
      ___manager.call(method_call);
-
 
4219
    }
-
 
4220
 
-
 
4221
    public static class getAllSimilarItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4222
      private long itemId;
-
 
4223
      public getAllSimilarItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4224
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4225
        this.itemId = itemId;
-
 
4226
      }
-
 
4227
 
-
 
4228
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4229
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSimilarItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4230
        getAllSimilarItems_args args = new getAllSimilarItems_args();
-
 
4231
        args.setItemId(itemId);
-
 
4232
        args.write(prot);
-
 
4233
        prot.writeMessageEnd();
-
 
4234
      }
-
 
4235
 
-
 
4236
      public List<Item> getResult() throws org.apache.thrift.TException {
-
 
4237
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4238
          throw new IllegalStateException("Method call not finished!");
-
 
4239
        }
-
 
4240
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4241
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4242
        return (new Client(prot)).recv_getAllSimilarItems();
-
 
4243
      }
-
 
4244
    }
-
 
4245
 
-
 
4246
    public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4247
      checkReady();
-
 
4248
      addSimilarItem_call method_call = new addSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4249
      this.___currentMethod = method_call;
-
 
4250
      ___manager.call(method_call);
-
 
4251
    }
-
 
4252
 
-
 
4253
    public static class addSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4254
      private long itemId;
-
 
4255
      private long catalogItemId;
-
 
4256
      public addSimilarItem_call(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4257
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4258
        this.itemId = itemId;
-
 
4259
        this.catalogItemId = catalogItemId;
-
 
4260
      }
-
 
4261
 
-
 
4262
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4263
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4264
        addSimilarItem_args args = new addSimilarItem_args();
-
 
4265
        args.setItemId(itemId);
-
 
4266
        args.setCatalogItemId(catalogItemId);
-
 
4267
        args.write(prot);
-
 
4268
        prot.writeMessageEnd();
-
 
4269
      }
-
 
4270
 
-
 
4271
      public Item getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
4272
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4273
          throw new IllegalStateException("Method call not finished!");
-
 
4274
        }
-
 
4275
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4276
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4277
        return (new Client(prot)).recv_addSimilarItem();
-
 
4278
      }
-
 
4279
    }
-
 
4280
 
-
 
4281
    public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4282
      checkReady();
-
 
4283
      deleteSimilarItem_call method_call = new deleteSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4284
      this.___currentMethod = method_call;
-
 
4285
      ___manager.call(method_call);
-
 
4286
    }
-
 
4287
 
-
 
4288
    public static class deleteSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4289
      private long itemId;
-
 
4290
      private long catalogItemId;
-
 
4291
      public deleteSimilarItem_call(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4292
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4293
        this.itemId = itemId;
-
 
4294
        this.catalogItemId = catalogItemId;
-
 
4295
      }
-
 
4296
 
-
 
4297
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4298
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4299
        deleteSimilarItem_args args = new deleteSimilarItem_args();
-
 
4300
        args.setItemId(itemId);
-
 
4301
        args.setCatalogItemId(catalogItemId);
-
 
4302
        args.write(prot);
-
 
4303
        prot.writeMessageEnd();
-
 
4304
      }
-
 
4305
 
-
 
4306
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
4307
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4308
          throw new IllegalStateException("Method call not finished!");
-
 
4309
        }
-
 
4310
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4311
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4312
        return (new Client(prot)).recv_deleteSimilarItem();
-
 
4313
      }
-
 
4314
    }
-
 
4315
 
-
 
4316
    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 {
4170
    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 {
4317
      checkReady();
4171
      checkReady();
4318
      itemExists_call method_call = new itemExists_call(productGroup, brand, modelNumber, color, vendor_id, category, resultHandler, this, ___protocolFactory, ___transport);
4172
      itemExists_call method_call = new itemExists_call(productGroup, brand, modelNumber, color, vendor_id, category, resultHandler, this, ___protocolFactory, ___transport);
4319
      this.___currentMethod = method_call;
4173
      this.___currentMethod = method_call;
4320
      ___manager.call(method_call);
4174
      ___manager.call(method_call);
Line 5093... Line 4947...
5093
      processMap.put("changeItemStatus", new changeItemStatus());
4947
      processMap.put("changeItemStatus", new changeItemStatus());
5094
      processMap.put("getItem", new getItem());
4948
      processMap.put("getItem", new getItem());
5095
      processMap.put("getItemsByCatalogId", new getItemsByCatalogId());
4949
      processMap.put("getItemsByCatalogId", new getItemsByCatalogId());
5096
      processMap.put("getAllItems", new getAllItems());
4950
      processMap.put("getAllItems", new getAllItems());
5097
      processMap.put("getAllItemsByStatus", new getAllItemsByStatus());
4951
      processMap.put("getAllItemsByStatus", new getAllItemsByStatus());
-
 
4952
      processMap.put("getItemInventory", new getItemInventory());
5098
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
4953
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
5099
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
4954
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
5100
      processMap.put("markItemAsContentComplete", new markItemAsContentComplete());
4955
      processMap.put("markItemAsContentComplete", new markItemAsContentComplete());
5101
      processMap.put("getAllItemsInRange", new getAllItemsInRange());
4956
      processMap.put("getAllItemsInRange", new getAllItemsInRange());
5102
      processMap.put("getAllItemsByStatusInRange", new getAllItemsByStatusInRange());
4957
      processMap.put("getAllItemsByStatusInRange", new getAllItemsByStatusInRange());
Line 5123... Line 4978...
5123
      processMap.put("getCategory", new getCategory());
4978
      processMap.put("getCategory", new getCategory());
5124
      processMap.put("getAllCategories", new getAllCategories());
4979
      processMap.put("getAllCategories", new getAllCategories());
5125
      processMap.put("getAllItemPricing", new getAllItemPricing());
4980
      processMap.put("getAllItemPricing", new getAllItemPricing());
5126
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
4981
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
5127
      processMap.put("getAllVendors", new getAllVendors());
4982
      processMap.put("getAllVendors", new getAllVendors());
5128
      processMap.put("getAllSimilarItems", new getAllSimilarItems());
-
 
5129
      processMap.put("addSimilarItem", new addSimilarItem());
-
 
5130
      processMap.put("deleteSimilarItem", new deleteSimilarItem());
-
 
5131
      processMap.put("itemExists", new itemExists());
4983
      processMap.put("itemExists", new itemExists());
5132
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
4984
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
5133
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
4985
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
5134
      processMap.put("checkSimilarItem", new checkSimilarItem());
4986
      processMap.put("checkSimilarItem", new checkSimilarItem());
5135
      processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());
4987
      processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());
Line 5544... Line 5396...
5544
        }
5396
        }
5545
        return result;
5397
        return result;
5546
      }
5398
      }
5547
    }
5399
    }
5548
 
5400
 
-
 
5401
    private static class getItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventory_args> {
-
 
5402
      public getItemInventory() {
-
 
5403
        super("getItemInventory");
-
 
5404
      }
-
 
5405
 
-
 
5406
      protected getItemInventory_args getEmptyArgsInstance() {
-
 
5407
        return new getItemInventory_args();
-
 
5408
      }
-
 
5409
 
-
 
5410
      protected getItemInventory_result getResult(I iface, getItemInventory_args args) throws org.apache.thrift.TException {
-
 
5411
        getItemInventory_result result = new getItemInventory_result();
-
 
5412
        try {
-
 
5413
          result.success = iface.getItemInventory(args.item_id);
-
 
5414
        } catch (InventoryServiceException cex) {
-
 
5415
          result.cex = cex;
-
 
5416
        }
-
 
5417
        return result;
-
 
5418
      }
-
 
5419
    }
-
 
5420
 
5549
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
5421
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
5550
      public getItemInventoryByItemId() {
5422
      public getItemInventoryByItemId() {
5551
        super("getItemInventoryByItemId");
5423
        super("getItemInventoryByItemId");
5552
      }
5424
      }
5553
 
5425
 
Line 6130... Line 6002...
6130
        result.success = iface.getAllVendors();
6002
        result.success = iface.getAllVendors();
6131
        return result;
6003
        return result;
6132
      }
6004
      }
6133
    }
6005
    }
6134
 
6006
 
6135
    private static class getAllSimilarItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSimilarItems_args> {
-
 
6136
      public getAllSimilarItems() {
-
 
6137
        super("getAllSimilarItems");
-
 
6138
      }
-
 
6139
 
-
 
6140
      protected getAllSimilarItems_args getEmptyArgsInstance() {
-
 
6141
        return new getAllSimilarItems_args();
-
 
6142
      }
-
 
6143
 
-
 
6144
      protected getAllSimilarItems_result getResult(I iface, getAllSimilarItems_args args) throws org.apache.thrift.TException {
-
 
6145
        getAllSimilarItems_result result = new getAllSimilarItems_result();
-
 
6146
        result.success = iface.getAllSimilarItems(args.itemId);
-
 
6147
        return result;
-
 
6148
      }
-
 
6149
    }
-
 
6150
 
-
 
6151
    private static class addSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSimilarItem_args> {
-
 
6152
      public addSimilarItem() {
-
 
6153
        super("addSimilarItem");
-
 
6154
      }
-
 
6155
 
-
 
6156
      protected addSimilarItem_args getEmptyArgsInstance() {
-
 
6157
        return new addSimilarItem_args();
-
 
6158
      }
-
 
6159
 
-
 
6160
      protected addSimilarItem_result getResult(I iface, addSimilarItem_args args) throws org.apache.thrift.TException {
-
 
6161
        addSimilarItem_result result = new addSimilarItem_result();
-
 
6162
        try {
-
 
6163
          result.success = iface.addSimilarItem(args.itemId, args.catalogItemId);
-
 
6164
        } catch (InventoryServiceException cex) {
-
 
6165
          result.cex = cex;
-
 
6166
        }
-
 
6167
        return result;
-
 
6168
      }
-
 
6169
    }
-
 
6170
 
-
 
6171
    private static class deleteSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteSimilarItem_args> {
-
 
6172
      public deleteSimilarItem() {
-
 
6173
        super("deleteSimilarItem");
-
 
6174
      }
-
 
6175
 
-
 
6176
      protected deleteSimilarItem_args getEmptyArgsInstance() {
-
 
6177
        return new deleteSimilarItem_args();
-
 
6178
      }
-
 
6179
 
-
 
6180
      protected deleteSimilarItem_result getResult(I iface, deleteSimilarItem_args args) throws org.apache.thrift.TException {
-
 
6181
        deleteSimilarItem_result result = new deleteSimilarItem_result();
-
 
6182
        try {
-
 
6183
          result.success = iface.deleteSimilarItem(args.itemId, args.catalogItemId);
-
 
6184
          result.setSuccessIsSet(true);
-
 
6185
        } catch (InventoryServiceException cex) {
-
 
6186
          result.cex = cex;
-
 
6187
        }
-
 
6188
        return result;
-
 
6189
      }
-
 
6190
    }
-
 
6191
 
-
 
6192
    private static class itemExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, itemExists_args> {
6007
    private static class itemExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, itemExists_args> {
6193
      public itemExists() {
6008
      public itemExists() {
6194
        super("itemExists");
6009
        super("itemExists");
6195
      }
6010
      }
6196
 
6011
 
Line 10492... Line 10307...
10492
        }
10307
        }
10493
        switch (field.id) {
10308
        switch (field.id) {
10494
          case 0: // SUCCESS
10309
          case 0: // SUCCESS
10495
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10310
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10496
              {
10311
              {
10497
                org.apache.thrift.protocol.TList _list19 = iprot.readListBegin();
10312
                org.apache.thrift.protocol.TList _list14 = iprot.readListBegin();
10498
                this.success = new ArrayList<Vendor>(_list19.size);
10313
                this.success = new ArrayList<Vendor>(_list14.size);
10499
                for (int _i20 = 0; _i20 < _list19.size; ++_i20)
10314
                for (int _i15 = 0; _i15 < _list14.size; ++_i15)
10500
                {
10315
                {
10501
                  Vendor _elem21; // required
10316
                  Vendor _elem16; // required
10502
                  _elem21 = new Vendor();
10317
                  _elem16 = new Vendor();
10503
                  _elem21.read(iprot);
10318
                  _elem16.read(iprot);
10504
                  this.success.add(_elem21);
10319
                  this.success.add(_elem16);
10505
                }
10320
                }
10506
                iprot.readListEnd();
10321
                iprot.readListEnd();
10507
              }
10322
              }
10508
            } else { 
10323
            } else { 
10509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10324
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 10523... Line 10338...
10523
 
10338
 
10524
      if (this.isSetSuccess()) {
10339
      if (this.isSetSuccess()) {
10525
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10340
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10526
        {
10341
        {
10527
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10342
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10528
          for (Vendor _iter22 : this.success)
10343
          for (Vendor _iter17 : this.success)
10529
          {
10344
          {
10530
            _iter22.write(oprot);
10345
            _iter17.write(oprot);
10531
          }
10346
          }
10532
          oprot.writeListEnd();
10347
          oprot.writeListEnd();
10533
        }
10348
        }
10534
        oprot.writeFieldEnd();
10349
        oprot.writeFieldEnd();
10535
      }
10350
      }
Line 11117... Line 10932...
11117
        }
10932
        }
11118
        switch (field.id) {
10933
        switch (field.id) {
11119
          case 0: // SUCCESS
10934
          case 0: // SUCCESS
11120
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10935
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11121
              {
10936
              {
11122
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
10937
                org.apache.thrift.protocol.TList _list18 = iprot.readListBegin();
11123
                this.success = new ArrayList<Warehouse>(_list23.size);
10938
                this.success = new ArrayList<Warehouse>(_list18.size);
11124
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
10939
                for (int _i19 = 0; _i19 < _list18.size; ++_i19)
11125
                {
10940
                {
11126
                  Warehouse _elem25; // required
10941
                  Warehouse _elem20; // required
11127
                  _elem25 = new Warehouse();
10942
                  _elem20 = new Warehouse();
11128
                  _elem25.read(iprot);
10943
                  _elem20.read(iprot);
11129
                  this.success.add(_elem25);
10944
                  this.success.add(_elem20);
11130
                }
10945
                }
11131
                iprot.readListEnd();
10946
                iprot.readListEnd();
11132
              }
10947
              }
11133
            } else { 
10948
            } else { 
11134
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10949
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 11148... Line 10963...
11148
 
10963
 
11149
      if (this.isSetSuccess()) {
10964
      if (this.isSetSuccess()) {
11150
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10965
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11151
        {
10966
        {
11152
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10967
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11153
          for (Warehouse _iter26 : this.success)
10968
          for (Warehouse _iter21 : this.success)
11154
          {
10969
          {
11155
            _iter26.write(oprot);
10970
            _iter21.write(oprot);
11156
          }
10971
          }
11157
          oprot.writeListEnd();
10972
          oprot.writeListEnd();
11158
        }
10973
        }
11159
        oprot.writeFieldEnd();
10974
        oprot.writeFieldEnd();
11160
      }
10975
      }
Line 12956... Line 12771...
12956
            }
12771
            }
12957
            break;
12772
            break;
12958
          case 3: // AVAILABILITY
12773
          case 3: // AVAILABILITY
12959
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
12774
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
12960
              {
12775
              {
12961
                org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin();
12776
                org.apache.thrift.protocol.TMap _map22 = iprot.readMapBegin();
12962
                this.availability = new HashMap<String,Long>(2*_map27.size);
12777
                this.availability = new HashMap<String,Long>(2*_map22.size);
12963
                for (int _i28 = 0; _i28 < _map27.size; ++_i28)
12778
                for (int _i23 = 0; _i23 < _map22.size; ++_i23)
12964
                {
12779
                {
12965
                  String _key29; // required
12780
                  String _key24; // required
12966
                  long _val30; // required
12781
                  long _val25; // required
12967
                  _key29 = iprot.readString();
12782
                  _key24 = iprot.readString();
12968
                  _val30 = iprot.readI64();
12783
                  _val25 = iprot.readI64();
12969
                  this.availability.put(_key29, _val30);
12784
                  this.availability.put(_key24, _val25);
12970
                }
12785
                }
12971
                iprot.readMapEnd();
12786
                iprot.readMapEnd();
12972
              }
12787
              }
12973
            } else { 
12788
            } else { 
12974
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 12997... Line 12812...
12997
      }
12812
      }
12998
      if (this.availability != null) {
12813
      if (this.availability != null) {
12999
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
12814
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
13000
        {
12815
        {
13001
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
12816
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
13002
          for (Map.Entry<String, Long> _iter31 : this.availability.entrySet())
12817
          for (Map.Entry<String, Long> _iter26 : this.availability.entrySet())
13003
          {
12818
          {
13004
            oprot.writeString(_iter31.getKey());
12819
            oprot.writeString(_iter26.getKey());
13005
            oprot.writeI64(_iter31.getValue());
12820
            oprot.writeI64(_iter26.getValue());
13006
          }
12821
          }
13007
          oprot.writeMapEnd();
12822
          oprot.writeMapEnd();
13008
        }
12823
        }
13009
        oprot.writeFieldEnd();
12824
        oprot.writeFieldEnd();
13010
      }
12825
      }
Line 13765... Line 13580...
13765
            }
13580
            }
13766
            break;
13581
            break;
13767
          case 3: // AVAILABILITY
13582
          case 3: // AVAILABILITY
13768
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
13583
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
13769
              {
13584
              {
13770
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
13585
                org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin();
13771
                this.availability = new HashMap<String,Long>(2*_map32.size);
13586
                this.availability = new HashMap<String,Long>(2*_map27.size);
13772
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
13587
                for (int _i28 = 0; _i28 < _map27.size; ++_i28)
13773
                {
13588
                {
13774
                  String _key34; // required
13589
                  String _key29; // required
13775
                  long _val35; // required
13590
                  long _val30; // required
13776
                  _key34 = iprot.readString();
13591
                  _key29 = iprot.readString();
13777
                  _val35 = iprot.readI64();
13592
                  _val30 = iprot.readI64();
13778
                  this.availability.put(_key34, _val35);
13593
                  this.availability.put(_key29, _val30);
13779
                }
13594
                }
13780
                iprot.readMapEnd();
13595
                iprot.readMapEnd();
13781
              }
13596
              }
13782
            } else { 
13597
            } else { 
13783
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13806... Line 13621...
13806
      }
13621
      }
13807
      if (this.availability != null) {
13622
      if (this.availability != null) {
13808
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
13623
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
13809
        {
13624
        {
13810
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
13625
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
13811
          for (Map.Entry<String, Long> _iter36 : this.availability.entrySet())
13626
          for (Map.Entry<String, Long> _iter31 : this.availability.entrySet())
13812
          {
13627
          {
13813
            oprot.writeString(_iter36.getKey());
13628
            oprot.writeString(_iter31.getKey());
13814
            oprot.writeI64(_iter36.getValue());
13629
            oprot.writeI64(_iter31.getValue());
13815
          }
13630
          }
13816
          oprot.writeMapEnd();
13631
          oprot.writeMapEnd();
13817
        }
13632
        }
13818
        oprot.writeFieldEnd();
13633
        oprot.writeFieldEnd();
13819
      }
13634
      }
Line 18908... Line 18723...
18908
        }
18723
        }
18909
        switch (field.id) {
18724
        switch (field.id) {
18910
          case 0: // SUCCESS
18725
          case 0: // SUCCESS
18911
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18726
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18912
              {
18727
              {
18913
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
18728
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
18914
                this.success = new ArrayList<Item>(_list37.size);
18729
                this.success = new ArrayList<Item>(_list32.size);
18915
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
18730
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
18916
                {
18731
                {
18917
                  Item _elem39; // required
18732
                  Item _elem34; // required
18918
                  _elem39 = new Item();
18733
                  _elem34 = new Item();
18919
                  _elem39.read(iprot);
18734
                  _elem34.read(iprot);
18920
                  this.success.add(_elem39);
18735
                  this.success.add(_elem34);
18921
                }
18736
                }
18922
                iprot.readListEnd();
18737
                iprot.readListEnd();
18923
              }
18738
              }
18924
            } else { 
18739
            } else { 
18925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 18947... Line 18762...
18947
 
18762
 
18948
      if (this.isSetSuccess()) {
18763
      if (this.isSetSuccess()) {
18949
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18764
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18950
        {
18765
        {
18951
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18766
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18952
          for (Item _iter40 : this.success)
18767
          for (Item _iter35 : this.success)
18953
          {
18768
          {
18954
            _iter40.write(oprot);
18769
            _iter35.write(oprot);
18955
          }
18770
          }
18956
          oprot.writeListEnd();
18771
          oprot.writeListEnd();
18957
        }
18772
        }
18958
        oprot.writeFieldEnd();
18773
        oprot.writeFieldEnd();
18959
      } else if (this.isSetCex()) {
18774
      } else if (this.isSetCex()) {
Line 19621... Line 19436...
19621
        }
19436
        }
19622
        switch (field.id) {
19437
        switch (field.id) {
19623
          case 0: // SUCCESS
19438
          case 0: // SUCCESS
19624
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19439
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19625
              {
19440
              {
19626
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
19441
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
19627
                this.success = new ArrayList<Item>(_list41.size);
19442
                this.success = new ArrayList<Item>(_list36.size);
19628
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
19443
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
19629
                {
19444
                {
19630
                  Item _elem43; // required
19445
                  Item _elem38; // required
19631
                  _elem43 = new Item();
19446
                  _elem38 = new Item();
19632
                  _elem43.read(iprot);
19447
                  _elem38.read(iprot);
19633
                  this.success.add(_elem43);
19448
                  this.success.add(_elem38);
19634
                }
19449
                }
19635
                iprot.readListEnd();
19450
                iprot.readListEnd();
19636
              }
19451
              }
19637
            } else { 
19452
            } else { 
19638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19660... Line 19475...
19660
 
19475
 
19661
      if (this.isSetSuccess()) {
19476
      if (this.isSetSuccess()) {
19662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19477
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19663
        {
19478
        {
19664
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19479
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19665
          for (Item _iter44 : this.success)
19480
          for (Item _iter39 : this.success)
19666
          {
19481
          {
19667
            _iter44.write(oprot);
19482
            _iter39.write(oprot);
19668
          }
19483
          }
19669
          oprot.writeListEnd();
19484
          oprot.writeListEnd();
19670
        }
19485
        }
19671
        oprot.writeFieldEnd();
19486
        oprot.writeFieldEnd();
19672
      } else if (this.isSetCex()) {
19487
      } else if (this.isSetCex()) {
Line 20346... Line 20161...
20346
        }
20161
        }
20347
        switch (field.id) {
20162
        switch (field.id) {
20348
          case 0: // SUCCESS
20163
          case 0: // SUCCESS
20349
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20164
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20350
              {
20165
              {
20351
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
20166
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
20352
                this.success = new ArrayList<Item>(_list45.size);
20167
                this.success = new ArrayList<Item>(_list40.size);
20353
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
20168
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
20354
                {
20169
                {
20355
                  Item _elem47; // required
20170
                  Item _elem42; // required
20356
                  _elem47 = new Item();
20171
                  _elem42 = new Item();
20357
                  _elem47.read(iprot);
20172
                  _elem42.read(iprot);
20358
                  this.success.add(_elem47);
20173
                  this.success.add(_elem42);
20359
                }
20174
                }
20360
                iprot.readListEnd();
20175
                iprot.readListEnd();
20361
              }
20176
              }
20362
            } else { 
20177
            } else { 
20363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 20385... Line 20200...
20385
 
20200
 
20386
      if (this.isSetSuccess()) {
20201
      if (this.isSetSuccess()) {
20387
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20388
        {
20203
        {
20389
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20204
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20390
          for (Item _iter48 : this.success)
20205
          for (Item _iter43 : this.success)
20391
          {
20206
          {
20392
            _iter48.write(oprot);
20207
            _iter43.write(oprot);
20393
          }
20208
          }
20394
          oprot.writeListEnd();
20209
          oprot.writeListEnd();
20395
        }
20210
        }
20396
        oprot.writeFieldEnd();
20211
        oprot.writeFieldEnd();
20397
      } else if (this.isSetCex()) {
20212
      } else if (this.isSetCex()) {
Line 20447... Line 20262...
20447
      }
20262
      }
20448
    }
20263
    }
20449
 
20264
 
20450
  }
20265
  }
20451
 
20266
 
-
 
20267
  public static class getItemInventory_args implements org.apache.thrift.TBase<getItemInventory_args, getItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
20268
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventory_args");
-
 
20269
 
-
 
20270
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
20271
 
-
 
20272
    private long item_id; // required
-
 
20273
 
-
 
20274
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20275
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20276
      ITEM_ID((short)1, "item_id");
-
 
20277
 
-
 
20278
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20279
 
-
 
20280
      static {
-
 
20281
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20282
          byName.put(field.getFieldName(), field);
-
 
20283
        }
-
 
20284
      }
-
 
20285
 
-
 
20286
      /**
-
 
20287
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20288
       */
-
 
20289
      public static _Fields findByThriftId(int fieldId) {
-
 
20290
        switch(fieldId) {
-
 
20291
          case 1: // ITEM_ID
-
 
20292
            return ITEM_ID;
-
 
20293
          default:
-
 
20294
            return null;
-
 
20295
        }
-
 
20296
      }
-
 
20297
 
-
 
20298
      /**
-
 
20299
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20300
       * if it is not found.
-
 
20301
       */
-
 
20302
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20303
        _Fields fields = findByThriftId(fieldId);
-
 
20304
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20305
        return fields;
-
 
20306
      }
-
 
20307
 
-
 
20308
      /**
-
 
20309
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20310
       */
-
 
20311
      public static _Fields findByName(String name) {
-
 
20312
        return byName.get(name);
-
 
20313
      }
-
 
20314
 
-
 
20315
      private final short _thriftId;
-
 
20316
      private final String _fieldName;
-
 
20317
 
-
 
20318
      _Fields(short thriftId, String fieldName) {
-
 
20319
        _thriftId = thriftId;
-
 
20320
        _fieldName = fieldName;
-
 
20321
      }
-
 
20322
 
-
 
20323
      public short getThriftFieldId() {
-
 
20324
        return _thriftId;
-
 
20325
      }
-
 
20326
 
-
 
20327
      public String getFieldName() {
-
 
20328
        return _fieldName;
-
 
20329
      }
-
 
20330
    }
-
 
20331
 
-
 
20332
    // isset id assignments
-
 
20333
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
20334
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
20335
 
-
 
20336
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20337
    static {
-
 
20338
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20339
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20340
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
20341
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20342
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventory_args.class, metaDataMap);
-
 
20343
    }
-
 
20344
 
-
 
20345
    public getItemInventory_args() {
-
 
20346
    }
-
 
20347
 
-
 
20348
    public getItemInventory_args(
-
 
20349
      long item_id)
-
 
20350
    {
-
 
20351
      this();
-
 
20352
      this.item_id = item_id;
-
 
20353
      setItem_idIsSet(true);
-
 
20354
    }
-
 
20355
 
-
 
20356
    /**
-
 
20357
     * Performs a deep copy on <i>other</i>.
-
 
20358
     */
-
 
20359
    public getItemInventory_args(getItemInventory_args other) {
-
 
20360
      __isset_bit_vector.clear();
-
 
20361
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20362
      this.item_id = other.item_id;
-
 
20363
    }
-
 
20364
 
-
 
20365
    public getItemInventory_args deepCopy() {
-
 
20366
      return new getItemInventory_args(this);
-
 
20367
    }
-
 
20368
 
-
 
20369
    @Override
-
 
20370
    public void clear() {
-
 
20371
      setItem_idIsSet(false);
-
 
20372
      this.item_id = 0;
-
 
20373
    }
-
 
20374
 
-
 
20375
    public long getItem_id() {
-
 
20376
      return this.item_id;
-
 
20377
    }
-
 
20378
 
-
 
20379
    public void setItem_id(long item_id) {
-
 
20380
      this.item_id = item_id;
-
 
20381
      setItem_idIsSet(true);
-
 
20382
    }
-
 
20383
 
-
 
20384
    public void unsetItem_id() {
-
 
20385
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
20386
    }
-
 
20387
 
-
 
20388
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
20389
    public boolean isSetItem_id() {
-
 
20390
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
20391
    }
-
 
20392
 
-
 
20393
    public void setItem_idIsSet(boolean value) {
-
 
20394
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
20395
    }
-
 
20396
 
-
 
20397
    public void setFieldValue(_Fields field, Object value) {
-
 
20398
      switch (field) {
-
 
20399
      case ITEM_ID:
-
 
20400
        if (value == null) {
-
 
20401
          unsetItem_id();
-
 
20402
        } else {
-
 
20403
          setItem_id((Long)value);
-
 
20404
        }
-
 
20405
        break;
-
 
20406
 
-
 
20407
      }
-
 
20408
    }
-
 
20409
 
-
 
20410
    public Object getFieldValue(_Fields field) {
-
 
20411
      switch (field) {
-
 
20412
      case ITEM_ID:
-
 
20413
        return Long.valueOf(getItem_id());
-
 
20414
 
-
 
20415
      }
-
 
20416
      throw new IllegalStateException();
-
 
20417
    }
-
 
20418
 
-
 
20419
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20420
    public boolean isSet(_Fields field) {
-
 
20421
      if (field == null) {
-
 
20422
        throw new IllegalArgumentException();
-
 
20423
      }
-
 
20424
 
-
 
20425
      switch (field) {
-
 
20426
      case ITEM_ID:
-
 
20427
        return isSetItem_id();
-
 
20428
      }
-
 
20429
      throw new IllegalStateException();
-
 
20430
    }
-
 
20431
 
-
 
20432
    @Override
-
 
20433
    public boolean equals(Object that) {
-
 
20434
      if (that == null)
-
 
20435
        return false;
-
 
20436
      if (that instanceof getItemInventory_args)
-
 
20437
        return this.equals((getItemInventory_args)that);
-
 
20438
      return false;
-
 
20439
    }
-
 
20440
 
-
 
20441
    public boolean equals(getItemInventory_args that) {
-
 
20442
      if (that == null)
-
 
20443
        return false;
-
 
20444
 
-
 
20445
      boolean this_present_item_id = true;
-
 
20446
      boolean that_present_item_id = true;
-
 
20447
      if (this_present_item_id || that_present_item_id) {
-
 
20448
        if (!(this_present_item_id && that_present_item_id))
-
 
20449
          return false;
-
 
20450
        if (this.item_id != that.item_id)
-
 
20451
          return false;
-
 
20452
      }
-
 
20453
 
-
 
20454
      return true;
-
 
20455
    }
-
 
20456
 
-
 
20457
    @Override
-
 
20458
    public int hashCode() {
-
 
20459
      return 0;
-
 
20460
    }
-
 
20461
 
-
 
20462
    public int compareTo(getItemInventory_args other) {
-
 
20463
      if (!getClass().equals(other.getClass())) {
-
 
20464
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20465
      }
-
 
20466
 
-
 
20467
      int lastComparison = 0;
-
 
20468
      getItemInventory_args typedOther = (getItemInventory_args)other;
-
 
20469
 
-
 
20470
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
20471
      if (lastComparison != 0) {
-
 
20472
        return lastComparison;
-
 
20473
      }
-
 
20474
      if (isSetItem_id()) {
-
 
20475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
20476
        if (lastComparison != 0) {
-
 
20477
          return lastComparison;
-
 
20478
        }
-
 
20479
      }
-
 
20480
      return 0;
-
 
20481
    }
-
 
20482
 
-
 
20483
    public _Fields fieldForId(int fieldId) {
-
 
20484
      return _Fields.findByThriftId(fieldId);
-
 
20485
    }
-
 
20486
 
-
 
20487
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20488
      org.apache.thrift.protocol.TField field;
-
 
20489
      iprot.readStructBegin();
-
 
20490
      while (true)
-
 
20491
      {
-
 
20492
        field = iprot.readFieldBegin();
-
 
20493
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20494
          break;
-
 
20495
        }
-
 
20496
        switch (field.id) {
-
 
20497
          case 1: // ITEM_ID
-
 
20498
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20499
              this.item_id = iprot.readI64();
-
 
20500
              setItem_idIsSet(true);
-
 
20501
            } else { 
-
 
20502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20503
            }
-
 
20504
            break;
-
 
20505
          default:
-
 
20506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20507
        }
-
 
20508
        iprot.readFieldEnd();
-
 
20509
      }
-
 
20510
      iprot.readStructEnd();
-
 
20511
      validate();
-
 
20512
    }
-
 
20513
 
-
 
20514
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20515
      validate();
-
 
20516
 
-
 
20517
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20518
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
20519
      oprot.writeI64(this.item_id);
-
 
20520
      oprot.writeFieldEnd();
-
 
20521
      oprot.writeFieldStop();
-
 
20522
      oprot.writeStructEnd();
-
 
20523
    }
-
 
20524
 
-
 
20525
    @Override
-
 
20526
    public String toString() {
-
 
20527
      StringBuilder sb = new StringBuilder("getItemInventory_args(");
-
 
20528
      boolean first = true;
-
 
20529
 
-
 
20530
      sb.append("item_id:");
-
 
20531
      sb.append(this.item_id);
-
 
20532
      first = false;
-
 
20533
      sb.append(")");
-
 
20534
      return sb.toString();
-
 
20535
    }
-
 
20536
 
-
 
20537
    public void validate() throws org.apache.thrift.TException {
-
 
20538
      // check for required fields
-
 
20539
    }
-
 
20540
 
-
 
20541
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20542
      try {
-
 
20543
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20544
      } catch (org.apache.thrift.TException te) {
-
 
20545
        throw new java.io.IOException(te);
-
 
20546
      }
-
 
20547
    }
-
 
20548
 
-
 
20549
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20550
      try {
-
 
20551
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
20552
        __isset_bit_vector = new BitSet(1);
-
 
20553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20554
      } catch (org.apache.thrift.TException te) {
-
 
20555
        throw new java.io.IOException(te);
-
 
20556
      }
-
 
20557
    }
-
 
20558
 
-
 
20559
  }
-
 
20560
 
-
 
20561
  public static class getItemInventory_result implements org.apache.thrift.TBase<getItemInventory_result, getItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
20562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventory_result");
-
 
20563
 
-
 
20564
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
20565
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
20566
 
-
 
20567
    private ItemInventory success; // required
-
 
20568
    private InventoryServiceException cex; // required
-
 
20569
 
-
 
20570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20572
      SUCCESS((short)0, "success"),
-
 
20573
      CEX((short)1, "cex");
-
 
20574
 
-
 
20575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20576
 
-
 
20577
      static {
-
 
20578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20579
          byName.put(field.getFieldName(), field);
-
 
20580
        }
-
 
20581
      }
-
 
20582
 
-
 
20583
      /**
-
 
20584
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20585
       */
-
 
20586
      public static _Fields findByThriftId(int fieldId) {
-
 
20587
        switch(fieldId) {
-
 
20588
          case 0: // SUCCESS
-
 
20589
            return SUCCESS;
-
 
20590
          case 1: // CEX
-
 
20591
            return CEX;
-
 
20592
          default:
-
 
20593
            return null;
-
 
20594
        }
-
 
20595
      }
-
 
20596
 
-
 
20597
      /**
-
 
20598
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20599
       * if it is not found.
-
 
20600
       */
-
 
20601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20602
        _Fields fields = findByThriftId(fieldId);
-
 
20603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20604
        return fields;
-
 
20605
      }
-
 
20606
 
-
 
20607
      /**
-
 
20608
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20609
       */
-
 
20610
      public static _Fields findByName(String name) {
-
 
20611
        return byName.get(name);
-
 
20612
      }
-
 
20613
 
-
 
20614
      private final short _thriftId;
-
 
20615
      private final String _fieldName;
-
 
20616
 
-
 
20617
      _Fields(short thriftId, String fieldName) {
-
 
20618
        _thriftId = thriftId;
-
 
20619
        _fieldName = fieldName;
-
 
20620
      }
-
 
20621
 
-
 
20622
      public short getThriftFieldId() {
-
 
20623
        return _thriftId;
-
 
20624
      }
-
 
20625
 
-
 
20626
      public String getFieldName() {
-
 
20627
        return _fieldName;
-
 
20628
      }
-
 
20629
    }
-
 
20630
 
-
 
20631
    // isset id assignments
-
 
20632
 
-
 
20633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20634
    static {
-
 
20635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20636
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20637
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
-
 
20638
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
20640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventory_result.class, metaDataMap);
-
 
20642
    }
-
 
20643
 
-
 
20644
    public getItemInventory_result() {
-
 
20645
    }
-
 
20646
 
-
 
20647
    public getItemInventory_result(
-
 
20648
      ItemInventory success,
-
 
20649
      InventoryServiceException cex)
-
 
20650
    {
-
 
20651
      this();
-
 
20652
      this.success = success;
-
 
20653
      this.cex = cex;
-
 
20654
    }
-
 
20655
 
-
 
20656
    /**
-
 
20657
     * Performs a deep copy on <i>other</i>.
-
 
20658
     */
-
 
20659
    public getItemInventory_result(getItemInventory_result other) {
-
 
20660
      if (other.isSetSuccess()) {
-
 
20661
        this.success = new ItemInventory(other.success);
-
 
20662
      }
-
 
20663
      if (other.isSetCex()) {
-
 
20664
        this.cex = new InventoryServiceException(other.cex);
-
 
20665
      }
-
 
20666
    }
-
 
20667
 
-
 
20668
    public getItemInventory_result deepCopy() {
-
 
20669
      return new getItemInventory_result(this);
-
 
20670
    }
-
 
20671
 
-
 
20672
    @Override
-
 
20673
    public void clear() {
-
 
20674
      this.success = null;
-
 
20675
      this.cex = null;
-
 
20676
    }
-
 
20677
 
-
 
20678
    public ItemInventory getSuccess() {
-
 
20679
      return this.success;
-
 
20680
    }
-
 
20681
 
-
 
20682
    public void setSuccess(ItemInventory success) {
-
 
20683
      this.success = success;
-
 
20684
    }
-
 
20685
 
-
 
20686
    public void unsetSuccess() {
-
 
20687
      this.success = null;
-
 
20688
    }
-
 
20689
 
-
 
20690
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20691
    public boolean isSetSuccess() {
-
 
20692
      return this.success != null;
-
 
20693
    }
-
 
20694
 
-
 
20695
    public void setSuccessIsSet(boolean value) {
-
 
20696
      if (!value) {
-
 
20697
        this.success = null;
-
 
20698
      }
-
 
20699
    }
-
 
20700
 
-
 
20701
    public InventoryServiceException getCex() {
-
 
20702
      return this.cex;
-
 
20703
    }
-
 
20704
 
-
 
20705
    public void setCex(InventoryServiceException cex) {
-
 
20706
      this.cex = cex;
-
 
20707
    }
-
 
20708
 
-
 
20709
    public void unsetCex() {
-
 
20710
      this.cex = null;
-
 
20711
    }
-
 
20712
 
-
 
20713
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
20714
    public boolean isSetCex() {
-
 
20715
      return this.cex != null;
-
 
20716
    }
-
 
20717
 
-
 
20718
    public void setCexIsSet(boolean value) {
-
 
20719
      if (!value) {
-
 
20720
        this.cex = null;
-
 
20721
      }
-
 
20722
    }
-
 
20723
 
-
 
20724
    public void setFieldValue(_Fields field, Object value) {
-
 
20725
      switch (field) {
-
 
20726
      case SUCCESS:
-
 
20727
        if (value == null) {
-
 
20728
          unsetSuccess();
-
 
20729
        } else {
-
 
20730
          setSuccess((ItemInventory)value);
-
 
20731
        }
-
 
20732
        break;
-
 
20733
 
-
 
20734
      case CEX:
-
 
20735
        if (value == null) {
-
 
20736
          unsetCex();
-
 
20737
        } else {
-
 
20738
          setCex((InventoryServiceException)value);
-
 
20739
        }
-
 
20740
        break;
-
 
20741
 
-
 
20742
      }
-
 
20743
    }
-
 
20744
 
-
 
20745
    public Object getFieldValue(_Fields field) {
-
 
20746
      switch (field) {
-
 
20747
      case SUCCESS:
-
 
20748
        return getSuccess();
-
 
20749
 
-
 
20750
      case CEX:
-
 
20751
        return getCex();
-
 
20752
 
-
 
20753
      }
-
 
20754
      throw new IllegalStateException();
-
 
20755
    }
-
 
20756
 
-
 
20757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20758
    public boolean isSet(_Fields field) {
-
 
20759
      if (field == null) {
-
 
20760
        throw new IllegalArgumentException();
-
 
20761
      }
-
 
20762
 
-
 
20763
      switch (field) {
-
 
20764
      case SUCCESS:
-
 
20765
        return isSetSuccess();
-
 
20766
      case CEX:
-
 
20767
        return isSetCex();
-
 
20768
      }
-
 
20769
      throw new IllegalStateException();
-
 
20770
    }
-
 
20771
 
-
 
20772
    @Override
-
 
20773
    public boolean equals(Object that) {
-
 
20774
      if (that == null)
-
 
20775
        return false;
-
 
20776
      if (that instanceof getItemInventory_result)
-
 
20777
        return this.equals((getItemInventory_result)that);
-
 
20778
      return false;
-
 
20779
    }
-
 
20780
 
-
 
20781
    public boolean equals(getItemInventory_result that) {
-
 
20782
      if (that == null)
-
 
20783
        return false;
-
 
20784
 
-
 
20785
      boolean this_present_success = true && this.isSetSuccess();
-
 
20786
      boolean that_present_success = true && that.isSetSuccess();
-
 
20787
      if (this_present_success || that_present_success) {
-
 
20788
        if (!(this_present_success && that_present_success))
-
 
20789
          return false;
-
 
20790
        if (!this.success.equals(that.success))
-
 
20791
          return false;
-
 
20792
      }
-
 
20793
 
-
 
20794
      boolean this_present_cex = true && this.isSetCex();
-
 
20795
      boolean that_present_cex = true && that.isSetCex();
-
 
20796
      if (this_present_cex || that_present_cex) {
-
 
20797
        if (!(this_present_cex && that_present_cex))
-
 
20798
          return false;
-
 
20799
        if (!this.cex.equals(that.cex))
-
 
20800
          return false;
-
 
20801
      }
-
 
20802
 
-
 
20803
      return true;
-
 
20804
    }
-
 
20805
 
-
 
20806
    @Override
-
 
20807
    public int hashCode() {
-
 
20808
      return 0;
-
 
20809
    }
-
 
20810
 
-
 
20811
    public int compareTo(getItemInventory_result other) {
-
 
20812
      if (!getClass().equals(other.getClass())) {
-
 
20813
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20814
      }
-
 
20815
 
-
 
20816
      int lastComparison = 0;
-
 
20817
      getItemInventory_result typedOther = (getItemInventory_result)other;
-
 
20818
 
-
 
20819
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20820
      if (lastComparison != 0) {
-
 
20821
        return lastComparison;
-
 
20822
      }
-
 
20823
      if (isSetSuccess()) {
-
 
20824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20825
        if (lastComparison != 0) {
-
 
20826
          return lastComparison;
-
 
20827
        }
-
 
20828
      }
-
 
20829
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
20830
      if (lastComparison != 0) {
-
 
20831
        return lastComparison;
-
 
20832
      }
-
 
20833
      if (isSetCex()) {
-
 
20834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
20835
        if (lastComparison != 0) {
-
 
20836
          return lastComparison;
-
 
20837
        }
-
 
20838
      }
-
 
20839
      return 0;
-
 
20840
    }
-
 
20841
 
-
 
20842
    public _Fields fieldForId(int fieldId) {
-
 
20843
      return _Fields.findByThriftId(fieldId);
-
 
20844
    }
-
 
20845
 
-
 
20846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20847
      org.apache.thrift.protocol.TField field;
-
 
20848
      iprot.readStructBegin();
-
 
20849
      while (true)
-
 
20850
      {
-
 
20851
        field = iprot.readFieldBegin();
-
 
20852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20853
          break;
-
 
20854
        }
-
 
20855
        switch (field.id) {
-
 
20856
          case 0: // SUCCESS
-
 
20857
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
20858
              this.success = new ItemInventory();
-
 
20859
              this.success.read(iprot);
-
 
20860
            } else { 
-
 
20861
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20862
            }
-
 
20863
            break;
-
 
20864
          case 1: // CEX
-
 
20865
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
20866
              this.cex = new InventoryServiceException();
-
 
20867
              this.cex.read(iprot);
-
 
20868
            } else { 
-
 
20869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20870
            }
-
 
20871
            break;
-
 
20872
          default:
-
 
20873
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20874
        }
-
 
20875
        iprot.readFieldEnd();
-
 
20876
      }
-
 
20877
      iprot.readStructEnd();
-
 
20878
      validate();
-
 
20879
    }
-
 
20880
 
-
 
20881
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20882
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20883
 
-
 
20884
      if (this.isSetSuccess()) {
-
 
20885
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
20886
        this.success.write(oprot);
-
 
20887
        oprot.writeFieldEnd();
-
 
20888
      } else if (this.isSetCex()) {
-
 
20889
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
20890
        this.cex.write(oprot);
-
 
20891
        oprot.writeFieldEnd();
-
 
20892
      }
-
 
20893
      oprot.writeFieldStop();
-
 
20894
      oprot.writeStructEnd();
-
 
20895
    }
-
 
20896
 
-
 
20897
    @Override
-
 
20898
    public String toString() {
-
 
20899
      StringBuilder sb = new StringBuilder("getItemInventory_result(");
-
 
20900
      boolean first = true;
-
 
20901
 
-
 
20902
      sb.append("success:");
-
 
20903
      if (this.success == null) {
-
 
20904
        sb.append("null");
-
 
20905
      } else {
-
 
20906
        sb.append(this.success);
-
 
20907
      }
-
 
20908
      first = false;
-
 
20909
      if (!first) sb.append(", ");
-
 
20910
      sb.append("cex:");
-
 
20911
      if (this.cex == null) {
-
 
20912
        sb.append("null");
-
 
20913
      } else {
-
 
20914
        sb.append(this.cex);
-
 
20915
      }
-
 
20916
      first = false;
-
 
20917
      sb.append(")");
-
 
20918
      return sb.toString();
-
 
20919
    }
-
 
20920
 
-
 
20921
    public void validate() throws org.apache.thrift.TException {
-
 
20922
      // check for required fields
-
 
20923
    }
-
 
20924
 
-
 
20925
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20926
      try {
-
 
20927
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20928
      } catch (org.apache.thrift.TException te) {
-
 
20929
        throw new java.io.IOException(te);
-
 
20930
      }
-
 
20931
    }
-
 
20932
 
-
 
20933
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20934
      try {
-
 
20935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20936
      } catch (org.apache.thrift.TException te) {
-
 
20937
        throw new java.io.IOException(te);
-
 
20938
      }
-
 
20939
    }
-
 
20940
 
-
 
20941
  }
-
 
20942
 
20452
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
20943
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
20453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
20944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
20454
 
20945
 
20455
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
20946
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
20456
 
20947
 
Line 23596... Line 24087...
23596
        }
24087
        }
23597
        switch (field.id) {
24088
        switch (field.id) {
23598
          case 0: // SUCCESS
24089
          case 0: // SUCCESS
23599
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24090
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23600
              {
24091
              {
23601
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
24092
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
23602
                this.success = new ArrayList<Item>(_list49.size);
24093
                this.success = new ArrayList<Item>(_list44.size);
23603
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
24094
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
23604
                {
24095
                {
23605
                  Item _elem51; // required
24096
                  Item _elem46; // required
23606
                  _elem51 = new Item();
24097
                  _elem46 = new Item();
23607
                  _elem51.read(iprot);
24098
                  _elem46.read(iprot);
23608
                  this.success.add(_elem51);
24099
                  this.success.add(_elem46);
23609
                }
24100
                }
23610
                iprot.readListEnd();
24101
                iprot.readListEnd();
23611
              }
24102
              }
23612
            } else { 
24103
            } else { 
23613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23635... Line 24126...
23635
 
24126
 
23636
      if (this.isSetSuccess()) {
24127
      if (this.isSetSuccess()) {
23637
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24128
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23638
        {
24129
        {
23639
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24130
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23640
          for (Item _iter52 : this.success)
24131
          for (Item _iter47 : this.success)
23641
          {
24132
          {
23642
            _iter52.write(oprot);
24133
            _iter47.write(oprot);
23643
          }
24134
          }
23644
          oprot.writeListEnd();
24135
          oprot.writeListEnd();
23645
        }
24136
        }
23646
        oprot.writeFieldEnd();
24137
        oprot.writeFieldEnd();
23647
      } else if (this.isSetCex()) {
24138
      } else if (this.isSetCex()) {
Line 24490... Line 24981...
24490
        }
24981
        }
24491
        switch (field.id) {
24982
        switch (field.id) {
24492
          case 0: // SUCCESS
24983
          case 0: // SUCCESS
24493
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24984
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24494
              {
24985
              {
24495
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
24986
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
24496
                this.success = new ArrayList<Item>(_list53.size);
24987
                this.success = new ArrayList<Item>(_list48.size);
24497
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
24988
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
24498
                {
24989
                {
24499
                  Item _elem55; // required
24990
                  Item _elem50; // required
24500
                  _elem55 = new Item();
24991
                  _elem50 = new Item();
24501
                  _elem55.read(iprot);
24992
                  _elem50.read(iprot);
24502
                  this.success.add(_elem55);
24993
                  this.success.add(_elem50);
24503
                }
24994
                }
24504
                iprot.readListEnd();
24995
                iprot.readListEnd();
24505
              }
24996
              }
24506
            } else { 
24997
            } else { 
24507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24529... Line 25020...
24529
 
25020
 
24530
      if (this.isSetSuccess()) {
25021
      if (this.isSetSuccess()) {
24531
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25022
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24532
        {
25023
        {
24533
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25024
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24534
          for (Item _iter56 : this.success)
25025
          for (Item _iter51 : this.success)
24535
          {
25026
          {
24536
            _iter56.write(oprot);
25027
            _iter51.write(oprot);
24537
          }
25028
          }
24538
          oprot.writeListEnd();
25029
          oprot.writeListEnd();
24539
        }
25030
        }
24540
        oprot.writeFieldEnd();
25031
        oprot.writeFieldEnd();
24541
      } else if (this.isSetCex()) {
25032
      } else if (this.isSetCex()) {
Line 25971... Line 26462...
25971
        }
26462
        }
25972
        switch (field.id) {
26463
        switch (field.id) {
25973
          case 0: // SUCCESS
26464
          case 0: // SUCCESS
25974
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26465
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25975
              {
26466
              {
25976
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
26467
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
25977
                this.success = new ArrayList<Long>(_list57.size);
26468
                this.success = new ArrayList<Long>(_list52.size);
25978
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
26469
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
25979
                {
26470
                {
25980
                  long _elem59; // required
26471
                  long _elem54; // required
25981
                  _elem59 = iprot.readI64();
26472
                  _elem54 = iprot.readI64();
25982
                  this.success.add(_elem59);
26473
                  this.success.add(_elem54);
25983
                }
26474
                }
25984
                iprot.readListEnd();
26475
                iprot.readListEnd();
25985
              }
26476
              }
25986
            } else { 
26477
            } else { 
25987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 26009... Line 26500...
26009
 
26500
 
26010
      if (this.isSetSuccess()) {
26501
      if (this.isSetSuccess()) {
26011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26502
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26012
        {
26503
        {
26013
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
26504
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
26014
          for (long _iter60 : this.success)
26505
          for (long _iter55 : this.success)
26015
          {
26506
          {
26016
            oprot.writeI64(_iter60);
26507
            oprot.writeI64(_iter55);
26017
          }
26508
          }
26018
          oprot.writeListEnd();
26509
          oprot.writeListEnd();
26019
        }
26510
        }
26020
        oprot.writeFieldEnd();
26511
        oprot.writeFieldEnd();
26021
      } else if (this.isSetIsex()) {
26512
      } else if (this.isSetIsex()) {
Line 26681... Line 27172...
26681
        }
27172
        }
26682
        switch (field.id) {
27173
        switch (field.id) {
26683
          case 0: // SUCCESS
27174
          case 0: // SUCCESS
26684
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27175
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26685
              {
27176
              {
26686
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
27177
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
26687
                this.success = new ArrayList<Warehouse>(_list61.size);
27178
                this.success = new ArrayList<Warehouse>(_list56.size);
26688
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
27179
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
26689
                {
27180
                {
26690
                  Warehouse _elem63; // required
27181
                  Warehouse _elem58; // required
26691
                  _elem63 = new Warehouse();
27182
                  _elem58 = new Warehouse();
26692
                  _elem63.read(iprot);
27183
                  _elem58.read(iprot);
26693
                  this.success.add(_elem63);
27184
                  this.success.add(_elem58);
26694
                }
27185
                }
26695
                iprot.readListEnd();
27186
                iprot.readListEnd();
26696
              }
27187
              }
26697
            } else { 
27188
            } else { 
26698
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 26720... Line 27211...
26720
 
27211
 
26721
      if (this.isSetSuccess()) {
27212
      if (this.isSetSuccess()) {
26722
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27213
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26723
        {
27214
        {
26724
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27215
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26725
          for (Warehouse _iter64 : this.success)
27216
          for (Warehouse _iter59 : this.success)
26726
          {
27217
          {
26727
            _iter64.write(oprot);
27218
            _iter59.write(oprot);
26728
          }
27219
          }
26729
          oprot.writeListEnd();
27220
          oprot.writeListEnd();
26730
        }
27221
        }
26731
        oprot.writeFieldEnd();
27222
        oprot.writeFieldEnd();
26732
      } else if (this.isSetCex()) {
27223
      } else if (this.isSetCex()) {
Line 28070... Line 28561...
28070
        }
28561
        }
28071
        switch (field.id) {
28562
        switch (field.id) {
28072
          case 0: // SUCCESS
28563
          case 0: // SUCCESS
28073
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
28564
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
28074
              {
28565
              {
28075
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
28566
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
28076
                this.success = new ArrayList<Warehouse>(_list65.size);
28567
                this.success = new ArrayList<Warehouse>(_list60.size);
28077
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
28568
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
28078
                {
28569
                {
28079
                  Warehouse _elem67; // required
28570
                  Warehouse _elem62; // required
28080
                  _elem67 = new Warehouse();
28571
                  _elem62 = new Warehouse();
28081
                  _elem67.read(iprot);
28572
                  _elem62.read(iprot);
28082
                  this.success.add(_elem67);
28573
                  this.success.add(_elem62);
28083
                }
28574
                }
28084
                iprot.readListEnd();
28575
                iprot.readListEnd();
28085
              }
28576
              }
28086
            } else { 
28577
            } else { 
28087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 28109... Line 28600...
28109
 
28600
 
28110
      if (this.isSetSuccess()) {
28601
      if (this.isSetSuccess()) {
28111
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28602
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28112
        {
28603
        {
28113
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
28604
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
28114
          for (Warehouse _iter68 : this.success)
28605
          for (Warehouse _iter63 : this.success)
28115
          {
28606
          {
28116
            _iter68.write(oprot);
28607
            _iter63.write(oprot);
28117
          }
28608
          }
28118
          oprot.writeListEnd();
28609
          oprot.writeListEnd();
28119
        }
28610
        }
28120
        oprot.writeFieldEnd();
28611
        oprot.writeFieldEnd();
28121
      } else if (this.isSetCex()) {
28612
      } else if (this.isSetCex()) {
Line 28783... Line 29274...
28783
        }
29274
        }
28784
        switch (field.id) {
29275
        switch (field.id) {
28785
          case 0: // SUCCESS
29276
          case 0: // SUCCESS
28786
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29277
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
28787
              {
29278
              {
28788
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
29279
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
28789
                this.success = new ArrayList<Item>(_list69.size);
29280
                this.success = new ArrayList<Item>(_list64.size);
28790
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
29281
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
28791
                {
29282
                {
28792
                  Item _elem71; // required
29283
                  Item _elem66; // required
28793
                  _elem71 = new Item();
29284
                  _elem66 = new Item();
28794
                  _elem71.read(iprot);
29285
                  _elem66.read(iprot);
28795
                  this.success.add(_elem71);
29286
                  this.success.add(_elem66);
28796
                }
29287
                }
28797
                iprot.readListEnd();
29288
                iprot.readListEnd();
28798
              }
29289
              }
28799
            } else { 
29290
            } else { 
28800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 28822... Line 29313...
28822
 
29313
 
28823
      if (this.isSetSuccess()) {
29314
      if (this.isSetSuccess()) {
28824
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29315
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28825
        {
29316
        {
28826
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29317
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
28827
          for (Item _iter72 : this.success)
29318
          for (Item _iter67 : this.success)
28828
          {
29319
          {
28829
            _iter72.write(oprot);
29320
            _iter67.write(oprot);
28830
          }
29321
          }
28831
          oprot.writeListEnd();
29322
          oprot.writeListEnd();
28832
        }
29323
        }
28833
        oprot.writeFieldEnd();
29324
        oprot.writeFieldEnd();
28834
      } else if (this.isSetCex()) {
29325
      } else if (this.isSetCex()) {
Line 31080... Line 31571...
31080
        }
31571
        }
31081
        switch (field.id) {
31572
        switch (field.id) {
31082
          case 0: // SUCCESS
31573
          case 0: // SUCCESS
31083
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31574
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31084
              {
31575
              {
31085
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
31576
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
31086
                this.success = new ArrayList<Item>(_list73.size);
31577
                this.success = new ArrayList<Item>(_list68.size);
31087
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
31578
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
31088
                {
31579
                {
31089
                  Item _elem75; // required
31580
                  Item _elem70; // required
31090
                  _elem75 = new Item();
31581
                  _elem70 = new Item();
31091
                  _elem75.read(iprot);
31582
                  _elem70.read(iprot);
31092
                  this.success.add(_elem75);
31583
                  this.success.add(_elem70);
31093
                }
31584
                }
31094
                iprot.readListEnd();
31585
                iprot.readListEnd();
31095
              }
31586
              }
31096
            } else { 
31587
            } else { 
31097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 31119... Line 31610...
31119
 
31610
 
31120
      if (this.isSetSuccess()) {
31611
      if (this.isSetSuccess()) {
31121
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31122
        {
31613
        {
31123
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31614
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31124
          for (Item _iter76 : this.success)
31615
          for (Item _iter71 : this.success)
31125
          {
31616
          {
31126
            _iter76.write(oprot);
31617
            _iter71.write(oprot);
31127
          }
31618
          }
31128
          oprot.writeListEnd();
31619
          oprot.writeListEnd();
31129
        }
31620
        }
31130
        oprot.writeFieldEnd();
31621
        oprot.writeFieldEnd();
31131
      } else if (this.isSetIsex()) {
31622
      } else if (this.isSetIsex()) {
Line 32047... Line 32538...
32047
        }
32538
        }
32048
        switch (field.id) {
32539
        switch (field.id) {
32049
          case 0: // SUCCESS
32540
          case 0: // SUCCESS
32050
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32541
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32051
              {
32542
              {
32052
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
32543
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
32053
                this.success = new ArrayList<Long>(_list77.size);
32544
                this.success = new ArrayList<Long>(_list72.size);
32054
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
32545
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
32055
                {
32546
                {
32056
                  long _elem79; // required
32547
                  long _elem74; // required
32057
                  _elem79 = iprot.readI64();
32548
                  _elem74 = iprot.readI64();
32058
                  this.success.add(_elem79);
32549
                  this.success.add(_elem74);
32059
                }
32550
                }
32060
                iprot.readListEnd();
32551
                iprot.readListEnd();
32061
              }
32552
              }
32062
            } else { 
32553
            } else { 
32063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 32085... Line 32576...
32085
 
32576
 
32086
      if (this.isSetSuccess()) {
32577
      if (this.isSetSuccess()) {
32087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32578
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32088
        {
32579
        {
32089
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
32580
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
32090
          for (long _iter80 : this.success)
32581
          for (long _iter75 : this.success)
32091
          {
32582
          {
32092
            oprot.writeI64(_iter80);
32583
            oprot.writeI64(_iter75);
32093
          }
32584
          }
32094
          oprot.writeListEnd();
32585
          oprot.writeListEnd();
32095
        }
32586
        }
32096
        oprot.writeFieldEnd();
32587
        oprot.writeFieldEnd();
32097
      } else if (this.isSetCex()) {
32588
      } else if (this.isSetCex()) {
Line 33246... Line 33737...
33246
        }
33737
        }
33247
        switch (field.id) {
33738
        switch (field.id) {
33248
          case 0: // SUCCESS
33739
          case 0: // SUCCESS
33249
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33740
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33250
              {
33741
              {
33251
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
33742
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
33252
                this.success = new ArrayList<Item>(_list81.size);
33743
                this.success = new ArrayList<Item>(_list76.size);
33253
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
33744
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
33254
                {
33745
                {
33255
                  Item _elem83; // required
33746
                  Item _elem78; // required
33256
                  _elem83 = new Item();
33747
                  _elem78 = new Item();
33257
                  _elem83.read(iprot);
33748
                  _elem78.read(iprot);
33258
                  this.success.add(_elem83);
33749
                  this.success.add(_elem78);
33259
                }
33750
                }
33260
                iprot.readListEnd();
33751
                iprot.readListEnd();
33261
              }
33752
              }
33262
            } else { 
33753
            } else { 
33263
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33285... Line 33776...
33285
 
33776
 
33286
      if (this.isSetSuccess()) {
33777
      if (this.isSetSuccess()) {
33287
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33778
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33288
        {
33779
        {
33289
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33780
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33290
          for (Item _iter84 : this.success)
33781
          for (Item _iter79 : this.success)
33291
          {
33782
          {
33292
            _iter84.write(oprot);
33783
            _iter79.write(oprot);
33293
          }
33784
          }
33294
          oprot.writeListEnd();
33785
          oprot.writeListEnd();
33295
        }
33786
        }
33296
        oprot.writeFieldEnd();
33787
        oprot.writeFieldEnd();
33297
      } else if (this.isSetIsex()) {
33788
      } else if (this.isSetIsex()) {
Line 34213... Line 34704...
34213
        }
34704
        }
34214
        switch (field.id) {
34705
        switch (field.id) {
34215
          case 0: // SUCCESS
34706
          case 0: // SUCCESS
34216
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34707
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34217
              {
34708
              {
34218
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
34709
                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
34219
                this.success = new ArrayList<Long>(_list85.size);
34710
                this.success = new ArrayList<Long>(_list80.size);
34220
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
34711
                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
34221
                {
34712
                {
34222
                  long _elem87; // required
34713
                  long _elem82; // required
34223
                  _elem87 = iprot.readI64();
34714
                  _elem82 = iprot.readI64();
34224
                  this.success.add(_elem87);
34715
                  this.success.add(_elem82);
34225
                }
34716
                }
34226
                iprot.readListEnd();
34717
                iprot.readListEnd();
34227
              }
34718
              }
34228
            } else { 
34719
            } else { 
34229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34251... Line 34742...
34251
 
34742
 
34252
      if (this.isSetSuccess()) {
34743
      if (this.isSetSuccess()) {
34253
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34744
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34254
        {
34745
        {
34255
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
34746
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
34256
          for (long _iter88 : this.success)
34747
          for (long _iter83 : this.success)
34257
          {
34748
          {
34258
            oprot.writeI64(_iter88);
34749
            oprot.writeI64(_iter83);
34259
          }
34750
          }
34260
          oprot.writeListEnd();
34751
          oprot.writeListEnd();
34261
        }
34752
        }
34262
        oprot.writeFieldEnd();
34753
        oprot.writeFieldEnd();
34263
      } else if (this.isSetCex()) {
34754
      } else if (this.isSetCex()) {
Line 35412... Line 35903...
35412
        }
35903
        }
35413
        switch (field.id) {
35904
        switch (field.id) {
35414
          case 0: // SUCCESS
35905
          case 0: // SUCCESS
35415
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35906
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35416
              {
35907
              {
35417
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
35908
                org.apache.thrift.protocol.TList _list84 = iprot.readListBegin();
35418
                this.success = new ArrayList<Item>(_list89.size);
35909
                this.success = new ArrayList<Item>(_list84.size);
35419
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
35910
                for (int _i85 = 0; _i85 < _list84.size; ++_i85)
35420
                {
35911
                {
35421
                  Item _elem91; // required
35912
                  Item _elem86; // required
35422
                  _elem91 = new Item();
35913
                  _elem86 = new Item();
35423
                  _elem91.read(iprot);
35914
                  _elem86.read(iprot);
35424
                  this.success.add(_elem91);
35915
                  this.success.add(_elem86);
35425
                }
35916
                }
35426
                iprot.readListEnd();
35917
                iprot.readListEnd();
35427
              }
35918
              }
35428
            } else { 
35919
            } else { 
35429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 35451... Line 35942...
35451
 
35942
 
35452
      if (this.isSetSuccess()) {
35943
      if (this.isSetSuccess()) {
35453
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35454
        {
35945
        {
35455
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35946
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35456
          for (Item _iter92 : this.success)
35947
          for (Item _iter87 : this.success)
35457
          {
35948
          {
35458
            _iter92.write(oprot);
35949
            _iter87.write(oprot);
35459
          }
35950
          }
35460
          oprot.writeListEnd();
35951
          oprot.writeListEnd();
35461
        }
35952
        }
35462
        oprot.writeFieldEnd();
35953
        oprot.writeFieldEnd();
35463
      } else if (this.isSetIsex()) {
35954
      } else if (this.isSetIsex()) {
Line 35993... Line 36484...
35993
            }
36484
            }
35994
            break;
36485
            break;
35995
          case 4: // CATEGORIES
36486
          case 4: // CATEGORIES
35996
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36487
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35997
              {
36488
              {
35998
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
36489
                org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
35999
                this.categories = new ArrayList<Long>(_list93.size);
36490
                this.categories = new ArrayList<Long>(_list88.size);
36000
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
36491
                for (int _i89 = 0; _i89 < _list88.size; ++_i89)
36001
                {
36492
                {
36002
                  long _elem95; // required
36493
                  long _elem90; // required
36003
                  _elem95 = iprot.readI64();
36494
                  _elem90 = iprot.readI64();
36004
                  this.categories.add(_elem95);
36495
                  this.categories.add(_elem90);
36005
                }
36496
                }
36006
                iprot.readListEnd();
36497
                iprot.readListEnd();
36007
              }
36498
              }
36008
            } else { 
36499
            } else { 
36009
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 36035... Line 36526...
36035
      }
36526
      }
36036
      if (this.categories != null) {
36527
      if (this.categories != null) {
36037
        oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);
36528
        oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);
36038
        {
36529
        {
36039
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));
36530
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));
36040
          for (long _iter96 : this.categories)
36531
          for (long _iter91 : this.categories)
36041
          {
36532
          {
36042
            oprot.writeI64(_iter96);
36533
            oprot.writeI64(_iter91);
36043
          }
36534
          }
36044
          oprot.writeListEnd();
36535
          oprot.writeListEnd();
36045
        }
36536
        }
36046
        oprot.writeFieldEnd();
36537
        oprot.writeFieldEnd();
36047
      }
36538
      }
Line 36419... Line 36910...
36419
        }
36910
        }
36420
        switch (field.id) {
36911
        switch (field.id) {
36421
          case 0: // SUCCESS
36912
          case 0: // SUCCESS
36422
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36913
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36423
              {
36914
              {
36424
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
36915
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
36425
                this.success = new ArrayList<Long>(_list97.size);
36916
                this.success = new ArrayList<Long>(_list92.size);
36426
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
36917
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
36427
                {
36918
                {
36428
                  long _elem99; // required
36919
                  long _elem94; // required
36429
                  _elem99 = iprot.readI64();
36920
                  _elem94 = iprot.readI64();
36430
                  this.success.add(_elem99);
36921
                  this.success.add(_elem94);
36431
                }
36922
                }
36432
                iprot.readListEnd();
36923
                iprot.readListEnd();
36433
              }
36924
              }
36434
            } else { 
36925
            } else { 
36435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 36457... Line 36948...
36457
 
36948
 
36458
      if (this.isSetSuccess()) {
36949
      if (this.isSetSuccess()) {
36459
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36460
        {
36951
        {
36461
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
36952
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
36462
          for (long _iter100 : this.success)
36953
          for (long _iter95 : this.success)
36463
          {
36954
          {
36464
            oprot.writeI64(_iter100);
36955
            oprot.writeI64(_iter95);
36465
          }
36956
          }
36466
          oprot.writeListEnd();
36957
          oprot.writeListEnd();
36467
        }
36958
        }
36468
        oprot.writeFieldEnd();
36959
        oprot.writeFieldEnd();
36469
      } else if (this.isSetCex()) {
36960
      } else if (this.isSetCex()) {
Line 39976... Line 40467...
39976
        }
40467
        }
39977
        switch (field.id) {
40468
        switch (field.id) {
39978
          case 0: // SUCCESS
40469
          case 0: // SUCCESS
39979
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40470
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39980
              {
40471
              {
39981
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
40472
                org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();
39982
                this.success = new ArrayList<Category>(_list101.size);
40473
                this.success = new ArrayList<Category>(_list96.size);
39983
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
40474
                for (int _i97 = 0; _i97 < _list96.size; ++_i97)
39984
                {
40475
                {
39985
                  Category _elem103; // required
40476
                  Category _elem98; // required
39986
                  _elem103 = new Category();
40477
                  _elem98 = new Category();
39987
                  _elem103.read(iprot);
40478
                  _elem98.read(iprot);
39988
                  this.success.add(_elem103);
40479
                  this.success.add(_elem98);
39989
                }
40480
                }
39990
                iprot.readListEnd();
40481
                iprot.readListEnd();
39991
              }
40482
              }
39992
            } else { 
40483
            } else { 
39993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 40007... Line 40498...
40007
 
40498
 
40008
      if (this.isSetSuccess()) {
40499
      if (this.isSetSuccess()) {
40009
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40500
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40010
        {
40501
        {
40011
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
40502
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
40012
          for (Category _iter104 : this.success)
40503
          for (Category _iter99 : this.success)
40013
          {
40504
          {
40014
            _iter104.write(oprot);
40505
            _iter99.write(oprot);
40015
          }
40506
          }
40016
          oprot.writeListEnd();
40507
          oprot.writeListEnd();
40017
        }
40508
        }
40018
        oprot.writeFieldEnd();
40509
        oprot.writeFieldEnd();
40019
      }
40510
      }
Line 40667... Line 41158...
40667
        }
41158
        }
40668
        switch (field.id) {
41159
        switch (field.id) {
40669
          case 0: // SUCCESS
41160
          case 0: // SUCCESS
40670
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41161
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40671
              {
41162
              {
40672
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
41163
                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
40673
                this.success = new ArrayList<VendorItemPricing>(_list105.size);
41164
                this.success = new ArrayList<VendorItemPricing>(_list100.size);
40674
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
41165
                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
40675
                {
41166
                {
40676
                  VendorItemPricing _elem107; // required
41167
                  VendorItemPricing _elem102; // required
40677
                  _elem107 = new VendorItemPricing();
41168
                  _elem102 = new VendorItemPricing();
40678
                  _elem107.read(iprot);
41169
                  _elem102.read(iprot);
40679
                  this.success.add(_elem107);
41170
                  this.success.add(_elem102);
40680
                }
41171
                }
40681
                iprot.readListEnd();
41172
                iprot.readListEnd();
40682
              }
41173
              }
40683
            } else { 
41174
            } else { 
40684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 40706... Line 41197...
40706
 
41197
 
40707
      if (this.isSetSuccess()) {
41198
      if (this.isSetSuccess()) {
40708
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41199
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40709
        {
41200
        {
40710
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41201
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
40711
          for (VendorItemPricing _iter108 : this.success)
41202
          for (VendorItemPricing _iter103 : this.success)
40712
          {
41203
          {
40713
            _iter108.write(oprot);
41204
            _iter103.write(oprot);
40714
          }
41205
          }
40715
          oprot.writeListEnd();
41206
          oprot.writeListEnd();
40716
        }
41207
        }
40717
        oprot.writeFieldEnd();
41208
        oprot.writeFieldEnd();
40718
      } else if (this.isSetCex()) {
41209
      } else if (this.isSetCex()) {
Line 41807... Line 42298...
41807
        }
42298
        }
41808
        switch (field.id) {
42299
        switch (field.id) {
41809
          case 0: // SUCCESS
42300
          case 0: // SUCCESS
41810
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42301
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41811
              {
42302
              {
41812
                org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
42303
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
41813
                this.success = new ArrayList<Vendor>(_list109.size);
42304
                this.success = new ArrayList<Vendor>(_list104.size);
41814
                for (int _i110 = 0; _i110 < _list109.size; ++_i110)
42305
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
41815
                {
42306
                {
41816
                  Vendor _elem111; // required
42307
                  Vendor _elem106; // required
41817
                  _elem111 = new Vendor();
42308
                  _elem106 = new Vendor();
41818
                  _elem111.read(iprot);
42309
                  _elem106.read(iprot);
41819
                  this.success.add(_elem111);
42310
                  this.success.add(_elem106);
41820
                }
42311
                }
41821
                iprot.readListEnd();
42312
                iprot.readListEnd();
41822
              }
42313
              }
41823
            } else { 
42314
            } else { 
41824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 41838... Line 42329...
41838
 
42329
 
41839
      if (this.isSetSuccess()) {
42330
      if (this.isSetSuccess()) {
41840
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42331
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41841
        {
42332
        {
41842
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
42333
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41843
          for (Vendor _iter112 : this.success)
42334
          for (Vendor _iter107 : this.success)
41844
          {
42335
          {
41845
            _iter112.write(oprot);
42336
            _iter107.write(oprot);
41846
          }
42337
          }
41847
          oprot.writeListEnd();
42338
          oprot.writeListEnd();
41848
        }
42339
        }
41849
        oprot.writeFieldEnd();
42340
        oprot.writeFieldEnd();
41850
      }
42341
      }
Line 41888... Line 42379...
41888
      }
42379
      }
41889
    }
42380
    }
41890
 
42381
 
41891
  }
42382
  }
41892
 
42383
 
41893
  public static class getAllSimilarItems_args implements org.apache.thrift.TBase<getAllSimilarItems_args, getAllSimilarItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
41894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_args");
-
 
41895
 
-
 
41896
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
41897
 
-
 
41898
    private long itemId; // required
-
 
41899
 
-
 
41900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
41901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
41902
      ITEM_ID((short)1, "itemId");
-
 
41903
 
-
 
41904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
41905
 
-
 
41906
      static {
-
 
41907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
41908
          byName.put(field.getFieldName(), field);
-
 
41909
        }
-
 
41910
      }
-
 
41911
 
-
 
41912
      /**
-
 
41913
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
41914
       */
-
 
41915
      public static _Fields findByThriftId(int fieldId) {
-
 
41916
        switch(fieldId) {
-
 
41917
          case 1: // ITEM_ID
-
 
41918
            return ITEM_ID;
-
 
41919
          default:
-
 
41920
            return null;
-
 
41921
        }
-
 
41922
      }
-
 
41923
 
-
 
41924
      /**
-
 
41925
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
41926
       * if it is not found.
-
 
41927
       */
-
 
41928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
41929
        _Fields fields = findByThriftId(fieldId);
-
 
41930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
41931
        return fields;
-
 
41932
      }
-
 
41933
 
-
 
41934
      /**
-
 
41935
       * Find the _Fields constant that matches name, or null if its not found.
-
 
41936
       */
-
 
41937
      public static _Fields findByName(String name) {
-
 
41938
        return byName.get(name);
-
 
41939
      }
-
 
41940
 
-
 
41941
      private final short _thriftId;
-
 
41942
      private final String _fieldName;
-
 
41943
 
-
 
41944
      _Fields(short thriftId, String fieldName) {
-
 
41945
        _thriftId = thriftId;
-
 
41946
        _fieldName = fieldName;
-
 
41947
      }
-
 
41948
 
-
 
41949
      public short getThriftFieldId() {
-
 
41950
        return _thriftId;
-
 
41951
      }
-
 
41952
 
-
 
41953
      public String getFieldName() {
-
 
41954
        return _fieldName;
-
 
41955
      }
-
 
41956
    }
-
 
41957
 
-
 
41958
    // isset id assignments
-
 
41959
    private static final int __ITEMID_ISSET_ID = 0;
-
 
41960
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
41961
 
-
 
41962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
41963
    static {
-
 
41964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
41965
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41966
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
41967
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
41968
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_args.class, metaDataMap);
-
 
41969
    }
-
 
41970
 
-
 
41971
    public getAllSimilarItems_args() {
-
 
41972
    }
-
 
41973
 
-
 
41974
    public getAllSimilarItems_args(
-
 
41975
      long itemId)
-
 
41976
    {
-
 
41977
      this();
-
 
41978
      this.itemId = itemId;
-
 
41979
      setItemIdIsSet(true);
-
 
41980
    }
-
 
41981
 
-
 
41982
    /**
-
 
41983
     * Performs a deep copy on <i>other</i>.
-
 
41984
     */
-
 
41985
    public getAllSimilarItems_args(getAllSimilarItems_args other) {
-
 
41986
      __isset_bit_vector.clear();
-
 
41987
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
41988
      this.itemId = other.itemId;
-
 
41989
    }
-
 
41990
 
-
 
41991
    public getAllSimilarItems_args deepCopy() {
-
 
41992
      return new getAllSimilarItems_args(this);
-
 
41993
    }
-
 
41994
 
-
 
41995
    @Override
-
 
41996
    public void clear() {
-
 
41997
      setItemIdIsSet(false);
-
 
41998
      this.itemId = 0;
-
 
41999
    }
-
 
42000
 
-
 
42001
    public long getItemId() {
-
 
42002
      return this.itemId;
-
 
42003
    }
-
 
42004
 
-
 
42005
    public void setItemId(long itemId) {
-
 
42006
      this.itemId = itemId;
-
 
42007
      setItemIdIsSet(true);
-
 
42008
    }
-
 
42009
 
-
 
42010
    public void unsetItemId() {
-
 
42011
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
42012
    }
-
 
42013
 
-
 
42014
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
42015
    public boolean isSetItemId() {
-
 
42016
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
42017
    }
-
 
42018
 
-
 
42019
    public void setItemIdIsSet(boolean value) {
-
 
42020
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
42021
    }
-
 
42022
 
-
 
42023
    public void setFieldValue(_Fields field, Object value) {
-
 
42024
      switch (field) {
-
 
42025
      case ITEM_ID:
-
 
42026
        if (value == null) {
-
 
42027
          unsetItemId();
-
 
42028
        } else {
-
 
42029
          setItemId((Long)value);
-
 
42030
        }
-
 
42031
        break;
-
 
42032
 
-
 
42033
      }
-
 
42034
    }
-
 
42035
 
-
 
42036
    public Object getFieldValue(_Fields field) {
-
 
42037
      switch (field) {
-
 
42038
      case ITEM_ID:
-
 
42039
        return Long.valueOf(getItemId());
-
 
42040
 
-
 
42041
      }
-
 
42042
      throw new IllegalStateException();
-
 
42043
    }
-
 
42044
 
-
 
42045
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42046
    public boolean isSet(_Fields field) {
-
 
42047
      if (field == null) {
-
 
42048
        throw new IllegalArgumentException();
-
 
42049
      }
-
 
42050
 
-
 
42051
      switch (field) {
-
 
42052
      case ITEM_ID:
-
 
42053
        return isSetItemId();
-
 
42054
      }
-
 
42055
      throw new IllegalStateException();
-
 
42056
    }
-
 
42057
 
-
 
42058
    @Override
-
 
42059
    public boolean equals(Object that) {
-
 
42060
      if (that == null)
-
 
42061
        return false;
-
 
42062
      if (that instanceof getAllSimilarItems_args)
-
 
42063
        return this.equals((getAllSimilarItems_args)that);
-
 
42064
      return false;
-
 
42065
    }
-
 
42066
 
-
 
42067
    public boolean equals(getAllSimilarItems_args that) {
-
 
42068
      if (that == null)
-
 
42069
        return false;
-
 
42070
 
-
 
42071
      boolean this_present_itemId = true;
-
 
42072
      boolean that_present_itemId = true;
-
 
42073
      if (this_present_itemId || that_present_itemId) {
-
 
42074
        if (!(this_present_itemId && that_present_itemId))
-
 
42075
          return false;
-
 
42076
        if (this.itemId != that.itemId)
-
 
42077
          return false;
-
 
42078
      }
-
 
42079
 
-
 
42080
      return true;
-
 
42081
    }
-
 
42082
 
-
 
42083
    @Override
-
 
42084
    public int hashCode() {
-
 
42085
      return 0;
-
 
42086
    }
-
 
42087
 
-
 
42088
    public int compareTo(getAllSimilarItems_args other) {
-
 
42089
      if (!getClass().equals(other.getClass())) {
-
 
42090
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42091
      }
-
 
42092
 
-
 
42093
      int lastComparison = 0;
-
 
42094
      getAllSimilarItems_args typedOther = (getAllSimilarItems_args)other;
-
 
42095
 
-
 
42096
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
42097
      if (lastComparison != 0) {
-
 
42098
        return lastComparison;
-
 
42099
      }
-
 
42100
      if (isSetItemId()) {
-
 
42101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
42102
        if (lastComparison != 0) {
-
 
42103
          return lastComparison;
-
 
42104
        }
-
 
42105
      }
-
 
42106
      return 0;
-
 
42107
    }
-
 
42108
 
-
 
42109
    public _Fields fieldForId(int fieldId) {
-
 
42110
      return _Fields.findByThriftId(fieldId);
-
 
42111
    }
-
 
42112
 
-
 
42113
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42114
      org.apache.thrift.protocol.TField field;
-
 
42115
      iprot.readStructBegin();
-
 
42116
      while (true)
-
 
42117
      {
-
 
42118
        field = iprot.readFieldBegin();
-
 
42119
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42120
          break;
-
 
42121
        }
-
 
42122
        switch (field.id) {
-
 
42123
          case 1: // ITEM_ID
-
 
42124
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42125
              this.itemId = iprot.readI64();
-
 
42126
              setItemIdIsSet(true);
-
 
42127
            } else { 
-
 
42128
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42129
            }
-
 
42130
            break;
-
 
42131
          default:
-
 
42132
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42133
        }
-
 
42134
        iprot.readFieldEnd();
-
 
42135
      }
-
 
42136
      iprot.readStructEnd();
-
 
42137
      validate();
-
 
42138
    }
-
 
42139
 
-
 
42140
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42141
      validate();
-
 
42142
 
-
 
42143
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42144
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
42145
      oprot.writeI64(this.itemId);
-
 
42146
      oprot.writeFieldEnd();
-
 
42147
      oprot.writeFieldStop();
-
 
42148
      oprot.writeStructEnd();
-
 
42149
    }
-
 
42150
 
-
 
42151
    @Override
-
 
42152
    public String toString() {
-
 
42153
      StringBuilder sb = new StringBuilder("getAllSimilarItems_args(");
-
 
42154
      boolean first = true;
-
 
42155
 
-
 
42156
      sb.append("itemId:");
-
 
42157
      sb.append(this.itemId);
-
 
42158
      first = false;
-
 
42159
      sb.append(")");
-
 
42160
      return sb.toString();
-
 
42161
    }
-
 
42162
 
-
 
42163
    public void validate() throws org.apache.thrift.TException {
-
 
42164
      // check for required fields
-
 
42165
    }
-
 
42166
 
-
 
42167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
42168
      try {
-
 
42169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
42170
      } catch (org.apache.thrift.TException te) {
-
 
42171
        throw new java.io.IOException(te);
-
 
42172
      }
-
 
42173
    }
-
 
42174
 
-
 
42175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
42176
      try {
-
 
42177
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
42178
        __isset_bit_vector = new BitSet(1);
-
 
42179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
42180
      } catch (org.apache.thrift.TException te) {
-
 
42181
        throw new java.io.IOException(te);
-
 
42182
      }
-
 
42183
    }
-
 
42184
 
-
 
42185
  }
-
 
42186
 
-
 
42187
  public static class getAllSimilarItems_result implements org.apache.thrift.TBase<getAllSimilarItems_result, getAllSimilarItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
42188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_result");
-
 
42189
 
-
 
42190
    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);
-
 
42191
 
-
 
42192
    private List<Item> success; // required
-
 
42193
 
-
 
42194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
42195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
42196
      SUCCESS((short)0, "success");
-
 
42197
 
-
 
42198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
42199
 
-
 
42200
      static {
-
 
42201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
42202
          byName.put(field.getFieldName(), field);
-
 
42203
        }
-
 
42204
      }
-
 
42205
 
-
 
42206
      /**
-
 
42207
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42208
       */
-
 
42209
      public static _Fields findByThriftId(int fieldId) {
-
 
42210
        switch(fieldId) {
-
 
42211
          case 0: // SUCCESS
-
 
42212
            return SUCCESS;
-
 
42213
          default:
-
 
42214
            return null;
-
 
42215
        }
-
 
42216
      }
-
 
42217
 
-
 
42218
      /**
-
 
42219
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42220
       * if it is not found.
-
 
42221
       */
-
 
42222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42223
        _Fields fields = findByThriftId(fieldId);
-
 
42224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42225
        return fields;
-
 
42226
      }
-
 
42227
 
-
 
42228
      /**
-
 
42229
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42230
       */
-
 
42231
      public static _Fields findByName(String name) {
-
 
42232
        return byName.get(name);
-
 
42233
      }
-
 
42234
 
-
 
42235
      private final short _thriftId;
-
 
42236
      private final String _fieldName;
-
 
42237
 
-
 
42238
      _Fields(short thriftId, String fieldName) {
-
 
42239
        _thriftId = thriftId;
-
 
42240
        _fieldName = fieldName;
-
 
42241
      }
-
 
42242
 
-
 
42243
      public short getThriftFieldId() {
-
 
42244
        return _thriftId;
-
 
42245
      }
-
 
42246
 
-
 
42247
      public String getFieldName() {
-
 
42248
        return _fieldName;
-
 
42249
      }
-
 
42250
    }
-
 
42251
 
-
 
42252
    // isset id assignments
-
 
42253
 
-
 
42254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42255
    static {
-
 
42256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42257
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42258
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
42259
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
-
 
42260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_result.class, metaDataMap);
-
 
42262
    }
-
 
42263
 
-
 
42264
    public getAllSimilarItems_result() {
-
 
42265
    }
-
 
42266
 
-
 
42267
    public getAllSimilarItems_result(
-
 
42268
      List<Item> success)
-
 
42269
    {
-
 
42270
      this();
-
 
42271
      this.success = success;
-
 
42272
    }
-
 
42273
 
-
 
42274
    /**
-
 
42275
     * Performs a deep copy on <i>other</i>.
-
 
42276
     */
-
 
42277
    public getAllSimilarItems_result(getAllSimilarItems_result other) {
-
 
42278
      if (other.isSetSuccess()) {
-
 
42279
        List<Item> __this__success = new ArrayList<Item>();
-
 
42280
        for (Item other_element : other.success) {
-
 
42281
          __this__success.add(new Item(other_element));
-
 
42282
        }
-
 
42283
        this.success = __this__success;
-
 
42284
      }
-
 
42285
    }
-
 
42286
 
-
 
42287
    public getAllSimilarItems_result deepCopy() {
-
 
42288
      return new getAllSimilarItems_result(this);
-
 
42289
    }
-
 
42290
 
-
 
42291
    @Override
-
 
42292
    public void clear() {
-
 
42293
      this.success = null;
-
 
42294
    }
-
 
42295
 
-
 
42296
    public int getSuccessSize() {
-
 
42297
      return (this.success == null) ? 0 : this.success.size();
-
 
42298
    }
-
 
42299
 
-
 
42300
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
42301
      return (this.success == null) ? null : this.success.iterator();
-
 
42302
    }
-
 
42303
 
-
 
42304
    public void addToSuccess(Item elem) {
-
 
42305
      if (this.success == null) {
-
 
42306
        this.success = new ArrayList<Item>();
-
 
42307
      }
-
 
42308
      this.success.add(elem);
-
 
42309
    }
-
 
42310
 
-
 
42311
    public List<Item> getSuccess() {
-
 
42312
      return this.success;
-
 
42313
    }
-
 
42314
 
-
 
42315
    public void setSuccess(List<Item> success) {
-
 
42316
      this.success = success;
-
 
42317
    }
-
 
42318
 
-
 
42319
    public void unsetSuccess() {
-
 
42320
      this.success = null;
-
 
42321
    }
-
 
42322
 
-
 
42323
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
42324
    public boolean isSetSuccess() {
-
 
42325
      return this.success != null;
-
 
42326
    }
-
 
42327
 
-
 
42328
    public void setSuccessIsSet(boolean value) {
-
 
42329
      if (!value) {
-
 
42330
        this.success = null;
-
 
42331
      }
-
 
42332
    }
-
 
42333
 
-
 
42334
    public void setFieldValue(_Fields field, Object value) {
-
 
42335
      switch (field) {
-
 
42336
      case SUCCESS:
-
 
42337
        if (value == null) {
-
 
42338
          unsetSuccess();
-
 
42339
        } else {
-
 
42340
          setSuccess((List<Item>)value);
-
 
42341
        }
-
 
42342
        break;
-
 
42343
 
-
 
42344
      }
-
 
42345
    }
-
 
42346
 
-
 
42347
    public Object getFieldValue(_Fields field) {
-
 
42348
      switch (field) {
-
 
42349
      case SUCCESS:
-
 
42350
        return getSuccess();
-
 
42351
 
-
 
42352
      }
-
 
42353
      throw new IllegalStateException();
-
 
42354
    }
-
 
42355
 
-
 
42356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42357
    public boolean isSet(_Fields field) {
-
 
42358
      if (field == null) {
-
 
42359
        throw new IllegalArgumentException();
-
 
42360
      }
-
 
42361
 
-
 
42362
      switch (field) {
-
 
42363
      case SUCCESS:
-
 
42364
        return isSetSuccess();
-
 
42365
      }
-
 
42366
      throw new IllegalStateException();
-
 
42367
    }
-
 
42368
 
-
 
42369
    @Override
-
 
42370
    public boolean equals(Object that) {
-
 
42371
      if (that == null)
-
 
42372
        return false;
-
 
42373
      if (that instanceof getAllSimilarItems_result)
-
 
42374
        return this.equals((getAllSimilarItems_result)that);
-
 
42375
      return false;
-
 
42376
    }
-
 
42377
 
-
 
42378
    public boolean equals(getAllSimilarItems_result that) {
-
 
42379
      if (that == null)
-
 
42380
        return false;
-
 
42381
 
-
 
42382
      boolean this_present_success = true && this.isSetSuccess();
-
 
42383
      boolean that_present_success = true && that.isSetSuccess();
-
 
42384
      if (this_present_success || that_present_success) {
-
 
42385
        if (!(this_present_success && that_present_success))
-
 
42386
          return false;
-
 
42387
        if (!this.success.equals(that.success))
-
 
42388
          return false;
-
 
42389
      }
-
 
42390
 
-
 
42391
      return true;
-
 
42392
    }
-
 
42393
 
-
 
42394
    @Override
-
 
42395
    public int hashCode() {
-
 
42396
      return 0;
-
 
42397
    }
-
 
42398
 
-
 
42399
    public int compareTo(getAllSimilarItems_result other) {
-
 
42400
      if (!getClass().equals(other.getClass())) {
-
 
42401
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42402
      }
-
 
42403
 
-
 
42404
      int lastComparison = 0;
-
 
42405
      getAllSimilarItems_result typedOther = (getAllSimilarItems_result)other;
-
 
42406
 
-
 
42407
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
42408
      if (lastComparison != 0) {
-
 
42409
        return lastComparison;
-
 
42410
      }
-
 
42411
      if (isSetSuccess()) {
-
 
42412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
42413
        if (lastComparison != 0) {
-
 
42414
          return lastComparison;
-
 
42415
        }
-
 
42416
      }
-
 
42417
      return 0;
-
 
42418
    }
-
 
42419
 
-
 
42420
    public _Fields fieldForId(int fieldId) {
-
 
42421
      return _Fields.findByThriftId(fieldId);
-
 
42422
    }
-
 
42423
 
-
 
42424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42425
      org.apache.thrift.protocol.TField field;
-
 
42426
      iprot.readStructBegin();
-
 
42427
      while (true)
-
 
42428
      {
-
 
42429
        field = iprot.readFieldBegin();
-
 
42430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42431
          break;
-
 
42432
        }
-
 
42433
        switch (field.id) {
-
 
42434
          case 0: // SUCCESS
-
 
42435
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
42436
              {
-
 
42437
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
-
 
42438
                this.success = new ArrayList<Item>(_list113.size);
-
 
42439
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
-
 
42440
                {
-
 
42441
                  Item _elem115; // required
-
 
42442
                  _elem115 = new Item();
-
 
42443
                  _elem115.read(iprot);
-
 
42444
                  this.success.add(_elem115);
-
 
42445
                }
-
 
42446
                iprot.readListEnd();
-
 
42447
              }
-
 
42448
            } else { 
-
 
42449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42450
            }
-
 
42451
            break;
-
 
42452
          default:
-
 
42453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42454
        }
-
 
42455
        iprot.readFieldEnd();
-
 
42456
      }
-
 
42457
      iprot.readStructEnd();
-
 
42458
      validate();
-
 
42459
    }
-
 
42460
 
-
 
42461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42462
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42463
 
-
 
42464
      if (this.isSetSuccess()) {
-
 
42465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
42466
        {
-
 
42467
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
42468
          for (Item _iter116 : this.success)
-
 
42469
          {
-
 
42470
            _iter116.write(oprot);
-
 
42471
          }
-
 
42472
          oprot.writeListEnd();
-
 
42473
        }
-
 
42474
        oprot.writeFieldEnd();
-
 
42475
      }
-
 
42476
      oprot.writeFieldStop();
-
 
42477
      oprot.writeStructEnd();
-
 
42478
    }
-
 
42479
 
-
 
42480
    @Override
-
 
42481
    public String toString() {
-
 
42482
      StringBuilder sb = new StringBuilder("getAllSimilarItems_result(");
-
 
42483
      boolean first = true;
-
 
42484
 
-
 
42485
      sb.append("success:");
-
 
42486
      if (this.success == null) {
-
 
42487
        sb.append("null");
-
 
42488
      } else {
-
 
42489
        sb.append(this.success);
-
 
42490
      }
-
 
42491
      first = false;
-
 
42492
      sb.append(")");
-
 
42493
      return sb.toString();
-
 
42494
    }
-
 
42495
 
-
 
42496
    public void validate() throws org.apache.thrift.TException {
-
 
42497
      // check for required fields
-
 
42498
    }
-
 
42499
 
-
 
42500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
42501
      try {
-
 
42502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
42503
      } catch (org.apache.thrift.TException te) {
-
 
42504
        throw new java.io.IOException(te);
-
 
42505
      }
-
 
42506
    }
-
 
42507
 
-
 
42508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
42509
      try {
-
 
42510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
42511
      } catch (org.apache.thrift.TException te) {
-
 
42512
        throw new java.io.IOException(te);
-
 
42513
      }
-
 
42514
    }
-
 
42515
 
-
 
42516
  }
-
 
42517
 
-
 
42518
  public static class addSimilarItem_args implements org.apache.thrift.TBase<addSimilarItem_args, addSimilarItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
42519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_args");
-
 
42520
 
-
 
42521
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
42522
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
42523
 
-
 
42524
    private long itemId; // required
-
 
42525
    private long catalogItemId; // required
-
 
42526
 
-
 
42527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
42528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
42529
      ITEM_ID((short)1, "itemId"),
-
 
42530
      CATALOG_ITEM_ID((short)2, "catalogItemId");
-
 
42531
 
-
 
42532
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
42533
 
-
 
42534
      static {
-
 
42535
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
42536
          byName.put(field.getFieldName(), field);
-
 
42537
        }
-
 
42538
      }
-
 
42539
 
-
 
42540
      /**
-
 
42541
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42542
       */
-
 
42543
      public static _Fields findByThriftId(int fieldId) {
-
 
42544
        switch(fieldId) {
-
 
42545
          case 1: // ITEM_ID
-
 
42546
            return ITEM_ID;
-
 
42547
          case 2: // CATALOG_ITEM_ID
-
 
42548
            return CATALOG_ITEM_ID;
-
 
42549
          default:
-
 
42550
            return null;
-
 
42551
        }
-
 
42552
      }
-
 
42553
 
-
 
42554
      /**
-
 
42555
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42556
       * if it is not found.
-
 
42557
       */
-
 
42558
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42559
        _Fields fields = findByThriftId(fieldId);
-
 
42560
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42561
        return fields;
-
 
42562
      }
-
 
42563
 
-
 
42564
      /**
-
 
42565
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42566
       */
-
 
42567
      public static _Fields findByName(String name) {
-
 
42568
        return byName.get(name);
-
 
42569
      }
-
 
42570
 
-
 
42571
      private final short _thriftId;
-
 
42572
      private final String _fieldName;
-
 
42573
 
-
 
42574
      _Fields(short thriftId, String fieldName) {
-
 
42575
        _thriftId = thriftId;
-
 
42576
        _fieldName = fieldName;
-
 
42577
      }
-
 
42578
 
-
 
42579
      public short getThriftFieldId() {
-
 
42580
        return _thriftId;
-
 
42581
      }
-
 
42582
 
-
 
42583
      public String getFieldName() {
-
 
42584
        return _fieldName;
-
 
42585
      }
-
 
42586
    }
-
 
42587
 
-
 
42588
    // isset id assignments
-
 
42589
    private static final int __ITEMID_ISSET_ID = 0;
-
 
42590
    private static final int __CATALOGITEMID_ISSET_ID = 1;
-
 
42591
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
42592
 
-
 
42593
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42594
    static {
-
 
42595
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42596
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42597
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42598
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42600
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42601
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_args.class, metaDataMap);
-
 
42602
    }
-
 
42603
 
-
 
42604
    public addSimilarItem_args() {
-
 
42605
    }
-
 
42606
 
-
 
42607
    public addSimilarItem_args(
-
 
42608
      long itemId,
-
 
42609
      long catalogItemId)
-
 
42610
    {
-
 
42611
      this();
-
 
42612
      this.itemId = itemId;
-
 
42613
      setItemIdIsSet(true);
-
 
42614
      this.catalogItemId = catalogItemId;
-
 
42615
      setCatalogItemIdIsSet(true);
-
 
42616
    }
-
 
42617
 
-
 
42618
    /**
-
 
42619
     * Performs a deep copy on <i>other</i>.
-
 
42620
     */
-
 
42621
    public addSimilarItem_args(addSimilarItem_args other) {
-
 
42622
      __isset_bit_vector.clear();
-
 
42623
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
42624
      this.itemId = other.itemId;
-
 
42625
      this.catalogItemId = other.catalogItemId;
-
 
42626
    }
-
 
42627
 
-
 
42628
    public addSimilarItem_args deepCopy() {
-
 
42629
      return new addSimilarItem_args(this);
-
 
42630
    }
-
 
42631
 
-
 
42632
    @Override
-
 
42633
    public void clear() {
-
 
42634
      setItemIdIsSet(false);
-
 
42635
      this.itemId = 0;
-
 
42636
      setCatalogItemIdIsSet(false);
-
 
42637
      this.catalogItemId = 0;
-
 
42638
    }
-
 
42639
 
-
 
42640
    public long getItemId() {
-
 
42641
      return this.itemId;
-
 
42642
    }
-
 
42643
 
-
 
42644
    public void setItemId(long itemId) {
-
 
42645
      this.itemId = itemId;
-
 
42646
      setItemIdIsSet(true);
-
 
42647
    }
-
 
42648
 
-
 
42649
    public void unsetItemId() {
-
 
42650
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
42651
    }
-
 
42652
 
-
 
42653
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
42654
    public boolean isSetItemId() {
-
 
42655
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
42656
    }
-
 
42657
 
-
 
42658
    public void setItemIdIsSet(boolean value) {
-
 
42659
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
42660
    }
-
 
42661
 
-
 
42662
    public long getCatalogItemId() {
-
 
42663
      return this.catalogItemId;
-
 
42664
    }
-
 
42665
 
-
 
42666
    public void setCatalogItemId(long catalogItemId) {
-
 
42667
      this.catalogItemId = catalogItemId;
-
 
42668
      setCatalogItemIdIsSet(true);
-
 
42669
    }
-
 
42670
 
-
 
42671
    public void unsetCatalogItemId() {
-
 
42672
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
-
 
42673
    }
-
 
42674
 
-
 
42675
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
-
 
42676
    public boolean isSetCatalogItemId() {
-
 
42677
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
-
 
42678
    }
-
 
42679
 
-
 
42680
    public void setCatalogItemIdIsSet(boolean value) {
-
 
42681
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
-
 
42682
    }
-
 
42683
 
-
 
42684
    public void setFieldValue(_Fields field, Object value) {
-
 
42685
      switch (field) {
-
 
42686
      case ITEM_ID:
-
 
42687
        if (value == null) {
-
 
42688
          unsetItemId();
-
 
42689
        } else {
-
 
42690
          setItemId((Long)value);
-
 
42691
        }
-
 
42692
        break;
-
 
42693
 
-
 
42694
      case CATALOG_ITEM_ID:
-
 
42695
        if (value == null) {
-
 
42696
          unsetCatalogItemId();
-
 
42697
        } else {
-
 
42698
          setCatalogItemId((Long)value);
-
 
42699
        }
-
 
42700
        break;
-
 
42701
 
-
 
42702
      }
-
 
42703
    }
-
 
42704
 
-
 
42705
    public Object getFieldValue(_Fields field) {
-
 
42706
      switch (field) {
-
 
42707
      case ITEM_ID:
-
 
42708
        return Long.valueOf(getItemId());
-
 
42709
 
-
 
42710
      case CATALOG_ITEM_ID:
-
 
42711
        return Long.valueOf(getCatalogItemId());
-
 
42712
 
-
 
42713
      }
-
 
42714
      throw new IllegalStateException();
-
 
42715
    }
-
 
42716
 
-
 
42717
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42718
    public boolean isSet(_Fields field) {
-
 
42719
      if (field == null) {
-
 
42720
        throw new IllegalArgumentException();
-
 
42721
      }
-
 
42722
 
-
 
42723
      switch (field) {
-
 
42724
      case ITEM_ID:
-
 
42725
        return isSetItemId();
-
 
42726
      case CATALOG_ITEM_ID:
-
 
42727
        return isSetCatalogItemId();
-
 
42728
      }
-
 
42729
      throw new IllegalStateException();
-
 
42730
    }
-
 
42731
 
-
 
42732
    @Override
-
 
42733
    public boolean equals(Object that) {
-
 
42734
      if (that == null)
-
 
42735
        return false;
-
 
42736
      if (that instanceof addSimilarItem_args)
-
 
42737
        return this.equals((addSimilarItem_args)that);
-
 
42738
      return false;
-
 
42739
    }
-
 
42740
 
-
 
42741
    public boolean equals(addSimilarItem_args that) {
-
 
42742
      if (that == null)
-
 
42743
        return false;
-
 
42744
 
-
 
42745
      boolean this_present_itemId = true;
-
 
42746
      boolean that_present_itemId = true;
-
 
42747
      if (this_present_itemId || that_present_itemId) {
-
 
42748
        if (!(this_present_itemId && that_present_itemId))
-
 
42749
          return false;
-
 
42750
        if (this.itemId != that.itemId)
-
 
42751
          return false;
-
 
42752
      }
-
 
42753
 
-
 
42754
      boolean this_present_catalogItemId = true;
-
 
42755
      boolean that_present_catalogItemId = true;
-
 
42756
      if (this_present_catalogItemId || that_present_catalogItemId) {
-
 
42757
        if (!(this_present_catalogItemId && that_present_catalogItemId))
-
 
42758
          return false;
-
 
42759
        if (this.catalogItemId != that.catalogItemId)
-
 
42760
          return false;
-
 
42761
      }
-
 
42762
 
-
 
42763
      return true;
-
 
42764
    }
-
 
42765
 
-
 
42766
    @Override
-
 
42767
    public int hashCode() {
-
 
42768
      return 0;
-
 
42769
    }
-
 
42770
 
-
 
42771
    public int compareTo(addSimilarItem_args other) {
-
 
42772
      if (!getClass().equals(other.getClass())) {
-
 
42773
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42774
      }
-
 
42775
 
-
 
42776
      int lastComparison = 0;
-
 
42777
      addSimilarItem_args typedOther = (addSimilarItem_args)other;
-
 
42778
 
-
 
42779
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
42780
      if (lastComparison != 0) {
-
 
42781
        return lastComparison;
-
 
42782
      }
-
 
42783
      if (isSetItemId()) {
-
 
42784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
42785
        if (lastComparison != 0) {
-
 
42786
          return lastComparison;
-
 
42787
        }
-
 
42788
      }
-
 
42789
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
-
 
42790
      if (lastComparison != 0) {
-
 
42791
        return lastComparison;
-
 
42792
      }
-
 
42793
      if (isSetCatalogItemId()) {
-
 
42794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
-
 
42795
        if (lastComparison != 0) {
-
 
42796
          return lastComparison;
-
 
42797
        }
-
 
42798
      }
-
 
42799
      return 0;
-
 
42800
    }
-
 
42801
 
-
 
42802
    public _Fields fieldForId(int fieldId) {
-
 
42803
      return _Fields.findByThriftId(fieldId);
-
 
42804
    }
-
 
42805
 
-
 
42806
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42807
      org.apache.thrift.protocol.TField field;
-
 
42808
      iprot.readStructBegin();
-
 
42809
      while (true)
-
 
42810
      {
-
 
42811
        field = iprot.readFieldBegin();
-
 
42812
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42813
          break;
-
 
42814
        }
-
 
42815
        switch (field.id) {
-
 
42816
          case 1: // ITEM_ID
-
 
42817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42818
              this.itemId = iprot.readI64();
-
 
42819
              setItemIdIsSet(true);
-
 
42820
            } else { 
-
 
42821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42822
            }
-
 
42823
            break;
-
 
42824
          case 2: // CATALOG_ITEM_ID
-
 
42825
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42826
              this.catalogItemId = iprot.readI64();
-
 
42827
              setCatalogItemIdIsSet(true);
-
 
42828
            } else { 
-
 
42829
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42830
            }
-
 
42831
            break;
-
 
42832
          default:
-
 
42833
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42834
        }
-
 
42835
        iprot.readFieldEnd();
-
 
42836
      }
-
 
42837
      iprot.readStructEnd();
-
 
42838
      validate();
-
 
42839
    }
-
 
42840
 
-
 
42841
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42842
      validate();
-
 
42843
 
-
 
42844
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42845
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
42846
      oprot.writeI64(this.itemId);
-
 
42847
      oprot.writeFieldEnd();
-
 
42848
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
-
 
42849
      oprot.writeI64(this.catalogItemId);
-
 
42850
      oprot.writeFieldEnd();
-
 
42851
      oprot.writeFieldStop();
-
 
42852
      oprot.writeStructEnd();
-
 
42853
    }
-
 
42854
 
-
 
42855
    @Override
-
 
42856
    public String toString() {
-
 
42857
      StringBuilder sb = new StringBuilder("addSimilarItem_args(");
-
 
42858
      boolean first = true;
-
 
42859
 
-
 
42860
      sb.append("itemId:");
-
 
42861
      sb.append(this.itemId);
-
 
42862
      first = false;
-
 
42863
      if (!first) sb.append(", ");
-
 
42864
      sb.append("catalogItemId:");
-
 
42865
      sb.append(this.catalogItemId);
-
 
42866
      first = false;
-
 
42867
      sb.append(")");
-
 
42868
      return sb.toString();
-
 
42869
    }
-
 
42870
 
-
 
42871
    public void validate() throws org.apache.thrift.TException {
-
 
42872
      // check for required fields
-
 
42873
    }
-
 
42874
 
-
 
42875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
42876
      try {
-
 
42877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
42878
      } catch (org.apache.thrift.TException te) {
-
 
42879
        throw new java.io.IOException(te);
-
 
42880
      }
-
 
42881
    }
-
 
42882
 
-
 
42883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
42884
      try {
-
 
42885
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
42886
        __isset_bit_vector = new BitSet(1);
-
 
42887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
42888
      } catch (org.apache.thrift.TException te) {
-
 
42889
        throw new java.io.IOException(te);
-
 
42890
      }
-
 
42891
    }
-
 
42892
 
-
 
42893
  }
-
 
42894
 
-
 
42895
  public static class addSimilarItem_result implements org.apache.thrift.TBase<addSimilarItem_result, addSimilarItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
42896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_result");
-
 
42897
 
-
 
42898
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
42899
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
42900
 
-
 
42901
    private Item success; // required
-
 
42902
    private InventoryServiceException cex; // required
-
 
42903
 
-
 
42904
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
42905
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
42906
      SUCCESS((short)0, "success"),
-
 
42907
      CEX((short)1, "cex");
-
 
42908
 
-
 
42909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
42910
 
-
 
42911
      static {
-
 
42912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
42913
          byName.put(field.getFieldName(), field);
-
 
42914
        }
-
 
42915
      }
-
 
42916
 
-
 
42917
      /**
-
 
42918
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42919
       */
-
 
42920
      public static _Fields findByThriftId(int fieldId) {
-
 
42921
        switch(fieldId) {
-
 
42922
          case 0: // SUCCESS
-
 
42923
            return SUCCESS;
-
 
42924
          case 1: // CEX
-
 
42925
            return CEX;
-
 
42926
          default:
-
 
42927
            return null;
-
 
42928
        }
-
 
42929
      }
-
 
42930
 
-
 
42931
      /**
-
 
42932
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42933
       * if it is not found.
-
 
42934
       */
-
 
42935
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42936
        _Fields fields = findByThriftId(fieldId);
-
 
42937
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42938
        return fields;
-
 
42939
      }
-
 
42940
 
-
 
42941
      /**
-
 
42942
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42943
       */
-
 
42944
      public static _Fields findByName(String name) {
-
 
42945
        return byName.get(name);
-
 
42946
      }
-
 
42947
 
-
 
42948
      private final short _thriftId;
-
 
42949
      private final String _fieldName;
-
 
42950
 
-
 
42951
      _Fields(short thriftId, String fieldName) {
-
 
42952
        _thriftId = thriftId;
-
 
42953
        _fieldName = fieldName;
-
 
42954
      }
-
 
42955
 
-
 
42956
      public short getThriftFieldId() {
-
 
42957
        return _thriftId;
-
 
42958
      }
-
 
42959
 
-
 
42960
      public String getFieldName() {
-
 
42961
        return _fieldName;
-
 
42962
      }
-
 
42963
    }
-
 
42964
 
-
 
42965
    // isset id assignments
-
 
42966
 
-
 
42967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42968
    static {
-
 
42969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42970
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42971
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
-
 
42972
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42973
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
42974
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42975
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_result.class, metaDataMap);
-
 
42976
    }
-
 
42977
 
-
 
42978
    public addSimilarItem_result() {
-
 
42979
    }
-
 
42980
 
-
 
42981
    public addSimilarItem_result(
-
 
42982
      Item success,
-
 
42983
      InventoryServiceException cex)
-
 
42984
    {
-
 
42985
      this();
-
 
42986
      this.success = success;
-
 
42987
      this.cex = cex;
-
 
42988
    }
-
 
42989
 
-
 
42990
    /**
-
 
42991
     * Performs a deep copy on <i>other</i>.
-
 
42992
     */
-
 
42993
    public addSimilarItem_result(addSimilarItem_result other) {
-
 
42994
      if (other.isSetSuccess()) {
-
 
42995
        this.success = new Item(other.success);
-
 
42996
      }
-
 
42997
      if (other.isSetCex()) {
-
 
42998
        this.cex = new InventoryServiceException(other.cex);
-
 
42999
      }
-
 
43000
    }
-
 
43001
 
-
 
43002
    public addSimilarItem_result deepCopy() {
-
 
43003
      return new addSimilarItem_result(this);
-
 
43004
    }
-
 
43005
 
-
 
43006
    @Override
-
 
43007
    public void clear() {
-
 
43008
      this.success = null;
-
 
43009
      this.cex = null;
-
 
43010
    }
-
 
43011
 
-
 
43012
    public Item getSuccess() {
-
 
43013
      return this.success;
-
 
43014
    }
-
 
43015
 
-
 
43016
    public void setSuccess(Item success) {
-
 
43017
      this.success = success;
-
 
43018
    }
-
 
43019
 
-
 
43020
    public void unsetSuccess() {
-
 
43021
      this.success = null;
-
 
43022
    }
-
 
43023
 
-
 
43024
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
43025
    public boolean isSetSuccess() {
-
 
43026
      return this.success != null;
-
 
43027
    }
-
 
43028
 
-
 
43029
    public void setSuccessIsSet(boolean value) {
-
 
43030
      if (!value) {
-
 
43031
        this.success = null;
-
 
43032
      }
-
 
43033
    }
-
 
43034
 
-
 
43035
    public InventoryServiceException getCex() {
-
 
43036
      return this.cex;
-
 
43037
    }
-
 
43038
 
-
 
43039
    public void setCex(InventoryServiceException cex) {
-
 
43040
      this.cex = cex;
-
 
43041
    }
-
 
43042
 
-
 
43043
    public void unsetCex() {
-
 
43044
      this.cex = null;
-
 
43045
    }
-
 
43046
 
-
 
43047
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
43048
    public boolean isSetCex() {
-
 
43049
      return this.cex != null;
-
 
43050
    }
-
 
43051
 
-
 
43052
    public void setCexIsSet(boolean value) {
-
 
43053
      if (!value) {
-
 
43054
        this.cex = null;
-
 
43055
      }
-
 
43056
    }
-
 
43057
 
-
 
43058
    public void setFieldValue(_Fields field, Object value) {
-
 
43059
      switch (field) {
-
 
43060
      case SUCCESS:
-
 
43061
        if (value == null) {
-
 
43062
          unsetSuccess();
-
 
43063
        } else {
-
 
43064
          setSuccess((Item)value);
-
 
43065
        }
-
 
43066
        break;
-
 
43067
 
-
 
43068
      case CEX:
-
 
43069
        if (value == null) {
-
 
43070
          unsetCex();
-
 
43071
        } else {
-
 
43072
          setCex((InventoryServiceException)value);
-
 
43073
        }
-
 
43074
        break;
-
 
43075
 
-
 
43076
      }
-
 
43077
    }
-
 
43078
 
-
 
43079
    public Object getFieldValue(_Fields field) {
-
 
43080
      switch (field) {
-
 
43081
      case SUCCESS:
-
 
43082
        return getSuccess();
-
 
43083
 
-
 
43084
      case CEX:
-
 
43085
        return getCex();
-
 
43086
 
-
 
43087
      }
-
 
43088
      throw new IllegalStateException();
-
 
43089
    }
-
 
43090
 
-
 
43091
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
43092
    public boolean isSet(_Fields field) {
-
 
43093
      if (field == null) {
-
 
43094
        throw new IllegalArgumentException();
-
 
43095
      }
-
 
43096
 
-
 
43097
      switch (field) {
-
 
43098
      case SUCCESS:
-
 
43099
        return isSetSuccess();
-
 
43100
      case CEX:
-
 
43101
        return isSetCex();
-
 
43102
      }
-
 
43103
      throw new IllegalStateException();
-
 
43104
    }
-
 
43105
 
-
 
43106
    @Override
-
 
43107
    public boolean equals(Object that) {
-
 
43108
      if (that == null)
-
 
43109
        return false;
-
 
43110
      if (that instanceof addSimilarItem_result)
-
 
43111
        return this.equals((addSimilarItem_result)that);
-
 
43112
      return false;
-
 
43113
    }
-
 
43114
 
-
 
43115
    public boolean equals(addSimilarItem_result that) {
-
 
43116
      if (that == null)
-
 
43117
        return false;
-
 
43118
 
-
 
43119
      boolean this_present_success = true && this.isSetSuccess();
-
 
43120
      boolean that_present_success = true && that.isSetSuccess();
-
 
43121
      if (this_present_success || that_present_success) {
-
 
43122
        if (!(this_present_success && that_present_success))
-
 
43123
          return false;
-
 
43124
        if (!this.success.equals(that.success))
-
 
43125
          return false;
-
 
43126
      }
-
 
43127
 
-
 
43128
      boolean this_present_cex = true && this.isSetCex();
-
 
43129
      boolean that_present_cex = true && that.isSetCex();
-
 
43130
      if (this_present_cex || that_present_cex) {
-
 
43131
        if (!(this_present_cex && that_present_cex))
-
 
43132
          return false;
-
 
43133
        if (!this.cex.equals(that.cex))
-
 
43134
          return false;
-
 
43135
      }
-
 
43136
 
-
 
43137
      return true;
-
 
43138
    }
-
 
43139
 
-
 
43140
    @Override
-
 
43141
    public int hashCode() {
-
 
43142
      return 0;
-
 
43143
    }
-
 
43144
 
-
 
43145
    public int compareTo(addSimilarItem_result other) {
-
 
43146
      if (!getClass().equals(other.getClass())) {
-
 
43147
        return getClass().getName().compareTo(other.getClass().getName());
-
 
43148
      }
-
 
43149
 
-
 
43150
      int lastComparison = 0;
-
 
43151
      addSimilarItem_result typedOther = (addSimilarItem_result)other;
-
 
43152
 
-
 
43153
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
43154
      if (lastComparison != 0) {
-
 
43155
        return lastComparison;
-
 
43156
      }
-
 
43157
      if (isSetSuccess()) {
-
 
43158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
43159
        if (lastComparison != 0) {
-
 
43160
          return lastComparison;
-
 
43161
        }
-
 
43162
      }
-
 
43163
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
43164
      if (lastComparison != 0) {
-
 
43165
        return lastComparison;
-
 
43166
      }
-
 
43167
      if (isSetCex()) {
-
 
43168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
43169
        if (lastComparison != 0) {
-
 
43170
          return lastComparison;
-
 
43171
        }
-
 
43172
      }
-
 
43173
      return 0;
-
 
43174
    }
-
 
43175
 
-
 
43176
    public _Fields fieldForId(int fieldId) {
-
 
43177
      return _Fields.findByThriftId(fieldId);
-
 
43178
    }
-
 
43179
 
-
 
43180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
43181
      org.apache.thrift.protocol.TField field;
-
 
43182
      iprot.readStructBegin();
-
 
43183
      while (true)
-
 
43184
      {
-
 
43185
        field = iprot.readFieldBegin();
-
 
43186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
43187
          break;
-
 
43188
        }
-
 
43189
        switch (field.id) {
-
 
43190
          case 0: // SUCCESS
-
 
43191
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
43192
              this.success = new Item();
-
 
43193
              this.success.read(iprot);
-
 
43194
            } else { 
-
 
43195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43196
            }
-
 
43197
            break;
-
 
43198
          case 1: // CEX
-
 
43199
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
43200
              this.cex = new InventoryServiceException();
-
 
43201
              this.cex.read(iprot);
-
 
43202
            } else { 
-
 
43203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43204
            }
-
 
43205
            break;
-
 
43206
          default:
-
 
43207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43208
        }
-
 
43209
        iprot.readFieldEnd();
-
 
43210
      }
-
 
43211
      iprot.readStructEnd();
-
 
43212
      validate();
-
 
43213
    }
-
 
43214
 
-
 
43215
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
43216
      oprot.writeStructBegin(STRUCT_DESC);
-
 
43217
 
-
 
43218
      if (this.isSetSuccess()) {
-
 
43219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
43220
        this.success.write(oprot);
-
 
43221
        oprot.writeFieldEnd();
-
 
43222
      } else if (this.isSetCex()) {
-
 
43223
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
43224
        this.cex.write(oprot);
-
 
43225
        oprot.writeFieldEnd();
-
 
43226
      }
-
 
43227
      oprot.writeFieldStop();
-
 
43228
      oprot.writeStructEnd();
-
 
43229
    }
-
 
43230
 
-
 
43231
    @Override
-
 
43232
    public String toString() {
-
 
43233
      StringBuilder sb = new StringBuilder("addSimilarItem_result(");
-
 
43234
      boolean first = true;
-
 
43235
 
-
 
43236
      sb.append("success:");
-
 
43237
      if (this.success == null) {
-
 
43238
        sb.append("null");
-
 
43239
      } else {
-
 
43240
        sb.append(this.success);
-
 
43241
      }
-
 
43242
      first = false;
-
 
43243
      if (!first) sb.append(", ");
-
 
43244
      sb.append("cex:");
-
 
43245
      if (this.cex == null) {
-
 
43246
        sb.append("null");
-
 
43247
      } else {
-
 
43248
        sb.append(this.cex);
-
 
43249
      }
-
 
43250
      first = false;
-
 
43251
      sb.append(")");
-
 
43252
      return sb.toString();
-
 
43253
    }
-
 
43254
 
-
 
43255
    public void validate() throws org.apache.thrift.TException {
-
 
43256
      // check for required fields
-
 
43257
    }
-
 
43258
 
-
 
43259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
43260
      try {
-
 
43261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
43262
      } catch (org.apache.thrift.TException te) {
-
 
43263
        throw new java.io.IOException(te);
-
 
43264
      }
-
 
43265
    }
-
 
43266
 
-
 
43267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
43268
      try {
-
 
43269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
43270
      } catch (org.apache.thrift.TException te) {
-
 
43271
        throw new java.io.IOException(te);
-
 
43272
      }
-
 
43273
    }
-
 
43274
 
-
 
43275
  }
-
 
43276
 
-
 
43277
  public static class deleteSimilarItem_args implements org.apache.thrift.TBase<deleteSimilarItem_args, deleteSimilarItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
43278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_args");
-
 
43279
 
-
 
43280
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
43281
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
43282
 
-
 
43283
    private long itemId; // required
-
 
43284
    private long catalogItemId; // required
-
 
43285
 
-
 
43286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
43287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
43288
      ITEM_ID((short)1, "itemId"),
-
 
43289
      CATALOG_ITEM_ID((short)2, "catalogItemId");
-
 
43290
 
-
 
43291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
43292
 
-
 
43293
      static {
-
 
43294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
43295
          byName.put(field.getFieldName(), field);
-
 
43296
        }
-
 
43297
      }
-
 
43298
 
-
 
43299
      /**
-
 
43300
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
43301
       */
-
 
43302
      public static _Fields findByThriftId(int fieldId) {
-
 
43303
        switch(fieldId) {
-
 
43304
          case 1: // ITEM_ID
-
 
43305
            return ITEM_ID;
-
 
43306
          case 2: // CATALOG_ITEM_ID
-
 
43307
            return CATALOG_ITEM_ID;
-
 
43308
          default:
-
 
43309
            return null;
-
 
43310
        }
-
 
43311
      }
-
 
43312
 
-
 
43313
      /**
-
 
43314
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
43315
       * if it is not found.
-
 
43316
       */
-
 
43317
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
43318
        _Fields fields = findByThriftId(fieldId);
-
 
43319
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
43320
        return fields;
-
 
43321
      }
-
 
43322
 
-
 
43323
      /**
-
 
43324
       * Find the _Fields constant that matches name, or null if its not found.
-
 
43325
       */
-
 
43326
      public static _Fields findByName(String name) {
-
 
43327
        return byName.get(name);
-
 
43328
      }
-
 
43329
 
-
 
43330
      private final short _thriftId;
-
 
43331
      private final String _fieldName;
-
 
43332
 
-
 
43333
      _Fields(short thriftId, String fieldName) {
-
 
43334
        _thriftId = thriftId;
-
 
43335
        _fieldName = fieldName;
-
 
43336
      }
-
 
43337
 
-
 
43338
      public short getThriftFieldId() {
-
 
43339
        return _thriftId;
-
 
43340
      }
-
 
43341
 
-
 
43342
      public String getFieldName() {
-
 
43343
        return _fieldName;
-
 
43344
      }
-
 
43345
    }
-
 
43346
 
-
 
43347
    // isset id assignments
-
 
43348
    private static final int __ITEMID_ISSET_ID = 0;
-
 
43349
    private static final int __CATALOGITEMID_ISSET_ID = 1;
-
 
43350
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
43351
 
-
 
43352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
43353
    static {
-
 
43354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
43355
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
43357
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
43359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
43360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_args.class, metaDataMap);
-
 
43361
    }
-
 
43362
 
-
 
43363
    public deleteSimilarItem_args() {
-
 
43364
    }
-
 
43365
 
-
 
43366
    public deleteSimilarItem_args(
-
 
43367
      long itemId,
-
 
43368
      long catalogItemId)
-
 
43369
    {
-
 
43370
      this();
-
 
43371
      this.itemId = itemId;
-
 
43372
      setItemIdIsSet(true);
-
 
43373
      this.catalogItemId = catalogItemId;
-
 
43374
      setCatalogItemIdIsSet(true);
-
 
43375
    }
-
 
43376
 
-
 
43377
    /**
-
 
43378
     * Performs a deep copy on <i>other</i>.
-
 
43379
     */
-
 
43380
    public deleteSimilarItem_args(deleteSimilarItem_args other) {
-
 
43381
      __isset_bit_vector.clear();
-
 
43382
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
43383
      this.itemId = other.itemId;
-
 
43384
      this.catalogItemId = other.catalogItemId;
-
 
43385
    }
-
 
43386
 
-
 
43387
    public deleteSimilarItem_args deepCopy() {
-
 
43388
      return new deleteSimilarItem_args(this);
-
 
43389
    }
-
 
43390
 
-
 
43391
    @Override
-
 
43392
    public void clear() {
-
 
43393
      setItemIdIsSet(false);
-
 
43394
      this.itemId = 0;
-
 
43395
      setCatalogItemIdIsSet(false);
-
 
43396
      this.catalogItemId = 0;
-
 
43397
    }
-
 
43398
 
-
 
43399
    public long getItemId() {
-
 
43400
      return this.itemId;
-
 
43401
    }
-
 
43402
 
-
 
43403
    public void setItemId(long itemId) {
-
 
43404
      this.itemId = itemId;
-
 
43405
      setItemIdIsSet(true);
-
 
43406
    }
-
 
43407
 
-
 
43408
    public void unsetItemId() {
-
 
43409
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
43410
    }
-
 
43411
 
-
 
43412
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
43413
    public boolean isSetItemId() {
-
 
43414
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
43415
    }
-
 
43416
 
-
 
43417
    public void setItemIdIsSet(boolean value) {
-
 
43418
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
43419
    }
-
 
43420
 
-
 
43421
    public long getCatalogItemId() {
-
 
43422
      return this.catalogItemId;
-
 
43423
    }
-
 
43424
 
-
 
43425
    public void setCatalogItemId(long catalogItemId) {
-
 
43426
      this.catalogItemId = catalogItemId;
-
 
43427
      setCatalogItemIdIsSet(true);
-
 
43428
    }
-
 
43429
 
-
 
43430
    public void unsetCatalogItemId() {
-
 
43431
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
-
 
43432
    }
-
 
43433
 
-
 
43434
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
-
 
43435
    public boolean isSetCatalogItemId() {
-
 
43436
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
-
 
43437
    }
-
 
43438
 
-
 
43439
    public void setCatalogItemIdIsSet(boolean value) {
-
 
43440
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
-
 
43441
    }
-
 
43442
 
-
 
43443
    public void setFieldValue(_Fields field, Object value) {
-
 
43444
      switch (field) {
-
 
43445
      case ITEM_ID:
-
 
43446
        if (value == null) {
-
 
43447
          unsetItemId();
-
 
43448
        } else {
-
 
43449
          setItemId((Long)value);
-
 
43450
        }
-
 
43451
        break;
-
 
43452
 
-
 
43453
      case CATALOG_ITEM_ID:
-
 
43454
        if (value == null) {
-
 
43455
          unsetCatalogItemId();
-
 
43456
        } else {
-
 
43457
          setCatalogItemId((Long)value);
-
 
43458
        }
-
 
43459
        break;
-
 
43460
 
-
 
43461
      }
-
 
43462
    }
-
 
43463
 
-
 
43464
    public Object getFieldValue(_Fields field) {
-
 
43465
      switch (field) {
-
 
43466
      case ITEM_ID:
-
 
43467
        return Long.valueOf(getItemId());
-
 
43468
 
-
 
43469
      case CATALOG_ITEM_ID:
-
 
43470
        return Long.valueOf(getCatalogItemId());
-
 
43471
 
-
 
43472
      }
-
 
43473
      throw new IllegalStateException();
-
 
43474
    }
-
 
43475
 
-
 
43476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
43477
    public boolean isSet(_Fields field) {
-
 
43478
      if (field == null) {
-
 
43479
        throw new IllegalArgumentException();
-
 
43480
      }
-
 
43481
 
-
 
43482
      switch (field) {
-
 
43483
      case ITEM_ID:
-
 
43484
        return isSetItemId();
-
 
43485
      case CATALOG_ITEM_ID:
-
 
43486
        return isSetCatalogItemId();
-
 
43487
      }
-
 
43488
      throw new IllegalStateException();
-
 
43489
    }
-
 
43490
 
-
 
43491
    @Override
-
 
43492
    public boolean equals(Object that) {
-
 
43493
      if (that == null)
-
 
43494
        return false;
-
 
43495
      if (that instanceof deleteSimilarItem_args)
-
 
43496
        return this.equals((deleteSimilarItem_args)that);
-
 
43497
      return false;
-
 
43498
    }
-
 
43499
 
-
 
43500
    public boolean equals(deleteSimilarItem_args that) {
-
 
43501
      if (that == null)
-
 
43502
        return false;
-
 
43503
 
-
 
43504
      boolean this_present_itemId = true;
-
 
43505
      boolean that_present_itemId = true;
-
 
43506
      if (this_present_itemId || that_present_itemId) {
-
 
43507
        if (!(this_present_itemId && that_present_itemId))
-
 
43508
          return false;
-
 
43509
        if (this.itemId != that.itemId)
-
 
43510
          return false;
-
 
43511
      }
-
 
43512
 
-
 
43513
      boolean this_present_catalogItemId = true;
-
 
43514
      boolean that_present_catalogItemId = true;
-
 
43515
      if (this_present_catalogItemId || that_present_catalogItemId) {
-
 
43516
        if (!(this_present_catalogItemId && that_present_catalogItemId))
-
 
43517
          return false;
-
 
43518
        if (this.catalogItemId != that.catalogItemId)
-
 
43519
          return false;
-
 
43520
      }
-
 
43521
 
-
 
43522
      return true;
-
 
43523
    }
-
 
43524
 
-
 
43525
    @Override
-
 
43526
    public int hashCode() {
-
 
43527
      return 0;
-
 
43528
    }
-
 
43529
 
-
 
43530
    public int compareTo(deleteSimilarItem_args other) {
-
 
43531
      if (!getClass().equals(other.getClass())) {
-
 
43532
        return getClass().getName().compareTo(other.getClass().getName());
-
 
43533
      }
-
 
43534
 
-
 
43535
      int lastComparison = 0;
-
 
43536
      deleteSimilarItem_args typedOther = (deleteSimilarItem_args)other;
-
 
43537
 
-
 
43538
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
43539
      if (lastComparison != 0) {
-
 
43540
        return lastComparison;
-
 
43541
      }
-
 
43542
      if (isSetItemId()) {
-
 
43543
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
43544
        if (lastComparison != 0) {
-
 
43545
          return lastComparison;
-
 
43546
        }
-
 
43547
      }
-
 
43548
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
-
 
43549
      if (lastComparison != 0) {
-
 
43550
        return lastComparison;
-
 
43551
      }
-
 
43552
      if (isSetCatalogItemId()) {
-
 
43553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
-
 
43554
        if (lastComparison != 0) {
-
 
43555
          return lastComparison;
-
 
43556
        }
-
 
43557
      }
-
 
43558
      return 0;
-
 
43559
    }
-
 
43560
 
-
 
43561
    public _Fields fieldForId(int fieldId) {
-
 
43562
      return _Fields.findByThriftId(fieldId);
-
 
43563
    }
-
 
43564
 
-
 
43565
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
43566
      org.apache.thrift.protocol.TField field;
-
 
43567
      iprot.readStructBegin();
-
 
43568
      while (true)
-
 
43569
      {
-
 
43570
        field = iprot.readFieldBegin();
-
 
43571
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
43572
          break;
-
 
43573
        }
-
 
43574
        switch (field.id) {
-
 
43575
          case 1: // ITEM_ID
-
 
43576
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
43577
              this.itemId = iprot.readI64();
-
 
43578
              setItemIdIsSet(true);
-
 
43579
            } else { 
-
 
43580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43581
            }
-
 
43582
            break;
-
 
43583
          case 2: // CATALOG_ITEM_ID
-
 
43584
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
43585
              this.catalogItemId = iprot.readI64();
-
 
43586
              setCatalogItemIdIsSet(true);
-
 
43587
            } else { 
-
 
43588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43589
            }
-
 
43590
            break;
-
 
43591
          default:
-
 
43592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43593
        }
-
 
43594
        iprot.readFieldEnd();
-
 
43595
      }
-
 
43596
      iprot.readStructEnd();
-
 
43597
      validate();
-
 
43598
    }
-
 
43599
 
-
 
43600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
43601
      validate();
-
 
43602
 
-
 
43603
      oprot.writeStructBegin(STRUCT_DESC);
-
 
43604
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
43605
      oprot.writeI64(this.itemId);
-
 
43606
      oprot.writeFieldEnd();
-
 
43607
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
-
 
43608
      oprot.writeI64(this.catalogItemId);
-
 
43609
      oprot.writeFieldEnd();
-
 
43610
      oprot.writeFieldStop();
-
 
43611
      oprot.writeStructEnd();
-
 
43612
    }
-
 
43613
 
-
 
43614
    @Override
-
 
43615
    public String toString() {
-
 
43616
      StringBuilder sb = new StringBuilder("deleteSimilarItem_args(");
-
 
43617
      boolean first = true;
-
 
43618
 
-
 
43619
      sb.append("itemId:");
-
 
43620
      sb.append(this.itemId);
-
 
43621
      first = false;
-
 
43622
      if (!first) sb.append(", ");
-
 
43623
      sb.append("catalogItemId:");
-
 
43624
      sb.append(this.catalogItemId);
-
 
43625
      first = false;
-
 
43626
      sb.append(")");
-
 
43627
      return sb.toString();
-
 
43628
    }
-
 
43629
 
-
 
43630
    public void validate() throws org.apache.thrift.TException {
-
 
43631
      // check for required fields
-
 
43632
    }
-
 
43633
 
-
 
43634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
43635
      try {
-
 
43636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
43637
      } catch (org.apache.thrift.TException te) {
-
 
43638
        throw new java.io.IOException(te);
-
 
43639
      }
-
 
43640
    }
-
 
43641
 
-
 
43642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
43643
      try {
-
 
43644
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
43645
        __isset_bit_vector = new BitSet(1);
-
 
43646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
43647
      } catch (org.apache.thrift.TException te) {
-
 
43648
        throw new java.io.IOException(te);
-
 
43649
      }
-
 
43650
    }
-
 
43651
 
-
 
43652
  }
-
 
43653
 
-
 
43654
  public static class deleteSimilarItem_result implements org.apache.thrift.TBase<deleteSimilarItem_result, deleteSimilarItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
43655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_result");
-
 
43656
 
-
 
43657
    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);
-
 
43658
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
43659
 
-
 
43660
    private boolean success; // required
-
 
43661
    private InventoryServiceException cex; // required
-
 
43662
 
-
 
43663
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
43664
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
43665
      SUCCESS((short)0, "success"),
-
 
43666
      CEX((short)1, "cex");
-
 
43667
 
-
 
43668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
43669
 
-
 
43670
      static {
-
 
43671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
43672
          byName.put(field.getFieldName(), field);
-
 
43673
        }
-
 
43674
      }
-
 
43675
 
-
 
43676
      /**
-
 
43677
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
43678
       */
-
 
43679
      public static _Fields findByThriftId(int fieldId) {
-
 
43680
        switch(fieldId) {
-
 
43681
          case 0: // SUCCESS
-
 
43682
            return SUCCESS;
-
 
43683
          case 1: // CEX
-
 
43684
            return CEX;
-
 
43685
          default:
-
 
43686
            return null;
-
 
43687
        }
-
 
43688
      }
-
 
43689
 
-
 
43690
      /**
-
 
43691
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
43692
       * if it is not found.
-
 
43693
       */
-
 
43694
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
43695
        _Fields fields = findByThriftId(fieldId);
-
 
43696
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
43697
        return fields;
-
 
43698
      }
-
 
43699
 
-
 
43700
      /**
-
 
43701
       * Find the _Fields constant that matches name, or null if its not found.
-
 
43702
       */
-
 
43703
      public static _Fields findByName(String name) {
-
 
43704
        return byName.get(name);
-
 
43705
      }
-
 
43706
 
-
 
43707
      private final short _thriftId;
-
 
43708
      private final String _fieldName;
-
 
43709
 
-
 
43710
      _Fields(short thriftId, String fieldName) {
-
 
43711
        _thriftId = thriftId;
-
 
43712
        _fieldName = fieldName;
-
 
43713
      }
-
 
43714
 
-
 
43715
      public short getThriftFieldId() {
-
 
43716
        return _thriftId;
-
 
43717
      }
-
 
43718
 
-
 
43719
      public String getFieldName() {
-
 
43720
        return _fieldName;
-
 
43721
      }
-
 
43722
    }
-
 
43723
 
-
 
43724
    // isset id assignments
-
 
43725
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
43726
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
43727
 
-
 
43728
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
43729
    static {
-
 
43730
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
43731
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43732
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
43733
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43734
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
43735
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
43736
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_result.class, metaDataMap);
-
 
43737
    }
-
 
43738
 
-
 
43739
    public deleteSimilarItem_result() {
-
 
43740
    }
-
 
43741
 
-
 
43742
    public deleteSimilarItem_result(
-
 
43743
      boolean success,
-
 
43744
      InventoryServiceException cex)
-
 
43745
    {
-
 
43746
      this();
-
 
43747
      this.success = success;
-
 
43748
      setSuccessIsSet(true);
-
 
43749
      this.cex = cex;
-
 
43750
    }
-
 
43751
 
-
 
43752
    /**
-
 
43753
     * Performs a deep copy on <i>other</i>.
-
 
43754
     */
-
 
43755
    public deleteSimilarItem_result(deleteSimilarItem_result other) {
-
 
43756
      __isset_bit_vector.clear();
-
 
43757
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
43758
      this.success = other.success;
-
 
43759
      if (other.isSetCex()) {
-
 
43760
        this.cex = new InventoryServiceException(other.cex);
-
 
43761
      }
-
 
43762
    }
-
 
43763
 
-
 
43764
    public deleteSimilarItem_result deepCopy() {
-
 
43765
      return new deleteSimilarItem_result(this);
-
 
43766
    }
-
 
43767
 
-
 
43768
    @Override
-
 
43769
    public void clear() {
-
 
43770
      setSuccessIsSet(false);
-
 
43771
      this.success = false;
-
 
43772
      this.cex = null;
-
 
43773
    }
-
 
43774
 
-
 
43775
    public boolean isSuccess() {
-
 
43776
      return this.success;
-
 
43777
    }
-
 
43778
 
-
 
43779
    public void setSuccess(boolean success) {
-
 
43780
      this.success = success;
-
 
43781
      setSuccessIsSet(true);
-
 
43782
    }
-
 
43783
 
-
 
43784
    public void unsetSuccess() {
-
 
43785
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
43786
    }
-
 
43787
 
-
 
43788
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
43789
    public boolean isSetSuccess() {
-
 
43790
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
43791
    }
-
 
43792
 
-
 
43793
    public void setSuccessIsSet(boolean value) {
-
 
43794
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
43795
    }
-
 
43796
 
-
 
43797
    public InventoryServiceException getCex() {
-
 
43798
      return this.cex;
-
 
43799
    }
-
 
43800
 
-
 
43801
    public void setCex(InventoryServiceException cex) {
-
 
43802
      this.cex = cex;
-
 
43803
    }
-
 
43804
 
-
 
43805
    public void unsetCex() {
-
 
43806
      this.cex = null;
-
 
43807
    }
-
 
43808
 
-
 
43809
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
43810
    public boolean isSetCex() {
-
 
43811
      return this.cex != null;
-
 
43812
    }
-
 
43813
 
-
 
43814
    public void setCexIsSet(boolean value) {
-
 
43815
      if (!value) {
-
 
43816
        this.cex = null;
-
 
43817
      }
-
 
43818
    }
-
 
43819
 
-
 
43820
    public void setFieldValue(_Fields field, Object value) {
-
 
43821
      switch (field) {
-
 
43822
      case SUCCESS:
-
 
43823
        if (value == null) {
-
 
43824
          unsetSuccess();
-
 
43825
        } else {
-
 
43826
          setSuccess((Boolean)value);
-
 
43827
        }
-
 
43828
        break;
-
 
43829
 
-
 
43830
      case CEX:
-
 
43831
        if (value == null) {
-
 
43832
          unsetCex();
-
 
43833
        } else {
-
 
43834
          setCex((InventoryServiceException)value);
-
 
43835
        }
-
 
43836
        break;
-
 
43837
 
-
 
43838
      }
-
 
43839
    }
-
 
43840
 
-
 
43841
    public Object getFieldValue(_Fields field) {
-
 
43842
      switch (field) {
-
 
43843
      case SUCCESS:
-
 
43844
        return Boolean.valueOf(isSuccess());
-
 
43845
 
-
 
43846
      case CEX:
-
 
43847
        return getCex();
-
 
43848
 
-
 
43849
      }
-
 
43850
      throw new IllegalStateException();
-
 
43851
    }
-
 
43852
 
-
 
43853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
43854
    public boolean isSet(_Fields field) {
-
 
43855
      if (field == null) {
-
 
43856
        throw new IllegalArgumentException();
-
 
43857
      }
-
 
43858
 
-
 
43859
      switch (field) {
-
 
43860
      case SUCCESS:
-
 
43861
        return isSetSuccess();
-
 
43862
      case CEX:
-
 
43863
        return isSetCex();
-
 
43864
      }
-
 
43865
      throw new IllegalStateException();
-
 
43866
    }
-
 
43867
 
-
 
43868
    @Override
-
 
43869
    public boolean equals(Object that) {
-
 
43870
      if (that == null)
-
 
43871
        return false;
-
 
43872
      if (that instanceof deleteSimilarItem_result)
-
 
43873
        return this.equals((deleteSimilarItem_result)that);
-
 
43874
      return false;
-
 
43875
    }
-
 
43876
 
-
 
43877
    public boolean equals(deleteSimilarItem_result that) {
-
 
43878
      if (that == null)
-
 
43879
        return false;
-
 
43880
 
-
 
43881
      boolean this_present_success = true;
-
 
43882
      boolean that_present_success = true;
-
 
43883
      if (this_present_success || that_present_success) {
-
 
43884
        if (!(this_present_success && that_present_success))
-
 
43885
          return false;
-
 
43886
        if (this.success != that.success)
-
 
43887
          return false;
-
 
43888
      }
-
 
43889
 
-
 
43890
      boolean this_present_cex = true && this.isSetCex();
-
 
43891
      boolean that_present_cex = true && that.isSetCex();
-
 
43892
      if (this_present_cex || that_present_cex) {
-
 
43893
        if (!(this_present_cex && that_present_cex))
-
 
43894
          return false;
-
 
43895
        if (!this.cex.equals(that.cex))
-
 
43896
          return false;
-
 
43897
      }
-
 
43898
 
-
 
43899
      return true;
-
 
43900
    }
-
 
43901
 
-
 
43902
    @Override
-
 
43903
    public int hashCode() {
-
 
43904
      return 0;
-
 
43905
    }
-
 
43906
 
-
 
43907
    public int compareTo(deleteSimilarItem_result other) {
-
 
43908
      if (!getClass().equals(other.getClass())) {
-
 
43909
        return getClass().getName().compareTo(other.getClass().getName());
-
 
43910
      }
-
 
43911
 
-
 
43912
      int lastComparison = 0;
-
 
43913
      deleteSimilarItem_result typedOther = (deleteSimilarItem_result)other;
-
 
43914
 
-
 
43915
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
43916
      if (lastComparison != 0) {
-
 
43917
        return lastComparison;
-
 
43918
      }
-
 
43919
      if (isSetSuccess()) {
-
 
43920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
43921
        if (lastComparison != 0) {
-
 
43922
          return lastComparison;
-
 
43923
        }
-
 
43924
      }
-
 
43925
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
43926
      if (lastComparison != 0) {
-
 
43927
        return lastComparison;
-
 
43928
      }
-
 
43929
      if (isSetCex()) {
-
 
43930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
43931
        if (lastComparison != 0) {
-
 
43932
          return lastComparison;
-
 
43933
        }
-
 
43934
      }
-
 
43935
      return 0;
-
 
43936
    }
-
 
43937
 
-
 
43938
    public _Fields fieldForId(int fieldId) {
-
 
43939
      return _Fields.findByThriftId(fieldId);
-
 
43940
    }
-
 
43941
 
-
 
43942
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
43943
      org.apache.thrift.protocol.TField field;
-
 
43944
      iprot.readStructBegin();
-
 
43945
      while (true)
-
 
43946
      {
-
 
43947
        field = iprot.readFieldBegin();
-
 
43948
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
43949
          break;
-
 
43950
        }
-
 
43951
        switch (field.id) {
-
 
43952
          case 0: // SUCCESS
-
 
43953
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
43954
              this.success = iprot.readBool();
-
 
43955
              setSuccessIsSet(true);
-
 
43956
            } else { 
-
 
43957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43958
            }
-
 
43959
            break;
-
 
43960
          case 1: // CEX
-
 
43961
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
43962
              this.cex = new InventoryServiceException();
-
 
43963
              this.cex.read(iprot);
-
 
43964
            } else { 
-
 
43965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43966
            }
-
 
43967
            break;
-
 
43968
          default:
-
 
43969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
43970
        }
-
 
43971
        iprot.readFieldEnd();
-
 
43972
      }
-
 
43973
      iprot.readStructEnd();
-
 
43974
      validate();
-
 
43975
    }
-
 
43976
 
-
 
43977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
43978
      oprot.writeStructBegin(STRUCT_DESC);
-
 
43979
 
-
 
43980
      if (this.isSetSuccess()) {
-
 
43981
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
43982
        oprot.writeBool(this.success);
-
 
43983
        oprot.writeFieldEnd();
-
 
43984
      } else if (this.isSetCex()) {
-
 
43985
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
43986
        this.cex.write(oprot);
-
 
43987
        oprot.writeFieldEnd();
-
 
43988
      }
-
 
43989
      oprot.writeFieldStop();
-
 
43990
      oprot.writeStructEnd();
-
 
43991
    }
-
 
43992
 
-
 
43993
    @Override
-
 
43994
    public String toString() {
-
 
43995
      StringBuilder sb = new StringBuilder("deleteSimilarItem_result(");
-
 
43996
      boolean first = true;
-
 
43997
 
-
 
43998
      sb.append("success:");
-
 
43999
      sb.append(this.success);
-
 
44000
      first = false;
-
 
44001
      if (!first) sb.append(", ");
-
 
44002
      sb.append("cex:");
-
 
44003
      if (this.cex == null) {
-
 
44004
        sb.append("null");
-
 
44005
      } else {
-
 
44006
        sb.append(this.cex);
-
 
44007
      }
-
 
44008
      first = false;
-
 
44009
      sb.append(")");
-
 
44010
      return sb.toString();
-
 
44011
    }
-
 
44012
 
-
 
44013
    public void validate() throws org.apache.thrift.TException {
-
 
44014
      // check for required fields
-
 
44015
    }
-
 
44016
 
-
 
44017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
44018
      try {
-
 
44019
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
44020
      } catch (org.apache.thrift.TException te) {
-
 
44021
        throw new java.io.IOException(te);
-
 
44022
      }
-
 
44023
    }
-
 
44024
 
-
 
44025
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
44026
      try {
-
 
44027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
44028
      } catch (org.apache.thrift.TException te) {
-
 
44029
        throw new java.io.IOException(te);
-
 
44030
      }
-
 
44031
    }
-
 
44032
 
-
 
44033
  }
-
 
44034
 
-
 
44035
  public static class itemExists_args implements org.apache.thrift.TBase<itemExists_args, itemExists_args._Fields>, java.io.Serializable, Cloneable   {
42384
  public static class itemExists_args implements org.apache.thrift.TBase<itemExists_args, itemExists_args._Fields>, java.io.Serializable, Cloneable   {
44036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("itemExists_args");
42385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("itemExists_args");
44037
 
42386
 
44038
    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);
42387
    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);
44039
    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);
42388
    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);
Line 46342... Line 44691...
46342
        }
44691
        }
46343
        switch (field.id) {
44692
        switch (field.id) {
46344
          case 0: // SUCCESS
44693
          case 0: // SUCCESS
46345
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44694
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46346
              {
44695
              {
46347
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
44696
                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
46348
                this.success = new ArrayList<VendorItemMapping>(_list117.size);
44697
                this.success = new ArrayList<VendorItemMapping>(_list108.size);
46349
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
44698
                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
46350
                {
44699
                {
46351
                  VendorItemMapping _elem119; // required
44700
                  VendorItemMapping _elem110; // required
46352
                  _elem119 = new VendorItemMapping();
44701
                  _elem110 = new VendorItemMapping();
46353
                  _elem119.read(iprot);
44702
                  _elem110.read(iprot);
46354
                  this.success.add(_elem119);
44703
                  this.success.add(_elem110);
46355
                }
44704
                }
46356
                iprot.readListEnd();
44705
                iprot.readListEnd();
46357
              }
44706
              }
46358
            } else { 
44707
            } else { 
46359
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44708
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 46381... Line 44730...
46381
 
44730
 
46382
      if (this.isSetSuccess()) {
44731
      if (this.isSetSuccess()) {
46383
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44732
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46384
        {
44733
        {
46385
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
44734
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
46386
          for (VendorItemMapping _iter120 : this.success)
44735
          for (VendorItemMapping _iter111 : this.success)
46387
          {
44736
          {
46388
            _iter120.write(oprot);
44737
            _iter111.write(oprot);
46389
          }
44738
          }
46390
          oprot.writeListEnd();
44739
          oprot.writeListEnd();
46391
        }
44740
        }
46392
        oprot.writeFieldEnd();
44741
        oprot.writeFieldEnd();
46393
      } else if (this.isSetCex()) {
44742
      } else if (this.isSetCex()) {
Line 48318... Line 46667...
48318
        }
46667
        }
48319
        switch (field.id) {
46668
        switch (field.id) {
48320
          case 0: // SUCCESS
46669
          case 0: // SUCCESS
48321
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46670
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48322
              {
46671
              {
48323
                org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
46672
                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
48324
                this.success = new ArrayList<Item>(_list121.size);
46673
                this.success = new ArrayList<Item>(_list112.size);
48325
                for (int _i122 = 0; _i122 < _list121.size; ++_i122)
46674
                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
48326
                {
46675
                {
48327
                  Item _elem123; // required
46676
                  Item _elem114; // required
48328
                  _elem123 = new Item();
46677
                  _elem114 = new Item();
48329
                  _elem123.read(iprot);
46678
                  _elem114.read(iprot);
48330
                  this.success.add(_elem123);
46679
                  this.success.add(_elem114);
48331
                }
46680
                }
48332
                iprot.readListEnd();
46681
                iprot.readListEnd();
48333
              }
46682
              }
48334
            } else { 
46683
            } else { 
48335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48349... Line 46698...
48349
 
46698
 
48350
      if (this.isSetSuccess()) {
46699
      if (this.isSetSuccess()) {
48351
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46700
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48352
        {
46701
        {
48353
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
46702
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48354
          for (Item _iter124 : this.success)
46703
          for (Item _iter115 : this.success)
48355
          {
46704
          {
48356
            _iter124.write(oprot);
46705
            _iter115.write(oprot);
48357
          }
46706
          }
48358
          oprot.writeListEnd();
46707
          oprot.writeListEnd();
48359
        }
46708
        }
48360
        oprot.writeFieldEnd();
46709
        oprot.writeFieldEnd();
48361
      }
46710
      }
Line 48943... Line 47292...
48943
        }
47292
        }
48944
        switch (field.id) {
47293
        switch (field.id) {
48945
          case 0: // SUCCESS
47294
          case 0: // SUCCESS
48946
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
47295
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48947
              {
47296
              {
48948
                org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();
47297
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
48949
                this.success = new ArrayList<Item>(_list125.size);
47298
                this.success = new ArrayList<Item>(_list116.size);
48950
                for (int _i126 = 0; _i126 < _list125.size; ++_i126)
47299
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
48951
                {
47300
                {
48952
                  Item _elem127; // required
47301
                  Item _elem118; // required
48953
                  _elem127 = new Item();
47302
                  _elem118 = new Item();
48954
                  _elem127.read(iprot);
47303
                  _elem118.read(iprot);
48955
                  this.success.add(_elem127);
47304
                  this.success.add(_elem118);
48956
                }
47305
                }
48957
                iprot.readListEnd();
47306
                iprot.readListEnd();
48958
              }
47307
              }
48959
            } else { 
47308
            } else { 
48960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48974... Line 47323...
48974
 
47323
 
48975
      if (this.isSetSuccess()) {
47324
      if (this.isSetSuccess()) {
48976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48977
        {
47326
        {
48978
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
47327
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48979
          for (Item _iter128 : this.success)
47328
          for (Item _iter119 : this.success)
48980
          {
47329
          {
48981
            _iter128.write(oprot);
47330
            _iter119.write(oprot);
48982
          }
47331
          }
48983
          oprot.writeListEnd();
47332
          oprot.writeListEnd();
48984
        }
47333
        }
48985
        oprot.writeFieldEnd();
47334
        oprot.writeFieldEnd();
48986
      }
47335
      }
Line 49732... Line 48081...
49732
        }
48081
        }
49733
        switch (field.id) {
48082
        switch (field.id) {
49734
          case 0: // SUCCESS
48083
          case 0: // SUCCESS
49735
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48084
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49736
              {
48085
              {
49737
                org.apache.thrift.protocol.TList _list129 = iprot.readListBegin();
48086
                org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
49738
                this.success = new ArrayList<Long>(_list129.size);
48087
                this.success = new ArrayList<Long>(_list120.size);
49739
                for (int _i130 = 0; _i130 < _list129.size; ++_i130)
48088
                for (int _i121 = 0; _i121 < _list120.size; ++_i121)
49740
                {
48089
                {
49741
                  long _elem131; // required
48090
                  long _elem122; // required
49742
                  _elem131 = iprot.readI64();
48091
                  _elem122 = iprot.readI64();
49743
                  this.success.add(_elem131);
48092
                  this.success.add(_elem122);
49744
                }
48093
                }
49745
                iprot.readListEnd();
48094
                iprot.readListEnd();
49746
              }
48095
              }
49747
            } else { 
48096
            } else { 
49748
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49762... Line 48111...
49762
 
48111
 
49763
      if (this.isSetSuccess()) {
48112
      if (this.isSetSuccess()) {
49764
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49765
        {
48114
        {
49766
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
48115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
49767
          for (long _iter132 : this.success)
48116
          for (long _iter123 : this.success)
49768
          {
48117
          {
49769
            oprot.writeI64(_iter132);
48118
            oprot.writeI64(_iter123);
49770
          }
48119
          }
49771
          oprot.writeListEnd();
48120
          oprot.writeListEnd();
49772
        }
48121
        }
49773
        oprot.writeFieldEnd();
48122
        oprot.writeFieldEnd();
49774
      }
48123
      }
Line 51524... Line 49873...
51524
        }
49873
        }
51525
        switch (field.id) {
49874
        switch (field.id) {
51526
          case 0: // SUCCESS
49875
          case 0: // SUCCESS
51527
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49876
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51528
              {
49877
              {
51529
                org.apache.thrift.protocol.TList _list133 = iprot.readListBegin();
49878
                org.apache.thrift.protocol.TList _list124 = iprot.readListBegin();
51530
                this.success = new ArrayList<String>(_list133.size);
49879
                this.success = new ArrayList<String>(_list124.size);
51531
                for (int _i134 = 0; _i134 < _list133.size; ++_i134)
49880
                for (int _i125 = 0; _i125 < _list124.size; ++_i125)
51532
                {
49881
                {
51533
                  String _elem135; // required
49882
                  String _elem126; // required
51534
                  _elem135 = iprot.readString();
49883
                  _elem126 = iprot.readString();
51535
                  this.success.add(_elem135);
49884
                  this.success.add(_elem126);
51536
                }
49885
                }
51537
                iprot.readListEnd();
49886
                iprot.readListEnd();
51538
              }
49887
              }
51539
            } else { 
49888
            } else { 
51540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51554... Line 49903...
51554
 
49903
 
51555
      if (this.isSetSuccess()) {
49904
      if (this.isSetSuccess()) {
51556
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51557
        {
49906
        {
51558
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
49907
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
51559
          for (String _iter136 : this.success)
49908
          for (String _iter127 : this.success)
51560
          {
49909
          {
51561
            oprot.writeString(_iter136);
49910
            oprot.writeString(_iter127);
51562
          }
49911
          }
51563
          oprot.writeListEnd();
49912
          oprot.writeListEnd();
51564
        }
49913
        }
51565
        oprot.writeFieldEnd();
49914
        oprot.writeFieldEnd();
51566
      }
49915
      }
Line 52054... Line 50403...
52054
        }
50403
        }
52055
        switch (field.id) {
50404
        switch (field.id) {
52056
          case 0: // SUCCESS
50405
          case 0: // SUCCESS
52057
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50406
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52058
              {
50407
              {
52059
                org.apache.thrift.protocol.TList _list137 = iprot.readListBegin();
50408
                org.apache.thrift.protocol.TList _list128 = iprot.readListBegin();
52060
                this.success = new ArrayList<Source>(_list137.size);
50409
                this.success = new ArrayList<Source>(_list128.size);
52061
                for (int _i138 = 0; _i138 < _list137.size; ++_i138)
50410
                for (int _i129 = 0; _i129 < _list128.size; ++_i129)
52062
                {
50411
                {
52063
                  Source _elem139; // required
50412
                  Source _elem130; // required
52064
                  _elem139 = new Source();
50413
                  _elem130 = new Source();
52065
                  _elem139.read(iprot);
50414
                  _elem130.read(iprot);
52066
                  this.success.add(_elem139);
50415
                  this.success.add(_elem130);
52067
                }
50416
                }
52068
                iprot.readListEnd();
50417
                iprot.readListEnd();
52069
              }
50418
              }
52070
            } else { 
50419
            } else { 
52071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 52085... Line 50434...
52085
 
50434
 
52086
      if (this.isSetSuccess()) {
50435
      if (this.isSetSuccess()) {
52087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50436
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52088
        {
50437
        {
52089
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
50438
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52090
          for (Source _iter140 : this.success)
50439
          for (Source _iter131 : this.success)
52091
          {
50440
          {
52092
            _iter140.write(oprot);
50441
            _iter131.write(oprot);
52093
          }
50442
          }
52094
          oprot.writeListEnd();
50443
          oprot.writeListEnd();
52095
        }
50444
        }
52096
        oprot.writeFieldEnd();
50445
        oprot.writeFieldEnd();
52097
      }
50446
      }
Line 54091... Line 52440...
54091
        }
52440
        }
54092
        switch (field.id) {
52441
        switch (field.id) {
54093
          case 0: // SUCCESS
52442
          case 0: // SUCCESS
54094
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54095
              {
52444
              {
54096
                org.apache.thrift.protocol.TList _list141 = iprot.readListBegin();
52445
                org.apache.thrift.protocol.TList _list132 = iprot.readListBegin();
54097
                this.success = new ArrayList<SourceItemPricing>(_list141.size);
52446
                this.success = new ArrayList<SourceItemPricing>(_list132.size);
54098
                for (int _i142 = 0; _i142 < _list141.size; ++_i142)
52447
                for (int _i133 = 0; _i133 < _list132.size; ++_i133)
54099
                {
52448
                {
54100
                  SourceItemPricing _elem143; // required
52449
                  SourceItemPricing _elem134; // required
54101
                  _elem143 = new SourceItemPricing();
52450
                  _elem134 = new SourceItemPricing();
54102
                  _elem143.read(iprot);
52451
                  _elem134.read(iprot);
54103
                  this.success.add(_elem143);
52452
                  this.success.add(_elem134);
54104
                }
52453
                }
54105
                iprot.readListEnd();
52454
                iprot.readListEnd();
54106
              }
52455
              }
54107
            } else { 
52456
            } else { 
54108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 54130... Line 52479...
54130
 
52479
 
54131
      if (this.isSetSuccess()) {
52480
      if (this.isSetSuccess()) {
54132
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52481
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54133
        {
52482
        {
54134
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52483
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
54135
          for (SourceItemPricing _iter144 : this.success)
52484
          for (SourceItemPricing _iter135 : this.success)
54136
          {
52485
          {
54137
            _iter144.write(oprot);
52486
            _iter135.write(oprot);
54138
          }
52487
          }
54139
          oprot.writeListEnd();
52488
          oprot.writeListEnd();
54140
        }
52489
        }
54141
        oprot.writeFieldEnd();
52490
        oprot.writeFieldEnd();
54142
      } else if (this.isSetCex()) {
52491
      } else if (this.isSetCex()) {
Line 55338... Line 53687...
55338
        }
53687
        }
55339
        switch (field.id) {
53688
        switch (field.id) {
55340
          case 1: // SEARCH_TERMS
53689
          case 1: // SEARCH_TERMS
55341
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53690
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55342
              {
53691
              {
55343
                org.apache.thrift.protocol.TList _list145 = iprot.readListBegin();
53692
                org.apache.thrift.protocol.TList _list136 = iprot.readListBegin();
55344
                this.searchTerms = new ArrayList<String>(_list145.size);
53693
                this.searchTerms = new ArrayList<String>(_list136.size);
55345
                for (int _i146 = 0; _i146 < _list145.size; ++_i146)
53694
                for (int _i137 = 0; _i137 < _list136.size; ++_i137)
55346
                {
53695
                {
55347
                  String _elem147; // required
53696
                  String _elem138; // required
55348
                  _elem147 = iprot.readString();
53697
                  _elem138 = iprot.readString();
55349
                  this.searchTerms.add(_elem147);
53698
                  this.searchTerms.add(_elem138);
55350
                }
53699
                }
55351
                iprot.readListEnd();
53700
                iprot.readListEnd();
55352
              }
53701
              }
55353
            } else { 
53702
            } else { 
55354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55385... Line 53734...
55385
      oprot.writeStructBegin(STRUCT_DESC);
53734
      oprot.writeStructBegin(STRUCT_DESC);
55386
      if (this.searchTerms != null) {
53735
      if (this.searchTerms != null) {
55387
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
53736
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
55388
        {
53737
        {
55389
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
53738
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
55390
          for (String _iter148 : this.searchTerms)
53739
          for (String _iter139 : this.searchTerms)
55391
          {
53740
          {
55392
            oprot.writeString(_iter148);
53741
            oprot.writeString(_iter139);
55393
          }
53742
          }
55394
          oprot.writeListEnd();
53743
          oprot.writeListEnd();
55395
        }
53744
        }
55396
        oprot.writeFieldEnd();
53745
        oprot.writeFieldEnd();
55397
      }
53746
      }
Line 55699... Line 54048...
55699
        }
54048
        }
55700
        switch (field.id) {
54049
        switch (field.id) {
55701
          case 0: // SUCCESS
54050
          case 0: // SUCCESS
55702
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54051
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55703
              {
54052
              {
55704
                org.apache.thrift.protocol.TList _list149 = iprot.readListBegin();
54053
                org.apache.thrift.protocol.TList _list140 = iprot.readListBegin();
55705
                this.success = new ArrayList<Item>(_list149.size);
54054
                this.success = new ArrayList<Item>(_list140.size);
55706
                for (int _i150 = 0; _i150 < _list149.size; ++_i150)
54055
                for (int _i141 = 0; _i141 < _list140.size; ++_i141)
55707
                {
54056
                {
55708
                  Item _elem151; // required
54057
                  Item _elem142; // required
55709
                  _elem151 = new Item();
54058
                  _elem142 = new Item();
55710
                  _elem151.read(iprot);
54059
                  _elem142.read(iprot);
55711
                  this.success.add(_elem151);
54060
                  this.success.add(_elem142);
55712
                }
54061
                }
55713
                iprot.readListEnd();
54062
                iprot.readListEnd();
55714
              }
54063
              }
55715
            } else { 
54064
            } else { 
55716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55730... Line 54079...
55730
 
54079
 
55731
      if (this.isSetSuccess()) {
54080
      if (this.isSetSuccess()) {
55732
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54081
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55733
        {
54082
        {
55734
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
54083
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
55735
          for (Item _iter152 : this.success)
54084
          for (Item _iter143 : this.success)
55736
          {
54085
          {
55737
            _iter152.write(oprot);
54086
            _iter143.write(oprot);
55738
          }
54087
          }
55739
          oprot.writeListEnd();
54088
          oprot.writeListEnd();
55740
        }
54089
        }
55741
        oprot.writeFieldEnd();
54090
        oprot.writeFieldEnd();
55742
      }
54091
      }
Line 56030... Line 54379...
56030
        }
54379
        }
56031
        switch (field.id) {
54380
        switch (field.id) {
56032
          case 1: // SEARCH_TERMS
54381
          case 1: // SEARCH_TERMS
56033
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54382
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56034
              {
54383
              {
56035
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
54384
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
56036
                this.searchTerms = new ArrayList<String>(_list153.size);
54385
                this.searchTerms = new ArrayList<String>(_list144.size);
56037
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
54386
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
56038
                {
54387
                {
56039
                  String _elem155; // required
54388
                  String _elem146; // required
56040
                  _elem155 = iprot.readString();
54389
                  _elem146 = iprot.readString();
56041
                  this.searchTerms.add(_elem155);
54390
                  this.searchTerms.add(_elem146);
56042
                }
54391
                }
56043
                iprot.readListEnd();
54392
                iprot.readListEnd();
56044
              }
54393
              }
56045
            } else { 
54394
            } else { 
56046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 56061... Line 54410...
56061
      oprot.writeStructBegin(STRUCT_DESC);
54410
      oprot.writeStructBegin(STRUCT_DESC);
56062
      if (this.searchTerms != null) {
54411
      if (this.searchTerms != null) {
56063
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
54412
        oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);
56064
        {
54413
        {
56065
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
54414
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));
56066
          for (String _iter156 : this.searchTerms)
54415
          for (String _iter147 : this.searchTerms)
56067
          {
54416
          {
56068
            oprot.writeString(_iter156);
54417
            oprot.writeString(_iter147);
56069
          }
54418
          }
56070
          oprot.writeListEnd();
54419
          oprot.writeListEnd();
56071
        }
54420
        }
56072
        oprot.writeFieldEnd();
54421
        oprot.writeFieldEnd();
56073
      }
54422
      }
Line 56948... Line 55297...
56948
        }
55297
        }
56949
        switch (field.id) {
55298
        switch (field.id) {
56950
          case 0: // SUCCESS
55299
          case 0: // SUCCESS
56951
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55300
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56952
              {
55301
              {
56953
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
55302
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
56954
                this.success = new ArrayList<AvailableAndReservedStock>(_list157.size);
55303
                this.success = new ArrayList<AvailableAndReservedStock>(_list148.size);
56955
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
55304
                for (int _i149 = 0; _i149 < _list148.size; ++_i149)
56956
                {
55305
                {
56957
                  AvailableAndReservedStock _elem159; // required
55306
                  AvailableAndReservedStock _elem150; // required
56958
                  _elem159 = new AvailableAndReservedStock();
55307
                  _elem150 = new AvailableAndReservedStock();
56959
                  _elem159.read(iprot);
55308
                  _elem150.read(iprot);
56960
                  this.success.add(_elem159);
55309
                  this.success.add(_elem150);
56961
                }
55310
                }
56962
                iprot.readListEnd();
55311
                iprot.readListEnd();
56963
              }
55312
              }
56964
            } else { 
55313
            } else { 
56965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 56979... Line 55328...
56979
 
55328
 
56980
      if (this.isSetSuccess()) {
55329
      if (this.isSetSuccess()) {
56981
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55330
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56982
        {
55331
        {
56983
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
55332
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
56984
          for (AvailableAndReservedStock _iter160 : this.success)
55333
          for (AvailableAndReservedStock _iter151 : this.success)
56985
          {
55334
          {
56986
            _iter160.write(oprot);
55335
            _iter151.write(oprot);
56987
          }
55336
          }
56988
          oprot.writeListEnd();
55337
          oprot.writeListEnd();
56989
        }
55338
        }
56990
        oprot.writeFieldEnd();
55339
        oprot.writeFieldEnd();
56991
      }
55340
      }
Line 57573... Line 55922...
57573
        }
55922
        }
57574
        switch (field.id) {
55923
        switch (field.id) {
57575
          case 0: // SUCCESS
55924
          case 0: // SUCCESS
57576
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55925
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57577
              {
55926
              {
57578
                org.apache.thrift.protocol.TList _list161 = iprot.readListBegin();
55927
                org.apache.thrift.protocol.TList _list152 = iprot.readListBegin();
57579
                this.success = new ArrayList<ProductNotificationRequest>(_list161.size);
55928
                this.success = new ArrayList<ProductNotificationRequest>(_list152.size);
57580
                for (int _i162 = 0; _i162 < _list161.size; ++_i162)
55929
                for (int _i153 = 0; _i153 < _list152.size; ++_i153)
57581
                {
55930
                {
57582
                  ProductNotificationRequest _elem163; // required
55931
                  ProductNotificationRequest _elem154; // required
57583
                  _elem163 = new ProductNotificationRequest();
55932
                  _elem154 = new ProductNotificationRequest();
57584
                  _elem163.read(iprot);
55933
                  _elem154.read(iprot);
57585
                  this.success.add(_elem163);
55934
                  this.success.add(_elem154);
57586
                }
55935
                }
57587
                iprot.readListEnd();
55936
                iprot.readListEnd();
57588
              }
55937
              }
57589
            } else { 
55938
            } else { 
57590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57604... Line 55953...
57604
 
55953
 
57605
      if (this.isSetSuccess()) {
55954
      if (this.isSetSuccess()) {
57606
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55955
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57607
        {
55956
        {
57608
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
55957
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57609
          for (ProductNotificationRequest _iter164 : this.success)
55958
          for (ProductNotificationRequest _iter155 : this.success)
57610
          {
55959
          {
57611
            _iter164.write(oprot);
55960
            _iter155.write(oprot);
57612
          }
55961
          }
57613
          oprot.writeListEnd();
55962
          oprot.writeListEnd();
57614
        }
55963
        }
57615
        oprot.writeFieldEnd();
55964
        oprot.writeFieldEnd();
57616
      }
55965
      }
Line 58198... Line 56547...
58198
        }
56547
        }
58199
        switch (field.id) {
56548
        switch (field.id) {
58200
          case 0: // SUCCESS
56549
          case 0: // SUCCESS
58201
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56550
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58202
              {
56551
              {
58203
                org.apache.thrift.protocol.TList _list165 = iprot.readListBegin();
56552
                org.apache.thrift.protocol.TList _list156 = iprot.readListBegin();
58204
                this.success = new ArrayList<ProductNotificationRequestCount>(_list165.size);
56553
                this.success = new ArrayList<ProductNotificationRequestCount>(_list156.size);
58205
                for (int _i166 = 0; _i166 < _list165.size; ++_i166)
56554
                for (int _i157 = 0; _i157 < _list156.size; ++_i157)
58206
                {
56555
                {
58207
                  ProductNotificationRequestCount _elem167; // required
56556
                  ProductNotificationRequestCount _elem158; // required
58208
                  _elem167 = new ProductNotificationRequestCount();
56557
                  _elem158 = new ProductNotificationRequestCount();
58209
                  _elem167.read(iprot);
56558
                  _elem158.read(iprot);
58210
                  this.success.add(_elem167);
56559
                  this.success.add(_elem158);
58211
                }
56560
                }
58212
                iprot.readListEnd();
56561
                iprot.readListEnd();
58213
              }
56562
              }
58214
            } else { 
56563
            } else { 
58215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58229... Line 56578...
58229
 
56578
 
58230
      if (this.isSetSuccess()) {
56579
      if (this.isSetSuccess()) {
58231
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56580
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58232
        {
56581
        {
58233
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
56582
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
58234
          for (ProductNotificationRequestCount _iter168 : this.success)
56583
          for (ProductNotificationRequestCount _iter159 : this.success)
58235
          {
56584
          {
58236
            _iter168.write(oprot);
56585
            _iter159.write(oprot);
58237
          }
56586
          }
58238
          oprot.writeListEnd();
56587
          oprot.writeListEnd();
58239
        }
56588
        }
58240
        oprot.writeFieldEnd();
56589
        oprot.writeFieldEnd();
58241
      }
56590
      }