Subversion Repositories SmartDukaan

Rev

Rev 8958 | Rev 9456 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8958 Rev 9404
Line 343... Line 343...
343
 
343
 
344
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException;
344
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException;
345
 
345
 
346
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException;
346
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException;
347
 
347
 
-
 
348
    public SnapdealInventoryItem getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException;
-
 
349
 
-
 
350
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException;
-
 
351
 
-
 
352
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException;
-
 
353
 
348
  }
354
  }
349
 
355
 
350
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
356
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
351
 
357
 
352
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
358
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 471... Line 477...
471
 
477
 
472
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
478
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
473
 
479
 
474
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException;
480
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException;
475
 
481
 
-
 
482
    public void getSnapdealInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
483
 
-
 
484
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
485
 
-
 
486
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
487
 
476
  }
488
  }
477
 
489
 
478
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
490
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
479
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
491
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
480
      public Factory() {}
492
      public Factory() {}
Line 1977... Line 1989...
1977
        return result.success;
1989
        return result.success;
1978
      }
1990
      }
1979
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
1991
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
1980
    }
1992
    }
1981
 
1993
 
-
 
1994
    public SnapdealInventoryItem getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException
-
 
1995
    {
-
 
1996
      send_getSnapdealInventoryForItem(item_id);
-
 
1997
      return recv_getSnapdealInventoryForItem();
-
 
1998
    }
-
 
1999
 
-
 
2000
    public void send_getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException
-
 
2001
    {
-
 
2002
      getSnapdealInventoryForItem_args args = new getSnapdealInventoryForItem_args();
-
 
2003
      args.setItem_id(item_id);
-
 
2004
      sendBase("getSnapdealInventoryForItem", args);
-
 
2005
    }
-
 
2006
 
-
 
2007
    public SnapdealInventoryItem recv_getSnapdealInventoryForItem() throws org.apache.thrift.TException
-
 
2008
    {
-
 
2009
      getSnapdealInventoryForItem_result result = new getSnapdealInventoryForItem_result();
-
 
2010
      receiveBase(result, "getSnapdealInventoryForItem");
-
 
2011
      if (result.isSetSuccess()) {
-
 
2012
        return result.success;
-
 
2013
      }
-
 
2014
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
-
 
2015
    }
-
 
2016
 
-
 
2017
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException
-
 
2018
    {
-
 
2019
      send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem);
-
 
2020
      recv_addOrUpdateSnapdealInventoryForItem();
-
 
2021
    }
-
 
2022
 
-
 
2023
    public void send_addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException
-
 
2024
    {
-
 
2025
      addOrUpdateSnapdealInventoryForItem_args args = new addOrUpdateSnapdealInventoryForItem_args();
-
 
2026
      args.setSnapdealinventoryitem(snapdealinventoryitem);
-
 
2027
      sendBase("addOrUpdateSnapdealInventoryForItem", args);
-
 
2028
    }
-
 
2029
 
-
 
2030
    public void recv_addOrUpdateSnapdealInventoryForItem() throws org.apache.thrift.TException
-
 
2031
    {
-
 
2032
      addOrUpdateSnapdealInventoryForItem_result result = new addOrUpdateSnapdealInventoryForItem_result();
-
 
2033
      receiveBase(result, "addOrUpdateSnapdealInventoryForItem");
-
 
2034
      return;
-
 
2035
    }
-
 
2036
 
-
 
2037
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
-
 
2038
    {
-
 
2039
      send_getNlcForWarehouse(warehouse_id, item_id);
-
 
2040
      return recv_getNlcForWarehouse();
-
 
2041
    }
-
 
2042
 
-
 
2043
    public void send_getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
-
 
2044
    {
-
 
2045
      getNlcForWarehouse_args args = new getNlcForWarehouse_args();
-
 
2046
      args.setWarehouse_id(warehouse_id);
-
 
2047
      args.setItem_id(item_id);
-
 
2048
      sendBase("getNlcForWarehouse", args);
-
 
2049
    }
-
 
2050
 
-
 
2051
    public double recv_getNlcForWarehouse() throws org.apache.thrift.TException
-
 
2052
    {
-
 
2053
      getNlcForWarehouse_result result = new getNlcForWarehouse_result();
-
 
2054
      receiveBase(result, "getNlcForWarehouse");
-
 
2055
      if (result.isSetSuccess()) {
-
 
2056
        return result.success;
-
 
2057
      }
-
 
2058
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
-
 
2059
    }
-
 
2060
 
1982
  }
2061
  }
1983
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2062
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1984
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2063
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1985
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2064
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1986
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2065
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4108... Line 4187...
4108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4187
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4109
        return (new Client(prot)).recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
4188
        return (new Client(prot)).recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
4110
      }
4189
      }
4111
    }
4190
    }
4112
 
4191
 
-
 
4192
    public void getSnapdealInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4193
      checkReady();
-
 
4194
      getSnapdealInventoryForItem_call method_call = new getSnapdealInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
4195
      this.___currentMethod = method_call;
-
 
4196
      ___manager.call(method_call);
-
 
4197
    }
-
 
4198
 
-
 
4199
    public static class getSnapdealInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4200
      private long item_id;
-
 
4201
      public getSnapdealInventoryForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventoryForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4202
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4203
        this.item_id = item_id;
-
 
4204
      }
-
 
4205
 
-
 
4206
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4207
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4208
        getSnapdealInventoryForItem_args args = new getSnapdealInventoryForItem_args();
-
 
4209
        args.setItem_id(item_id);
-
 
4210
        args.write(prot);
-
 
4211
        prot.writeMessageEnd();
-
 
4212
      }
-
 
4213
 
-
 
4214
      public SnapdealInventoryItem getResult() throws org.apache.thrift.TException {
-
 
4215
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4216
          throw new IllegalStateException("Method call not finished!");
-
 
4217
        }
-
 
4218
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4219
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4220
        return (new Client(prot)).recv_getSnapdealInventoryForItem();
-
 
4221
      }
-
 
4222
    }
-
 
4223
 
-
 
4224
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4225
      checkReady();
-
 
4226
      addOrUpdateSnapdealInventoryForItem_call method_call = new addOrUpdateSnapdealInventoryForItem_call(snapdealinventoryitem, resultHandler, this, ___protocolFactory, ___transport);
-
 
4227
      this.___currentMethod = method_call;
-
 
4228
      ___manager.call(method_call);
-
 
4229
    }
-
 
4230
 
-
 
4231
    public static class addOrUpdateSnapdealInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4232
      private SnapdealInventoryItem snapdealinventoryitem;
-
 
4233
      public addOrUpdateSnapdealInventoryForItem_call(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealInventoryForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4234
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4235
        this.snapdealinventoryitem = snapdealinventoryitem;
-
 
4236
      }
-
 
4237
 
-
 
4238
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4239
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateSnapdealInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4240
        addOrUpdateSnapdealInventoryForItem_args args = new addOrUpdateSnapdealInventoryForItem_args();
-
 
4241
        args.setSnapdealinventoryitem(snapdealinventoryitem);
-
 
4242
        args.write(prot);
-
 
4243
        prot.writeMessageEnd();
-
 
4244
      }
-
 
4245
 
-
 
4246
      public void getResult() throws org.apache.thrift.TException {
-
 
4247
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4248
          throw new IllegalStateException("Method call not finished!");
-
 
4249
        }
-
 
4250
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4251
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4252
        (new Client(prot)).recv_addOrUpdateSnapdealInventoryForItem();
-
 
4253
      }
-
 
4254
    }
-
 
4255
 
-
 
4256
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
4257
      checkReady();
-
 
4258
      getNlcForWarehouse_call method_call = new getNlcForWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
4259
      this.___currentMethod = method_call;
-
 
4260
      ___manager.call(method_call);
-
 
4261
    }
-
 
4262
 
-
 
4263
    public static class getNlcForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4264
      private long warehouse_id;
-
 
4265
      private long item_id;
-
 
4266
      public getNlcForWarehouse_call(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getNlcForWarehouse_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4267
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4268
        this.warehouse_id = warehouse_id;
-
 
4269
        this.item_id = item_id;
-
 
4270
      }
-
 
4271
 
-
 
4272
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4273
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNlcForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4274
        getNlcForWarehouse_args args = new getNlcForWarehouse_args();
-
 
4275
        args.setWarehouse_id(warehouse_id);
-
 
4276
        args.setItem_id(item_id);
-
 
4277
        args.write(prot);
-
 
4278
        prot.writeMessageEnd();
-
 
4279
      }
-
 
4280
 
-
 
4281
      public double getResult() throws org.apache.thrift.TException {
-
 
4282
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4283
          throw new IllegalStateException("Method call not finished!");
-
 
4284
        }
-
 
4285
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4286
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4287
        return (new Client(prot)).recv_getNlcForWarehouse();
-
 
4288
      }
-
 
4289
    }
-
 
4290
 
4113
  }
4291
  }
4114
 
4292
 
4115
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4293
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4116
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4294
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4117
    public Processor(I iface) {
4295
    public Processor(I iface) {
Line 4183... Line 4361...
4183
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
4361
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
4184
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
4362
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
4185
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
4363
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
4186
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
4364
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
4187
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
4365
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
-
 
4366
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
-
 
4367
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
-
 
4368
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
4188
      return processMap;
4369
      return processMap;
4189
    }
4370
    }
4190
 
4371
 
