Subversion Repositories SmartDukaan

Rev

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

Rev 12280 Rev 12363
Line 375... Line 375...
375
 
375
 
376
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException;
376
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException;
377
 
377
 
378
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException;
378
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException;
379
 
379
 
-
 
380
    public double getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException;
-
 
381
 
-
 
382
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException;
-
 
383
 
380
  }
384
  }
381
 
385
 
382
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
386
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
383
 
387
 
384
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
388
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 535... Line 539...
535
 
539
 
536
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
540
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
537
 
541
 
538
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
542
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
539
 
543
 
-
 
544
    public void getWanNlcForSource(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWanNlcForSource_call> resultHandler) throws org.apache.thrift.TException;
-
 
545
 
-
 
546
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
547
 
540
  }
548
  }
541
 
549
 
542
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
550
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
543
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
551
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
544
      public Factory() {}
552
      public Factory() {}
Line 2400... Line 2408...
2400
      updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
2408
      updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
2401
      receiveBase(result, "updateFlipkartStockAtEOD");
2409
      receiveBase(result, "updateFlipkartStockAtEOD");
2402
      return;
2410
      return;
2403
    }
2411
    }
2404
 
2412
 
-
 
2413
    public double getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException
-
 
2414
    {
-
 
2415
      send_getWanNlcForSource(item_id, source);
-
 
2416
      return recv_getWanNlcForSource();
-
 
2417
    }
-
 
2418
 
-
 
2419
    public void send_getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException
-
 
2420
    {
-
 
2421
      getWanNlcForSource_args args = new getWanNlcForSource_args();
-
 
2422
      args.setItem_id(item_id);
-
 
2423
      args.setSource(source);
-
 
2424
      sendBase("getWanNlcForSource", args);
-
 
2425
    }
-
 
2426
 
-
 
2427
    public double recv_getWanNlcForSource() throws org.apache.thrift.TException
-
 
2428
    {
-
 
2429
      getWanNlcForSource_result result = new getWanNlcForSource_result();
-
 
2430
      receiveBase(result, "getWanNlcForSource");
-
 
2431
      if (result.isSetSuccess()) {
-
 
2432
        return result.success;
-
 
2433
      }
-
 
2434
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWanNlcForSource failed: unknown result");
-
 
2435
    }
-
 
2436
 
-
 
2437
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException
-
 
2438
    {
-
 
2439
      send_getAllAvailableAmazonFbaItemInventory();
-
 
2440
      return recv_getAllAvailableAmazonFbaItemInventory();
-
 
2441
    }
-
 
2442
 
-
 
2443
    public void send_getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException
-
 
2444
    {
-
 
2445
      getAllAvailableAmazonFbaItemInventory_args args = new getAllAvailableAmazonFbaItemInventory_args();
-
 
2446
      sendBase("getAllAvailableAmazonFbaItemInventory", args);
-
 
2447
    }
-
 
2448
 
-
 
2449
    public List<AmazonFbaInventorySnapshot> recv_getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException
-
 
2450
    {
-
 
2451
      getAllAvailableAmazonFbaItemInventory_result result = new getAllAvailableAmazonFbaItemInventory_result();
-
 
2452
      receiveBase(result, "getAllAvailableAmazonFbaItemInventory");
-
 
2453
      if (result.isSetSuccess()) {
-
 
2454
        return result.success;
-
 
2455
      }
-
 
2456
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
-
 
2457
    }
-
 
2458
 
2405
  }
2459
  }
2406
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2460
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2407
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2461
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2408
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2462
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2409
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2463
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5061... Line 5115...
5061
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5115
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5062
        (new Client(prot)).recv_updateFlipkartStockAtEOD();
5116
        (new Client(prot)).recv_updateFlipkartStockAtEOD();
5063
      }
5117
      }
5064
    }
5118
    }
5065
 
5119
 
-
 
5120
    public void getWanNlcForSource(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<getWanNlcForSource_call> resultHandler) throws org.apache.thrift.TException {
-
 
5121
      checkReady();
-
 
5122
      getWanNlcForSource_call method_call = new getWanNlcForSource_call(item_id, source, resultHandler, this, ___protocolFactory, ___transport);
-
 
5123
      this.___currentMethod = method_call;
-
 
5124
      ___manager.call(method_call);
-
 
5125
    }
-
 
5126
 
-
 
5127
    public static class getWanNlcForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5128
      private long item_id;
-
 
5129
      private long source;
-
 
5130
      public getWanNlcForSource_call(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<getWanNlcForSource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
5131
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5132
        this.item_id = item_id;
-
 
5133
        this.source = source;
-
 
5134
      }
-
 
5135
 
-
 
5136
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5137
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWanNlcForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5138
        getWanNlcForSource_args args = new getWanNlcForSource_args();
-
 
5139
        args.setItem_id(item_id);
-
 
5140
        args.setSource(source);
-
 
5141
        args.write(prot);
-
 
5142
        prot.writeMessageEnd();
-
 
5143
      }
-
 
5144
 
-
 
5145
      public double getResult() throws org.apache.thrift.TException {
-
 
5146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5147
          throw new IllegalStateException("Method call not finished!");
-
 
5148
        }
-
 
5149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5151
        return (new Client(prot)).recv_getWanNlcForSource();
-
 
5152
      }
-
 
5153
    }
-
 
5154
 
-
 
5155
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
-
 
5156
      checkReady();
-
 
5157
      getAllAvailableAmazonFbaItemInventory_call method_call = new getAllAvailableAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5158
      this.___currentMethod = method_call;
-
 
5159
      ___manager.call(method_call);
-
 
5160
    }
-
 
5161
 
-
 
5162
    public static class getAllAvailableAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5163
      public getAllAvailableAmazonFbaItemInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllAvailableAmazonFbaItemInventory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
5164
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5165
      }
-
 
5166
 
-
 
5167
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5168
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAvailableAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5169
        getAllAvailableAmazonFbaItemInventory_args args = new getAllAvailableAmazonFbaItemInventory_args();
-
 
5170
        args.write(prot);
-
 
5171
        prot.writeMessageEnd();
-
 
5172
      }
-
 
5173
 
-
 
5174
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
-
 
5175
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5176
          throw new IllegalStateException("Method call not finished!");
-
 
5177
        }
-
 
5178
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5179
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5180
        return (new Client(prot)).recv_getAllAvailableAmazonFbaItemInventory();
-
 
5181
      }
-
 
5182
    }
-
 
5183
 
5066
  }
5184
  }
5067
 
5185
 