4191
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4372
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4192
      public addWarehouse() {
4373
      public addWarehouse() {
Line 5283... Line 5464...
5283
        result.setSuccessIsSet(true);
5464
        result.setSuccessIsSet(true);
5284
        return result;
5465
        return result;
5285
      }
5466
      }
5286
    }
5467
    }
5287
 
5468
 
-
 
5469
    private static class getSnapdealInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealInventoryForItem_args> {
-
 
5470
      public getSnapdealInventoryForItem() {
-
 
5471
        super("getSnapdealInventoryForItem");
-
 
5472
      }
-
 
5473
 
-
 
5474
      protected getSnapdealInventoryForItem_args getEmptyArgsInstance() {
-
 
5475
        return new getSnapdealInventoryForItem_args();
-
 
5476
      }
-
 
5477
 
-
 
5478
      protected getSnapdealInventoryForItem_result getResult(I iface, getSnapdealInventoryForItem_args args) throws org.apache.thrift.TException {
-
 
5479
        getSnapdealInventoryForItem_result result = new getSnapdealInventoryForItem_result();
-
 
5480
        result.success = iface.getSnapdealInventoryForItem(args.item_id);
-
 
5481
        return result;
-
 
5482
      }
-
 
5483
    }
-
 
5484
 
-
 
5485
    private static class addOrUpdateSnapdealInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateSnapdealInventoryForItem_args> {
-
 
5486
      public addOrUpdateSnapdealInventoryForItem() {
-
 
5487
        super("addOrUpdateSnapdealInventoryForItem");
-
 
5488
      }
-
 
5489
 
-
 
5490
      protected addOrUpdateSnapdealInventoryForItem_args getEmptyArgsInstance() {
-
 
5491
        return new addOrUpdateSnapdealInventoryForItem_args();
-
 
5492
      }
-
 
5493
 
-
 
5494
      protected addOrUpdateSnapdealInventoryForItem_result getResult(I iface, addOrUpdateSnapdealInventoryForItem_args args) throws org.apache.thrift.TException {
-
 
5495
        addOrUpdateSnapdealInventoryForItem_result result = new addOrUpdateSnapdealInventoryForItem_result();
-
 
5496
        iface.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem);
-
 
5497
        return result;
-
 
5498
      }
-
 
5499
    }
-
 
5500
 
-
 
5501
    private static class getNlcForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNlcForWarehouse_args> {
-
 
5502
      public getNlcForWarehouse() {
-
 
5503
        super("getNlcForWarehouse");
-
 
5504
      }
-
 
5505
 
-
 
5506
      protected getNlcForWarehouse_args getEmptyArgsInstance() {
-
 
5507
        return new getNlcForWarehouse_args();
-
 
5508
      }
-
 
5509
 
-
 
5510
      protected getNlcForWarehouse_result getResult(I iface, getNlcForWarehouse_args args) throws org.apache.thrift.TException {
-
 
5511
        getNlcForWarehouse_result result = new getNlcForWarehouse_result();
-
 
5512
        result.success = iface.getNlcForWarehouse(args.warehouse_id, args.item_id);
-
 
5513
        result.setSuccessIsSet(true);
-
 
5514
        return result;
-
 
5515
      }
-
 
5516
    }
-
 
5517
 
5288
  }
5518
  }
5289
 
5519
 
5290
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5520
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5292
 
5522
 
Line 46695... Line 46925...
46695
      boolean first = true;
46925
      boolean first = true;
46696
 
46926
 
46697
      sb.append("success:");
46927
      sb.append("success:");
46698
      sb.append(this.success);
46928
      sb.append(this.success);
46699
      first = false;
46929
      first = false;
-
 
46930
      sb.append(")");
-
 
46931
      return sb.toString();
-
 
46932
    }
-
 
46933
 
-
 
46934
    public void validate() throws org.apache.thrift.TException {
-
 
46935
      // check for required fields
-
 
46936
    }
-
 
46937
 
-
 
46938
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46939
      try {
-
 
46940
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46941
      } catch (org.apache.thrift.TException te) {
-
 
46942
        throw new java.io.IOException(te);
-
 
46943
      }
-
 
46944
    }
-
 
46945
 
-
 
46946
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46947
      try {
-
 
46948
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46949
      } catch (org.apache.thrift.TException te) {
-
 
46950
        throw new java.io.IOException(te);
-
 
46951
      }
-
 
46952
    }
-
 
46953
 
-
 
46954
  }
-
 
46955
 
-
 
46956
  public static class getSnapdealInventoryForItem_args implements org.apache.thrift.TBase<getSnapdealInventoryForItem_args, getSnapdealInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
46957
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventoryForItem_args");
-
 
46958
 
-
 
46959
    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);
-
 
46960
 
-
 
46961
    private long item_id; // required
-
 
46962
 
-
 
46963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46965
      ITEM_ID((short)1, "item_id");
-
 
46966
 
-
 
46967
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46968
 
-
 
46969
      static {
-
 
46970
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46971
          byName.put(field.getFieldName(), field);
-
 
46972
        }
-
 
46973
      }
-
 
46974
 
-
 
46975
      /**
-
 
46976
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46977
       */
-
 
46978
      public static _Fields findByThriftId(int fieldId) {
-
 
46979
        switch(fieldId) {
-
 
46980
          case 1: // ITEM_ID
-
 
46981
            return ITEM_ID;
-
 
46982
          default:
-
 
46983
            return null;
-
 
46984
        }
-
 
46985
      }
-
 
46986
 
-
 
46987
      /**
-
 
46988
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46989
       * if it is not found.
-
 
46990
       */
-
 
46991
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46992
        _Fields fields = findByThriftId(fieldId);
-
 
46993
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46994
        return fields;
-
 
46995
      }
-
 
46996
 
-
 
46997
      /**
-
 
46998
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46999
       */
-
 
47000
      public static _Fields findByName(String name) {
-
 
47001
        return byName.get(name);
-
 
47002
      }
-
 
47003
 
-
 
47004
      private final short _thriftId;
-
 
47005
      private final String _fieldName;
-
 
47006
 
-
 
47007
      _Fields(short thriftId, String fieldName) {
-
 
47008
        _thriftId = thriftId;
-
 
47009
        _fieldName = fieldName;
-
 
47010
      }
-
 
47011
 
-
 
47012
      public short getThriftFieldId() {
-
 
47013
        return _thriftId;
-
 
47014
      }
-
 
47015
 
-
 
47016
      public String getFieldName() {
-
 
47017
        return _fieldName;
-
 
47018
      }
-
 
47019
    }
-
 
47020
 
-
 
47021
    // isset id assignments
-
 
47022
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
47023
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
47024
 
-
 
47025
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47026
    static {
-
 
47027
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47028
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
47030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventoryForItem_args.class, metaDataMap);
-
 
47032
    }
-
 
47033
 
-
 
47034
    public getSnapdealInventoryForItem_args() {
-
 
47035
    }
-
 
47036
 
-
 
47037
    public getSnapdealInventoryForItem_args(
-
 
47038
      long item_id)
-
 
47039
    {
-
 
47040
      this();
-
 
47041
      this.item_id = item_id;
-
 
47042
      setItem_idIsSet(true);
-
 
47043
    }
-
 
47044
 
-
 
47045
    /**
-
 
47046
     * Performs a deep copy on <i>other</i>.
-
 
47047
     */
-
 
47048
    public getSnapdealInventoryForItem_args(getSnapdealInventoryForItem_args other) {
-
 
47049
      __isset_bit_vector.clear();
-
 
47050
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
47051
      this.item_id = other.item_id;
-
 
47052
    }
-
 
47053
 
-
 
47054
    public getSnapdealInventoryForItem_args deepCopy() {
-
 
47055
      return new getSnapdealInventoryForItem_args(this);
-
 
47056
    }
-
 
47057
 
-
 
47058
    @Override
-
 
47059
    public void clear() {
-
 
47060
      setItem_idIsSet(false);
-
 
47061
      this.item_id = 0;
-
 
47062
    }
-
 
47063
 
-
 
47064
    public long getItem_id() {
-
 
47065
      return this.item_id;
-
 
47066
    }
-
 
47067
 
-
 
47068
    public void setItem_id(long item_id) {
-
 
47069
      this.item_id = item_id;
-
 
47070
      setItem_idIsSet(true);
-
 
47071
    }
-
 
47072
 
-
 
47073
    public void unsetItem_id() {
-
 
47074
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
47075
    }
-
 
47076
 
-
 
47077
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
47078
    public boolean isSetItem_id() {
-
 
47079
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
47080
    }
-
 
47081
 
-
 
47082
    public void setItem_idIsSet(boolean value) {
-
 
47083
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
47084
    }
-
 
47085
 
-
 
47086
    public void setFieldValue(_Fields field, Object value) {
-
 
47087
      switch (field) {
-
 
47088
      case ITEM_ID:
-
 
47089
        if (value == null) {
-
 
47090
          unsetItem_id();
-
 
47091
        } else {
-
 
47092
          setItem_id((Long)value);
-
 
47093
        }
-
 
47094
        break;
-
 
47095
 
-
 
47096
      }
-
 
47097
    }
-
 
47098
 
-
 
47099
    public Object getFieldValue(_Fields field) {
-
 
47100
      switch (field) {
-
 
47101
      case ITEM_ID:
-
 
47102
        return Long.valueOf(getItem_id());
-
 
47103
 
-
 
47104
      }
-
 
47105
      throw new IllegalStateException();
-
 
47106
    }
-
 
47107
 
-
 