5068
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5186
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5069
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5187
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5070
    public Processor(I iface) {
5188
    public Processor(I iface) {
Line 5152... Line 5270...
5152
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
5270
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
5153
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
5271
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
5154
      processMap.put("getStateMaster", new getStateMaster());
5272
      processMap.put("getStateMaster", new getStateMaster());
5155
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5273
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5156
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5274
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
-
 
5275
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
-
 
5276
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5157
      return processMap;
5277
      return processMap;
5158
    }
5278
    }
5159
 
5279
 
5160
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5280
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5161
      public addWarehouse() {
5281
      public addWarehouse() {
Line 6512... Line 6632...
6512
        iface.updateFlipkartStockAtEOD(args.allflipkartstock);
6632
        iface.updateFlipkartStockAtEOD(args.allflipkartstock);
6513
        return result;
6633
        return result;
6514
      }
6634
      }
6515
    }
6635
    }
6516
 
6636
 
-
 
6637
    private static class getWanNlcForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWanNlcForSource_args> {
-
 
6638
      public getWanNlcForSource() {
-
 
6639
        super("getWanNlcForSource");
-
 
6640
      }
-
 
6641
 
-
 
6642
      protected getWanNlcForSource_args getEmptyArgsInstance() {
-
 
6643
        return new getWanNlcForSource_args();
-
 
6644
      }
-
 
6645
 
-
 
6646
      protected getWanNlcForSource_result getResult(I iface, getWanNlcForSource_args args) throws org.apache.thrift.TException {
-
 
6647
        getWanNlcForSource_result result = new getWanNlcForSource_result();
-
 
6648
        result.success = iface.getWanNlcForSource(args.item_id, args.source);
-
 
6649
        result.setSuccessIsSet(true);
-
 
6650
        return result;
-
 
6651
      }
-
 
6652
    }
-
 
6653
 
-
 
6654
    private static class getAllAvailableAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAvailableAmazonFbaItemInventory_args> {
-
 
6655
      public getAllAvailableAmazonFbaItemInventory() {
-
 
6656
        super("getAllAvailableAmazonFbaItemInventory");
-
 
6657
      }
-
 
6658
 
-
 
6659
      protected getAllAvailableAmazonFbaItemInventory_args getEmptyArgsInstance() {
-
 
6660
        return new getAllAvailableAmazonFbaItemInventory_args();
-
 
6661
      }
-
 
6662
 
-
 
6663
      protected getAllAvailableAmazonFbaItemInventory_result getResult(I iface, getAllAvailableAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
-
 
6664
        getAllAvailableAmazonFbaItemInventory_result result = new getAllAvailableAmazonFbaItemInventory_result();
-
 
6665
        result.success = iface.getAllAvailableAmazonFbaItemInventory();
-
 
6666
        return result;
-
 
6667
      }
-
 
6668
    }
-
 
6669
 
6517
  }
6670
  }
6518
 
6671
 
6519
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6672
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6521
 
6674
 
Line 8371... Line 8524...
8371
      }
8524
      }
8372
    }
8525
    }
8373
 
8526
 
8374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8527
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8375
      try {
8528
      try {
-
 
8529
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8530
        __isset_bit_vector = new BitSet(1);
8376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8531
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8377
      } catch (org.apache.thrift.TException te) {
8532
      } catch (org.apache.thrift.TException te) {
8378
        throw new java.io.IOException(te);
8533
        throw new java.io.IOException(te);
8379
      }
8534
      }
8380
    }
8535
    }
Line 29165... Line 29320...
29165
      }
29320
      }
29166
    }
29321
    }
29167
 
29322
 
29168
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29323
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29169
      try {
29324
      try {
-
 
29325
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
29326
        __isset_bit_vector = new BitSet(1);
29170
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29171
      } catch (org.apache.thrift.TException te) {
29328
      } catch (org.apache.thrift.TException te) {
29172
        throw new java.io.IOException(te);
29329
        throw new java.io.IOException(te);
29173
      }
29330
      }
29174
    }
29331
    }
Line 30813... Line 30970...
30813
      }
30970
      }
30814
    }
30971
    }
30815
 
30972
 
30816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30817
      try {
30974
      try {
30818
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30819
        __isset_bit_vector = new BitSet(1);
-
 
30820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30821
      } catch (org.apache.thrift.TException te) {
30976
      } catch (org.apache.thrift.TException te) {
30822
        throw new java.io.IOException(te);
30977
        throw new java.io.IOException(te);
30823
      }
30978
      }
30824
    }
30979
    }
Line 57839... Line 57994...
57839
      sb.append(")");
57994
      sb.append(")");
57840
      return sb.toString();
57995
      return sb.toString();
57841
    }
57996
    }
57842
 
57997
 
57843
    public void validate() throws org.apache.thrift.TException {
57998
    public void validate() throws org.apache.thrift.TException {
-
 
57999
      // check for required fields
-
 
58000
    }
-
 
58001
 
-
 
58002
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58003
      try {
-
 
58004
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58005
      } catch (org.apache.thrift.TException te) {
-
 
58006
        throw new java.io.IOException(te);
-
 
58007
      }
-
 
58008
    }
-
 
58009
 
-
 
58010
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58011
      try {
-
 
58012
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58013
      } catch (org.apache.thrift.TException te) {
-
 
58014
        throw new java.io.IOException(te);
-
 
58015
      }
-
 
58016
    }
-
 
58017
 
-
 
58018
  }
-
 
58019
 
-
 
58020
  public static class getWanNlcForSource_args implements org.apache.thrift.TBase<getWanNlcForSource_args, getWanNlcForSource_args._Fields>, java.io.Serializable, Cloneable   {
-
 
58021
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWanNlcForSource_args");
-
 
58022
 
-
 
58023
    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);
-
 
58024
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
58025
 
-
 
58026
    private long item_id; // required
-
 
58027
    private long source; // required
-
 
58028
 
-
 
58029
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58030
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58031
      ITEM_ID((short)1, "item_id"),
-
 
58032
      SOURCE((short)2, "source");
-
 
58033
 
-
 
58034
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58035
 
-
 
58036
      static {
-
 
58037
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58038
          byName.put(field.getFieldName(), field);
-
 
58039
        }
-
 
58040
      }
-
 
58041
 
-
 
58042
      /**
-
 
58043
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58044
       */
-
 
58045
      public static _Fields findByThriftId(int fieldId) {
-
 
58046
        switch(fieldId) {
-
 
58047
          case 1: // ITEM_ID
-
 
58048
            return ITEM_ID;
-
 
58049
          case 2: // SOURCE
-
 
58050
            return SOURCE;
-
 
58051
          default:
-
 
58052
            return null;
-
 
58053
        }
-
 
58054
      }
-
 
58055
 
-
 
58056
      /**
-
 
58057
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58058
       * if it is not found.
-
 
58059
       */
-
 
58060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58061
        _Fields fields = findByThriftId(fieldId);
-
 
58062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58063
        return fields;
-
 
58064
      }
-
 
58065
 
-
 
58066
      /**
-
 
58067
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58068
       */
-
 
58069
      public static _Fields findByName(String name) {
-
 
58070
        return byName.get(name);
-
 
58071
      }
-
 
58072
 
-
 
58073
      private final short _thriftId;
-
 
58074
      private final String _fieldName;
-
 
58075
 
-
 
58076
      _Fields(short thriftId, String fieldName) {
-
 
58077
        _thriftId = thriftId;
-
 
58078
        _fieldName = fieldName;
-
 
58079
      }
-
 
58080
 
-
 
58081
      public short getThriftFieldId() {
-
 
58082
        return _thriftId;
-
 
58083
      }
-
 
58084
 
-
 
58085
      public String getFieldName() {
-
 
58086
        return _fieldName;
-
 
58087
      }
-
 
58088
    }
-
 
58089
 
-
 
58090
    // isset id assignments
-
 
58091
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
58092
    private static final int __SOURCE_ISSET_ID = 1;
-
 
58093
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
58094
 
-
 
58095
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58096
    static {
-
 
58097
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58098
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58100
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58101
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58102
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58103
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWanNlcForSource_args.class, metaDataMap);
-
 
58104
    }
-
 
58105
 
-
 
58106
    public getWanNlcForSource_args() {
-
 
58107
    }
-
 
58108
 
-
 
58109
    public getWanNlcForSource_args(
-
 
58110
      long item_id,
-
 
58111
      long source)
-
 
58112
    {
-
 
58113
      this();
-
 
58114
      this.item_id = item_id;
-
 
58115
      setItem_idIsSet(true);
-
 
58116
      this.source = source;
-
 
58117
      setSourceIsSet(true);
-
 
58118
    }
-
 
58119
 
-
 
58120
    /**
-
 
58121
     * Performs a deep copy on <i>other</i>.
-
 
58122
     */
-
 
58123
    public getWanNlcForSource_args(getWanNlcForSource_args other) {
-
 
58124
      __isset_bit_vector.clear();
-
 
58125
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
58126
      this.item_id = other.item_id;
-
 
58127
      this.source = other.source;
-
 
58128
    }
-
 
58129
 
-
 
58130
    public getWanNlcForSource_args deepCopy() {
-
 
58131
      return new getWanNlcForSource_args(this);
-
 
58132
    }
-
 
58133
 
-
 
58134
    @Override
-
 
58135
    public void clear() {
-
 
58136
      setItem_idIsSet(false);
-
 
58137
      this.item_id = 0;
-
 
58138
      setSourceIsSet(false);
-
 
58139
      this.source = 0;
-
 
58140
    }
-
 
58141
 
-
 
58142
    public long getItem_id() {
-
 
58143
      return this.item_id;
-
 
58144
    }
-
 
58145
 
-
 
58146
    public void setItem_id(long item_id) {
-
 
58147
      this.item_id = item_id;
-
 
58148
      setItem_idIsSet(true);
-
 
58149
    }
-
 
58150
 
-
 
58151
    public void unsetItem_id() {
-
 
58152
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
58153
    }
-
 
58154
 
-
 
58155
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
58156
    public boolean isSetItem_id() {
-
 
58157
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
58158
    }
-
 
58159
 
-
 
58160
    public void setItem_idIsSet(boolean value) {
-
 
58161
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
58162
    }
-
 
58163
 
-
 
58164
    public long getSource() {
-
 
58165
      return this.source;
-
 
58166
    }
-
 
58167
 
-
 
58168
    public void setSource(long source) {
-
 
58169
      this.source = source;
-
 
58170
      setSourceIsSet(true);
-
 
58171
    }
-
 
58172
 
-
 
58173
    public void unsetSource() {
-
 
58174
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
58175
    }
-
 
58176
 
-
 
58177
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
58178
    public boolean isSetSource() {
-
 
58179
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
58180
    }
-
 
58181
 
-
 
58182
    public void setSourceIsSet(boolean value) {
-
 
58183
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
58184
    }
-
 
58185
 
-
 
58186
    public void setFieldValue(_Fields field, Object value) {
-
 
58187
      switch (field) {
-
 
58188
      case ITEM_ID:
-
 
58189
        if (value == null) {
-
 
58190
          unsetItem_id();
-
 
58191
        } else {
-
 
58192
          setItem_id((Long)value);
-
 
58193
        }
-
 
58194
        break;
-
 
58195
 
-
 
58196
      case SOURCE:
-
 
58197
        if (value == null) {
-
 
58198
          unsetSource();
-
 
58199
        } else {
-
 
58200
          setSource((Long)value);
-
 
58201
        }
-
 
58202
        break;
-
 
58203
 
-
 
58204
      }
-
 
58205
    }
-
 
58206
 
-
 
58207
    public Object getFieldValue(_Fields field) {
-
 
58208
      switch (field) {
-
 
58209
      case ITEM_ID:
-
 
58210
        return Long.valueOf(getItem_id());
-
 
58211
 
-
 
58212
      case SOURCE:
-
 
58213
        return Long.valueOf(getSource());
-
 
58214
 
-
 
58215
      }
-
 
58216
      throw new IllegalStateException();
-
 
58217
    }
-
 
58218
 
-
 
58219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58220
    public boolean isSet(_Fields field) {
-
 
58221
      if (field == null) {
-
 
58222
        throw new IllegalArgumentException();
-
 
58223
      }
-
 
58224
 
-
 
58225
      switch (field) {
-
 
58226
      case ITEM_ID:
-
 
58227
        return isSetItem_id();
-
 
58228
      case SOURCE:
-
 
58229
        return isSetSource();
-
 
58230
      }
-
 
58231
      throw new IllegalStateException();
-
 
58232
    }
-
 
58233
 
-
 
58234
    @Override
-
 
58235
    public boolean equals(Object that) {
-
 
58236
      if (that == null)
-
 
58237
        return false;
-
 
58238
      if (that instanceof getWanNlcForSource_args)
-
 
58239
        return this.equals((getWanNlcForSource_args)that);
-
 
58240
      return false;
-
 
58241
    }
-
 
58242
 
-
 
58243
    public boolean equals(getWanNlcForSource_args that) {
-
 
58244
      if (that == null)
-
 
58245
        return false;
-
 
58246
 
-
 
58247
      boolean this_present_item_id = true;
-
 
58248
      boolean that_present_item_id = true;
-
 
58249
      if (this_present_item_id || that_present_item_id) {
-
 
58250
        if (!(this_present_item_id && that_present_item_id))
-
 
58251
          return false;
-
 
58252
        if (this.item_id != that.item_id)
-
 
58253
          return false;
-
 
58254
      }
-
 
58255
 
-
 
58256
      boolean this_present_source = true;
-
 
58257
      boolean that_present_source = true;
-
 
58258
      if (this_present_source || that_present_source) {
-
 
58259
        if (!(this_present_source && that_present_source))
-
 
58260
          return false;
-
 
58261
        if (this.source != that.source)
-
 
58262
          return false;
-
 
58263
      }
-
 
58264
 
-
 
58265
      return true;
-
 
58266
    }