47108
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47109
    public boolean isSet(_Fields field) {
-
 
47110
      if (field == null) {
-
 
47111
        throw new IllegalArgumentException();
-
 
47112
      }
-
 
47113
 
-
 
47114
      switch (field) {
-
 
47115
      case ITEM_ID:
-
 
47116
        return isSetItem_id();
-
 
47117
      }
-
 
47118
      throw new IllegalStateException();
-
 
47119
    }
-
 
47120
 
-
 
47121
    @Override
-
 
47122
    public boolean equals(Object that) {
-
 
47123
      if (that == null)
-
 
47124
        return false;
-
 
47125
      if (that instanceof getSnapdealInventoryForItem_args)
-
 
47126
        return this.equals((getSnapdealInventoryForItem_args)that);
-
 
47127
      return false;
-
 
47128
    }
-
 
47129
 
-
 
47130
    public boolean equals(getSnapdealInventoryForItem_args that) {
-
 
47131
      if (that == null)
-
 
47132
        return false;
-
 
47133
 
-
 
47134
      boolean this_present_item_id = true;
-
 
47135
      boolean that_present_item_id = true;
-
 
47136
      if (this_present_item_id || that_present_item_id) {
-
 
47137
        if (!(this_present_item_id && that_present_item_id))
-
 
47138
          return false;
-
 
47139
        if (this.item_id != that.item_id)
-
 
47140
          return false;
-
 
47141
      }
-
 
47142
 
-
 
47143
      return true;
-
 
47144
    }
-
 
47145
 
-
 
47146
    @Override
-
 
47147
    public int hashCode() {
-
 
47148
      return 0;
-
 
47149
    }
-
 
47150
 
-
 
47151
    public int compareTo(getSnapdealInventoryForItem_args other) {
-
 
47152
      if (!getClass().equals(other.getClass())) {
-
 
47153
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47154
      }
-
 
47155
 
-
 
47156
      int lastComparison = 0;
-
 
47157
      getSnapdealInventoryForItem_args typedOther = (getSnapdealInventoryForItem_args)other;
-
 
47158
 
-
 
47159
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
47160
      if (lastComparison != 0) {
-
 
47161
        return lastComparison;
-
 
47162
      }
-
 
47163
      if (isSetItem_id()) {
-
 
47164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
47165
        if (lastComparison != 0) {
-
 
47166
          return lastComparison;
-
 
47167
        }
-
 
47168
      }
-
 
47169
      return 0;
-
 
47170
    }
-
 
47171
 
-
 
47172
    public _Fields fieldForId(int fieldId) {
-
 
47173
      return _Fields.findByThriftId(fieldId);
-
 
47174
    }
-
 
47175
 
-
 
47176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47177
      org.apache.thrift.protocol.TField field;
-
 
47178
      iprot.readStructBegin();
-
 
47179
      while (true)
-
 
47180
      {
-
 
47181
        field = iprot.readFieldBegin();
-
 
47182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47183
          break;
-
 
47184
        }
-
 
47185
        switch (field.id) {
-
 
47186
          case 1: // ITEM_ID
-
 
47187
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
47188
              this.item_id = iprot.readI64();
-
 
47189
              setItem_idIsSet(true);
-
 
47190
            } else { 
-
 
47191
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47192
            }
-
 
47193
            break;
-
 
47194
          default:
-
 
47195
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47196
        }
-
 
47197
        iprot.readFieldEnd();
-
 
47198
      }
-
 
47199
      iprot.readStructEnd();
-
 
47200
      validate();
-
 
47201
    }
-
 
47202
 
-
 
47203
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47204
      validate();
-
 
47205
 
-
 
47206
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47207
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
47208
      oprot.writeI64(this.item_id);
-
 
47209
      oprot.writeFieldEnd();
-
 
47210
      oprot.writeFieldStop();
-
 
47211
      oprot.writeStructEnd();
-
 
47212
    }
-
 
47213
 
-
 
47214
    @Override
-
 
47215
    public String toString() {
-
 
47216
      StringBuilder sb = new StringBuilder("getSnapdealInventoryForItem_args(");
-
 
47217
      boolean first = true;
-
 
47218
 
-
 
47219
      sb.append("item_id:");
-
 
47220
      sb.append(this.item_id);
-
 
47221
      first = false;
-
 
47222
      sb.append(")");
-
 
47223
      return sb.toString();
-
 
47224
    }
-
 
47225
 
-
 
47226
    public void validate() throws org.apache.thrift.TException {
-
 
47227
      // check for required fields
-
 
47228
    }
-
 
47229
 
-
 
47230
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47231
      try {
-
 
47232
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47233
      } catch (org.apache.thrift.TException te) {
-
 
47234
        throw new java.io.IOException(te);
-
 
47235
      }
-
 
47236
    }
-
 
47237
 
-
 
47238
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47239
      try {
-
 
47240
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
47241
        __isset_bit_vector = new BitSet(1);
-
 
47242
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47243
      } catch (org.apache.thrift.TException te) {
-
 
47244
        throw new java.io.IOException(te);
-
 
47245
      }
-
 
47246
    }
-
 
47247
 
-
 
47248
  }
-
 
47249
 
-
 
47250
  public static class getSnapdealInventoryForItem_result implements org.apache.thrift.TBase<getSnapdealInventoryForItem_result, getSnapdealInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
47251
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventoryForItem_result");
-
 
47252
 
-
 
47253
    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);
-
 
47254
 
-
 
47255
    private SnapdealInventoryItem success; // required
-
 
47256
 
-
 
47257
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47258
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47259
      SUCCESS((short)0, "success");
-
 
47260
 
-
 
47261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47262
 
-
 
47263
      static {
-
 
47264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47265
          byName.put(field.getFieldName(), field);
-
 
47266
        }
-
 
47267
      }
-
 
47268
 
-
 
47269
      /**
-
 
47270
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47271
       */
-
 
47272
      public static _Fields findByThriftId(int fieldId) {
-
 
47273
        switch(fieldId) {
-
 
47274
          case 0: // SUCCESS
-
 
47275
            return SUCCESS;
-
 
47276
          default:
-
 
47277
            return null;
-
 
47278
        }
-
 
47279
      }
-
 
47280
 
-
 
47281
      /**
-
 
47282
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47283
       * if it is not found.
-
 
47284
       */
-
 
47285
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47286
        _Fields fields = findByThriftId(fieldId);
-
 
47287
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47288
        return fields;
-
 
47289
      }
-
 
47290
 
-
 
47291
      /**
-
 
47292
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47293
       */
-
 
47294
      public static _Fields findByName(String name) {
-
 
47295
        return byName.get(name);
-
 
47296
      }
-
 
47297
 
-
 
47298
      private final short _thriftId;
-
 
47299
      private final String _fieldName;
-
 
47300
 
-
 
47301
      _Fields(short thriftId, String fieldName) {
-
 
47302
        _thriftId = thriftId;
-
 
47303
        _fieldName = fieldName;
-
 
47304
      }
-
 
47305
 
-
 
47306
      public short getThriftFieldId() {
-
 
47307
        return _thriftId;
-
 
47308
      }
-
 
47309
 
-
 
47310
      public String getFieldName() {
-
 
47311
        return _fieldName;
-
 
47312
      }
-
 
47313
    }
-
 
47314
 
-
 
47315
    // isset id assignments
-
 
47316
 
-
 
47317
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47318
    static {
-
 
47319
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47320
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47321
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class)));
-
 
47322
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47323
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventoryForItem_result.class, metaDataMap);
-
 
47324
    }
-
 
47325
 
-
 
47326
    public getSnapdealInventoryForItem_result() {
-
 
47327
    }
-
 
47328
 
-
 
47329
    public getSnapdealInventoryForItem_result(
-
 
47330
      SnapdealInventoryItem success)
-
 
47331
    {
-
 
47332
      this();
-
 
47333
      this.success = success;
-
 
47334
    }
-
 
47335
 
-
 
47336
    /**
-
 
47337
     * Performs a deep copy on <i>other</i>.
-
 
47338
     */
-
 
47339
    public getSnapdealInventoryForItem_result(getSnapdealInventoryForItem_result other) {
-
 
47340
      if (other.isSetSuccess()) {
-
 
47341
        this.success = new SnapdealInventoryItem(other.success);
-
 
47342
      }
-
 
47343
    }
-
 
47344
 
-
 
47345
    public getSnapdealInventoryForItem_result deepCopy() {
-
 
47346
      return new getSnapdealInventoryForItem_result(this);
-
 
47347
    }
-
 
47348
 
-
 
47349
    @Override
-
 
47350
    public void clear() {
-
 
47351
      this.success = null;
-
 
47352
    }
-
 
47353
 
-
 
47354
    public SnapdealInventoryItem getSuccess() {
-
 
47355
      return this.success;
-
 
47356
    }
-
 
47357
 
-
 
47358
    public void setSuccess(SnapdealInventoryItem success) {
-
 
47359
      this.success = success;
-
 
47360
    }
-
 
47361
 
-
 
47362
    public void unsetSuccess() {
-
 
47363
      this.success = null;
-
 
47364
    }
-
 
47365
 
-
 
47366
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
47367
    public boolean isSetSuccess() {
-
 
47368
      return this.success != null;
-
 
47369
    }
-
 
47370
 
-
 
47371
    public void setSuccessIsSet(boolean value) {
-
 
47372
      if (!value) {
-
 
47373
        this.success = null;
-
 
47374
      }
-
 
47375
    }
-
 
47376
 
-
 