-
 
58267
 
-
 
58268
    @Override
-
 
58269
    public int hashCode() {
-
 
58270
      return 0;
-
 
58271
    }
-
 
58272
 
-
 
58273
    public int compareTo(getWanNlcForSource_args other) {
-
 
58274
      if (!getClass().equals(other.getClass())) {
-
 
58275
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58276
      }
-
 
58277
 
-
 
58278
      int lastComparison = 0;
-
 
58279
      getWanNlcForSource_args typedOther = (getWanNlcForSource_args)other;
-
 
58280
 
-
 
58281
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
58282
      if (lastComparison != 0) {
-
 
58283
        return lastComparison;
-
 
58284
      }
-
 
58285
      if (isSetItem_id()) {
-
 
58286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
58287
        if (lastComparison != 0) {
-
 
58288
          return lastComparison;
-
 
58289
        }
-
 
58290
      }
-
 
58291
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
58292
      if (lastComparison != 0) {
-
 
58293
        return lastComparison;
-
 
58294
      }
-
 
58295
      if (isSetSource()) {
-
 
58296
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
58297
        if (lastComparison != 0) {
-
 
58298
          return lastComparison;
-
 
58299
        }
-
 
58300
      }
-
 
58301
      return 0;
-
 
58302
    }
-
 
58303
 
-
 
58304
    public _Fields fieldForId(int fieldId) {
-
 
58305
      return _Fields.findByThriftId(fieldId);
-
 
58306
    }
-
 
58307
 
-
 
58308
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58309
      org.apache.thrift.protocol.TField field;
-
 
58310
      iprot.readStructBegin();
-
 
58311
      while (true)
-
 
58312
      {
-
 
58313
        field = iprot.readFieldBegin();
-
 
58314
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58315
          break;
-
 
58316
        }
-
 
58317
        switch (field.id) {
-
 
58318
          case 1: // ITEM_ID
-
 
58319
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58320
              this.item_id = iprot.readI64();
-
 
58321
              setItem_idIsSet(true);
-
 
58322
            } else { 
-
 
58323
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58324
            }
-
 
58325
            break;
-
 
58326
          case 2: // SOURCE
-
 
58327
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58328
              this.source = iprot.readI64();
-
 
58329
              setSourceIsSet(true);
-
 
58330
            } else { 
-
 
58331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58332
            }
-
 
58333
            break;
-
 
58334
          default:
-
 
58335
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58336
        }
-
 
58337
        iprot.readFieldEnd();
-
 
58338
      }
-
 
58339
      iprot.readStructEnd();
-
 
58340
      validate();
-
 
58341
    }
-
 
58342
 
-
 
58343
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58344
      validate();
-
 
58345
 
-
 
58346
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58347
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
58348
      oprot.writeI64(this.item_id);
-
 
58349
      oprot.writeFieldEnd();
-
 
58350
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
58351
      oprot.writeI64(this.source);
-
 
58352
      oprot.writeFieldEnd();
-
 
58353
      oprot.writeFieldStop();
-
 
58354
      oprot.writeStructEnd();
-
 
58355
    }
-
 
58356
 
-
 
58357
    @Override
-
 
58358
    public String toString() {
-
 
58359
      StringBuilder sb = new StringBuilder("getWanNlcForSource_args(");
-
 
58360
      boolean first = true;
-
 
58361
 
-
 
58362
      sb.append("item_id:");
-
 
58363
      sb.append(this.item_id);
-
 
58364
      first = false;
-
 
58365
      if (!first) sb.append(", ");
-
 
58366
      sb.append("source:");
-
 
58367
      sb.append(this.source);
-
 
58368
      first = false;
-
 
58369
      sb.append(")");
-
 
58370
      return sb.toString();
-
 
58371
    }
-
 
58372
 
-
 
58373
    public void validate() throws org.apache.thrift.TException {
-
 
58374
      // check for required fields
-
 
58375
    }
-
 
58376
 
-
 
58377
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58378
      try {
-
 
58379
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58380
      } catch (org.apache.thrift.TException te) {
-
 
58381
        throw new java.io.IOException(te);
-
 
58382
      }
-
 
58383
    }
-
 
58384
 
-
 
58385
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58386
      try {
-
 
58387
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58388
        __isset_bit_vector = new BitSet(1);
-
 
58389
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58390
      } catch (org.apache.thrift.TException te) {
-
 
58391
        throw new java.io.IOException(te);
-
 
58392
      }
-
 
58393
    }
-
 
58394
 
-
 
58395
  }
-
 
58396
 
-
 
58397
  public static class getWanNlcForSource_result implements org.apache.thrift.TBase<getWanNlcForSource_result, getWanNlcForSource_result._Fields>, java.io.Serializable, Cloneable   {
-
 
58398
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWanNlcForSource_result");
-
 
58399
 
-
 
58400
    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);
-
 
58401
 
-
 
58402
    private double success; // required
-
 
58403
 
-
 
58404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58406
      SUCCESS((short)0, "success");
-
 
58407
 
-
 
58408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58409
 
-
 
58410
      static {
-
 
58411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58412
          byName.put(field.getFieldName(), field);
-
 
58413
        }
-
 
58414
      }
-
 
58415
 
-
 
58416
      /**
-
 
58417
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58418
       */
-
 
58419
      public static _Fields findByThriftId(int fieldId) {
-
 
58420
        switch(fieldId) {
-
 
58421
          case 0: // SUCCESS
-
 
58422
            return SUCCESS;
-
 
58423
          default:
-
 
58424
            return null;
-
 
58425
        }
-
 
58426
      }
-
 
58427
 
-
 
58428
      /**
-
 
58429
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58430
       * if it is not found.
-
 
58431
       */
-
 
58432
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58433
        _Fields fields = findByThriftId(fieldId);
-
 
58434
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58435
        return fields;
-
 
58436
      }
-
 
58437
 
-
 
58438
      /**
-
 
58439
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58440
       */
-
 
58441
      public static _Fields findByName(String name) {
-
 
58442
        return byName.get(name);
-
 
58443
      }
-
 
58444
 
-
 
58445
      private final short _thriftId;
-
 
58446
      private final String _fieldName;
-
 
58447
 
-
 
58448
      _Fields(short thriftId, String fieldName) {
-
 
58449
        _thriftId = thriftId;
-
 
58450
        _fieldName = fieldName;
-
 
58451
      }
-
 
58452
 
-
 
58453
      public short getThriftFieldId() {
-
 
58454
        return _thriftId;
-
 
58455
      }
-
 
58456
 
-
 
58457
      public String getFieldName() {
-
 
58458
        return _fieldName;
-
 
58459
      }
-
 
58460
    }
-
 
58461
 
-
 
58462
    // isset id assignments
-
 
58463
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
58464
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
58465
 
-
 
58466
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58467
    static {
-
 
58468
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58469
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58470
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
58471
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58472
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWanNlcForSource_result.class, metaDataMap);
-
 
58473
    }
-
 
58474
 
-
 
58475
    public getWanNlcForSource_result() {
-
 
58476
    }
-
 
58477
 
-
 
58478
    public getWanNlcForSource_result(
-
 
58479
      double success)
-
 
58480
    {
-
 
58481
      this();
-
 
58482
      this.success = success;
-
 
58483
      setSuccessIsSet(true);
-
 
58484
    }
-
 
58485
 
-
 
58486
    /**
-
 
58487
     * Performs a deep copy on <i>other</i>.
-
 
58488
     */
-
 
58489
    public getWanNlcForSource_result(getWanNlcForSource_result other) {
-
 
58490
      __isset_bit_vector.clear();
-
 
58491
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
58492
      this.success = other.success;
-
 
58493
    }
-
 
58494
 
-
 
58495
    public getWanNlcForSource_result deepCopy() {
-
 
58496
      return new getWanNlcForSource_result(this);
-
 
58497
    }
-
 
58498
 
-
 
58499
    @Override
-
 
58500
    public void clear() {
-
 
58501
      setSuccessIsSet(false);
-
 
58502
      this.success = 0.0;
-
 
58503
    }
-
 
58504
 
-
 
58505
    public double getSuccess() {
-
 
58506
      return this.success;
-
 
58507
    }
-
 
58508
 
-
 
58509
    public void setSuccess(double success) {
-
 
58510
      this.success = success;
-
 
58511
      setSuccessIsSet(true);
-
 
58512
    }
-
 
58513
 
-
 
58514
    public void unsetSuccess() {
-
 
58515
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
58516
    }
-
 
58517
 
-
 
58518
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
58519
    public boolean isSetSuccess() {
-
 
58520
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
58521
    }
-
 
58522
 
-
 
58523
    public void setSuccessIsSet(boolean value) {
-
 
58524
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
58525
    }
-
 
58526
 
-
 
58527
    public void setFieldValue(_Fields field, Object value) {
-
 
58528
      switch (field) {
-
 
58529
      case SUCCESS:
-
 
58530
        if (value == null) {
-
 
58531
          unsetSuccess();
-
 
58532
        } else {
-
 
58533
          setSuccess((Double)value);
-
 
58534
        }
-
 
58535
        break;
-
 
58536
 
-
 
58537
      }
-
 
58538
    }
-
 
58539
 
-
 
58540
    public Object getFieldValue(_Fields field) {
-
 
58541
      switch (field) {
-
 
58542
      case SUCCESS:
-
 
58543
        return Double.valueOf(getSuccess());
-
 
58544
 
-
 
58545
      }
-
 
58546
      throw new IllegalStateException();
-
 
58547
    }
-
 
58548
 
-
 
58549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58550
    public boolean isSet(_Fields field) {
-
 
58551
      if (field == null) {
-
 
58552
        throw new IllegalArgumentException();
-
 
58553
      }
-
 
58554
 
-
 
58555
      switch (field) {
-
 
58556
      case SUCCESS:
-
 
58557
        return isSetSuccess();
-
 
58558
      }
-
 
58559
      throw new IllegalStateException();
-
 
58560
    }
-
 
58561
 
-
 
58562
    @Override
-
 
58563
    public boolean equals(Object that) {
-
 
58564
      if (that == null)
-
 
58565
        return false;
-
 
58566
      if (that instanceof getWanNlcForSource_result)
-
 
58567
        return this.equals((getWanNlcForSource_result)that);
-
 
58568
      return false;
-
 
58569
    }
-
 
58570
 
-
 
58571
    public boolean equals(getWanNlcForSource_result that) {
-
 
58572
      if (that == null)
-
 
58573
        return false;
-
 
58574
 
-
 
58575
      boolean this_present_success = true;
-
 
58576
      boolean that_present_success = true;
-
 
58577
      if (this_present_success || that_present_success) {
-
 
58578
        if (!(this_present_success && that_present_success))
-
 
58579
          return false;
-
 
58580
        if (this.success != that.success)
-
 
58581
          return false;
-
 
58582
      }
-
 
58583
 
-
 
58584
      return true;
-
 
58585
    }
-
 
58586
 
-
 
58587
    @Override
-
 
58588
    public int hashCode() {
-
 
58589
      return 0;
-
 
58590
    }
-
 
58591
 
-
 
58592
    public int compareTo(getWanNlcForSource_result other) {
-
 
58593
      if (!getClass().equals(other.getClass())) {
-
 
58594
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58595
      }
-
 
58596
 
-
 
58597
      int lastComparison = 0;
-
 
58598
      getWanNlcForSource_result typedOther = (getWanNlcForSource_result)other;
-
 
58599
 
-
 
58600
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
58601
      if (lastComparison != 0) {
-
 
58602
        return lastComparison;
-
 
58603
      }
-
 
58604
      if (isSetSuccess()) {
-
 
58605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
58606
        if (lastComparison != 0) {
-
 
58607
          return lastComparison;
-
 
58608
        }
-
 
58609
      }
-
 
58610
      return 0;
-
 
58611
    }
-
 
58612
 
-
 
58613
    public _Fields fieldForId(int fieldId) {
-
 
58614
      return _Fields.findByThriftId(fieldId);
-
 
58615
    }
-
 
58616
 
-
 
58617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58618
      org.apache.thrift.protocol.TField field;
-
 
58619
      iprot.readStructBegin();
-
 
58620
      while (true)
-
 
58621
      {
-
 
58622
        field = iprot.readFieldBegin();
-
 
58623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58624
          break;
-
 
58625
        }
-
 
58626
        switch (field.id) {
-
 
58627
          case 0: // SUCCESS
-
 
58628
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
58629
              this.success = iprot.readDouble();
-
 
58630
              setSuccessIsSet(true);
-
 
58631
            } else { 
-
 
58632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58633
            }
-
 
58634
            break;
-
 
58635
          default:
-
 
58636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58637
        }
-
 
58638
        iprot.readFieldEnd();
-
 
58639
      }
-
 
58640
      iprot.readStructEnd();
-
 
58641
      validate();
-
 
58642
    }
-
 
58643
 
-
 
58644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58645
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58646
 
-
 