47377
    public void setFieldValue(_Fields field, Object value) {
-
 
47378
      switch (field) {
-
 
47379
      case SUCCESS:
-
 
47380
        if (value == null) {
-
 
47381
          unsetSuccess();
-
 
47382
        } else {
-
 
47383
          setSuccess((SnapdealInventoryItem)value);
-
 
47384
        }
-
 
47385
        break;
-
 
47386
 
-
 
47387
      }
-
 
47388
    }
-
 
47389
 
-
 
47390
    public Object getFieldValue(_Fields field) {
-
 
47391
      switch (field) {
-
 
47392
      case SUCCESS:
-
 
47393
        return getSuccess();
-
 
47394
 
-
 
47395
      }
-
 
47396
      throw new IllegalStateException();
-
 
47397
    }
-
 
47398
 
-
 
47399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47400
    public boolean isSet(_Fields field) {
-
 
47401
      if (field == null) {
-
 
47402
        throw new IllegalArgumentException();
-
 
47403
      }
-
 
47404
 
-
 
47405
      switch (field) {
-
 
47406
      case SUCCESS:
-
 
47407
        return isSetSuccess();
-
 
47408
      }
-
 
47409
      throw new IllegalStateException();
-
 
47410
    }
-
 
47411
 
-
 
47412
    @Override
-
 
47413
    public boolean equals(Object that) {
-
 
47414
      if (that == null)
-
 
47415
        return false;
-
 
47416
      if (that instanceof getSnapdealInventoryForItem_result)
-
 
47417
        return this.equals((getSnapdealInventoryForItem_result)that);
-
 
47418
      return false;
-
 
47419
    }
-
 
47420
 
-
 
47421
    public boolean equals(getSnapdealInventoryForItem_result that) {
-
 
47422
      if (that == null)
-
 
47423
        return false;
-
 
47424
 
-
 
47425
      boolean this_present_success = true && this.isSetSuccess();
-
 
47426
      boolean that_present_success = true && that.isSetSuccess();
-
 
47427
      if (this_present_success || that_present_success) {
-
 
47428
        if (!(this_present_success && that_present_success))
-
 
47429
          return false;
-
 
47430
        if (!this.success.equals(that.success))
-
 
47431
          return false;
-
 
47432
      }
-
 
47433
 
-
 
47434
      return true;
-
 
47435
    }
-
 
47436
 
-
 
47437
    @Override
-
 
47438
    public int hashCode() {
-
 
47439
      return 0;
-
 
47440
    }
-
 
47441
 
-
 
47442
    public int compareTo(getSnapdealInventoryForItem_result other) {
-
 
47443
      if (!getClass().equals(other.getClass())) {
-
 
47444
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47445
      }
-
 
47446
 
-
 
47447
      int lastComparison = 0;
-
 
47448
      getSnapdealInventoryForItem_result typedOther = (getSnapdealInventoryForItem_result)other;
-
 
47449
 
-
 
47450
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
47451
      if (lastComparison != 0) {
-
 
47452
        return lastComparison;
-
 
47453
      }
-
 
47454
      if (isSetSuccess()) {
-
 
47455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
47456
        if (lastComparison != 0) {
-
 
47457
          return lastComparison;
-
 
47458
        }
-
 
47459
      }
-
 
47460
      return 0;
-
 
47461
    }
-
 
47462
 
-
 
47463
    public _Fields fieldForId(int fieldId) {
-
 
47464
      return _Fields.findByThriftId(fieldId);
-
 
47465
    }
-
 
47466
 
-
 
47467
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47468
      org.apache.thrift.protocol.TField field;
-
 
47469
      iprot.readStructBegin();
-
 
47470
      while (true)
-
 
47471
      {
-
 
47472
        field = iprot.readFieldBegin();
-
 
47473
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47474
          break;
-
 
47475
        }
-
 
47476
        switch (field.id) {
-
 
47477
          case 0: // SUCCESS
-
 
47478
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
47479
              this.success = new SnapdealInventoryItem();
-
 
47480
              this.success.read(iprot);
-
 
47481
            } else { 
-
 
47482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47483
            }
-
 
47484
            break;
-
 
47485
          default:
-
 
47486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47487
        }
-
 
47488
        iprot.readFieldEnd();
-
 
47489
      }
-
 
47490
      iprot.readStructEnd();
-
 
47491
      validate();
-
 
47492
    }
-
 
47493
 
-
 
47494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47495
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47496
 
-
 
47497
      if (this.isSetSuccess()) {
-
 
47498
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
47499
        this.success.write(oprot);
-
 
47500
        oprot.writeFieldEnd();
-
 
47501
      }
-
 
47502
      oprot.writeFieldStop();
-
 
47503
      oprot.writeStructEnd();
-
 
47504
    }
-
 
47505
 
-
 
47506
    @Override
-
 
47507
    public String toString() {
-
 
47508
      StringBuilder sb = new StringBuilder("getSnapdealInventoryForItem_result(");
-
 
47509
      boolean first = true;
-
 
47510
 
-
 
47511
      sb.append("success:");
-
 
47512
      if (this.success == null) {
-
 
47513
        sb.append("null");
-
 
47514
      } else {
-
 
47515
        sb.append(this.success);
-
 
47516
      }
-
 
47517
      first = false;
-
 
47518
      sb.append(")");
-
 
47519
      return sb.toString();
-
 
47520
    }
-
 
47521
 
-
 
47522
    public void validate() throws org.apache.thrift.TException {
-
 
47523
      // check for required fields
-
 
47524
    }
-
 
47525
 
-
 
47526
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47527
      try {
-
 
47528
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47529
      } catch (org.apache.thrift.TException te) {
-
 
47530
        throw new java.io.IOException(te);
-
 
47531
      }
-
 
47532
    }
-
 
47533
 
-
 
47534
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47535
      try {
-
 
47536
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47537
      } catch (org.apache.thrift.TException te) {
-
 
47538
        throw new java.io.IOException(te);
-
 
47539
      }
-
 
47540
    }
-
 
47541
 
-
 
47542
  }
-
 
47543
 
-
 
47544
  public static class addOrUpdateSnapdealInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealInventoryForItem_args, addOrUpdateSnapdealInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
47545
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealInventoryForItem_args");
-
 
47546
 
-
 
47547
    private static final org.apache.thrift.protocol.TField SNAPDEALINVENTORYITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealinventoryitem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
47548
 
-
 
47549
    private SnapdealInventoryItem snapdealinventoryitem; // required
-
 
47550
 
-
 
47551
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47552
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47553
      SNAPDEALINVENTORYITEM((short)1, "snapdealinventoryitem");
-
 
47554
 
-
 
47555
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47556
 
-
 
47557
      static {
-
 
47558
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47559
          byName.put(field.getFieldName(), field);
-
 
47560
        }
-
 
47561
      }
-
 
47562
 
-
 
47563
      /**
-
 
47564
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47565
       */
-
 
47566
      public static _Fields findByThriftId(int fieldId) {
-
 
47567
        switch(fieldId) {
-
 
47568
          case 1: // SNAPDEALINVENTORYITEM
-
 
47569
            return SNAPDEALINVENTORYITEM;
-
 
47570
          default:
-
 
47571
            return null;
-
 
47572
        }
-
 
47573
      }
-
 
47574
 
-
 
47575
      /**
-
 
47576
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47577
       * if it is not found.
-
 
47578
       */
-
 
47579
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47580
        _Fields fields = findByThriftId(fieldId);
-
 
47581
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47582
        return fields;
-
 
47583
      }
-
 
47584
 
-
 
47585
      /**
-
 
47586
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47587
       */
-
 
47588
      public static _Fields findByName(String name) {
-
 
47589
        return byName.get(name);
-
 
47590
      }
-
 
47591
 
-
 
47592
      private final short _thriftId;
-
 
47593
      private final String _fieldName;
-
 
47594
 
-
 
47595
      _Fields(short thriftId, String fieldName) {
-
 
47596
        _thriftId = thriftId;
-
 
47597
        _fieldName = fieldName;
-
 
47598
      }
-
 
47599
 
-
 
47600
      public short getThriftFieldId() {
-
 
47601
        return _thriftId;
-
 
47602
      }
-
 
47603
 
-
 
47604
      public String getFieldName() {
-
 
47605
        return _fieldName;
-
 
47606
      }
-
 
47607
    }
-
 
47608
 
-
 
47609
    // isset id assignments
-
 
47610
 
-
 
47611
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47612
    static {
-
 
47613
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47614
      tmpMap.put(_Fields.SNAPDEALINVENTORYITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealinventoryitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47615
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class)));
-
 
47616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealInventoryForItem_args.class, metaDataMap);
-
 
47618
    }
-
 
47619
 
-
 
47620
    public addOrUpdateSnapdealInventoryForItem_args() {
-
 
47621
    }
-
 
47622
 
-
 
47623
    public addOrUpdateSnapdealInventoryForItem_args(
-
 
47624
      SnapdealInventoryItem snapdealinventoryitem)
-
 
47625
    {
-
 
47626
      this();
-
 
47627
      this.snapdealinventoryitem = snapdealinventoryitem;
-
 
47628
    }
-
 
47629
 
-
 
47630
    /**
-
 
47631
     * Performs a deep copy on <i>other</i>.
-
 
47632
     */
-
 
47633
    public addOrUpdateSnapdealInventoryForItem_args(addOrUpdateSnapdealInventoryForItem_args other) {
-
 
47634
      if (other.isSetSnapdealinventoryitem()) {
-
 
47635
        this.snapdealinventoryitem = new SnapdealInventoryItem(other.snapdealinventoryitem);
-
 
47636
      }
-
 
47637
    }
-
 
47638
 
-
 