58647
      if (this.isSetSuccess()) {
-
 
58648
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
58649
        oprot.writeDouble(this.success);
-
 
58650
        oprot.writeFieldEnd();
-
 
58651
      }
-
 
58652
      oprot.writeFieldStop();
-
 
58653
      oprot.writeStructEnd();
-
 
58654
    }
-
 
58655
 
-
 
58656
    @Override
-
 
58657
    public String toString() {
-
 
58658
      StringBuilder sb = new StringBuilder("getWanNlcForSource_result(");
-
 
58659
      boolean first = true;
-
 
58660
 
-
 
58661
      sb.append("success:");
-
 
58662
      sb.append(this.success);
-
 
58663
      first = false;
-
 
58664
      sb.append(")");
-
 
58665
      return sb.toString();
-
 
58666
    }
-
 
58667
 
-
 
58668
    public void validate() throws org.apache.thrift.TException {
-
 
58669
      // check for required fields
-
 
58670
    }
-
 
58671
 
-
 
58672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58673
      try {
-
 
58674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58675
      } catch (org.apache.thrift.TException te) {
-
 
58676
        throw new java.io.IOException(te);
-
 
58677
      }
-
 
58678
    }
-
 
58679
 
-
 
58680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58681
      try {
-
 
58682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58683
      } catch (org.apache.thrift.TException te) {
-
 
58684
        throw new java.io.IOException(te);
-
 
58685
      }
-
 
58686
    }
-
 
58687
 
-
 
58688
  }
-
 
58689
 
-
 
58690
  public static class getAllAvailableAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllAvailableAmazonFbaItemInventory_args, getAllAvailableAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
58691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAvailableAmazonFbaItemInventory_args");
-
 
58692
 
-
 
58693
 
-
 
58694
 
-
 
58695
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58696
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58697
;
-
 
58698
 
-
 
58699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58700
 
-
 
58701
      static {
-
 
58702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58703
          byName.put(field.getFieldName(), field);
-
 
58704
        }
-
 
58705
      }
-
 
58706
 
-
 
58707
      /**
-
 
58708
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58709
       */
-
 
58710
      public static _Fields findByThriftId(int fieldId) {
-
 
58711
        switch(fieldId) {
-
 
58712
          default:
-
 
58713
            return null;
-
 
58714
        }
-
 
58715
      }
-
 
58716
 
-
 
58717
      /**
-
 
58718
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58719
       * if it is not found.
-
 
58720
       */
-
 
58721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58722
        _Fields fields = findByThriftId(fieldId);
-
 
58723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58724
        return fields;
-
 
58725
      }
-
 
58726
 
-
 
58727
      /**
-
 
58728
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58729
       */
-
 
58730
      public static _Fields findByName(String name) {
-
 
58731
        return byName.get(name);
-
 
58732
      }
-
 
58733
 
-
 
58734
      private final short _thriftId;
-
 
58735
      private final String _fieldName;
-
 
58736
 
-
 
58737
      _Fields(short thriftId, String fieldName) {
-
 
58738
        _thriftId = thriftId;
-
 
58739
        _fieldName = fieldName;
-
 
58740
      }
-
 
58741
 
-
 
58742
      public short getThriftFieldId() {
-
 
58743
        return _thriftId;
-
 
58744
      }
-
 
58745
 
-
 
58746
      public String getFieldName() {
-
 
58747
        return _fieldName;
-
 
58748
      }
-
 
58749
    }
-
 
58750
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58751
    static {
-
 
58752
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58753
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58754
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAvailableAmazonFbaItemInventory_args.class, metaDataMap);
-
 
58755
    }
-
 
58756
 
-
 
58757
    public getAllAvailableAmazonFbaItemInventory_args() {
-
 
58758
    }
-
 
58759
 
-
 
58760
    /**
-
 
58761
     * Performs a deep copy on <i>other</i>.
-
 
58762
     */
-
 
58763
    public getAllAvailableAmazonFbaItemInventory_args(getAllAvailableAmazonFbaItemInventory_args other) {
-
 
58764
    }
-
 
58765
 
-
 
58766
    public getAllAvailableAmazonFbaItemInventory_args deepCopy() {
-
 
58767
      return new getAllAvailableAmazonFbaItemInventory_args(this);
-
 
58768
    }
-
 
58769
 
-
 
58770
    @Override
-
 
58771
    public void clear() {
-
 
58772
    }
-
 
58773
 
-
 
58774
    public void setFieldValue(_Fields field, Object value) {
-
 
58775
      switch (field) {
-
 
58776
      }
-
 
58777
    }
-
 
58778
 
-
 
58779
    public Object getFieldValue(_Fields field) {
-
 
58780
      switch (field) {
-
 
58781
      }
-
 
58782
      throw new IllegalStateException();
-
 
58783
    }
-
 
58784
 
-
 
58785
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58786
    public boolean isSet(_Fields field) {
-
 
58787
      if (field == null) {
-
 
58788
        throw new IllegalArgumentException();
-
 
58789
      }
-
 
58790
 
-
 
58791
      switch (field) {
-
 
58792
      }
-
 
58793
      throw new IllegalStateException();
-
 
58794
    }
-
 
58795
 
-
 
58796
    @Override
-
 
58797
    public boolean equals(Object that) {
-
 
58798
      if (that == null)
-
 
58799
        return false;
-
 
58800
      if (that instanceof getAllAvailableAmazonFbaItemInventory_args)
-
 
58801
        return this.equals((getAllAvailableAmazonFbaItemInventory_args)that);
-
 
58802
      return false;
-
 
58803
    }
-
 
58804
 
-
 
58805
    public boolean equals(getAllAvailableAmazonFbaItemInventory_args that) {
-
 
58806
      if (that == null)
-
 
58807
        return false;
-
 
58808
 
-
 
58809
      return true;
-
 
58810
    }
-
 
58811
 
-
 
58812
    @Override
-
 
58813
    public int hashCode() {
-
 
58814
      return 0;
-
 
58815
    }
-
 
58816
 
-
 
58817
    public int compareTo(getAllAvailableAmazonFbaItemInventory_args other) {
-
 
58818
      if (!getClass().equals(other.getClass())) {
-
 
58819
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58820
      }
-
 
58821
 
-
 
58822
      int lastComparison = 0;
-
 
58823
      getAllAvailableAmazonFbaItemInventory_args typedOther = (getAllAvailableAmazonFbaItemInventory_args)other;
-
 
58824
 
-
 
58825
      return 0;
-
 
58826
    }
-
 
58827
 
-
 
58828
    public _Fields fieldForId(int fieldId) {
-
 
58829
      return _Fields.findByThriftId(fieldId);
-
 
58830
    }
-
 
58831
 
-
 
58832
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58833
      org.apache.thrift.protocol.TField field;
-
 
58834
      iprot.readStructBegin();
-
 
58835
      while (true)