47639
    public addOrUpdateSnapdealInventoryForItem_args deepCopy() {
-
 
47640
      return new addOrUpdateSnapdealInventoryForItem_args(this);
-
 
47641
    }
-
 
47642
 
-
 
47643
    @Override
-
 
47644
    public void clear() {
-
 
47645
      this.snapdealinventoryitem = null;
-
 
47646
    }
-
 
47647
 
-
 
47648
    public SnapdealInventoryItem getSnapdealinventoryitem() {
-
 
47649
      return this.snapdealinventoryitem;
-
 
47650
    }
-
 
47651
 
-
 
47652
    public void setSnapdealinventoryitem(SnapdealInventoryItem snapdealinventoryitem) {
-
 
47653
      this.snapdealinventoryitem = snapdealinventoryitem;
-
 
47654
    }
-
 
47655
 
-
 
47656
    public void unsetSnapdealinventoryitem() {
-
 
47657
      this.snapdealinventoryitem = null;
-
 
47658
    }
-
 
47659
 
-
 
47660
    /** Returns true if field snapdealinventoryitem is set (has been assigned a value) and false otherwise */
-
 
47661
    public boolean isSetSnapdealinventoryitem() {
-
 
47662
      return this.snapdealinventoryitem != null;
-
 
47663
    }
-
 
47664
 
-
 
47665
    public void setSnapdealinventoryitemIsSet(boolean value) {
-
 
47666
      if (!value) {
-
 
47667
        this.snapdealinventoryitem = null;
-
 
47668
      }
-
 
47669
    }
-
 
47670
 
-
 
47671
    public void setFieldValue(_Fields field, Object value) {
-
 
47672
      switch (field) {
-
 
47673
      case SNAPDEALINVENTORYITEM:
-
 
47674
        if (value == null) {
-
 
47675
          unsetSnapdealinventoryitem();
-
 
47676
        } else {
-
 
47677
          setSnapdealinventoryitem((SnapdealInventoryItem)value);
-
 
47678
        }
-
 
47679
        break;
-
 
47680
 
-
 
47681
      }
-
 
47682
    }
-
 
47683
 
-
 
47684
    public Object getFieldValue(_Fields field) {
-
 
47685
      switch (field) {
-
 
47686
      case SNAPDEALINVENTORYITEM:
-
 
47687
        return getSnapdealinventoryitem();
-
 
47688
 
-
 
47689
      }
-
 
47690
      throw new IllegalStateException();
-
 
47691
    }
-
 
47692
 
-
 
47693
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47694
    public boolean isSet(_Fields field) {
-
 
47695
      if (field == null) {
-
 
47696
        throw new IllegalArgumentException();
-
 
47697
      }
-
 
47698
 
-
 
47699
      switch (field) {
-
 
47700
      case SNAPDEALINVENTORYITEM:
-
 
47701
        return isSetSnapdealinventoryitem();
-
 
47702
      }
-
 
47703
      throw new IllegalStateException();
-
 
47704
    }
-
 
47705
 
-
 
47706
    @Override
-
 
47707
    public boolean equals(Object that) {
-
 
47708
      if (that == null)
-
 
47709
        return false;
-
 
47710
      if (that instanceof addOrUpdateSnapdealInventoryForItem_args)
-
 
47711
        return this.equals((addOrUpdateSnapdealInventoryForItem_args)that);
-
 
47712
      return false;
-
 
47713
    }
-
 
47714
 
-
 
47715
    public boolean equals(addOrUpdateSnapdealInventoryForItem_args that) {
-
 
47716
      if (that == null)
-
 
47717
        return false;
-
 
47718
 
-
 
47719
      boolean this_present_snapdealinventoryitem = true && this.isSetSnapdealinventoryitem();
-
 
47720
      boolean that_present_snapdealinventoryitem = true && that.isSetSnapdealinventoryitem();
-
 
47721
      if (this_present_snapdealinventoryitem || that_present_snapdealinventoryitem) {
-
 
47722
        if (!(this_present_snapdealinventoryitem && that_present_snapdealinventoryitem))
-
 
47723
          return false;
-
 
47724
        if (!this.snapdealinventoryitem.equals(that.snapdealinventoryitem))
-
 
47725
          return false;
-
 
47726
      }
-
 
47727
 
-
 
47728
      return true;
-
 
47729
    }
-
 
47730
 
-
 
47731
    @Override
-
 
47732
    public int hashCode() {
-
 
47733
      return 0;
-
 
47734
    }
-
 
47735
 
-
 
47736
    public int compareTo(addOrUpdateSnapdealInventoryForItem_args other) {
-
 
47737
      if (!getClass().equals(other.getClass())) {
-
 
47738
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47739
      }
-
 
47740
 
-
 
47741
      int lastComparison = 0;
-
 
47742
      addOrUpdateSnapdealInventoryForItem_args typedOther = (addOrUpdateSnapdealInventoryForItem_args)other;
-
 
47743
 
-
 
47744
      lastComparison = Boolean.valueOf(isSetSnapdealinventoryitem()).compareTo(typedOther.isSetSnapdealinventoryitem());
-
 
47745
      if (lastComparison != 0) {
-
 
47746
        return lastComparison;
-
 
47747
      }
-
 
47748
      if (isSetSnapdealinventoryitem()) {
-
 
47749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealinventoryitem, typedOther.snapdealinventoryitem);
-
 
47750
        if (lastComparison != 0) {
-
 
47751
          return lastComparison;
-
 
47752
        }
-
 
47753
      }
-
 
47754
      return 0;
-
 
47755
    }
-
 
47756
 
-
 
47757
    public _Fields fieldForId(int fieldId) {
-
 
47758
      return _Fields.findByThriftId(fieldId);
-
 
47759
    }
-
 
47760
 
-
 
47761
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47762
      org.apache.thrift.protocol.TField field;
-
 
47763
      iprot.readStructBegin();
-
 
47764
      while (true)
-
 
47765
      {
-
 
47766
        field = iprot.readFieldBegin();
-
 
47767
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47768
          break;
-
 
47769
        }
-
 
47770
        switch (field.id) {
-
 
47771
          case 1: // SNAPDEALINVENTORYITEM
-
 
47772
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
47773
              this.snapdealinventoryitem = new SnapdealInventoryItem();
-
 
47774
              this.snapdealinventoryitem.read(iprot);
-
 
47775
            } else { 
-
 
47776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47777
            }
-
 
47778
            break;
-
 
47779
          default:
-
 
47780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47781
        }
-
 
47782
        iprot.readFieldEnd();
-
 
47783
      }
-
 
47784
      iprot.readStructEnd();
-
 
47785
      validate();
-
 
47786
    }
-
 
47787
 
-
 
47788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47789
      validate();
-
 
47790
 
-
 
47791
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47792
      if (this.snapdealinventoryitem != null) {
-
 
47793
        oprot.writeFieldBegin(SNAPDEALINVENTORYITEM_FIELD_DESC);
-
 
47794
        this.snapdealinventoryitem.write(oprot);
-
 
47795
        oprot.writeFieldEnd();
-
 
47796
      }
-
 
47797
      oprot.writeFieldStop();
-
 
47798
      oprot.writeStructEnd();
-
 
47799
    }
-
 
47800
 
-
 
47801
    @Override
-
 
47802
    public String toString() {
-
 
47803
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealInventoryForItem_args(");
-
 
47804
      boolean first = true;
-
 
47805
 
-
 
47806
      sb.append("snapdealinventoryitem:");
-
 
47807
      if (this.snapdealinventoryitem == null) {
-
 
47808
        sb.append("null");
-
 
47809
      } else {
-
 
47810
        sb.append(this.snapdealinventoryitem);
-
 
47811
      }
-
 
47812
      first = false;
-
 
47813
      sb.append(")");
-
 
47814
      return sb.toString();
-
 
47815
    }
-
 
47816
 
-
 
47817
    public void validate() throws org.apache.thrift.TException {
-
 
47818
      // check for required fields
-
 
47819
    }
-
 
47820
 
-
 
47821
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47822
      try {
-
 
47823
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47824
      } catch (org.apache.thrift.TException te) {
-
 
47825
        throw new java.io.IOException(te);
-
 
47826
      }
-
 
47827
    }
-
 
47828
 
-
 
47829
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47830
      try {
-
 
47831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47832
      } catch (org.apache.thrift.TException te) {
-
 
47833
        throw new java.io.IOException(te);
-
 
47834
      }
-
 
47835
    }
-
 
47836
 
-
 
47837
  }
-
 
47838
 
-
 
47839
  public static class addOrUpdateSnapdealInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealInventoryForItem_result, addOrUpdateSnapdealInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
47840
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealInventoryForItem_result");
-
 
47841
 
-
 
47842
 
-
 
47843
 
-
 
47844
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47845
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47846
;
-
 
47847
 
-
 
47848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47849
 
-
 
47850
      static {
-
 
47851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47852
          byName.put(field.getFieldName(), field);
-
 
47853
        }
-
 
47854
      }
-
 
47855
 
-
 
47856
      /**
-
 
47857
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47858
       */
-
 
47859
      public static _Fields findByThriftId(int fieldId) {
-
 
47860
        switch(fieldId) {
-
 
47861
          default:
-
 
47862
            return null;
-
 
47863
        }
-
 
47864
      }
-
 
47865
 
-
 
47866
      /**
-
 
47867
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47868
       * if it is not found.
-
 
47869
       */
-
 
47870
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47871
        _Fields fields = findByThriftId(fieldId);
-
 
47872
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47873
        return fields;
-
 
47874
      }
-
 
47875
 
-
 
47876
      /**
-
 
47877
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47878
       */
-
 
47879
      public static _Fields findByName(String name) {
-
 
47880
        return byName.get(name);
-
 
47881
      }
-
 
47882
 
-
 
47883
      private final short _thriftId;
-
 
47884
      private final String _fieldName;
-
 
47885
 
-
 
47886
      _Fields(short thriftId, String fieldName) {
-
 
47887
        _thriftId = thriftId;
-
 
47888
        _fieldName = fieldName;
-
 
47889
      }
-
 
47890
 
-
 
47891
      public short getThriftFieldId() {
-
 
47892
        return _thriftId;
-
 
47893
      }
-
 
47894
 
-
 
47895
      public String getFieldName() {
-
 
47896
        return _fieldName;
-
 
47897
      }
-
 
47898
    }
-
 
47899
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47900
    static {
-
 
47901
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealInventoryForItem_result.class, metaDataMap);
-
 
47904
    }
-
 
47905
 
-
 
47906
    public addOrUpdateSnapdealInventoryForItem_result() {
-
 
47907
    }
-
 
47908
 
-
 
47909
    /**
-
 
47910
     * Performs a deep copy on <i>other</i>.
-
 
47911
     */
-
 
47912
    public addOrUpdateSnapdealInventoryForItem_result(addOrUpdateSnapdealInventoryForItem_result other) {
-
 
47913
    }
-
 
47914
 
-
 
47915
    public addOrUpdateSnapdealInventoryForItem_result deepCopy() {
-
 
47916
      return new addOrUpdateSnapdealInventoryForItem_result(this);
-
 
47917
    }
-
 
47918
 
-
 
47919
    @Override
-
 
47920
    public void clear() {
-
 
47921
    }
-
 
47922
 
-
 
47923
    public void setFieldValue(_Fields field, Object value) {
-
 
47924
      switch (field) {
-
 
47925
      }
-
 
47926
    }
-
 
47927
 
-
 
47928
    public Object getFieldValue(_Fields field) {
-
 
47929
      switch (field) {
-
 
47930
      }
-
 
47931
      throw new IllegalStateException();
-
 
47932
    }
-
 
47933
 
-
 
47934
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47935
    public boolean isSet(_Fields field) {
-
 
47936
      if (field == null) {
-
 
47937
        throw new IllegalArgumentException();
-
 
47938
      }
-
 
47939
 
-
 
47940
      switch (field) {
-
 
47941
      }
-
 
47942
      throw new IllegalStateException();
-
 
47943
    }
-
 
47944
 
-
 
47945
    @Override
-
 
47946
    public boolean equals(Object that) {
-
 
47947
      if (that == null)
-
 
47948
        return false;
-
 
47949
      if (that instanceof addOrUpdateSnapdealInventoryForItem_result)
-
 
47950
        return this.equals((addOrUpdateSnapdealInventoryForItem_result)that);
-
 
47951
      return false;
-
 
47952
    }
-
 
47953
 
-
 
47954
    public boolean equals(addOrUpdateSnapdealInventoryForItem_result that) {
-
 
47955
      if (that == null)
-
 
47956
        return false;
-
 
47957
 
-
 
47958
      return true;
-
 
47959
    }
-
 
47960
 
-
 
47961
    @Override
-
 
47962
    public int hashCode() {
-
 
47963
      return 0;
-
 
47964
    }
-
 
47965
 
-
 
47966
    public int compareTo(addOrUpdateSnapdealInventoryForItem_result other) {
-
 
47967
      if (!getClass().equals(other.getClass())) {
-
 
47968
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47969
      }
-
 
47970
 
-
 
47971
      int lastComparison = 0;
-
 
47972
      addOrUpdateSnapdealInventoryForItem_result typedOther = (addOrUpdateSnapdealInventoryForItem_result)other;
-
 
47973
 
-
 
47974
      return 0;
-
 
47975
    }
-
 
47976
 
-
 
47977
    public _Fields fieldForId(int fieldId) {
-
 
47978
      return _Fields.findByThriftId(fieldId);
-
 
47979
    }
-
 
47980
 
-
 
47981
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47982
      org.apache.thrift.protocol.TField field;
-
 
47983
      iprot.readStructBegin();
-
 
47984
      while (true)
-
 
47985
      {
-
 
47986
        field = iprot.readFieldBegin();
-
 
47987
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47988
          break;
-
 
47989
        }
-
 
47990
        switch (field.id) {
-
 
47991
          default:
-
 
47992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47993
        }
-
 
47994
        iprot.readFieldEnd();
-
 
47995
      }
-
 
47996
      iprot.readStructEnd();
-
 
47997
      validate();
-
 
47998
    }
-
 
47999
 
-
 
48000
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48001
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48002
 
-
 
48003
      oprot.writeFieldStop();
-
 
48004
      oprot.writeStructEnd();
-
 
48005
    }
-
 
48006
 
-
 
48007
    @Override
-
 
48008
    public String toString() {
-
 
48009
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealInventoryForItem_result(");
-
 
48010
      boolean first = true;
-
 
48011
 
-
 
48012
      sb.append(")");
-
 
48013
      return sb.toString();
-
 
48014
    }
-
 
48015
 
-
 
48016
    public void validate() throws org.apache.thrift.TException {
-
 
48017
      // check for required fields
-
 
48018
    }
-
 
48019
 
-
 
48020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48021
      try {
-
 
48022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48023
      } catch (org.apache.thrift.TException te) {
-
 
48024
        throw new java.io.IOException(te);
-
 
48025
      }
-
 
48026
    }
-
 
48027
 
-
 
48028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48029
      try {
-
 
48030
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48031
      } catch (org.apache.thrift.TException te) {
-
 
48032
        throw new java.io.IOException(te);
-
 
48033
      }
-
 
48034
    }
-
 
48035
 
-
 
48036
  }
-
 
48037
 
-
 
48038
  public static class getNlcForWarehouse_args implements org.apache.thrift.TBase<getNlcForWarehouse_args, getNlcForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
48039
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNlcForWarehouse_args");
-
 
48040
 
-
 
48041
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
48042
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
48043
 
-
 
48044
    private long warehouse_id; // required
-
 
48045
    private long item_id; // required
-
 
48046
 
-
 
48047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48049
      WAREHOUSE_ID((short)1, "warehouse_id"),
-
 
48050
      ITEM_ID((short)2, "item_id");
-
 
48051
 
-
 
48052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48053
 
-
 
48054
      static {
-
 
48055
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48056
          byName.put(field.getFieldName(), field);
-
 
48057
        }
-
 
48058
      }
-
 
48059
 
-
 
48060
      /**
-
 
48061
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48062
       */
-
 
48063
      public static _Fields findByThriftId(int fieldId) {
-
 
48064
        switch(fieldId) {
-
 
48065
          case 1: // WAREHOUSE_ID
-
 
48066
            return WAREHOUSE_ID;
-
 
48067
          case 2: // ITEM_ID
-
 
48068
            return ITEM_ID;
-
 
48069
          default:
-
 
48070
            return null;
-
 
48071
        }
-
 
48072
      }
-
 
48073
 
-
 
48074
      /**
-
 
48075
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48076
       * if it is not found.
-
 
48077
       */
-
 
48078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48079
        _Fields fields = findByThriftId(fieldId);
-
 
48080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48081
        return fields;
-
 
48082
      }
-
 
48083
 
-
 
48084
      /**
-
 
48085
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48086
       */
-
 
48087
      public static _Fields findByName(String name) {
-
 
48088
        return byName.get(name);
-
 
48089
      }
-
 
48090
 
-
 
48091
      private final short _thriftId;
-
 
48092
      private final String _fieldName;
-
 
48093
 
-
 
48094
      _Fields(short thriftId, String fieldName) {
-
 
48095
        _thriftId = thriftId;
-
 
48096
        _fieldName = fieldName;
-
 
48097
      }
-
 
48098
 
-
 
48099
      public short getThriftFieldId() {
-
 
48100
        return _thriftId;
-
 
48101
      }
-
 
48102
 
-
 
48103
      public String getFieldName() {
-
 
48104
        return _fieldName;
-
 
48105
      }
-
 
48106
    }
-
 
48107
 
-
 
48108
    // isset id assignments
-
 
48109
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
48110
    private static final int __ITEM_ID_ISSET_ID = 1;
-
 
48111
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
48112
 
-
 
48113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48114
    static {
-
 
48115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48116
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
48118
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
48120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNlcForWarehouse_args.class, metaDataMap);
-
 
48122
    }
-
 
48123
 
-
 
48124
    public getNlcForWarehouse_args() {
-
 
48125
    }
-
 
48126
 
-
 
48127
    public getNlcForWarehouse_args(
-
 
48128
      long warehouse_id,
-
 
48129
      long item_id)
-
 
48130
    {
-
 
48131
      this();
-
 
48132
      this.warehouse_id = warehouse_id;
-
 
48133
      setWarehouse_idIsSet(true);
-
 
48134
      this.item_id = item_id;
-
 
48135
      setItem_idIsSet(true);
-
 
48136
    }
-
 
48137
 
-
 
48138
    /**
-
 
48139
     * Performs a deep copy on <i>other</i>.
-
 
48140
     */
-
 
48141
    public getNlcForWarehouse_args(getNlcForWarehouse_args other) {
-
 
48142
      __isset_bit_vector.clear();
-
 
48143
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
48144
      this.warehouse_id = other.warehouse_id;
-
 
48145
      this.item_id = other.item_id;
-
 
48146
    }
-
 
48147
 
-
 