-
 
58836
      {
-
 
58837
        field = iprot.readFieldBegin();
-
 
58838
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58839
          break;
-
 
58840
        }
-
 
58841
        switch (field.id) {
-
 
58842
          default:
-
 
58843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58844
        }
-
 
58845
        iprot.readFieldEnd();
-
 
58846
      }
-
 
58847
      iprot.readStructEnd();
-
 
58848
      validate();
-
 
58849
    }
-
 
58850
 
-
 
58851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58852
      validate();
-
 
58853
 
-
 
58854
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58855
      oprot.writeFieldStop();
-
 
58856
      oprot.writeStructEnd();
-
 
58857
    }
-
 
58858
 
-
 
58859
    @Override
-
 
58860
    public String toString() {
-
 
58861
      StringBuilder sb = new StringBuilder("getAllAvailableAmazonFbaItemInventory_args(");
-
 
58862
      boolean first = true;
-
 
58863
 
-
 
58864
      sb.append(")");
-
 
58865
      return sb.toString();
-
 
58866
    }
-
 
58867
 
-
 
58868
    public void validate() throws org.apache.thrift.TException {
-
 
58869
      // check for required fields
-
 
58870
    }
-
 
58871
 
-
 
58872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58873
      try {
-
 
58874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58875
      } catch (org.apache.thrift.TException te) {
-
 
58876
        throw new java.io.IOException(te);
-
 
58877
      }
-
 
58878
    }
-
 
58879
 
-
 
58880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58881
      try {
-
 
58882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58883
      } catch (org.apache.thrift.TException te) {
-
 
58884
        throw new java.io.IOException(te);
-
 
58885
      }
-
 
58886
    }
-
 
58887
 
-
 
58888
  }
-
 
58889
 
-
 
58890
  public static class getAllAvailableAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllAvailableAmazonFbaItemInventory_result, getAllAvailableAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
58891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAvailableAmazonFbaItemInventory_result");
-
 
58892
 
-
 
58893
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
58894
 
-
 
58895
    private List<AmazonFbaInventorySnapshot> success; // required
-
 
58896
 
-
 
58897
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58898
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58899
      SUCCESS((short)0, "success");
-
 
58900
 
-
 
58901
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58902
 
-
 
58903
      static {
-
 
58904
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58905
          byName.put(field.getFieldName(), field);
-
 
58906
        }
-
 
58907
      }
-
 
58908
 
-
 
58909
      /**
-
 
58910
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58911
       */
-
 
58912
      public static _Fields findByThriftId(int fieldId) {
-
 
58913
        switch(fieldId) {
-
 
58914
          case 0: // SUCCESS
-
 
58915
            return SUCCESS;
-
 
58916
          default:
-
 
58917
            return null;
-
 
58918
        }
-
 
58919
      }
-
 
58920
 
-
 
58921
      /**
-
 
58922
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58923
       * if it is not found.
-
 
58924
       */
-
 
58925
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58926
        _Fields fields = findByThriftId(fieldId);
-
 
58927
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58928
        return fields;
-
 
58929
      }
-
 
58930
 
-
 
58931
      /**
-
 
58932
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58933
       */
-
 
58934
      public static _Fields findByName(String name) {
-
 
58935
        return byName.get(name);
-
 
58936
      }
-
 
58937
 
-
 
58938
      private final short _thriftId;
-
 
58939
      private final String _fieldName;
-
 
58940
 
-
 
58941
      _Fields(short thriftId, String fieldName) {
-
 
58942
        _thriftId = thriftId;
-
 
58943
        _fieldName = fieldName;
-
 
58944
      }
-
 
58945
 
-
 
58946
      public short getThriftFieldId() {
-
 
58947
        return _thriftId;
-
 
58948
      }
-
 
58949
 
-
 
58950
      public String getFieldName() {
-
 
58951
        return _fieldName;
-
 
58952
      }
-
 
58953
    }
-
 
58954
 
-
 
58955
    // isset id assignments
-
 
58956
 
-
 
58957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58958
    static {
-
 
58959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58960
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58961
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
58962
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
-
 
58963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAvailableAmazonFbaItemInventory_result.class, metaDataMap);
-
 
58965
    }
-
 
58966
 
-
 
58967
    public getAllAvailableAmazonFbaItemInventory_result() {
-
 
58968
    }
-
 
58969
 
-
 
58970
    public getAllAvailableAmazonFbaItemInventory_result(
-
 
58971
      List<AmazonFbaInventorySnapshot> success)
-
 
58972
    {
-
 
58973
      this();
-
 
58974
      this.success = success;
-
 
58975
    }
-
 
58976
 
-
 
58977
    /**
-
 
58978
     * Performs a deep copy on <i>other</i>.
-
 
58979
     */
-
 
58980
    public getAllAvailableAmazonFbaItemInventory_result(getAllAvailableAmazonFbaItemInventory_result other) {
-
 
58981
      if (other.isSetSuccess()) {
-
 
58982
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
-
 
58983
        for (AmazonFbaInventorySnapshot other_element : other.success) {
-
 
58984
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
-
 
58985
        }
-
 
58986
        this.success = __this__success;
-
 
58987
      }
-
 
58988
    }
-
 
58989
 
-
 
58990
    public getAllAvailableAmazonFbaItemInventory_result deepCopy() {
-
 
58991
      return new getAllAvailableAmazonFbaItemInventory_result(this);
-
 
58992
    }
-
 
58993
 
-
 
58994
    @Override
-
 
58995
    public void clear() {
-
 
58996
      this.success = null;
-
 
58997
    }
-
 
58998
 
-
 
58999
    public int getSuccessSize() {
-
 
59000
      return (this.success == null) ? 0 : this.success.size();
-
 
59001
    }
-
 
59002
 
-
 
59003
    public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
-
 
59004
      return (this.success == null) ? null : this.success.iterator();
-
 
59005
    }
-
 
59006
 
-
 
59007
    public void addToSuccess(AmazonFbaInventorySnapshot elem) {
-
 
59008
      if (this.success == null) {
-
 
59009
        this.success = new ArrayList<AmazonFbaInventorySnapshot>();
-
 
59010
      }
-
 
59011
      this.success.add(elem);
-
 
59012
    }
-
 
59013
 
-
 
59014
    public List<AmazonFbaInventorySnapshot> getSuccess() {
-
 
59015
      return this.success;
-
 
59016
    }
-
 
59017
 
-
 
59018
    public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
-
 
59019
      this.success = success;
-
 
59020
    }
-
 
59021
 
-
 
59022
    public void unsetSuccess() {
-
 
59023
      this.success = null;
-
 
59024
    }
-
 
59025
 
-
 
59026
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
59027
    public boolean isSetSuccess() {
-
 
59028
      return this.success != null;
-
 
59029
    }