48148
    public getNlcForWarehouse_args deepCopy() {
-
 
48149
      return new getNlcForWarehouse_args(this);
-
 
48150
    }
-
 
48151
 
-
 
48152
    @Override
-
 
48153
    public void clear() {
-
 
48154
      setWarehouse_idIsSet(false);
-
 
48155
      this.warehouse_id = 0;
-
 
48156
      setItem_idIsSet(false);
-
 
48157
      this.item_id = 0;
-
 
48158
    }
-
 
48159
 
-
 
48160
    public long getWarehouse_id() {
-
 
48161
      return this.warehouse_id;
-
 
48162
    }
-
 
48163
 
-
 
48164
    public void setWarehouse_id(long warehouse_id) {
-
 
48165
      this.warehouse_id = warehouse_id;
-
 
48166
      setWarehouse_idIsSet(true);
-
 
48167
    }
-
 
48168
 
-
 
48169
    public void unsetWarehouse_id() {
-
 
48170
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
48171
    }
-
 
48172
 
-
 
48173
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
48174
    public boolean isSetWarehouse_id() {
-
 
48175
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
48176
    }
-
 
48177
 
-
 
48178
    public void setWarehouse_idIsSet(boolean value) {
-
 
48179
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
48180
    }
-
 
48181
 
-
 
48182
    public long getItem_id() {
-
 
48183
      return this.item_id;
-
 
48184
    }
-
 
48185
 
-
 
48186
    public void setItem_id(long item_id) {
-
 
48187
      this.item_id = item_id;
-
 
48188
      setItem_idIsSet(true);
-
 
48189
    }
-
 
48190
 
-
 
48191
    public void unsetItem_id() {
-
 
48192
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
48193
    }
-
 
48194
 
-
 
48195
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
48196
    public boolean isSetItem_id() {
-
 
48197
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
48198
    }
-
 
48199
 
-
 
48200
    public void setItem_idIsSet(boolean value) {
-
 
48201
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
48202
    }
-
 
48203
 
-
 
48204
    public void setFieldValue(_Fields field, Object value) {
-
 
48205
      switch (field) {
-
 
48206
      case WAREHOUSE_ID:
-
 
48207
        if (value == null) {
-
 
48208
          unsetWarehouse_id();
-
 
48209
        } else {
-
 
48210
          setWarehouse_id((Long)value);
-
 
48211
        }
-
 
48212
        break;
-
 
48213
 
-
 
48214
      case ITEM_ID:
-
 
48215
        if (value == null) {
-
 
48216
          unsetItem_id();
-
 
48217
        } else {
-
 
48218
          setItem_id((Long)value);
-
 
48219
        }
-
 
48220
        break;
-
 
48221
 
-
 
48222
      }
-
 
48223
    }
-
 
48224
 
-
 
48225
    public Object getFieldValue(_Fields field) {
-
 
48226
      switch (field) {
-
 
48227
      case WAREHOUSE_ID:
-
 
48228
        return Long.valueOf(getWarehouse_id());
-
 
48229
 
-
 
48230
      case ITEM_ID:
-
 
48231
        return Long.valueOf(getItem_id());
-
 
48232
 
-
 
48233
      }
-
 
48234
      throw new IllegalStateException();
-
 
48235
    }
-
 
48236
 
-
 
48237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48238
    public boolean isSet(_Fields field) {
-
 
48239
      if (field == null) {
-
 
48240
        throw new IllegalArgumentException();
-
 
48241
      }
-
 
48242
 
-
 
48243
      switch (field) {
-
 
48244
      case WAREHOUSE_ID:
-
 
48245
        return isSetWarehouse_id();
-
 
48246
      case ITEM_ID:
-
 
48247
        return isSetItem_id();
-
 
48248
      }
-
 
48249
      throw new IllegalStateException();
-
 
48250
    }
-
 
48251
 
-
 
48252
    @Override
-
 
48253
    public boolean equals(Object that) {
-
 
48254
      if (that == null)
-
 
48255
        return false;
-
 
48256
      if (that instanceof getNlcForWarehouse_args)
-
 
48257
        return this.equals((getNlcForWarehouse_args)that);
-
 
48258
      return false;
-
 
48259
    }
-
 
48260
 
-
 
48261
    public boolean equals(getNlcForWarehouse_args that) {
-
 
48262
      if (that == null)
-
 
48263
        return false;
-
 
48264
 
-
 
48265
      boolean this_present_warehouse_id = true;
-
 
48266
      boolean that_present_warehouse_id = true;
-
 
48267
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
48268
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
48269
          return false;
-
 
48270
        if (this.warehouse_id != that.warehouse_id)
-
 
48271
          return false;
-
 
48272
      }
-
 
48273
 
-
 
48274
      boolean this_present_item_id = true;
-
 
48275
      boolean that_present_item_id = true;
-
 
48276
      if (this_present_item_id || that_present_item_id) {
-
 
48277
        if (!(this_present_item_id && that_present_item_id))
-
 
48278
          return false;
-
 
48279
        if (this.item_id != that.item_id)
-
 
48280
          return false;
-
 
48281
      }
-
 
48282
 
-
 
48283
      return true;
-
 
48284
    }
-
 
48285
 
-
 
48286
    @Override
-
 
48287
    public int hashCode() {
-
 
48288
      return 0;
-
 
48289
    }
-
 
48290
 
-
 
48291
    public int compareTo(getNlcForWarehouse_args other) {
-
 
48292
      if (!getClass().equals(other.getClass())) {
-
 
48293
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48294
      }
-
 
48295
 
-
 
48296
      int lastComparison = 0;
-
 
48297
      getNlcForWarehouse_args typedOther = (getNlcForWarehouse_args)other;
-
 
48298
 
-
 
48299
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
48300
      if (lastComparison != 0) {
-
 
48301
        return lastComparison;
-
 
48302
      }
-
 
48303
      if (isSetWarehouse_id()) {
-
 
48304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
48305
        if (lastComparison != 0) {
-
 
48306
          return lastComparison;
-
 
48307
        }
-
 
48308
      }
-
 
48309
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
48310
      if (lastComparison != 0) {
-
 
48311
        return lastComparison;
-
 
48312
      }
-
 
48313
      if (isSetItem_id()) {
-
 
48314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
48315
        if (lastComparison != 0) {
-
 
48316
          return lastComparison;
-
 
48317
        }
-
 
48318
      }
-
 
48319
      return 0;
-
 
48320
    }
-
 
48321
 
-
 
48322
    public _Fields fieldForId(int fieldId) {
-
 
48323
      return _Fields.findByThriftId(fieldId);
-
 
48324
    }
-
 
48325
 
-
 
48326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48327
      org.apache.thrift.protocol.TField field;
-
 
48328
      iprot.readStructBegin();
-
 
48329
      while (true)
-
 
48330
      {
-
 
48331
        field = iprot.readFieldBegin();
-
 
48332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48333
          break;
-
 
48334
        }
-
 
48335
        switch (field.id) {
-
 
48336
          case 1: // WAREHOUSE_ID
-
 
48337
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
48338
              this.warehouse_id = iprot.readI64();
-
 
48339
              setWarehouse_idIsSet(true);
-
 
48340
            } else { 
-
 
48341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48342
            }
-
 
48343
            break;
-
 
48344
          case 2: // ITEM_ID
-
 
48345
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
48346
              this.item_id = iprot.readI64();
-
 
48347
              setItem_idIsSet(true);
-
 
48348
            } else { 
-
 
48349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48350
            }
-
 
48351
            break;
-
 
48352
          default:
-
 
48353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48354
        }
-
 
48355
        iprot.readFieldEnd();
-
 
48356
      }
-
 
48357
      iprot.readStructEnd();
-
 
48358
      validate();
-
 
48359
    }
-
 
48360
 
-
 
48361
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48362
      validate();
-
 
48363
 
-
 
48364
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48365
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
48366
      oprot.writeI64(this.warehouse_id);
-
 
48367
      oprot.writeFieldEnd();
-
 
48368
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
48369
      oprot.writeI64(this.item_id);
-
 
48370
      oprot.writeFieldEnd();
-
 
48371
      oprot.writeFieldStop();
-
 
48372
      oprot.writeStructEnd();
-
 
48373
    }
-
 
48374
 
-
 
48375
    @Override
-
 
48376
    public String toString() {
-
 
48377
      StringBuilder sb = new StringBuilder("getNlcForWarehouse_args(");
-
 
48378
      boolean first = true;
-
 
48379
 
-
 
48380
      sb.append("warehouse_id:");
-
 
48381
      sb.append(this.warehouse_id);
-
 
48382
      first = false;
-
 
48383
      if (!first) sb.append(", ");
-
 
48384
      sb.append("item_id:");
-
 
48385
      sb.append(this.item_id);
-
 
48386
      first = false;
-
 
48387
      sb.append(")");
-
 
48388
      return sb.toString();
-
 
48389
    }
-
 
48390
 
-
 
48391
    public void validate() throws org.apache.thrift.TException {
-
 
48392
      // check for required fields
-
 
48393
    }
-
 
48394
 
-
 
48395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48396
      try {
-
 
48397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48398
      } catch (org.apache.thrift.TException te) {
-
 
48399
        throw new java.io.IOException(te);
-
 
48400
      }
-
 
48401
    }
-
 
48402
 
-
 
48403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48404
      try {
-
 
48405
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
48406
        __isset_bit_vector = new BitSet(1);
-
 
48407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48408
      } catch (org.apache.thrift.TException te) {
-
 
48409
        throw new java.io.IOException(te);
-
 
48410
      }
-
 