-
 
59030
 
-
 
59031
    public void setSuccessIsSet(boolean value) {
-
 
59032
      if (!value) {
-
 
59033
        this.success = null;
-
 
59034
      }
-
 
59035
    }
-
 
59036
 
-
 
59037
    public void setFieldValue(_Fields field, Object value) {
-
 
59038
      switch (field) {
-
 
59039
      case SUCCESS:
-
 
59040
        if (value == null) {
-
 
59041
          unsetSuccess();
-
 
59042
        } else {
-
 
59043
          setSuccess((List<AmazonFbaInventorySnapshot>)value);
-
 
59044
        }
-
 
59045
        break;
-
 
59046
 
-
 
59047
      }
-
 
59048
    }
-
 
59049
 
-
 
59050
    public Object getFieldValue(_Fields field) {
-
 
59051
      switch (field) {
-
 
59052
      case SUCCESS:
-
 
59053
        return getSuccess();
-
 
59054
 
-
 
59055
      }
-
 
59056
      throw new IllegalStateException();
-
 
59057
    }
-
 
59058
 
-
 
59059
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59060
    public boolean isSet(_Fields field) {
-
 
59061
      if (field == null) {
-
 
59062
        throw new IllegalArgumentException();
-
 
59063
      }
-
 
59064
 
-
 
59065
      switch (field) {
-
 
59066
      case SUCCESS:
-
 
59067
        return isSetSuccess();
-
 
59068
      }
-
 
59069
      throw new IllegalStateException();
-
 
59070
    }
-
 
59071
 
-
 
59072
    @Override
-
 
59073
    public boolean equals(Object that) {
-
 
59074
      if (that == null)
-
 
59075
        return false;
-
 
59076
      if (that instanceof getAllAvailableAmazonFbaItemInventory_result)
-
 
59077
        return this.equals((getAllAvailableAmazonFbaItemInventory_result)that);
-
 
59078
      return false;
-
 
59079
    }
-
 
59080
 
-
 
59081
    public boolean equals(getAllAvailableAmazonFbaItemInventory_result that) {
-
 
59082
      if (that == null)
-
 
59083
        return false;
-
 
59084
 
-
 
59085
      boolean this_present_success = true && this.isSetSuccess();
-
 
59086
      boolean that_present_success = true && that.isSetSuccess();
-
 
59087
      if (this_present_success || that_present_success) {
-
 
59088
        if (!(this_present_success && that_present_success))
-
 
59089
          return false;
-
 
59090
        if (!this.success.equals(that.success))
-
 
59091
          return false;
-
 
59092
      }
-
 
59093
 
-
 
59094
      return true;
-
 
59095
    }
-
 
59096
 
-
 
59097
    @Override
-
 
59098
    public int hashCode() {
-
 
59099
      return 0;
-
 
59100
    }
-
 
59101
 
-
 
59102
    public int compareTo(getAllAvailableAmazonFbaItemInventory_result other) {
-
 
59103
      if (!getClass().equals(other.getClass())) {
-
 
59104
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59105
      }
-
 
59106
 
-
 
59107
      int lastComparison = 0;
-
 
59108
      getAllAvailableAmazonFbaItemInventory_result typedOther = (getAllAvailableAmazonFbaItemInventory_result)other;
-
 
59109
 
-
 
59110
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
59111
      if (lastComparison != 0) {
-
 
59112
        return lastComparison;
-
 
59113
      }
-
 
59114
      if (isSetSuccess()) {
-
 
59115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
59116
        if (lastComparison != 0) {
-
 
59117
          return lastComparison;
-
 
59118
        }
-
 
59119
      }
-
 
59120
      return 0;
-
 
59121
    }
-
 
59122
 
-
 
59123
    public _Fields fieldForId(int fieldId) {
-
 
59124
      return _Fields.findByThriftId(fieldId);
-
 
59125
    }
-
 
59126
 
-
 
59127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59128
      org.apache.thrift.protocol.TField field;
-
 
59129
      iprot.readStructBegin();
-
 
59130
      while (true)
-
 
59131
      {
-
 
59132
        field = iprot.readFieldBegin();
-
 
59133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59134
          break;
-
 
59135
        }
-
 
59136
        switch (field.id) {
-
 
59137
          case 0: // SUCCESS
-
 
59138
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
59139
              {
-
 
59140
                org.apache.thrift.protocol.TList _list192 = iprot.readListBegin();
-
 
59141
                this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list192.size);
-
 
59142
                for (int _i193 = 0; _i193 < _list192.size; ++_i193)
-
 
59143
                {
-
 
59144
                  AmazonFbaInventorySnapshot _elem194; // required
-
 
59145
                  _elem194 = new AmazonFbaInventorySnapshot();
-
 
59146
                  _elem194.read(iprot);
-
 
59147
                  this.success.add(_elem194);
-
 
59148
                }
-
 
59149
                iprot.readListEnd();
-
 
59150
              }
-
 
59151
            } else { 
-
 
59152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59153
            }
-
 
59154
            break;
-
 
59155
          default:
-
 
59156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59157
        }
-
 
59158
        iprot.readFieldEnd();
-
 
59159
      }
-
 
59160
      iprot.readStructEnd();
-
 
59161
      validate();
-
 
59162
    }
-
 
59163
 
-
 
59164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59165
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59166
 
-
 
59167
      if (this.isSetSuccess()) {
-
 
59168
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
59169
        {
-
 
59170
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
59171
          for (AmazonFbaInventorySnapshot _iter195 : this.success)
-
 
59172
          {
-
 
59173
            _iter195.write(oprot);
-
 
59174
          }
-
 
59175
          oprot.writeListEnd();
-
 
59176
        }
-
 
59177
        oprot.writeFieldEnd();
-
 
59178
      }
-
 
59179
      oprot.writeFieldStop();
-
 
59180
      oprot.writeStructEnd();
-
 
59181
    }
-
 
59182
 
-
 
59183
    @Override
-
 
59184
    public String toString() {
-
 
59185
      StringBuilder sb = new StringBuilder("getAllAvailableAmazonFbaItemInventory_result(");
-
 
59186
      boolean first = true;
-
 
59187
 
-
 
59188
      sb.append("success:");
-
 
59189
      if (this.success == null) {
-
 
59190
        sb.append("null");
-
 
59191
      } else {
-
 
59192
        sb.append(this.success);
-
 
59193
      }
-
 
59194
      first = false;
-
 
59195
      sb.append(")");
-
 
59196
      return sb.toString();
-
 
59197
    }
-
 
59198
 
-
 
59199
    public void validate() throws org.apache.thrift.TException {
57844
      // check for required fields
59200
      // check for required fields
57845
    }
59201
    }
57846
 
59202
 
57847
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59203
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57848
      try {
59204
      try {