48411
    }
-
 
48412
 
-
 
48413
  }
-
 
48414
 
-
 
48415
  public static class getNlcForWarehouse_result implements org.apache.thrift.TBase<getNlcForWarehouse_result, getNlcForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
48416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNlcForWarehouse_result");
-
 
48417
 
-
 
48418
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
-
 
48419
 
-
 
48420
    private double success; // required
-
 
48421
 
-
 
48422
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48423
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48424
      SUCCESS((short)0, "success");
-
 
48425
 
-
 
48426
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48427
 
-
 
48428
      static {
-
 
48429
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48430
          byName.put(field.getFieldName(), field);
-
 
48431
        }
-
 
48432
      }
-
 
48433
 
-
 
48434
      /**
-
 
48435
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48436
       */
-
 
48437
      public static _Fields findByThriftId(int fieldId) {
-
 
48438
        switch(fieldId) {
-
 
48439
          case 0: // SUCCESS
-
 
48440
            return SUCCESS;
-
 
48441
          default:
-
 
48442
            return null;
-
 
48443
        }
-
 
48444
      }
-
 
48445
 
-
 
48446
      /**
-
 
48447
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48448
       * if it is not found.
-
 
48449
       */
-
 
48450
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48451
        _Fields fields = findByThriftId(fieldId);
-
 
48452
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48453
        return fields;
-
 
48454
      }
-
 
48455
 
-
 
48456
      /**
-
 
48457
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48458
       */
-
 
48459
      public static _Fields findByName(String name) {
-
 
48460
        return byName.get(name);
-
 
48461
      }
-
 
48462
 
-
 
48463
      private final short _thriftId;
-
 
48464
      private final String _fieldName;
-
 
48465
 
-
 
48466
      _Fields(short thriftId, String fieldName) {
-
 
48467
        _thriftId = thriftId;
-
 
48468
        _fieldName = fieldName;
-
 
48469
      }
-
 
48470
 
-
 
48471
      public short getThriftFieldId() {
-
 
48472
        return _thriftId;
-
 
48473
      }
-
 
48474
 
-
 
48475
      public String getFieldName() {
-
 
48476
        return _fieldName;
-
 
48477
      }
-
 
48478
    }
-
 
48479
 
-
 
48480
    // isset id assignments
-
 
48481
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
48482
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
48483
 
-
 
48484
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48485
    static {
-
 
48486
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48487
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
48489
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48490
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNlcForWarehouse_result.class, metaDataMap);
-
 
48491
    }
-
 
48492
 
-
 
48493
    public getNlcForWarehouse_result() {
-
 
48494
    }
-
 
48495
 
-
 
48496
    public getNlcForWarehouse_result(
-
 
48497
      double success)
-
 
48498
    {
-
 
48499
      this();
-
 
48500
      this.success = success;
-
 
48501
      setSuccessIsSet(true);
-
 
48502
    }
-
 
48503
 
-
 
48504
    /**
-
 
48505
     * Performs a deep copy on <i>other</i>.
-
 
48506
     */
-
 
48507
    public getNlcForWarehouse_result(getNlcForWarehouse_result other) {
-
 
48508
      __isset_bit_vector.clear();
-
 
48509
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
48510
      this.success = other.success;
-
 
48511
    }
-
 
48512
 
-
 
48513
    public getNlcForWarehouse_result deepCopy() {
-
 
48514
      return new getNlcForWarehouse_result(this);
-
 
48515
    }
-
 
48516
 
-
 
48517
    @Override
-
 
48518
    public void clear() {
-
 
48519
      setSuccessIsSet(false);
-
 
48520
      this.success = 0.0;
-
 
48521
    }
-
 
48522
 
-
 
48523
    public double getSuccess() {
-
 
48524
      return this.success;
-
 
48525
    }
-
 
48526
 
-
 
48527
    public void setSuccess(double success) {
-
 
48528
      this.success = success;
-
 
48529
      setSuccessIsSet(true);
-
 
48530
    }
-
 
48531
 
-
 
48532
    public void unsetSuccess() {
-
 
48533
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
48534
    }
-
 
48535
 
-
 
48536
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
48537
    public boolean isSetSuccess() {
-
 
48538
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
48539
    }
-
 
48540
 
-
 
48541
    public void setSuccessIsSet(boolean value) {
-
 
48542
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
48543
    }
-
 
48544
 
-
 
48545
    public void setFieldValue(_Fields field, Object value) {
-
 
48546
      switch (field) {
-
 
48547
      case SUCCESS:
-
 
48548
        if (value == null) {
-
 
48549
          unsetSuccess();
-
 
48550
        } else {
-
 
48551
          setSuccess((Double)value);
-
 
48552
        }
-
 
48553
        break;
-
 
48554
 
-
 
48555
      }
-
 
48556
    }
-
 
48557
 
-
 
48558
    public Object getFieldValue(_Fields field) {
-
 
48559
      switch (field) {
-
 
48560
      case SUCCESS:
-
 
48561
        return Double.valueOf(getSuccess());
-
 
48562
 
-
 
48563
      }
-
 
48564
      throw new IllegalStateException();
-
 
48565
    }
-
 
48566
 
-
 
48567
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48568
    public boolean isSet(_Fields field) {
-
 
48569
      if (field == null) {
-
 
48570
        throw new IllegalArgumentException();
-
 
48571
      }
-
 
48572
 
-
 
48573
      switch (field) {
-
 
48574
      case SUCCESS:
-
 
48575
        return isSetSuccess();
-
 
48576
      }
-
 
48577
      throw new IllegalStateException();
-
 
48578
    }
-
 
48579
 
-
 
48580
    @Override
-
 
48581
    public boolean equals(Object that) {
-
 
48582
      if (that == null)
-
 
48583
        return false;
-
 
48584
      if (that instanceof getNlcForWarehouse_result)
-
 
48585
        return this.equals((getNlcForWarehouse_result)that);
-
 
48586
      return false;
-
 
48587
    }
-
 
48588
 
-
 
48589
    public boolean equals(getNlcForWarehouse_result that) {
-
 
48590
      if (that == null)
-
 
48591
        return false;
-
 
48592
 
-
 
48593
      boolean this_present_success = true;
-
 
48594
      boolean that_present_success = true;
-
 
48595
      if (this_present_success || that_present_success) {
-
 
48596
        if (!(this_present_success && that_present_success))
-
 
48597
          return false;
-
 
48598
        if (this.success != that.success)
-
 
48599
          return false;
-
 
48600
      }
-
 
48601
 
-
 
48602
      return true;
-
 
48603
    }
-
 
48604
 
-
 
48605
    @Override
-
 
48606
    public int hashCode() {
-
 
48607
      return 0;
-
 
48608
    }
-
 
48609
 
-
 
48610
    public int compareTo(getNlcForWarehouse_result other) {
-
 
48611
      if (!getClass().equals(other.getClass())) {
-
 
48612
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48613
      }
-
 
48614
 
-
 
48615
      int lastComparison = 0;
-
 
48616
      getNlcForWarehouse_result typedOther = (getNlcForWarehouse_result)other;
-
 
48617
 
-
 
48618
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
48619
      if (lastComparison != 0) {
-
 
48620
        return lastComparison;
-
 
48621
      }
-
 
48622
      if (isSetSuccess()) {
-
 
48623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
48624
        if (lastComparison != 0) {
-
 
48625
          return lastComparison;
-
 
48626
        }
-
 
48627
      }
-
 
48628
      return 0;
-
 
48629
    }
-
 
48630
 
-
 
48631
    public _Fields fieldForId(int fieldId) {
-
 
48632
      return _Fields.findByThriftId(fieldId);
-
 
48633
    }
-
 
48634
 
-
 
48635
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48636
      org.apache.thrift.protocol.TField field;
-
 
48637
      iprot.readStructBegin();
-
 
48638
      while (true)
-
 
48639
      {
-
 
48640
        field = iprot.readFieldBegin();
-
 
48641
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48642
          break;
-
 
48643
        }
-
 
48644
        switch (field.id) {
-
 
48645
          case 0: // SUCCESS
-
 
48646
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
48647
              this.success = iprot.readDouble();
-
 
48648
              setSuccessIsSet(true);
-
 
48649
            } else { 
-
 
48650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48651
            }
-
 
48652
            break;
-
 
48653
          default:
-
 
48654
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48655
        }
-
 
48656
        iprot.readFieldEnd();
-
 
48657
      }
-
 
48658
      iprot.readStructEnd();
-
 
48659
      validate();
-
 
48660
    }
-
 
48661
 
-
 
48662
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48663
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48664
 
-
 
48665
      if (this.isSetSuccess()) {
-
 
48666
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
48667
        oprot.writeDouble(this.success);
-
 
48668
        oprot.writeFieldEnd();
-
 
48669
      }
-
 
48670
      oprot.writeFieldStop();
-
 
48671
      oprot.writeStructEnd();
-
 
48672
    }
-
 
48673
 
-
 
48674
    @Override
-
 
48675
    public String toString() {
-
 
48676
      StringBuilder sb = new StringBuilder("getNlcForWarehouse_result(");
-
 
48677
      boolean first = true;
-
 
48678
 
-
 
48679
      sb.append("success:");
-
 
48680
      sb.append(this.success);
-
 
48681
      first = false;
46700
      sb.append(")");
48682
      sb.append(")");
46701
      return sb.toString();
48683
      return sb.toString();
46702
    }
48684
    }
46703
 
48685
 
46704
    public void validate() throws org.apache.thrift.TException {
48686
    public void validate() throws org.apache.thrift.TException {