Subversion Repositories SmartDukaan

Rev

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

Rev 7967 Rev 8182
Line 1007... Line 1007...
1007
 
1007
 
1008
    public List<HotspotServiceMatrix> getHotspotServiceMatrices() throws org.apache.thrift.TException;
1008
    public List<HotspotServiceMatrix> getHotspotServiceMatrices() throws org.apache.thrift.TException;
1009
 
1009
 
1010
    public Order updateOrderAWB(long orderId, String airwayBillNo) throws org.apache.thrift.TException;
1010
    public Order updateOrderAWB(long orderId, String airwayBillNo) throws org.apache.thrift.TException;
1011
 
1011
 
-
 
1012
    public List<Order> getOrdersByVendor(List<Long> vendors, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1013
 
-
 
1014
    public void createEbayOrder(EbayOrder ebayOrder) throws org.apache.thrift.TException;
-
 
1015
 
-
 
1016
    public EbayOrder getEbayOrderByOrderId(long orderId) throws org.apache.thrift.TException;
-
 
1017
 
-
 
1018
    public EbayOrder getEbayOrderBySalesRecNumber(long salesRecordNumber) throws org.apache.thrift.TException;
-
 
1019
 
-
 
1020
    public EbayOrder getEbayOrder(long salesRecordNumber, String listingId) throws org.apache.thrift.TException;
-
 
1021
 
-
 
1022
    public void updateEbayOrder(EbayOrder ebayOrder) throws org.apache.thrift.TException;
-
 
1023
 
-
 
1024
    public boolean ebayOrderExists(long salesRecNumber, String ebayListingId) throws org.apache.thrift.TException;
-
 
1025
 
-
 
1026
    public void updateOrderForEbay(Order order) throws org.apache.thrift.TException;
-
 
1027
 
-
 
1028
    public Order splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip) throws org.apache.thrift.TException;
-
 
1029
 
1012
  }
1030
  }
1013
 
1031
 
1014
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1032
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1015
 
1033
 
1016
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1034
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1403... Line 1421...
1403
 
1421
 
1404
    public void getHotspotServiceMatrices(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHotspotServiceMatrices_call> resultHandler) throws org.apache.thrift.TException;
1422
    public void getHotspotServiceMatrices(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHotspotServiceMatrices_call> resultHandler) throws org.apache.thrift.TException;
1405
 
1423
 
1406
    public void updateOrderAWB(long orderId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
1424
    public void updateOrderAWB(long orderId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
1407
 
1425
 
-
 
1426
    public void getOrdersByVendor(List<Long> vendors, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByVendor_call> resultHandler) throws org.apache.thrift.TException;
-
 
1427
 
-
 
1428
    public void createEbayOrder(EbayOrder ebayOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createEbayOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1429
 
-
 
1430
    public void getEbayOrderByOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEbayOrderByOrderId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1431
 
-
 
1432
    public void getEbayOrderBySalesRecNumber(long salesRecordNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEbayOrderBySalesRecNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
1433
 
-
 
1434
    public void getEbayOrder(long salesRecordNumber, String listingId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEbayOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1435
 
-
 
1436
    public void updateEbayOrder(EbayOrder ebayOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateEbayOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1437
 
-
 
1438
    public void ebayOrderExists(long salesRecNumber, String ebayListingId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.ebayOrderExists_call> resultHandler) throws org.apache.thrift.TException;
-
 
1439
 
-
 
1440
    public void updateOrderForEbay(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderForEbay_call> resultHandler) throws org.apache.thrift.TException;
-
 
1441
 
-
 
1442
    public void splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitEbayOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1443
 
1408
  }
1444
  }
1409
 
1445
 
1410
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1446
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1411
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1447
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1412
      public Factory() {}
1448
      public Factory() {}
Line 6298... Line 6334...
6298
        return result.success;
6334
        return result.success;
6299
      }
6335
      }
6300
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateOrderAWB failed: unknown result");
6336
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateOrderAWB failed: unknown result");
6301
    }
6337
    }
6302
 
6338
 
-
 
6339
    public List<Order> getOrdersByVendor(List<Long> vendors, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException
-
 
6340
    {
-
 
6341
      send_getOrdersByVendor(vendors, statuses);
-
 
6342
      return recv_getOrdersByVendor();
-
 
6343
    }
-
 
6344
 
-
 
6345
    public void send_getOrdersByVendor(List<Long> vendors, List<OrderStatus> statuses) throws org.apache.thrift.TException
-
 
6346
    {
-
 
6347
      getOrdersByVendor_args args = new getOrdersByVendor_args();
-
 
6348
      args.setVendors(vendors);
-
 
6349
      args.setStatuses(statuses);
-
 
6350
      sendBase("getOrdersByVendor", args);
-
 
6351
    }
-
 
6352
 
-
 
6353
    public List<Order> recv_getOrdersByVendor() throws TransactionServiceException, org.apache.thrift.TException
-
 
6354
    {
-
 
6355
      getOrdersByVendor_result result = new getOrdersByVendor_result();
-
 
6356
      receiveBase(result, "getOrdersByVendor");
-
 
6357
      if (result.isSetSuccess()) {
-
 
6358
        return result.success;
-
 
6359
      }
-
 
6360
      if (result.ex != null) {
-
 
6361
        throw result.ex;
-
 
6362
      }
-
 
6363
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByVendor failed: unknown result");
-
 
6364
    }
-
 
6365
 
-
 
6366
    public void createEbayOrder(EbayOrder ebayOrder) throws org.apache.thrift.TException
-
 
6367
    {
-
 
6368
      send_createEbayOrder(ebayOrder);
-
 
6369
      recv_createEbayOrder();
-
 
6370
    }
-
 
6371
 
-
 
6372
    public void send_createEbayOrder(EbayOrder ebayOrder) throws org.apache.thrift.TException
-
 
6373
    {
-
 
6374
      createEbayOrder_args args = new createEbayOrder_args();
-
 
6375
      args.setEbayOrder(ebayOrder);
-
 
6376
      sendBase("createEbayOrder", args);
-
 
6377
    }
-
 
6378
 
-
 
6379
    public void recv_createEbayOrder() throws org.apache.thrift.TException
-
 
6380
    {
-
 
6381
      createEbayOrder_result result = new createEbayOrder_result();
-
 
6382
      receiveBase(result, "createEbayOrder");
-
 
6383
      return;
-
 
6384
    }
-
 
6385
 
-
 
6386
    public EbayOrder getEbayOrderByOrderId(long orderId) throws org.apache.thrift.TException
-
 
6387
    {
-
 
6388
      send_getEbayOrderByOrderId(orderId);
-
 
6389
      return recv_getEbayOrderByOrderId();
-
 
6390
    }
-
 
6391
 
-
 
6392
    public void send_getEbayOrderByOrderId(long orderId) throws org.apache.thrift.TException
-
 
6393
    {
-
 
6394
      getEbayOrderByOrderId_args args = new getEbayOrderByOrderId_args();
-
 
6395
      args.setOrderId(orderId);
-
 
6396
      sendBase("getEbayOrderByOrderId", args);
-
 
6397
    }
-
 
6398
 
-
 
6399
    public EbayOrder recv_getEbayOrderByOrderId() throws org.apache.thrift.TException
-
 
6400
    {
-
 
6401
      getEbayOrderByOrderId_result result = new getEbayOrderByOrderId_result();
-
 
6402
      receiveBase(result, "getEbayOrderByOrderId");
-
 
6403
      if (result.isSetSuccess()) {
-
 
6404
        return result.success;
-
 
6405
      }
-
 
6406
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEbayOrderByOrderId failed: unknown result");
-
 
6407
    }
-
 
6408
 
-
 
6409
    public EbayOrder getEbayOrderBySalesRecNumber(long salesRecordNumber) throws org.apache.thrift.TException
-
 
6410
    {
-
 
6411
      send_getEbayOrderBySalesRecNumber(salesRecordNumber);
-
 
6412
      return recv_getEbayOrderBySalesRecNumber();
-
 
6413
    }
-
 
6414
 
-
 
6415
    public void send_getEbayOrderBySalesRecNumber(long salesRecordNumber) throws org.apache.thrift.TException
-
 
6416
    {
-
 
6417
      getEbayOrderBySalesRecNumber_args args = new getEbayOrderBySalesRecNumber_args();
-
 
6418
      args.setSalesRecordNumber(salesRecordNumber);
-
 
6419
      sendBase("getEbayOrderBySalesRecNumber", args);
-
 
6420
    }
-
 
6421
 
-
 
6422
    public EbayOrder recv_getEbayOrderBySalesRecNumber() throws org.apache.thrift.TException
-
 
6423
    {
-
 
6424
      getEbayOrderBySalesRecNumber_result result = new getEbayOrderBySalesRecNumber_result();
-
 
6425
      receiveBase(result, "getEbayOrderBySalesRecNumber");
-
 
6426
      if (result.isSetSuccess()) {
-
 
6427
        return result.success;
-
 
6428
      }
-
 
6429
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEbayOrderBySalesRecNumber failed: unknown result");
-
 
6430
    }
-
 
6431
 
-
 
6432
    public EbayOrder getEbayOrder(long salesRecordNumber, String listingId) throws org.apache.thrift.TException
-
 
6433
    {
-
 
6434
      send_getEbayOrder(salesRecordNumber, listingId);
-
 
6435
      return recv_getEbayOrder();
-
 
6436
    }
-
 
6437
 
-
 
6438
    public void send_getEbayOrder(long salesRecordNumber, String listingId) throws org.apache.thrift.TException
-
 
6439
    {
-
 
6440
      getEbayOrder_args args = new getEbayOrder_args();
-
 
6441
      args.setSalesRecordNumber(salesRecordNumber);
-
 
6442
      args.setListingId(listingId);
-
 
6443
      sendBase("getEbayOrder", args);
-
 
6444
    }
-
 
6445
 
-
 
6446
    public EbayOrder recv_getEbayOrder() throws org.apache.thrift.TException
-
 
6447
    {
-
 
6448
      getEbayOrder_result result = new getEbayOrder_result();
-
 
6449
      receiveBase(result, "getEbayOrder");
-
 
6450
      if (result.isSetSuccess()) {
-
 
6451
        return result.success;
-
 
6452
      }
-
 
6453
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEbayOrder failed: unknown result");
-
 
6454
    }
-
 
6455
 
-
 
6456
    public void updateEbayOrder(EbayOrder ebayOrder) throws org.apache.thrift.TException
-
 
6457
    {
-
 
6458
      send_updateEbayOrder(ebayOrder);
-
 
6459
      recv_updateEbayOrder();
-
 
6460
    }
-
 
6461
 
-
 
6462
    public void send_updateEbayOrder(EbayOrder ebayOrder) throws org.apache.thrift.TException
-
 
6463
    {
-
 
6464
      updateEbayOrder_args args = new updateEbayOrder_args();
-
 
6465
      args.setEbayOrder(ebayOrder);
-
 
6466
      sendBase("updateEbayOrder", args);
-
 
6467
    }
-
 
6468
 
-
 
6469
    public void recv_updateEbayOrder() throws org.apache.thrift.TException
-
 
6470
    {
-
 
6471
      updateEbayOrder_result result = new updateEbayOrder_result();
-
 
6472
      receiveBase(result, "updateEbayOrder");
-
 
6473
      return;
-
 
6474
    }
-
 
6475
 
-
 
6476
    public boolean ebayOrderExists(long salesRecNumber, String ebayListingId) throws org.apache.thrift.TException
-
 
6477
    {
-
 
6478
      send_ebayOrderExists(salesRecNumber, ebayListingId);
-
 
6479
      return recv_ebayOrderExists();
-
 
6480
    }
-
 
6481
 
-
 
6482
    public void send_ebayOrderExists(long salesRecNumber, String ebayListingId) throws org.apache.thrift.TException
-
 
6483
    {
-
 
6484
      ebayOrderExists_args args = new ebayOrderExists_args();
-
 
6485
      args.setSalesRecNumber(salesRecNumber);
-
 
6486
      args.setEbayListingId(ebayListingId);
-
 
6487
      sendBase("ebayOrderExists", args);
-
 
6488
    }
-
 
6489
 
-
 
6490
    public boolean recv_ebayOrderExists() throws org.apache.thrift.TException
-
 
6491
    {
-
 
6492
      ebayOrderExists_result result = new ebayOrderExists_result();
-
 
6493
      receiveBase(result, "ebayOrderExists");
-
 
6494
      if (result.isSetSuccess()) {
-
 
6495
        return result.success;
-
 
6496
      }
-
 
6497
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ebayOrderExists failed: unknown result");
-
 
6498
    }
-
 
6499
 
-
 
6500
    public void updateOrderForEbay(Order order) throws org.apache.thrift.TException
-
 
6501
    {
-
 
6502
      send_updateOrderForEbay(order);
-
 
6503
      recv_updateOrderForEbay();
-
 
6504
    }
-
 
6505
 
-
 
6506
    public void send_updateOrderForEbay(Order order) throws org.apache.thrift.TException
-
 
6507
    {
-
 
6508
      updateOrderForEbay_args args = new updateOrderForEbay_args();
-
 
6509
      args.setOrder(order);
-
 
6510
      sendBase("updateOrderForEbay", args);
-
 
6511
    }
-
 
6512
 
-
 
6513
    public void recv_updateOrderForEbay() throws org.apache.thrift.TException
-
 
6514
    {
-
 
6515
      updateOrderForEbay_result result = new updateOrderForEbay_result();
-
 
6516
      receiveBase(result, "updateOrderForEbay");
-
 
6517
      return;
-
 
6518
    }
-
 
6519
 
-
 
6520
    public Order splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip) throws org.apache.thrift.TException
-
 
6521
    {
-
 
6522
      send_splitEbayOrder(orderId, splitOrderQty, splitOrderItemId, usePowerShip);
-
 
6523
      return recv_splitEbayOrder();
-
 
6524
    }
-
 
6525
 
-
 
6526
    public void send_splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip) throws org.apache.thrift.TException
-
 
6527
    {
-
 
6528
      splitEbayOrder_args args = new splitEbayOrder_args();
-
 
6529
      args.setOrderId(orderId);
-
 
6530
      args.setSplitOrderQty(splitOrderQty);
-
 
6531
      args.setSplitOrderItemId(splitOrderItemId);
-
 
6532
      args.setUsePowerShip(usePowerShip);
-
 
6533
      sendBase("splitEbayOrder", args);
-
 
6534
    }
-
 
6535
 
-
 
6536
    public Order recv_splitEbayOrder() throws org.apache.thrift.TException
-
 
6537
    {
-
 
6538
      splitEbayOrder_result result = new splitEbayOrder_result();
-
 
6539
      receiveBase(result, "splitEbayOrder");
-
 
6540
      if (result.isSetSuccess()) {
-
 
6541
        return result.success;
-
 
6542
      }
-
 
6543
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "splitEbayOrder failed: unknown result");
-
 
6544
    }
-
 
6545
 
6303
  }
6546
  }
6304
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6547
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6305
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6548
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6306
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6549
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6307
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6550
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 13143... Line 13386...
13143
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13386
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13144
        return (new Client(prot)).recv_updateOrderAWB();
13387
        return (new Client(prot)).recv_updateOrderAWB();
13145
      }
13388
      }
13146
    }
13389
    }
13147
 
13390
 
-
 
13391
    public void getOrdersByVendor(List<Long> vendors, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<getOrdersByVendor_call> resultHandler) throws org.apache.thrift.TException {
-
 
13392
      checkReady();
-
 
13393
      getOrdersByVendor_call method_call = new getOrdersByVendor_call(vendors, statuses, resultHandler, this, ___protocolFactory, ___transport);
-
 
13394
      this.___currentMethod = method_call;
-
 
13395
      ___manager.call(method_call);
-
 
13396
    }
-
 
13397
 
-
 
13398
    public static class getOrdersByVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13399
      private List<Long> vendors;
-
 
13400
      private List<OrderStatus> statuses;
-
 
13401
      public getOrdersByVendor_call(List<Long> vendors, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<getOrdersByVendor_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 {
-
 
13402
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13403
        this.vendors = vendors;
-
 
13404
        this.statuses = statuses;
-
 
13405
      }
-
 
13406
 
-
 
13407
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13408
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13409
        getOrdersByVendor_args args = new getOrdersByVendor_args();
-
 
13410
        args.setVendors(vendors);
-
 
13411
        args.setStatuses(statuses);
-
 
13412
        args.write(prot);
-
 
13413
        prot.writeMessageEnd();
-
 
13414
      }
-
 
13415
 
-
 
13416
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
13417
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13418
          throw new IllegalStateException("Method call not finished!");
-
 
13419
        }
-
 
13420
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13421
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13422
        return (new Client(prot)).recv_getOrdersByVendor();
-
 
13423
      }
-
 
13424
    }
-
 
13425
 
-
 
13426
    public void createEbayOrder(EbayOrder ebayOrder, org.apache.thrift.async.AsyncMethodCallback<createEbayOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
13427
      checkReady();
-
 
13428
      createEbayOrder_call method_call = new createEbayOrder_call(ebayOrder, resultHandler, this, ___protocolFactory, ___transport);
-
 
13429
      this.___currentMethod = method_call;
-
 
13430
      ___manager.call(method_call);
-
 
13431
    }
-
 
13432
 
-
 
13433
    public static class createEbayOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13434
      private EbayOrder ebayOrder;
-
 
13435
      public createEbayOrder_call(EbayOrder ebayOrder, org.apache.thrift.async.AsyncMethodCallback<createEbayOrder_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 {
-
 
13436
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13437
        this.ebayOrder = ebayOrder;
-
 
13438
      }
-
 
13439
 
-
 
13440
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13441
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createEbayOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13442
        createEbayOrder_args args = new createEbayOrder_args();
-
 
13443
        args.setEbayOrder(ebayOrder);
-
 
13444
        args.write(prot);
-
 
13445
        prot.writeMessageEnd();
-
 
13446
      }
-
 
13447
 
-
 
13448
      public void getResult() throws org.apache.thrift.TException {
-
 
13449
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13450
          throw new IllegalStateException("Method call not finished!");
-
 
13451
        }
-
 
13452
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13453
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13454
        (new Client(prot)).recv_createEbayOrder();
-
 
13455
      }
-
 
13456
    }
-
 
13457
 
-
 
13458
    public void getEbayOrderByOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<getEbayOrderByOrderId_call> resultHandler) throws org.apache.thrift.TException {
-
 
13459
      checkReady();
-
 
13460
      getEbayOrderByOrderId_call method_call = new getEbayOrderByOrderId_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
13461
      this.___currentMethod = method_call;
-
 
13462
      ___manager.call(method_call);
-
 
13463
    }
-
 
13464
 
-
 
13465
    public static class getEbayOrderByOrderId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13466
      private long orderId;
-
 
13467
      public getEbayOrderByOrderId_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getEbayOrderByOrderId_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 {
-
 
13468
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13469
        this.orderId = orderId;
-
 
13470
      }
-
 
13471
 
-
 
13472
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13473
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEbayOrderByOrderId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13474
        getEbayOrderByOrderId_args args = new getEbayOrderByOrderId_args();
-
 
13475
        args.setOrderId(orderId);
-
 
13476
        args.write(prot);
-
 
13477
        prot.writeMessageEnd();
-
 
13478
      }
-
 
13479
 
-
 
13480
      public EbayOrder getResult() throws org.apache.thrift.TException {
-
 
13481
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13482
          throw new IllegalStateException("Method call not finished!");
-
 
13483
        }
-
 
13484
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13486
        return (new Client(prot)).recv_getEbayOrderByOrderId();
-
 
13487
      }
-
 
13488
    }
-
 
13489
 
-
 
13490
    public void getEbayOrderBySalesRecNumber(long salesRecordNumber, org.apache.thrift.async.AsyncMethodCallback<getEbayOrderBySalesRecNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
13491
      checkReady();
-
 
13492
      getEbayOrderBySalesRecNumber_call method_call = new getEbayOrderBySalesRecNumber_call(salesRecordNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
13493
      this.___currentMethod = method_call;
-
 
13494
      ___manager.call(method_call);
-
 
13495
    }
-
 
13496
 
-
 
13497
    public static class getEbayOrderBySalesRecNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13498
      private long salesRecordNumber;
-
 
13499
      public getEbayOrderBySalesRecNumber_call(long salesRecordNumber, org.apache.thrift.async.AsyncMethodCallback<getEbayOrderBySalesRecNumber_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 {
-
 
13500
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13501
        this.salesRecordNumber = salesRecordNumber;
-
 
13502
      }
-
 
13503
 
-
 
13504
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13505
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEbayOrderBySalesRecNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13506
        getEbayOrderBySalesRecNumber_args args = new getEbayOrderBySalesRecNumber_args();
-
 
13507
        args.setSalesRecordNumber(salesRecordNumber);
-
 
13508
        args.write(prot);
-
 
13509
        prot.writeMessageEnd();
-
 
13510
      }
-
 
13511
 
-
 
13512
      public EbayOrder getResult() throws org.apache.thrift.TException {
-
 
13513
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13514
          throw new IllegalStateException("Method call not finished!");
-
 
13515
        }
-
 
13516
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13518
        return (new Client(prot)).recv_getEbayOrderBySalesRecNumber();
-
 
13519
      }
-
 
13520
    }
-
 
13521
 
-
 
13522
    public void getEbayOrder(long salesRecordNumber, String listingId, org.apache.thrift.async.AsyncMethodCallback<getEbayOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
13523
      checkReady();
-
 
13524
      getEbayOrder_call method_call = new getEbayOrder_call(salesRecordNumber, listingId, resultHandler, this, ___protocolFactory, ___transport);
-
 
13525
      this.___currentMethod = method_call;
-
 
13526
      ___manager.call(method_call);
-
 
13527
    }
-
 
13528
 
-
 
13529
    public static class getEbayOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13530
      private long salesRecordNumber;
-
 
13531
      private String listingId;
-
 
13532
      public getEbayOrder_call(long salesRecordNumber, String listingId, org.apache.thrift.async.AsyncMethodCallback<getEbayOrder_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 {
-
 
13533
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13534
        this.salesRecordNumber = salesRecordNumber;
-
 
13535
        this.listingId = listingId;
-
 
13536
      }
-
 
13537
 
-
 
13538
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13539
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEbayOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13540
        getEbayOrder_args args = new getEbayOrder_args();
-
 
13541
        args.setSalesRecordNumber(salesRecordNumber);
-
 
13542
        args.setListingId(listingId);
-
 
13543
        args.write(prot);
-
 
13544
        prot.writeMessageEnd();
-
 
13545
      }
-
 
13546
 
-
 
13547
      public EbayOrder getResult() throws org.apache.thrift.TException {
-
 
13548
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13549
          throw new IllegalStateException("Method call not finished!");
-
 
13550
        }
-
 
13551
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13553
        return (new Client(prot)).recv_getEbayOrder();
-
 
13554
      }
-
 
13555
    }
-
 
13556
 
-
 
13557
    public void updateEbayOrder(EbayOrder ebayOrder, org.apache.thrift.async.AsyncMethodCallback<updateEbayOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
13558
      checkReady();
-
 
13559
      updateEbayOrder_call method_call = new updateEbayOrder_call(ebayOrder, resultHandler, this, ___protocolFactory, ___transport);
-
 
13560
      this.___currentMethod = method_call;
-
 
13561
      ___manager.call(method_call);
-
 
13562
    }
-
 
13563
 
-
 
13564
    public static class updateEbayOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13565
      private EbayOrder ebayOrder;
-
 
13566
      public updateEbayOrder_call(EbayOrder ebayOrder, org.apache.thrift.async.AsyncMethodCallback<updateEbayOrder_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 {
-
 
13567
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13568
        this.ebayOrder = ebayOrder;
-
 
13569
      }
-
 
13570
 
-
 
13571
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13572
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateEbayOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13573
        updateEbayOrder_args args = new updateEbayOrder_args();
-
 
13574
        args.setEbayOrder(ebayOrder);
-
 
13575
        args.write(prot);
-
 
13576
        prot.writeMessageEnd();
-
 
13577
      }
-
 
13578
 
-
 
13579
      public void getResult() throws org.apache.thrift.TException {
-
 
13580
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13581
          throw new IllegalStateException("Method call not finished!");
-
 
13582
        }
-
 
13583
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13584
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13585
        (new Client(prot)).recv_updateEbayOrder();
-
 
13586
      }
-
 
13587
    }
-
 
13588
 
-
 
13589
    public void ebayOrderExists(long salesRecNumber, String ebayListingId, org.apache.thrift.async.AsyncMethodCallback<ebayOrderExists_call> resultHandler) throws org.apache.thrift.TException {
-
 
13590
      checkReady();
-
 
13591
      ebayOrderExists_call method_call = new ebayOrderExists_call(salesRecNumber, ebayListingId, resultHandler, this, ___protocolFactory, ___transport);
-
 
13592
      this.___currentMethod = method_call;
-
 
13593
      ___manager.call(method_call);
-
 
13594
    }
-
 
13595
 
-
 
13596
    public static class ebayOrderExists_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13597
      private long salesRecNumber;
-
 
13598
      private String ebayListingId;
-
 
13599
      public ebayOrderExists_call(long salesRecNumber, String ebayListingId, org.apache.thrift.async.AsyncMethodCallback<ebayOrderExists_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 {
-
 
13600
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13601
        this.salesRecNumber = salesRecNumber;
-
 
13602
        this.ebayListingId = ebayListingId;
-
 
13603
      }
-
 
13604
 
-
 
13605
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13606
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ebayOrderExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13607
        ebayOrderExists_args args = new ebayOrderExists_args();
-
 
13608
        args.setSalesRecNumber(salesRecNumber);
-
 
13609
        args.setEbayListingId(ebayListingId);
-
 
13610
        args.write(prot);
-
 
13611
        prot.writeMessageEnd();
-
 
13612
      }
-
 
13613
 
-
 
13614
      public boolean getResult() throws org.apache.thrift.TException {
-
 
13615
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13616
          throw new IllegalStateException("Method call not finished!");
-
 
13617
        }
-
 
13618
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13619
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13620
        return (new Client(prot)).recv_ebayOrderExists();
-
 
13621
      }
-
 
13622
    }
-
 
13623
 
-
 
13624
    public void updateOrderForEbay(Order order, org.apache.thrift.async.AsyncMethodCallback<updateOrderForEbay_call> resultHandler) throws org.apache.thrift.TException {
-
 
13625
      checkReady();
-
 
13626
      updateOrderForEbay_call method_call = new updateOrderForEbay_call(order, resultHandler, this, ___protocolFactory, ___transport);
-
 
13627
      this.___currentMethod = method_call;
-
 
13628
      ___manager.call(method_call);
-
 
13629
    }
-
 
13630
 
-
 
13631
    public static class updateOrderForEbay_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13632
      private Order order;
-
 
13633
      public updateOrderForEbay_call(Order order, org.apache.thrift.async.AsyncMethodCallback<updateOrderForEbay_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 {
-
 
13634
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13635
        this.order = order;
-
 
13636
      }
-
 
13637
 
-
 
13638
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13639
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrderForEbay", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13640
        updateOrderForEbay_args args = new updateOrderForEbay_args();
-
 
13641
        args.setOrder(order);
-
 
13642
        args.write(prot);
-
 
13643
        prot.writeMessageEnd();
-
 
13644
      }
-
 
13645
 
-
 
13646
      public void getResult() throws org.apache.thrift.TException {
-
 
13647
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13648
          throw new IllegalStateException("Method call not finished!");
-
 
13649
        }
-
 
13650
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13651
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13652
        (new Client(prot)).recv_updateOrderForEbay();
-
 
13653
      }
-
 
13654
    }
-
 
13655
 
-
 
13656
    public void splitEbayOrder(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip, org.apache.thrift.async.AsyncMethodCallback<splitEbayOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
13657
      checkReady();
-
 
13658
      splitEbayOrder_call method_call = new splitEbayOrder_call(orderId, splitOrderQty, splitOrderItemId, usePowerShip, resultHandler, this, ___protocolFactory, ___transport);
-
 
13659
      this.___currentMethod = method_call;
-
 
13660
      ___manager.call(method_call);
-
 
13661
    }
-
 
13662
 
-
 
13663
    public static class splitEbayOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13664
      private long orderId;
-
 
13665
      private long splitOrderQty;
-
 
13666
      private long splitOrderItemId;
-
 
13667
      private boolean usePowerShip;
-
 
13668
      public splitEbayOrder_call(long orderId, long splitOrderQty, long splitOrderItemId, boolean usePowerShip, org.apache.thrift.async.AsyncMethodCallback<splitEbayOrder_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 {
-
 
13669
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13670
        this.orderId = orderId;
-
 
13671
        this.splitOrderQty = splitOrderQty;
-
 
13672
        this.splitOrderItemId = splitOrderItemId;
-
 
13673
        this.usePowerShip = usePowerShip;
-
 
13674
      }
-
 
13675
 
-
 
13676
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13677
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("splitEbayOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13678
        splitEbayOrder_args args = new splitEbayOrder_args();
-
 
13679
        args.setOrderId(orderId);
-
 
13680
        args.setSplitOrderQty(splitOrderQty);
-
 
13681
        args.setSplitOrderItemId(splitOrderItemId);
-
 
13682
        args.setUsePowerShip(usePowerShip);
-
 
13683
        args.write(prot);
-
 
13684
        prot.writeMessageEnd();
-
 
13685
      }
-
 
13686
 
-
 
13687
      public Order getResult() throws org.apache.thrift.TException {
-
 
13688
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13689
          throw new IllegalStateException("Method call not finished!");
-
 
13690
        }
-
 
13691
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13692
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13693
        return (new Client(prot)).recv_splitEbayOrder();
-
 
13694
      }
-
 
13695
    }
-
 
13696
 
13148
  }
13697
  }
13149
 
13698
 
13150
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13699
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13151
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13700
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13152
    public Processor(I iface) {
13701
    public Processor(I iface) {
Line 13352... Line 13901...
13352
      processMap.put("getOrdersByAmazonOrderCode", new getOrdersByAmazonOrderCode());
13901
      processMap.put("getOrdersByAmazonOrderCode", new getOrdersByAmazonOrderCode());
13353
      processMap.put("convertStoreToNormal", new convertStoreToNormal());
13902
      processMap.put("convertStoreToNormal", new convertStoreToNormal());
13354
      processMap.put("updateFreebieItem", new updateFreebieItem());
13903
      processMap.put("updateFreebieItem", new updateFreebieItem());
13355
      processMap.put("getHotspotServiceMatrices", new getHotspotServiceMatrices());
13904
      processMap.put("getHotspotServiceMatrices", new getHotspotServiceMatrices());
13356
      processMap.put("updateOrderAWB", new updateOrderAWB());
13905
      processMap.put("updateOrderAWB", new updateOrderAWB());
-
 
13906
      processMap.put("getOrdersByVendor", new getOrdersByVendor());
-
 
13907
      processMap.put("createEbayOrder", new createEbayOrder());
-
 
13908
      processMap.put("getEbayOrderByOrderId", new getEbayOrderByOrderId());
-
 
13909
      processMap.put("getEbayOrderBySalesRecNumber", new getEbayOrderBySalesRecNumber());
-
 
13910
      processMap.put("getEbayOrder", new getEbayOrder());
-
 
13911
      processMap.put("updateEbayOrder", new updateEbayOrder());
-
 
13912
      processMap.put("ebayOrderExists", new ebayOrderExists());
-
 
13913
      processMap.put("updateOrderForEbay", new updateOrderForEbay());
-
 
13914
      processMap.put("splitEbayOrder", new splitEbayOrder());
13357
      return processMap;
13915
      return processMap;
13358
    }
13916
    }
13359
 
13917
 
13360
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13918
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13361
      public createTransaction() {
13919
      public createTransaction() {
Line 16935... Line 17493...
16935
        result.success = iface.updateOrderAWB(args.orderId, args.airwayBillNo);
17493
        result.success = iface.updateOrderAWB(args.orderId, args.airwayBillNo);
16936
        return result;
17494
        return result;
16937
      }
17495
      }
16938
    }
17496
    }
16939
 
17497
 
-
 
17498
    private static class getOrdersByVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByVendor_args> {
-
 
17499
      public getOrdersByVendor() {
-
 
17500
        super("getOrdersByVendor");
-
 
17501
      }
-
 
17502
 
-
 
17503
      protected getOrdersByVendor_args getEmptyArgsInstance() {
-
 
17504
        return new getOrdersByVendor_args();
-
 
17505
      }
-
 
17506
 
-
 
17507
      protected getOrdersByVendor_result getResult(I iface, getOrdersByVendor_args args) throws org.apache.thrift.TException {
-
 
17508
        getOrdersByVendor_result result = new getOrdersByVendor_result();
-
 
17509
        try {
-
 
17510
          result.success = iface.getOrdersByVendor(args.vendors, args.statuses);
-
 
17511
        } catch (TransactionServiceException ex) {
-
 
17512
          result.ex = ex;
-
 
17513
        }
-
 
17514
        return result;
-
 
17515
      }
-
 
17516
    }
-
 
17517
 
-
 
17518
    private static class createEbayOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createEbayOrder_args> {
-
 
17519
      public createEbayOrder() {
-
 
17520
        super("createEbayOrder");
-
 
17521
      }
-
 
17522
 
-
 
17523
      protected createEbayOrder_args getEmptyArgsInstance() {
-
 
17524
        return new createEbayOrder_args();
-
 
17525
      }
-
 
17526
 
-
 
17527
      protected createEbayOrder_result getResult(I iface, createEbayOrder_args args) throws org.apache.thrift.TException {
-
 
17528
        createEbayOrder_result result = new createEbayOrder_result();
-
 
17529
        iface.createEbayOrder(args.ebayOrder);
-
 
17530
        return result;
-
 
17531
      }
-
 
17532
    }
-
 
17533
 
-
 
17534
    private static class getEbayOrderByOrderId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEbayOrderByOrderId_args> {
-
 
17535
      public getEbayOrderByOrderId() {
-
 
17536
        super("getEbayOrderByOrderId");
-
 
17537
      }
-
 
17538
 
-
 
17539
      protected getEbayOrderByOrderId_args getEmptyArgsInstance() {
-
 
17540
        return new getEbayOrderByOrderId_args();
-
 
17541
      }
-
 
17542
 
-
 
17543
      protected getEbayOrderByOrderId_result getResult(I iface, getEbayOrderByOrderId_args args) throws org.apache.thrift.TException {
-
 
17544
        getEbayOrderByOrderId_result result = new getEbayOrderByOrderId_result();
-
 
17545
        result.success = iface.getEbayOrderByOrderId(args.orderId);
-
 
17546
        return result;
-
 
17547
      }
-
 
17548
    }
-
 
17549
 
-
 
17550
    private static class getEbayOrderBySalesRecNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEbayOrderBySalesRecNumber_args> {
-
 
17551
      public getEbayOrderBySalesRecNumber() {
-
 
17552
        super("getEbayOrderBySalesRecNumber");
-
 
17553
      }
-
 
17554
 
-
 
17555
      protected getEbayOrderBySalesRecNumber_args getEmptyArgsInstance() {
-
 
17556
        return new getEbayOrderBySalesRecNumber_args();
-
 
17557
      }
-
 
17558
 
-
 
17559
      protected getEbayOrderBySalesRecNumber_result getResult(I iface, getEbayOrderBySalesRecNumber_args args) throws org.apache.thrift.TException {
-
 
17560
        getEbayOrderBySalesRecNumber_result result = new getEbayOrderBySalesRecNumber_result();
-
 
17561
        result.success = iface.getEbayOrderBySalesRecNumber(args.salesRecordNumber);
-
 
17562
        return result;
-
 
17563
      }
-
 
17564
    }
-
 
17565
 
-
 
17566
    private static class getEbayOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEbayOrder_args> {
-
 
17567
      public getEbayOrder() {
-
 
17568
        super("getEbayOrder");
-
 
17569
      }
-
 
17570
 
-
 
17571
      protected getEbayOrder_args getEmptyArgsInstance() {
-
 
17572
        return new getEbayOrder_args();
-
 
17573
      }
-
 
17574
 
-
 
17575
      protected getEbayOrder_result getResult(I iface, getEbayOrder_args args) throws org.apache.thrift.TException {
-
 
17576
        getEbayOrder_result result = new getEbayOrder_result();
-
 
17577
        result.success = iface.getEbayOrder(args.salesRecordNumber, args.listingId);
-
 
17578
        return result;
-
 
17579
      }
-
 
17580
    }
-
 
17581
 
-
 
17582
    private static class updateEbayOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateEbayOrder_args> {
-
 
17583
      public updateEbayOrder() {
-
 
17584
        super("updateEbayOrder");
-
 
17585
      }
-
 
17586
 
-
 
17587
      protected updateEbayOrder_args getEmptyArgsInstance() {
-
 
17588
        return new updateEbayOrder_args();
-
 
17589
      }
-
 
17590
 
-
 
17591
      protected updateEbayOrder_result getResult(I iface, updateEbayOrder_args args) throws org.apache.thrift.TException {
-
 
17592
        updateEbayOrder_result result = new updateEbayOrder_result();
-
 
17593
        iface.updateEbayOrder(args.ebayOrder);
-
 
17594
        return result;
-
 
17595
      }
-
 
17596
    }
-
 
17597
 
-
 
17598
    private static class ebayOrderExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ebayOrderExists_args> {
-
 
17599
      public ebayOrderExists() {
-
 
17600
        super("ebayOrderExists");
-
 
17601
      }
-
 
17602
 
-
 
17603
      protected ebayOrderExists_args getEmptyArgsInstance() {
-
 
17604
        return new ebayOrderExists_args();
-
 
17605
      }
-
 
17606
 
-
 
17607
      protected ebayOrderExists_result getResult(I iface, ebayOrderExists_args args) throws org.apache.thrift.TException {
-
 
17608
        ebayOrderExists_result result = new ebayOrderExists_result();
-
 
17609
        result.success = iface.ebayOrderExists(args.salesRecNumber, args.ebayListingId);
-
 
17610
        result.setSuccessIsSet(true);
-
 
17611
        return result;
-
 
17612
      }
-
 
17613
    }
-
 
17614
 
-
 
17615
    private static class updateOrderForEbay<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderForEbay_args> {
-
 
17616
      public updateOrderForEbay() {
-
 
17617
        super("updateOrderForEbay");
-
 
17618
      }
-
 
17619
 
-
 
17620
      protected updateOrderForEbay_args getEmptyArgsInstance() {
-
 
17621
        return new updateOrderForEbay_args();
-
 
17622
      }
-
 
17623
 
-
 
17624
      protected updateOrderForEbay_result getResult(I iface, updateOrderForEbay_args args) throws org.apache.thrift.TException {
-
 
17625
        updateOrderForEbay_result result = new updateOrderForEbay_result();
-
 
17626
        iface.updateOrderForEbay(args.order);
-
 
17627
        return result;
-
 
17628
      }
-
 
17629
    }
-
 
17630
 
-
 
17631
    private static class splitEbayOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, splitEbayOrder_args> {
-
 
17632
      public splitEbayOrder() {
-
 
17633
        super("splitEbayOrder");
-
 
17634
      }
-
 
17635
 
-
 
17636
      protected splitEbayOrder_args getEmptyArgsInstance() {
-
 
17637
        return new splitEbayOrder_args();
-
 
17638
      }
-
 
17639
 
-
 
17640
      protected splitEbayOrder_result getResult(I iface, splitEbayOrder_args args) throws org.apache.thrift.TException {
-
 
17641
        splitEbayOrder_result result = new splitEbayOrder_result();
-
 
17642
        result.success = iface.splitEbayOrder(args.orderId, args.splitOrderQty, args.splitOrderItemId, args.usePowerShip);
-
 
17643
        return result;
-
 
17644
      }
-
 
17645
    }
-
 
17646
 
16940
  }
17647
  }
16941
 
17648
 
16942
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
17649
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
17650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16944
 
17651
 
Line 61556... Line 62263...
61556
      }
62263
      }
61557
    }
62264
    }
61558
 
62265
 
61559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62266
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61560
      try {
62267
      try {
-
 
62268
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62269
        __isset_bit_vector = new BitSet(1);
61561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61562
      } catch (org.apache.thrift.TException te) {
62271
      } catch (org.apache.thrift.TException te) {
61563
        throw new java.io.IOException(te);
62272
        throw new java.io.IOException(te);
61564
      }
62273
      }
61565
    }
62274
    }
Line 67162... Line 67871...
67162
      }
67871
      }
67163
    }
67872
    }
67164
 
67873
 
67165
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67166
      try {
67875
      try {
67167
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
67168
        __isset_bit_vector = new BitSet(1);
-
 
67169
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67170
      } catch (org.apache.thrift.TException te) {
67877
      } catch (org.apache.thrift.TException te) {
67171
        throw new java.io.IOException(te);
67878
        throw new java.io.IOException(te);
67172
      }
67879
      }
67173
    }
67880
    }
Line 77936... Line 78643...
77936
      }
78643
      }
77937
    }
78644
    }
77938
 
78645
 
77939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
78646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
77940
      try {
78647
      try {
-
 
78648
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
78649
        __isset_bit_vector = new BitSet(1);
77941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
78650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
77942
      } catch (org.apache.thrift.TException te) {
78651
      } catch (org.apache.thrift.TException te) {
77943
        throw new java.io.IOException(te);
78652
        throw new java.io.IOException(te);
77944
      }
78653
      }
77945
    }
78654
    }
Line 106868... Line 107577...
106868
      }
107577
      }
106869
    }
107578
    }
106870
 
107579
 
106871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
107580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
106872
      try {
107581
      try {
106873
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
106874
        __isset_bit_vector = new BitSet(1);
-
 
106875
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
107582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
106876
      } catch (org.apache.thrift.TException te) {
107583
      } catch (org.apache.thrift.TException te) {
106877
        throw new java.io.IOException(te);
107584
        throw new java.io.IOException(te);
106878
      }
107585
      }
106879
    }
107586
    }
Line 156960... Line 157667...
156960
      boolean first = true;
157667
      boolean first = true;
156961
 
157668
 
156962
      sb.append("success:");
157669
      sb.append("success:");
156963
      if (this.success == null) {
157670
      if (this.success == null) {
156964
        sb.append("null");
157671
        sb.append("null");
-
 
157672
      } else {
-
 
157673
        sb.append(this.success);
-
 
157674
      }
-
 
157675
      first = false;
-
 
157676
      sb.append(")");
-
 
157677
      return sb.toString();
-
 
157678
    }
-
 
157679
 
-
 
157680
    public void validate() throws org.apache.thrift.TException {
-
 
157681
      // check for required fields
-
 
157682
    }
-
 
157683
 
-
 
157684
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
157685
      try {
-
 
157686
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
157687
      } catch (org.apache.thrift.TException te) {
-
 
157688
        throw new java.io.IOException(te);
-
 
157689
      }
-
 
157690
    }
-
 
157691
 
-
 
157692
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
157693
      try {
-
 
157694
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
157695
      } catch (org.apache.thrift.TException te) {
-
 
157696
        throw new java.io.IOException(te);
-
 
157697
      }
-
 
157698
    }
-
 
157699
 
-
 
157700
  }
-
 
157701
 
-
 
157702
  public static class getOrdersByVendor_args implements org.apache.thrift.TBase<getOrdersByVendor_args, getOrdersByVendor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
157703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByVendor_args");
-
 
157704
 
-
 
157705
    private static final org.apache.thrift.protocol.TField VENDORS_FIELD_DESC = new org.apache.thrift.protocol.TField("vendors", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
157706
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
157707
 
-
 
157708
    private List<Long> vendors; // required
-
 
157709
    private List<OrderStatus> statuses; // required
-
 
157710
 
-
 
157711
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
157712
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
157713
      VENDORS((short)1, "vendors"),
-
 
157714
      STATUSES((short)2, "statuses");
-
 
157715
 
-
 
157716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
157717
 
-
 
157718
      static {
-
 
157719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
157720
          byName.put(field.getFieldName(), field);
-
 
157721
        }
-
 
157722
      }
-
 
157723
 
-
 
157724
      /**
-
 
157725
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
157726
       */
-
 
157727
      public static _Fields findByThriftId(int fieldId) {
-
 
157728
        switch(fieldId) {
-
 
157729
          case 1: // VENDORS
-
 
157730
            return VENDORS;
-
 
157731
          case 2: // STATUSES
-
 
157732
            return STATUSES;
-
 
157733
          default:
-
 
157734
            return null;
-
 
157735
        }
-
 
157736
      }
-
 
157737
 
-
 
157738
      /**
-
 
157739
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
157740
       * if it is not found.
-
 
157741
       */
-
 
157742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
157743
        _Fields fields = findByThriftId(fieldId);
-
 
157744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
157745
        return fields;
-
 
157746
      }
-
 
157747
 
-
 
157748
      /**
-
 
157749
       * Find the _Fields constant that matches name, or null if its not found.
-
 
157750
       */
-
 
157751
      public static _Fields findByName(String name) {
-
 
157752
        return byName.get(name);
-
 
157753
      }
-
 
157754
 
-
 
157755
      private final short _thriftId;
-
 
157756
      private final String _fieldName;
-
 
157757
 
-
 
157758
      _Fields(short thriftId, String fieldName) {
-
 
157759
        _thriftId = thriftId;
-
 
157760
        _fieldName = fieldName;
-
 
157761
      }
-
 
157762
 
-
 
157763
      public short getThriftFieldId() {
-
 
157764
        return _thriftId;
-
 
157765
      }
-
 
157766
 
-
 
157767
      public String getFieldName() {
-
 
157768
        return _fieldName;
-
 
157769
      }
-
 
157770
    }
-
 
157771
 
-
 
157772
    // isset id assignments
-
 
157773
 
-
 
157774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
157775
    static {
-
 
157776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
157777
      tmpMap.put(_Fields.VENDORS, new org.apache.thrift.meta_data.FieldMetaData("vendors", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
157778
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
157779
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
157780
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
157781
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
157782
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
-
 
157783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
157784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByVendor_args.class, metaDataMap);
-
 
157785
    }
-
 
157786
 
-
 
157787
    public getOrdersByVendor_args() {
-
 
157788
    }
-
 
157789
 
-
 
157790
    public getOrdersByVendor_args(
-
 
157791
      List<Long> vendors,
-
 
157792
      List<OrderStatus> statuses)
-
 
157793
    {
-
 
157794
      this();
-
 
157795
      this.vendors = vendors;
-
 
157796
      this.statuses = statuses;
-
 
157797
    }
-
 
157798
 
-
 
157799
    /**
-
 
157800
     * Performs a deep copy on <i>other</i>.
-
 
157801
     */
-
 
157802
    public getOrdersByVendor_args(getOrdersByVendor_args other) {
-
 
157803
      if (other.isSetVendors()) {
-
 
157804
        List<Long> __this__vendors = new ArrayList<Long>();
-
 
157805
        for (Long other_element : other.vendors) {
-
 
157806
          __this__vendors.add(other_element);
-
 
157807
        }
-
 
157808
        this.vendors = __this__vendors;
-
 
157809
      }
-
 
157810
      if (other.isSetStatuses()) {
-
 
157811
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
-
 
157812
        for (OrderStatus other_element : other.statuses) {
-
 
157813
          __this__statuses.add(other_element);
-
 
157814
        }
-
 
157815
        this.statuses = __this__statuses;
-
 
157816
      }
-
 
157817
    }
-
 
157818
 
-
 
157819
    public getOrdersByVendor_args deepCopy() {
-
 
157820
      return new getOrdersByVendor_args(this);
-
 
157821
    }
-
 
157822
 
-
 
157823
    @Override
-
 
157824
    public void clear() {
-
 
157825
      this.vendors = null;
-
 
157826
      this.statuses = null;
-
 
157827
    }
-
 
157828
 
-
 
157829
    public int getVendorsSize() {
-
 
157830
      return (this.vendors == null) ? 0 : this.vendors.size();
-
 
157831
    }
-
 
157832
 
-
 
157833
    public java.util.Iterator<Long> getVendorsIterator() {
-
 
157834
      return (this.vendors == null) ? null : this.vendors.iterator();
-
 
157835
    }
-
 
157836
 
-
 
157837
    public void addToVendors(long elem) {
-
 
157838
      if (this.vendors == null) {
-
 
157839
        this.vendors = new ArrayList<Long>();
-
 
157840
      }
-
 
157841
      this.vendors.add(elem);
-
 
157842
    }
-
 
157843
 
-
 
157844
    public List<Long> getVendors() {
-
 
157845
      return this.vendors;
-
 
157846
    }
-
 
157847
 
-
 
157848
    public void setVendors(List<Long> vendors) {
-
 
157849
      this.vendors = vendors;
-
 
157850
    }
-
 
157851
 
-
 
157852
    public void unsetVendors() {
-
 
157853
      this.vendors = null;
-
 
157854
    }
-
 
157855
 
-
 
157856
    /** Returns true if field vendors is set (has been assigned a value) and false otherwise */
-
 
157857
    public boolean isSetVendors() {
-
 
157858
      return this.vendors != null;
-
 
157859
    }
-
 
157860
 
-
 
157861
    public void setVendorsIsSet(boolean value) {
-
 
157862
      if (!value) {
-
 
157863
        this.vendors = null;
-
 
157864
      }
-
 
157865
    }
-
 
157866
 
-
 
157867
    public int getStatusesSize() {
-
 
157868
      return (this.statuses == null) ? 0 : this.statuses.size();
-
 
157869
    }
-
 
157870
 
-
 
157871
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
-
 
157872
      return (this.statuses == null) ? null : this.statuses.iterator();
-
 
157873
    }
-
 
157874
 
-
 
157875
    public void addToStatuses(OrderStatus elem) {
-
 
157876
      if (this.statuses == null) {
-
 
157877
        this.statuses = new ArrayList<OrderStatus>();
-
 
157878
      }
-
 
157879
      this.statuses.add(elem);
-
 
157880
    }
-
 
157881
 
-
 
157882
    public List<OrderStatus> getStatuses() {
-
 
157883
      return this.statuses;
-
 
157884
    }
-
 
157885
 
-
 
157886
    public void setStatuses(List<OrderStatus> statuses) {
-
 
157887
      this.statuses = statuses;
-
 
157888
    }
-
 
157889
 
-
 
157890
    public void unsetStatuses() {
-
 
157891
      this.statuses = null;
-
 
157892
    }
-
 
157893
 
-
 
157894
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
-
 
157895
    public boolean isSetStatuses() {
-
 
157896
      return this.statuses != null;
-
 
157897
    }
-
 
157898
 
-
 
157899
    public void setStatusesIsSet(boolean value) {
-
 
157900
      if (!value) {
-
 
157901
        this.statuses = null;
-
 
157902
      }
-
 
157903
    }
-
 
157904
 
-
 
157905
    public void setFieldValue(_Fields field, Object value) {
-
 
157906
      switch (field) {
-
 
157907
      case VENDORS:
-
 
157908
        if (value == null) {
-
 
157909
          unsetVendors();
-
 
157910
        } else {
-
 
157911
          setVendors((List<Long>)value);
-
 
157912
        }
-
 
157913
        break;
-
 
157914
 
-
 
157915
      case STATUSES:
-
 
157916
        if (value == null) {
-
 
157917
          unsetStatuses();
-
 
157918
        } else {
-
 
157919
          setStatuses((List<OrderStatus>)value);
-
 
157920
        }
-
 
157921
        break;
-
 
157922
 
-
 
157923
      }
-
 
157924
    }
-
 
157925
 
-
 
157926
    public Object getFieldValue(_Fields field) {
-
 
157927
      switch (field) {
-
 
157928
      case VENDORS:
-
 
157929
        return getVendors();
-
 
157930
 
-
 
157931
      case STATUSES:
-
 
157932
        return getStatuses();
-
 
157933
 
-
 
157934
      }
-
 
157935
      throw new IllegalStateException();
-
 
157936
    }
-
 
157937
 
-
 
157938
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
157939
    public boolean isSet(_Fields field) {
-
 
157940
      if (field == null) {
-
 
157941
        throw new IllegalArgumentException();
-
 
157942
      }
-
 
157943
 
-
 
157944
      switch (field) {
-
 
157945
      case VENDORS:
-
 
157946
        return isSetVendors();
-
 
157947
      case STATUSES:
-
 
157948
        return isSetStatuses();
-
 
157949
      }
-
 
157950
      throw new IllegalStateException();
-
 
157951
    }
-
 
157952
 
-
 
157953
    @Override
-
 
157954
    public boolean equals(Object that) {
-
 
157955
      if (that == null)
-
 
157956
        return false;
-
 
157957
      if (that instanceof getOrdersByVendor_args)
-
 
157958
        return this.equals((getOrdersByVendor_args)that);
-
 
157959
      return false;
-
 
157960
    }
-
 
157961
 
-
 
157962
    public boolean equals(getOrdersByVendor_args that) {
-
 
157963
      if (that == null)
-
 
157964
        return false;
-
 
157965
 
-
 
157966
      boolean this_present_vendors = true && this.isSetVendors();
-
 
157967
      boolean that_present_vendors = true && that.isSetVendors();
-
 
157968
      if (this_present_vendors || that_present_vendors) {
-
 
157969
        if (!(this_present_vendors && that_present_vendors))
-
 
157970
          return false;
-
 
157971
        if (!this.vendors.equals(that.vendors))
-
 
157972
          return false;
-
 
157973
      }
-
 
157974
 
-
 
157975
      boolean this_present_statuses = true && this.isSetStatuses();
-
 
157976
      boolean that_present_statuses = true && that.isSetStatuses();
-
 
157977
      if (this_present_statuses || that_present_statuses) {
-
 
157978
        if (!(this_present_statuses && that_present_statuses))
-
 
157979
          return false;
-
 
157980
        if (!this.statuses.equals(that.statuses))
-
 
157981
          return false;
-
 
157982
      }
-
 
157983
 
-
 
157984
      return true;
-
 
157985
    }
-
 
157986
 
-
 
157987
    @Override
-
 
157988
    public int hashCode() {
-
 
157989
      return 0;
-
 
157990
    }
-
 
157991
 
-
 
157992
    public int compareTo(getOrdersByVendor_args other) {
-
 
157993
      if (!getClass().equals(other.getClass())) {
-
 
157994
        return getClass().getName().compareTo(other.getClass().getName());
-
 
157995
      }
-
 
157996
 
-
 
157997
      int lastComparison = 0;
-
 
157998
      getOrdersByVendor_args typedOther = (getOrdersByVendor_args)other;
-
 
157999
 
-
 
158000
      lastComparison = Boolean.valueOf(isSetVendors()).compareTo(typedOther.isSetVendors());
-
 
158001
      if (lastComparison != 0) {
-
 
158002
        return lastComparison;
-
 
158003
      }
-
 
158004
      if (isSetVendors()) {
-
 
158005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendors, typedOther.vendors);
-
 
158006
        if (lastComparison != 0) {
-
 
158007
          return lastComparison;
-
 
158008
        }
-
 
158009
      }
-
 
158010
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
-
 
158011
      if (lastComparison != 0) {
-
 
158012
        return lastComparison;
-
 
158013
      }
-
 
158014
      if (isSetStatuses()) {
-
 
158015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
-
 
158016
        if (lastComparison != 0) {
-
 
158017
          return lastComparison;
-
 
158018
        }
-
 
158019
      }
-
 
158020
      return 0;
-
 
158021
    }
-
 
158022
 
-
 
158023
    public _Fields fieldForId(int fieldId) {
-
 
158024
      return _Fields.findByThriftId(fieldId);
-
 
158025
    }
-
 
158026
 
-
 
158027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
158028
      org.apache.thrift.protocol.TField field;
-
 
158029
      iprot.readStructBegin();
-
 
158030
      while (true)
-
 
158031
      {
-
 
158032
        field = iprot.readFieldBegin();
-
 
158033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
158034
          break;
-
 
158035
        }
-
 
158036
        switch (field.id) {
-
 
158037
          case 1: // VENDORS
-
 
158038
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
158039
              {
-
 
158040
                org.apache.thrift.protocol.TList _list496 = iprot.readListBegin();
-
 
158041
                this.vendors = new ArrayList<Long>(_list496.size);
-
 
158042
                for (int _i497 = 0; _i497 < _list496.size; ++_i497)
-
 
158043
                {
-
 
158044
                  long _elem498; // required
-
 
158045
                  _elem498 = iprot.readI64();
-
 
158046
                  this.vendors.add(_elem498);
-
 
158047
                }
-
 
158048
                iprot.readListEnd();
-
 
158049
              }
-
 
158050
            } else { 
-
 
158051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158052
            }
-
 
158053
            break;
-
 
158054
          case 2: // STATUSES
-
 
158055
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
158056
              {
-
 
158057
                org.apache.thrift.protocol.TList _list499 = iprot.readListBegin();
-
 
158058
                this.statuses = new ArrayList<OrderStatus>(_list499.size);
-
 
158059
                for (int _i500 = 0; _i500 < _list499.size; ++_i500)
-
 
158060
                {
-
 
158061
                  OrderStatus _elem501; // required
-
 
158062
                  _elem501 = OrderStatus.findByValue(iprot.readI32());
-
 
158063
                  this.statuses.add(_elem501);
-
 
158064
                }
-
 
158065
                iprot.readListEnd();
-
 
158066
              }
-
 
158067
            } else { 
-
 
158068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158069
            }
-
 
158070
            break;
-
 
158071
          default:
-
 
158072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158073
        }
-
 
158074
        iprot.readFieldEnd();
-
 
158075
      }
-
 
158076
      iprot.readStructEnd();
-
 
158077
      validate();
-
 
158078
    }
-
 
158079
 
-
 
158080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
158081
      validate();
-
 
158082
 
-
 
158083
      oprot.writeStructBegin(STRUCT_DESC);
-
 
158084
      if (this.vendors != null) {
-
 
158085
        oprot.writeFieldBegin(VENDORS_FIELD_DESC);
-
 
158086
        {
-
 
158087
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendors.size()));
-
 
158088
          for (long _iter502 : this.vendors)
-
 
158089
          {
-
 
158090
            oprot.writeI64(_iter502);
-
 
158091
          }
-
 
158092
          oprot.writeListEnd();
-
 
158093
        }
-
 
158094
        oprot.writeFieldEnd();
-
 
158095
      }
-
 
158096
      if (this.statuses != null) {
-
 
158097
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
-
 
158098
        {
-
 
158099
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
-
 
158100
          for (OrderStatus _iter503 : this.statuses)
-
 
158101
          {
-
 
158102
            oprot.writeI32(_iter503.getValue());
-
 
158103
          }
-
 
158104
          oprot.writeListEnd();
-
 
158105
        }
-
 
158106
        oprot.writeFieldEnd();
-
 
158107
      }
-
 
158108
      oprot.writeFieldStop();
-
 
158109
      oprot.writeStructEnd();
-
 
158110
    }
-
 
158111
 
-
 
158112
    @Override
-
 
158113
    public String toString() {
-
 
158114
      StringBuilder sb = new StringBuilder("getOrdersByVendor_args(");
-
 
158115
      boolean first = true;
-
 
158116
 
-
 
158117
      sb.append("vendors:");
-
 
158118
      if (this.vendors == null) {
-
 
158119
        sb.append("null");
-
 
158120
      } else {
-
 
158121
        sb.append(this.vendors);
-
 
158122
      }
-
 
158123
      first = false;
-
 
158124
      if (!first) sb.append(", ");
-
 
158125
      sb.append("statuses:");
-
 
158126
      if (this.statuses == null) {
-
 
158127
        sb.append("null");
-
 
158128
      } else {
-
 
158129
        sb.append(this.statuses);
-
 
158130
      }
-
 
158131
      first = false;
-
 
158132
      sb.append(")");
-
 
158133
      return sb.toString();
-
 
158134
    }
-
 
158135
 
-
 
158136
    public void validate() throws org.apache.thrift.TException {
-
 
158137
      // check for required fields
-
 
158138
    }
-
 
158139
 
-
 
158140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
158141
      try {
-
 
158142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
158143
      } catch (org.apache.thrift.TException te) {
-
 
158144
        throw new java.io.IOException(te);
-
 
158145
      }
-
 
158146
    }
-
 
158147
 
-
 
158148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
158149
      try {
-
 
158150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
158151
      } catch (org.apache.thrift.TException te) {
-
 
158152
        throw new java.io.IOException(te);
-
 
158153
      }
-
 
158154
    }
-
 
158155
 
-
 
158156
  }
-
 
158157
 
-
 
158158
  public static class getOrdersByVendor_result implements org.apache.thrift.TBase<getOrdersByVendor_result, getOrdersByVendor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
158159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByVendor_result");
-
 
158160
 
-
 
158161
    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);
-
 
158162
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
158163
 
-
 
158164
    private List<Order> success; // required
-
 
158165
    private TransactionServiceException ex; // required
-
 
158166
 
-
 
158167
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
158168
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
158169
      SUCCESS((short)0, "success"),
-
 
158170
      EX((short)1, "ex");
-
 
158171
 
-
 
158172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
158173
 
-
 
158174
      static {
-
 
158175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
158176
          byName.put(field.getFieldName(), field);
-
 
158177
        }
-
 
158178
      }
-
 
158179
 
-
 
158180
      /**
-
 
158181
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
158182
       */
-
 
158183
      public static _Fields findByThriftId(int fieldId) {
-
 
158184
        switch(fieldId) {
-
 
158185
          case 0: // SUCCESS
-
 
158186
            return SUCCESS;
-
 
158187
          case 1: // EX
-
 
158188
            return EX;
-
 
158189
          default:
-
 
158190
            return null;
-
 
158191
        }
-
 
158192
      }
-
 
158193
 
-
 
158194
      /**
-
 
158195
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
158196
       * if it is not found.
-
 
158197
       */
-
 
158198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
158199
        _Fields fields = findByThriftId(fieldId);
-
 
158200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
158201
        return fields;
-
 
158202
      }
-
 
158203
 
-
 
158204
      /**
-
 
158205
       * Find the _Fields constant that matches name, or null if its not found.
-
 
158206
       */
-
 
158207
      public static _Fields findByName(String name) {
-
 
158208
        return byName.get(name);
-
 
158209
      }
-
 
158210
 
-
 
158211
      private final short _thriftId;
-
 
158212
      private final String _fieldName;
-
 
158213
 
-
 
158214
      _Fields(short thriftId, String fieldName) {
-
 
158215
        _thriftId = thriftId;
-
 
158216
        _fieldName = fieldName;
-
 
158217
      }
-
 
158218
 
-
 
158219
      public short getThriftFieldId() {
-
 
158220
        return _thriftId;
-
 
158221
      }
-
 
158222
 
-
 
158223
      public String getFieldName() {
-
 
158224
        return _fieldName;
-
 
158225
      }
-
 
158226
    }
-
 
158227
 
-
 
158228
    // isset id assignments
-
 
158229
 
-
 
158230
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
158231
    static {
-
 
158232
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
158233
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158234
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
158235
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
158236
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
158238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
158239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByVendor_result.class, metaDataMap);
-
 
158240
    }
-
 
158241
 
-
 
158242
    public getOrdersByVendor_result() {
-
 
158243
    }
-
 
158244
 
-
 
158245
    public getOrdersByVendor_result(
-
 
158246
      List<Order> success,
-
 
158247
      TransactionServiceException ex)
-
 
158248
    {
-
 
158249
      this();
-
 
158250
      this.success = success;
-
 
158251
      this.ex = ex;
-
 
158252
    }
-
 
158253
 
-
 
158254
    /**
-
 
158255
     * Performs a deep copy on <i>other</i>.
-
 
158256
     */
-
 
158257
    public getOrdersByVendor_result(getOrdersByVendor_result other) {
-
 
158258
      if (other.isSetSuccess()) {
-
 
158259
        List<Order> __this__success = new ArrayList<Order>();
-
 
158260
        for (Order other_element : other.success) {
-
 
158261
          __this__success.add(new Order(other_element));
-
 
158262
        }
-
 
158263
        this.success = __this__success;
-
 
158264
      }
-
 
158265
      if (other.isSetEx()) {
-
 
158266
        this.ex = new TransactionServiceException(other.ex);
-
 
158267
      }
-
 
158268
    }
-
 
158269
 
-
 
158270
    public getOrdersByVendor_result deepCopy() {
-
 
158271
      return new getOrdersByVendor_result(this);
-
 
158272
    }
-
 
158273
 
-
 
158274
    @Override
-
 
158275
    public void clear() {
-
 
158276
      this.success = null;
-
 
158277
      this.ex = null;
-
 
158278
    }
-
 
158279
 
-
 
158280
    public int getSuccessSize() {
-
 
158281
      return (this.success == null) ? 0 : this.success.size();
-
 
158282
    }
-
 
158283
 
-
 
158284
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
158285
      return (this.success == null) ? null : this.success.iterator();
-
 
158286
    }
-
 
158287
 
-
 
158288
    public void addToSuccess(Order elem) {
-
 
158289
      if (this.success == null) {
-
 
158290
        this.success = new ArrayList<Order>();
-
 
158291
      }
-
 
158292
      this.success.add(elem);
-
 
158293
    }
-
 
158294
 
-
 
158295
    public List<Order> getSuccess() {
-
 
158296
      return this.success;
-
 
158297
    }
-
 
158298
 
-
 
158299
    public void setSuccess(List<Order> success) {
-
 
158300
      this.success = success;
-
 
158301
    }
-
 
158302
 
-
 
158303
    public void unsetSuccess() {
-
 
158304
      this.success = null;
-
 
158305
    }
-
 
158306
 
-
 
158307
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
158308
    public boolean isSetSuccess() {
-
 
158309
      return this.success != null;
-
 
158310
    }
-
 
158311
 
-
 
158312
    public void setSuccessIsSet(boolean value) {
-
 
158313
      if (!value) {
-
 
158314
        this.success = null;
-
 
158315
      }
-
 
158316
    }
-
 
158317
 
-
 
158318
    public TransactionServiceException getEx() {
-
 
158319
      return this.ex;
-
 
158320
    }
-
 
158321
 
-
 
158322
    public void setEx(TransactionServiceException ex) {
-
 
158323
      this.ex = ex;
-
 
158324
    }
-
 
158325
 
-
 
158326
    public void unsetEx() {
-
 
158327
      this.ex = null;
-
 
158328
    }
-
 
158329
 
-
 
158330
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
158331
    public boolean isSetEx() {
-
 
158332
      return this.ex != null;
-
 
158333
    }
-
 
158334
 
-
 
158335
    public void setExIsSet(boolean value) {
-
 
158336
      if (!value) {
-
 
158337
        this.ex = null;
-
 
158338
      }
-
 
158339
    }
-
 
158340
 
-
 
158341
    public void setFieldValue(_Fields field, Object value) {
-
 
158342
      switch (field) {
-
 
158343
      case SUCCESS:
-
 
158344
        if (value == null) {
-
 
158345
          unsetSuccess();
-
 
158346
        } else {
-
 
158347
          setSuccess((List<Order>)value);
-
 
158348
        }
-
 
158349
        break;
-
 
158350
 
-
 
158351
      case EX:
-
 
158352
        if (value == null) {
-
 
158353
          unsetEx();
-
 
158354
        } else {
-
 
158355
          setEx((TransactionServiceException)value);
-
 
158356
        }
-
 
158357
        break;
-
 
158358
 
-
 
158359
      }
-
 
158360
    }
-
 
158361
 
-
 
158362
    public Object getFieldValue(_Fields field) {
-
 
158363
      switch (field) {
-
 
158364
      case SUCCESS:
-
 
158365
        return getSuccess();
-
 
158366
 
-
 
158367
      case EX:
-
 
158368
        return getEx();
-
 
158369
 
-
 
158370
      }
-
 
158371
      throw new IllegalStateException();
-
 
158372
    }
-
 
158373
 
-
 
158374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
158375
    public boolean isSet(_Fields field) {
-
 
158376
      if (field == null) {
-
 
158377
        throw new IllegalArgumentException();
-
 
158378
      }
-
 
158379
 
-
 
158380
      switch (field) {
-
 
158381
      case SUCCESS:
-
 
158382
        return isSetSuccess();
-
 
158383
      case EX:
-
 
158384
        return isSetEx();
-
 
158385
      }
-
 
158386
      throw new IllegalStateException();
-
 
158387
    }
-
 
158388
 
-
 
158389
    @Override
-
 
158390
    public boolean equals(Object that) {
-
 
158391
      if (that == null)
-
 
158392
        return false;
-
 
158393
      if (that instanceof getOrdersByVendor_result)
-
 
158394
        return this.equals((getOrdersByVendor_result)that);
-
 
158395
      return false;
-
 
158396
    }
-
 
158397
 
-
 
158398
    public boolean equals(getOrdersByVendor_result that) {
-
 
158399
      if (that == null)
-
 
158400
        return false;
-
 
158401
 
-
 
158402
      boolean this_present_success = true && this.isSetSuccess();
-
 
158403
      boolean that_present_success = true && that.isSetSuccess();
-
 
158404
      if (this_present_success || that_present_success) {
-
 
158405
        if (!(this_present_success && that_present_success))
-
 
158406
          return false;
-
 
158407
        if (!this.success.equals(that.success))
-
 
158408
          return false;
-
 
158409
      }
-
 
158410
 
-
 
158411
      boolean this_present_ex = true && this.isSetEx();
-
 
158412
      boolean that_present_ex = true && that.isSetEx();
-
 
158413
      if (this_present_ex || that_present_ex) {
-
 
158414
        if (!(this_present_ex && that_present_ex))
-
 
158415
          return false;
-
 
158416
        if (!this.ex.equals(that.ex))
-
 
158417
          return false;
-
 
158418
      }
-
 
158419
 
-
 
158420
      return true;
-
 
158421
    }
-
 
158422
 
-
 
158423
    @Override
-
 
158424
    public int hashCode() {
-
 
158425
      return 0;
-
 
158426
    }
-
 
158427
 
-
 
158428
    public int compareTo(getOrdersByVendor_result other) {
-
 
158429
      if (!getClass().equals(other.getClass())) {
-
 
158430
        return getClass().getName().compareTo(other.getClass().getName());
-
 
158431
      }
-
 
158432
 
-
 
158433
      int lastComparison = 0;
-
 
158434
      getOrdersByVendor_result typedOther = (getOrdersByVendor_result)other;
-
 
158435
 
-
 
158436
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
158437
      if (lastComparison != 0) {
-
 
158438
        return lastComparison;
-
 
158439
      }
-
 
158440
      if (isSetSuccess()) {
-
 
158441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
158442
        if (lastComparison != 0) {
-
 
158443
          return lastComparison;
-
 
158444
        }
-
 
158445
      }
-
 
158446
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
158447
      if (lastComparison != 0) {
-
 
158448
        return lastComparison;
-
 
158449
      }
-
 
158450
      if (isSetEx()) {
-
 
158451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
158452
        if (lastComparison != 0) {
-
 
158453
          return lastComparison;
-
 
158454
        }
-
 
158455
      }
-
 
158456
      return 0;
-
 
158457
    }
-
 
158458
 
-
 
158459
    public _Fields fieldForId(int fieldId) {
-
 
158460
      return _Fields.findByThriftId(fieldId);
-
 
158461
    }
-
 
158462
 
-
 
158463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
158464
      org.apache.thrift.protocol.TField field;
-
 
158465
      iprot.readStructBegin();
-
 
158466
      while (true)
-
 
158467
      {
-
 
158468
        field = iprot.readFieldBegin();
-
 
158469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
158470
          break;
-
 
158471
        }
-
 
158472
        switch (field.id) {
-
 
158473
          case 0: // SUCCESS
-
 
158474
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
158475
              {
-
 
158476
                org.apache.thrift.protocol.TList _list504 = iprot.readListBegin();
-
 
158477
                this.success = new ArrayList<Order>(_list504.size);
-
 
158478
                for (int _i505 = 0; _i505 < _list504.size; ++_i505)
-
 
158479
                {
-
 
158480
                  Order _elem506; // required
-
 
158481
                  _elem506 = new Order();
-
 
158482
                  _elem506.read(iprot);
-
 
158483
                  this.success.add(_elem506);
-
 
158484
                }
-
 
158485
                iprot.readListEnd();
-
 
158486
              }
-
 
158487
            } else { 
-
 
158488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158489
            }
-
 
158490
            break;
-
 
158491
          case 1: // EX
-
 
158492
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
158493
              this.ex = new TransactionServiceException();
-
 
158494
              this.ex.read(iprot);
-
 
158495
            } else { 
-
 
158496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158497
            }
-
 
158498
            break;
-
 
158499
          default:
-
 
158500
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158501
        }
-
 
158502
        iprot.readFieldEnd();
-
 
158503
      }
-
 
158504
      iprot.readStructEnd();
-
 
158505
      validate();
-
 
158506
    }
-
 
158507
 
-
 
158508
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
158509
      oprot.writeStructBegin(STRUCT_DESC);
-
 
158510
 
-
 
158511
      if (this.isSetSuccess()) {
-
 
158512
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
158513
        {
-
 
158514
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
158515
          for (Order _iter507 : this.success)
-
 
158516
          {
-
 
158517
            _iter507.write(oprot);
-
 
158518
          }
-
 
158519
          oprot.writeListEnd();
-
 
158520
        }
-
 
158521
        oprot.writeFieldEnd();
-
 
158522
      } else if (this.isSetEx()) {
-
 
158523
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
158524
        this.ex.write(oprot);
-
 
158525
        oprot.writeFieldEnd();
-
 
158526
      }
-
 
158527
      oprot.writeFieldStop();
-
 
158528
      oprot.writeStructEnd();
-
 
158529
    }
-
 
158530
 
-
 
158531
    @Override
-
 
158532
    public String toString() {
-
 
158533
      StringBuilder sb = new StringBuilder("getOrdersByVendor_result(");
-
 
158534
      boolean first = true;
-
 
158535
 
-
 
158536
      sb.append("success:");
-
 
158537
      if (this.success == null) {
-
 
158538
        sb.append("null");
-
 
158539
      } else {
-
 
158540
        sb.append(this.success);
-
 
158541
      }
-
 
158542
      first = false;
-
 
158543
      if (!first) sb.append(", ");
-
 
158544
      sb.append("ex:");
-
 
158545
      if (this.ex == null) {
-
 
158546
        sb.append("null");
-
 
158547
      } else {
-
 
158548
        sb.append(this.ex);
-
 
158549
      }
-
 
158550
      first = false;
-
 
158551
      sb.append(")");
-
 
158552
      return sb.toString();
-
 
158553
    }
-
 
158554
 
-
 
158555
    public void validate() throws org.apache.thrift.TException {
-
 
158556
      // check for required fields
-
 
158557
    }
-
 
158558
 
-
 
158559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
158560
      try {
-
 
158561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
158562
      } catch (org.apache.thrift.TException te) {
-
 
158563
        throw new java.io.IOException(te);
-
 
158564
      }
-
 
158565
    }
-
 
158566
 
-
 
158567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
158568
      try {
-
 
158569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
158570
      } catch (org.apache.thrift.TException te) {
-
 
158571
        throw new java.io.IOException(te);
-
 
158572
      }
-
 
158573
    }
-
 
158574
 
-
 
158575
  }
-
 
158576
 
-
 
158577
  public static class createEbayOrder_args implements org.apache.thrift.TBase<createEbayOrder_args, createEbayOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
158578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createEbayOrder_args");
-
 
158579
 
-
 
158580
    private static final org.apache.thrift.protocol.TField EBAY_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
158581
 
-
 
158582
    private EbayOrder ebayOrder; // required
-
 
158583
 
-
 
158584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
158585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
158586
      EBAY_ORDER((short)1, "ebayOrder");
-
 
158587
 
-
 
158588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
158589
 
-
 
158590
      static {
-
 
158591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
158592
          byName.put(field.getFieldName(), field);
-
 
158593
        }
-
 
158594
      }
-
 
158595
 
-
 
158596
      /**
-
 
158597
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
158598
       */
-
 
158599
      public static _Fields findByThriftId(int fieldId) {
-
 
158600
        switch(fieldId) {
-
 
158601
          case 1: // EBAY_ORDER
-
 
158602
            return EBAY_ORDER;
-
 
158603
          default:
-
 
158604
            return null;
-
 
158605
        }
-
 
158606
      }
-
 
158607
 
-
 
158608
      /**
-
 
158609
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
158610
       * if it is not found.
-
 
158611
       */
-
 
158612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
158613
        _Fields fields = findByThriftId(fieldId);
-
 
158614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
158615
        return fields;
-
 
158616
      }
-
 
158617
 
-
 
158618
      /**
-
 
158619
       * Find the _Fields constant that matches name, or null if its not found.
-
 
158620
       */
-
 
158621
      public static _Fields findByName(String name) {
-
 
158622
        return byName.get(name);
-
 
158623
      }
-
 
158624
 
-
 
158625
      private final short _thriftId;
-
 
158626
      private final String _fieldName;
-
 
158627
 
-
 
158628
      _Fields(short thriftId, String fieldName) {
-
 
158629
        _thriftId = thriftId;
-
 
158630
        _fieldName = fieldName;
-
 
158631
      }
-
 
158632
 
-
 
158633
      public short getThriftFieldId() {
-
 
158634
        return _thriftId;
-
 
158635
      }
-
 
158636
 
-
 
158637
      public String getFieldName() {
-
 
158638
        return _fieldName;
-
 
158639
      }
-
 
158640
    }
-
 
158641
 
-
 
158642
    // isset id assignments
-
 
158643
 
-
 
158644
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
158645
    static {
-
 
158646
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
158647
      tmpMap.put(_Fields.EBAY_ORDER, new org.apache.thrift.meta_data.FieldMetaData("ebayOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158648
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayOrder.class)));
-
 
158649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
158650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createEbayOrder_args.class, metaDataMap);
-
 
158651
    }
-
 
158652
 
-
 
158653
    public createEbayOrder_args() {
-
 
158654
    }
-
 
158655
 
-
 
158656
    public createEbayOrder_args(
-
 
158657
      EbayOrder ebayOrder)
-
 
158658
    {
-
 
158659
      this();
-
 
158660
      this.ebayOrder = ebayOrder;
-
 
158661
    }
-
 
158662
 
-
 
158663
    /**
-
 
158664
     * Performs a deep copy on <i>other</i>.
-
 
158665
     */
-
 
158666
    public createEbayOrder_args(createEbayOrder_args other) {
-
 
158667
      if (other.isSetEbayOrder()) {
-
 
158668
        this.ebayOrder = new EbayOrder(other.ebayOrder);
-
 
158669
      }
-
 
158670
    }
-
 
158671
 
-
 
158672
    public createEbayOrder_args deepCopy() {
-
 
158673
      return new createEbayOrder_args(this);
-
 
158674
    }
-
 
158675
 
-
 
158676
    @Override
-
 
158677
    public void clear() {
-
 
158678
      this.ebayOrder = null;
-
 
158679
    }
-
 
158680
 
-
 
158681
    public EbayOrder getEbayOrder() {
-
 
158682
      return this.ebayOrder;
-
 
158683
    }
-
 
158684
 
-
 
158685
    public void setEbayOrder(EbayOrder ebayOrder) {
-
 
158686
      this.ebayOrder = ebayOrder;
-
 
158687
    }
-
 
158688
 
-
 
158689
    public void unsetEbayOrder() {
-
 
158690
      this.ebayOrder = null;
-
 
158691
    }
-
 
158692
 
-
 
158693
    /** Returns true if field ebayOrder is set (has been assigned a value) and false otherwise */
-
 
158694
    public boolean isSetEbayOrder() {
-
 
158695
      return this.ebayOrder != null;
-
 
158696
    }
-
 
158697
 
-
 
158698
    public void setEbayOrderIsSet(boolean value) {
-
 
158699
      if (!value) {
-
 
158700
        this.ebayOrder = null;
-
 
158701
      }
-
 
158702
    }
-
 
158703
 
-
 
158704
    public void setFieldValue(_Fields field, Object value) {
-
 
158705
      switch (field) {
-
 
158706
      case EBAY_ORDER:
-
 
158707
        if (value == null) {
-
 
158708
          unsetEbayOrder();
-
 
158709
        } else {
-
 
158710
          setEbayOrder((EbayOrder)value);
-
 
158711
        }
-
 
158712
        break;
-
 
158713
 
-
 
158714
      }
-
 
158715
    }
-
 
158716
 
-
 
158717
    public Object getFieldValue(_Fields field) {
-
 
158718
      switch (field) {
-
 
158719
      case EBAY_ORDER:
-
 
158720
        return getEbayOrder();
-
 
158721
 
-
 
158722
      }
-
 
158723
      throw new IllegalStateException();
-
 
158724
    }
-
 
158725
 
-
 
158726
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
158727
    public boolean isSet(_Fields field) {
-
 
158728
      if (field == null) {
-
 
158729
        throw new IllegalArgumentException();
-
 
158730
      }
-
 
158731
 
-
 
158732
      switch (field) {
-
 
158733
      case EBAY_ORDER:
-
 
158734
        return isSetEbayOrder();
-
 
158735
      }
-
 
158736
      throw new IllegalStateException();
-
 
158737
    }
-
 
158738
 
-
 
158739
    @Override
-
 
158740
    public boolean equals(Object that) {
-
 
158741
      if (that == null)
-
 
158742
        return false;
-
 
158743
      if (that instanceof createEbayOrder_args)
-
 
158744
        return this.equals((createEbayOrder_args)that);
-
 
158745
      return false;
-
 
158746
    }
-
 
158747
 
-
 
158748
    public boolean equals(createEbayOrder_args that) {
-
 
158749
      if (that == null)
-
 
158750
        return false;
-
 
158751
 
-
 
158752
      boolean this_present_ebayOrder = true && this.isSetEbayOrder();
-
 
158753
      boolean that_present_ebayOrder = true && that.isSetEbayOrder();
-
 
158754
      if (this_present_ebayOrder || that_present_ebayOrder) {
-
 
158755
        if (!(this_present_ebayOrder && that_present_ebayOrder))
-
 
158756
          return false;
-
 
158757
        if (!this.ebayOrder.equals(that.ebayOrder))
-
 
158758
          return false;
-
 
158759
      }
-
 
158760
 
-
 
158761
      return true;
-
 
158762
    }
-
 
158763
 
-
 
158764
    @Override
-
 
158765
    public int hashCode() {
-
 
158766
      return 0;
-
 
158767
    }
-
 
158768
 
-
 
158769
    public int compareTo(createEbayOrder_args other) {
-
 
158770
      if (!getClass().equals(other.getClass())) {
-
 
158771
        return getClass().getName().compareTo(other.getClass().getName());
-
 
158772
      }
-
 
158773
 
-
 
158774
      int lastComparison = 0;
-
 
158775
      createEbayOrder_args typedOther = (createEbayOrder_args)other;
-
 
158776
 
-
 
158777
      lastComparison = Boolean.valueOf(isSetEbayOrder()).compareTo(typedOther.isSetEbayOrder());
-
 
158778
      if (lastComparison != 0) {
-
 
158779
        return lastComparison;
-
 
158780
      }
-
 
158781
      if (isSetEbayOrder()) {
-
 
158782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayOrder, typedOther.ebayOrder);
-
 
158783
        if (lastComparison != 0) {
-
 
158784
          return lastComparison;
-
 
158785
        }
-
 
158786
      }
-
 
158787
      return 0;
-
 
158788
    }
-
 
158789
 
-
 
158790
    public _Fields fieldForId(int fieldId) {
-
 
158791
      return _Fields.findByThriftId(fieldId);
-
 
158792
    }
-
 
158793
 
-
 
158794
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
158795
      org.apache.thrift.protocol.TField field;
-
 
158796
      iprot.readStructBegin();
-
 
158797
      while (true)
-
 
158798
      {
-
 
158799
        field = iprot.readFieldBegin();
-
 
158800
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
158801
          break;
-
 
158802
        }
-
 
158803
        switch (field.id) {
-
 
158804
          case 1: // EBAY_ORDER
-
 
158805
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
158806
              this.ebayOrder = new EbayOrder();
-
 
158807
              this.ebayOrder.read(iprot);
-
 
158808
            } else { 
-
 
158809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158810
            }
-
 
158811
            break;
-
 
158812
          default:
-
 
158813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
158814
        }
-
 
158815
        iprot.readFieldEnd();
-
 
158816
      }
-
 
158817
      iprot.readStructEnd();
-
 
158818
      validate();
-
 
158819
    }
-
 
158820
 
-
 
158821
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
158822
      validate();
-
 
158823
 
-
 
158824
      oprot.writeStructBegin(STRUCT_DESC);
-
 
158825
      if (this.ebayOrder != null) {
-
 
158826
        oprot.writeFieldBegin(EBAY_ORDER_FIELD_DESC);
-
 
158827
        this.ebayOrder.write(oprot);
-
 
158828
        oprot.writeFieldEnd();
-
 
158829
      }
-
 
158830
      oprot.writeFieldStop();
-
 
158831
      oprot.writeStructEnd();
-
 
158832
    }
-
 
158833
 
-
 
158834
    @Override
-
 
158835
    public String toString() {
-
 
158836
      StringBuilder sb = new StringBuilder("createEbayOrder_args(");
-
 
158837
      boolean first = true;
-
 
158838
 
-
 
158839
      sb.append("ebayOrder:");
-
 
158840
      if (this.ebayOrder == null) {
-
 
158841
        sb.append("null");
-
 
158842
      } else {
-
 
158843
        sb.append(this.ebayOrder);
-
 
158844
      }
-
 
158845
      first = false;
-
 
158846
      sb.append(")");
-
 
158847
      return sb.toString();
-
 
158848
    }
-
 
158849
 
-
 
158850
    public void validate() throws org.apache.thrift.TException {
-
 
158851
      // check for required fields
-
 
158852
    }
-
 
158853
 
-
 
158854
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
158855
      try {
-
 
158856
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
158857
      } catch (org.apache.thrift.TException te) {
-
 
158858
        throw new java.io.IOException(te);
-
 
158859
      }
-
 
158860
    }
-
 
158861
 
-
 
158862
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
158863
      try {
-
 
158864
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
158865
      } catch (org.apache.thrift.TException te) {
-
 
158866
        throw new java.io.IOException(te);
-
 
158867
      }
-
 
158868
    }
-
 
158869
 
-
 
158870
  }
-
 
158871
 
-
 
158872
  public static class createEbayOrder_result implements org.apache.thrift.TBase<createEbayOrder_result, createEbayOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
158873
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createEbayOrder_result");
-
 
158874
 
-
 
158875
 
-
 
158876
 
-
 
158877
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
158878
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
158879
;
-
 
158880
 
-
 
158881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
158882
 
-
 
158883
      static {
-
 
158884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
158885
          byName.put(field.getFieldName(), field);
-
 
158886
        }
-
 
158887
      }
-
 
158888
 
-
 
158889
      /**
-
 
158890
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
158891
       */
-
 
158892
      public static _Fields findByThriftId(int fieldId) {
-
 
158893
        switch(fieldId) {
-
 
158894
          default:
-
 
158895
            return null;
-
 
158896
        }
-
 
158897
      }
-
 
158898
 
-
 
158899
      /**
-
 
158900
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
158901
       * if it is not found.
-
 
158902
       */
-
 
158903
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
158904
        _Fields fields = findByThriftId(fieldId);
-
 
158905
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
158906
        return fields;
-
 
158907
      }
-
 
158908
 
-
 
158909
      /**
-
 
158910
       * Find the _Fields constant that matches name, or null if its not found.
-
 
158911
       */
-
 
158912
      public static _Fields findByName(String name) {
-
 
158913
        return byName.get(name);
-
 
158914
      }
-
 
158915
 
-
 
158916
      private final short _thriftId;
-
 
158917
      private final String _fieldName;
-
 
158918
 
-
 
158919
      _Fields(short thriftId, String fieldName) {
-
 
158920
        _thriftId = thriftId;
-
 
158921
        _fieldName = fieldName;
-
 
158922
      }
-
 
158923
 
-
 
158924
      public short getThriftFieldId() {
-
 
158925
        return _thriftId;
-
 
158926
      }
-
 
158927
 
-
 
158928
      public String getFieldName() {
-
 
158929
        return _fieldName;
-
 
158930
      }
-
 
158931
    }
-
 
158932
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
158933
    static {
-
 
158934
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
158935
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
158936
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createEbayOrder_result.class, metaDataMap);
-
 
158937
    }
-
 
158938
 
-
 
158939
    public createEbayOrder_result() {
-
 
158940
    }
-
 
158941
 
-
 
158942
    /**
-
 
158943
     * Performs a deep copy on <i>other</i>.
-
 
158944
     */
-
 
158945
    public createEbayOrder_result(createEbayOrder_result other) {
-
 
158946
    }
-
 
158947
 
-
 
158948
    public createEbayOrder_result deepCopy() {
-
 
158949
      return new createEbayOrder_result(this);
-
 
158950
    }
-
 
158951
 
-
 
158952
    @Override
-
 
158953
    public void clear() {
-
 
158954
    }
-
 
158955
 
-
 
158956
    public void setFieldValue(_Fields field, Object value) {
-
 
158957
      switch (field) {
-
 
158958
      }
-
 
158959
    }
-
 
158960
 
-
 
158961
    public Object getFieldValue(_Fields field) {
-
 
158962
      switch (field) {
-
 
158963
      }
-
 
158964
      throw new IllegalStateException();
-
 
158965
    }
-
 
158966
 
-
 
158967
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
158968
    public boolean isSet(_Fields field) {
-
 
158969
      if (field == null) {
-
 
158970
        throw new IllegalArgumentException();
-
 
158971
      }
-
 
158972
 
-
 
158973
      switch (field) {
-
 
158974
      }
-
 
158975
      throw new IllegalStateException();
-
 
158976
    }
-
 
158977
 
-
 
158978
    @Override
-
 
158979
    public boolean equals(Object that) {
-
 
158980
      if (that == null)
-
 
158981
        return false;
-
 
158982
      if (that instanceof createEbayOrder_result)
-
 
158983
        return this.equals((createEbayOrder_result)that);
-
 
158984
      return false;
-
 
158985
    }
-
 
158986
 
-
 
158987
    public boolean equals(createEbayOrder_result that) {
-
 
158988
      if (that == null)
-
 
158989
        return false;
-
 
158990
 
-
 
158991
      return true;
-
 
158992
    }
-
 
158993
 
-
 
158994
    @Override
-
 
158995
    public int hashCode() {
-
 
158996
      return 0;
-
 
158997
    }
-
 
158998
 
-
 
158999
    public int compareTo(createEbayOrder_result other) {
-
 
159000
      if (!getClass().equals(other.getClass())) {
-
 
159001
        return getClass().getName().compareTo(other.getClass().getName());
-
 
159002
      }
-
 
159003
 
-
 
159004
      int lastComparison = 0;
-
 
159005
      createEbayOrder_result typedOther = (createEbayOrder_result)other;
-
 
159006
 
-
 
159007
      return 0;
-
 
159008
    }
-
 
159009
 
-
 
159010
    public _Fields fieldForId(int fieldId) {
-
 
159011
      return _Fields.findByThriftId(fieldId);
-
 
159012
    }
-
 
159013
 
-
 
159014
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
159015
      org.apache.thrift.protocol.TField field;
-
 
159016
      iprot.readStructBegin();
-
 
159017
      while (true)
-
 
159018
      {
-
 
159019
        field = iprot.readFieldBegin();
-
 
159020
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
159021
          break;
-
 
159022
        }
-
 
159023
        switch (field.id) {
-
 
159024
          default:
-
 
159025
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159026
        }
-
 
159027
        iprot.readFieldEnd();
-
 
159028
      }
-
 
159029
      iprot.readStructEnd();
-
 
159030
      validate();
-
 
159031
    }
-
 
159032
 
-
 
159033
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
159034
      oprot.writeStructBegin(STRUCT_DESC);
-
 
159035
 
-
 
159036
      oprot.writeFieldStop();
-
 
159037
      oprot.writeStructEnd();
-
 
159038
    }
-
 
159039
 
-
 
159040
    @Override
-
 
159041
    public String toString() {
-
 
159042
      StringBuilder sb = new StringBuilder("createEbayOrder_result(");
-
 
159043
      boolean first = true;
-
 
159044
 
-
 
159045
      sb.append(")");
-
 
159046
      return sb.toString();
-
 
159047
    }
-
 
159048
 
-
 
159049
    public void validate() throws org.apache.thrift.TException {
-
 
159050
      // check for required fields
-
 
159051
    }
-
 
159052
 
-
 
159053
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
159054
      try {
-
 
159055
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
159056
      } catch (org.apache.thrift.TException te) {
-
 
159057
        throw new java.io.IOException(te);
-
 
159058
      }
-
 
159059
    }
-
 
159060
 
-
 
159061
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
159062
      try {
-
 
159063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
159064
      } catch (org.apache.thrift.TException te) {
-
 
159065
        throw new java.io.IOException(te);
-
 
159066
      }
-
 
159067
    }
-
 
159068
 
-
 
159069
  }
-
 
159070
 
-
 
159071
  public static class getEbayOrderByOrderId_args implements org.apache.thrift.TBase<getEbayOrderByOrderId_args, getEbayOrderByOrderId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
159072
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayOrderByOrderId_args");
-
 
159073
 
-
 
159074
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
159075
 
-
 
159076
    private long orderId; // required
-
 
159077
 
-
 
159078
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
159079
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
159080
      ORDER_ID((short)1, "orderId");
-
 
159081
 
-
 
159082
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
159083
 
-
 
159084
      static {
-
 
159085
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
159086
          byName.put(field.getFieldName(), field);
-
 
159087
        }
-
 
159088
      }
-
 
159089
 
-
 
159090
      /**
-
 
159091
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
159092
       */
-
 
159093
      public static _Fields findByThriftId(int fieldId) {
-
 
159094
        switch(fieldId) {
-
 
159095
          case 1: // ORDER_ID
-
 
159096
            return ORDER_ID;
-
 
159097
          default:
-
 
159098
            return null;
-
 
159099
        }
-
 
159100
      }
-
 
159101
 
-
 
159102
      /**
-
 
159103
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
159104
       * if it is not found.
-
 
159105
       */
-
 
159106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
159107
        _Fields fields = findByThriftId(fieldId);
-
 
159108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
159109
        return fields;
-
 
159110
      }
-
 
159111
 
-
 
159112
      /**
-
 
159113
       * Find the _Fields constant that matches name, or null if its not found.
-
 
159114
       */
-
 
159115
      public static _Fields findByName(String name) {
-
 
159116
        return byName.get(name);
-
 
159117
      }
-
 
159118
 
-
 
159119
      private final short _thriftId;
-
 
159120
      private final String _fieldName;
-
 
159121
 
-
 
159122
      _Fields(short thriftId, String fieldName) {
-
 
159123
        _thriftId = thriftId;
-
 
159124
        _fieldName = fieldName;
-
 
159125
      }
-
 
159126
 
-
 
159127
      public short getThriftFieldId() {
-
 
159128
        return _thriftId;
-
 
159129
      }
-
 
159130
 
-
 
159131
      public String getFieldName() {
-
 
159132
        return _fieldName;
-
 
159133
      }
-
 
159134
    }
-
 
159135
 
-
 
159136
    // isset id assignments
-
 
159137
    private static final int __ORDERID_ISSET_ID = 0;
-
 
159138
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
159139
 
-
 
159140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
159141
    static {
-
 
159142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
159143
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
159144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
159145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
159146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayOrderByOrderId_args.class, metaDataMap);
-
 
159147
    }
-
 
159148
 
-
 
159149
    public getEbayOrderByOrderId_args() {
-
 
159150
    }
-
 
159151
 
-
 
159152
    public getEbayOrderByOrderId_args(
-
 
159153
      long orderId)
-
 
159154
    {
-
 
159155
      this();
-
 
159156
      this.orderId = orderId;
-
 
159157
      setOrderIdIsSet(true);
-
 
159158
    }
-
 
159159
 
-
 
159160
    /**
-
 
159161
     * Performs a deep copy on <i>other</i>.
-
 
159162
     */
-
 
159163
    public getEbayOrderByOrderId_args(getEbayOrderByOrderId_args other) {
-
 
159164
      __isset_bit_vector.clear();
-
 
159165
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
159166
      this.orderId = other.orderId;
-
 
159167
    }
-
 
159168
 
-
 
159169
    public getEbayOrderByOrderId_args deepCopy() {
-
 
159170
      return new getEbayOrderByOrderId_args(this);
-
 
159171
    }
-
 
159172
 
-
 
159173
    @Override
-
 
159174
    public void clear() {
-
 
159175
      setOrderIdIsSet(false);
-
 
159176
      this.orderId = 0;
-
 
159177
    }
-
 
159178
 
-
 
159179
    public long getOrderId() {
-
 
159180
      return this.orderId;
-
 
159181
    }
-
 
159182
 
-
 
159183
    public void setOrderId(long orderId) {
-
 
159184
      this.orderId = orderId;
-
 
159185
      setOrderIdIsSet(true);
-
 
159186
    }
-
 
159187
 
-
 
159188
    public void unsetOrderId() {
-
 
159189
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
159190
    }
-
 
159191
 
-
 
159192
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
159193
    public boolean isSetOrderId() {
-
 
159194
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
159195
    }
-
 
159196
 
-
 
159197
    public void setOrderIdIsSet(boolean value) {
-
 
159198
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
159199
    }
-
 
159200
 
-
 
159201
    public void setFieldValue(_Fields field, Object value) {
-
 
159202
      switch (field) {
-
 
159203
      case ORDER_ID:
-
 
159204
        if (value == null) {
-
 
159205
          unsetOrderId();
-
 
159206
        } else {
-
 
159207
          setOrderId((Long)value);
-
 
159208
        }
-
 
159209
        break;
-
 
159210
 
-
 
159211
      }
-
 
159212
    }
-
 
159213
 
-
 
159214
    public Object getFieldValue(_Fields field) {
-
 
159215
      switch (field) {
-
 
159216
      case ORDER_ID:
-
 
159217
        return Long.valueOf(getOrderId());
-
 
159218
 
-
 
159219
      }
-
 
159220
      throw new IllegalStateException();
-
 
159221
    }
-
 
159222
 
-
 
159223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
159224
    public boolean isSet(_Fields field) {
-
 
159225
      if (field == null) {
-
 
159226
        throw new IllegalArgumentException();
-
 
159227
      }
-
 
159228
 
-
 
159229
      switch (field) {
-
 
159230
      case ORDER_ID:
-
 
159231
        return isSetOrderId();
-
 
159232
      }
-
 
159233
      throw new IllegalStateException();
-
 
159234
    }
-
 
159235
 
-
 
159236
    @Override
-
 
159237
    public boolean equals(Object that) {
-
 
159238
      if (that == null)
-
 
159239
        return false;
-
 
159240
      if (that instanceof getEbayOrderByOrderId_args)
-
 
159241
        return this.equals((getEbayOrderByOrderId_args)that);
-
 
159242
      return false;
-
 
159243
    }
-
 
159244
 
-
 
159245
    public boolean equals(getEbayOrderByOrderId_args that) {
-
 
159246
      if (that == null)
-
 
159247
        return false;
-
 
159248
 
-
 
159249
      boolean this_present_orderId = true;
-
 
159250
      boolean that_present_orderId = true;
-
 
159251
      if (this_present_orderId || that_present_orderId) {
-
 
159252
        if (!(this_present_orderId && that_present_orderId))
-
 
159253
          return false;
-
 
159254
        if (this.orderId != that.orderId)
-
 
159255
          return false;
-
 
159256
      }
-
 
159257
 
-
 
159258
      return true;
-
 
159259
    }
-
 
159260
 
-
 
159261
    @Override
-
 
159262
    public int hashCode() {
-
 
159263
      return 0;
-
 
159264
    }
-
 
159265
 
-
 
159266
    public int compareTo(getEbayOrderByOrderId_args other) {
-
 
159267
      if (!getClass().equals(other.getClass())) {
-
 
159268
        return getClass().getName().compareTo(other.getClass().getName());
-
 
159269
      }
-
 
159270
 
-
 
159271
      int lastComparison = 0;
-
 
159272
      getEbayOrderByOrderId_args typedOther = (getEbayOrderByOrderId_args)other;
-
 
159273
 
-
 
159274
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
159275
      if (lastComparison != 0) {
-
 
159276
        return lastComparison;
-
 
159277
      }
-
 
159278
      if (isSetOrderId()) {
-
 
159279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
159280
        if (lastComparison != 0) {
-
 
159281
          return lastComparison;
-
 
159282
        }
-
 
159283
      }
-
 
159284
      return 0;
-
 
159285
    }
-
 
159286
 
-
 
159287
    public _Fields fieldForId(int fieldId) {
-
 
159288
      return _Fields.findByThriftId(fieldId);
-
 
159289
    }
-
 
159290
 
-
 
159291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
159292
      org.apache.thrift.protocol.TField field;
-
 
159293
      iprot.readStructBegin();
-
 
159294
      while (true)
-
 
159295
      {
-
 
159296
        field = iprot.readFieldBegin();
-
 
159297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
159298
          break;
-
 
159299
        }
-
 
159300
        switch (field.id) {
-
 
159301
          case 1: // ORDER_ID
-
 
159302
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
159303
              this.orderId = iprot.readI64();
-
 
159304
              setOrderIdIsSet(true);
-
 
159305
            } else { 
-
 
159306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159307
            }
-
 
159308
            break;
-
 
159309
          default:
-
 
159310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159311
        }
-
 
159312
        iprot.readFieldEnd();
-
 
159313
      }
-
 
159314
      iprot.readStructEnd();
-
 
159315
      validate();
-
 
159316
    }
-
 
159317
 
-
 
159318
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
159319
      validate();
-
 
159320
 
-
 
159321
      oprot.writeStructBegin(STRUCT_DESC);
-
 
159322
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
159323
      oprot.writeI64(this.orderId);
-
 
159324
      oprot.writeFieldEnd();
-
 
159325
      oprot.writeFieldStop();
-
 
159326
      oprot.writeStructEnd();
-
 
159327
    }
-
 
159328
 
-
 
159329
    @Override
-
 
159330
    public String toString() {
-
 
159331
      StringBuilder sb = new StringBuilder("getEbayOrderByOrderId_args(");
-
 
159332
      boolean first = true;
-
 
159333
 
-
 
159334
      sb.append("orderId:");
-
 
159335
      sb.append(this.orderId);
-
 
159336
      first = false;
-
 
159337
      sb.append(")");
-
 
159338
      return sb.toString();
-
 
159339
    }
-
 
159340
 
-
 
159341
    public void validate() throws org.apache.thrift.TException {
-
 
159342
      // check for required fields
-
 
159343
    }
-
 
159344
 
-
 
159345
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
159346
      try {
-
 
159347
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
159348
      } catch (org.apache.thrift.TException te) {
-
 
159349
        throw new java.io.IOException(te);
-
 
159350
      }
-
 
159351
    }
-
 
159352
 
-
 
159353
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
159354
      try {
-
 
159355
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
159356
        __isset_bit_vector = new BitSet(1);
-
 
159357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
159358
      } catch (org.apache.thrift.TException te) {
-
 
159359
        throw new java.io.IOException(te);
-
 
159360
      }
-
 
159361
    }
-
 
159362
 
-
 
159363
  }
-
 
159364
 
-
 
159365
  public static class getEbayOrderByOrderId_result implements org.apache.thrift.TBase<getEbayOrderByOrderId_result, getEbayOrderByOrderId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
159366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayOrderByOrderId_result");
-
 
159367
 
-
 
159368
    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);
-
 
159369
 
-
 
159370
    private EbayOrder success; // required
-
 
159371
 
-
 
159372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
159373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
159374
      SUCCESS((short)0, "success");
-
 
159375
 
-
 
159376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
159377
 
-
 
159378
      static {
-
 
159379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
159380
          byName.put(field.getFieldName(), field);
-
 
159381
        }
-
 
159382
      }
-
 
159383
 
-
 
159384
      /**
-
 
159385
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
159386
       */
-
 
159387
      public static _Fields findByThriftId(int fieldId) {
-
 
159388
        switch(fieldId) {
-
 
159389
          case 0: // SUCCESS
-
 
159390
            return SUCCESS;
-
 
159391
          default:
-
 
159392
            return null;
-
 
159393
        }
-
 
159394
      }
-
 
159395
 
-
 
159396
      /**
-
 
159397
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
159398
       * if it is not found.
-
 
159399
       */
-
 
159400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
159401
        _Fields fields = findByThriftId(fieldId);
-
 
159402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
159403
        return fields;
-
 
159404
      }
-
 
159405
 
-
 
159406
      /**
-
 
159407
       * Find the _Fields constant that matches name, or null if its not found.
-
 
159408
       */
-
 
159409
      public static _Fields findByName(String name) {
-
 
159410
        return byName.get(name);
-
 
159411
      }
-
 
159412
 
-
 
159413
      private final short _thriftId;
-
 
159414
      private final String _fieldName;
-
 
159415
 
-
 
159416
      _Fields(short thriftId, String fieldName) {
-
 
159417
        _thriftId = thriftId;
-
 
159418
        _fieldName = fieldName;
-
 
159419
      }
-
 
159420
 
-
 
159421
      public short getThriftFieldId() {
-
 
159422
        return _thriftId;
-
 
159423
      }
-
 
159424
 
-
 
159425
      public String getFieldName() {
-
 
159426
        return _fieldName;
-
 
159427
      }
-
 
159428
    }
-
 
159429
 
-
 
159430
    // isset id assignments
-
 
159431
 
-
 
159432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
159433
    static {
-
 
159434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
159435
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
159436
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayOrder.class)));
-
 
159437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
159438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayOrderByOrderId_result.class, metaDataMap);
-
 
159439
    }
-
 
159440
 
-
 
159441
    public getEbayOrderByOrderId_result() {
-
 
159442
    }
-
 
159443
 
-
 
159444
    public getEbayOrderByOrderId_result(
-
 
159445
      EbayOrder success)
-
 
159446
    {
-
 
159447
      this();
-
 
159448
      this.success = success;
-
 
159449
    }
-
 
159450
 
-
 
159451
    /**
-
 
159452
     * Performs a deep copy on <i>other</i>.
-
 
159453
     */
-
 
159454
    public getEbayOrderByOrderId_result(getEbayOrderByOrderId_result other) {
-
 
159455
      if (other.isSetSuccess()) {
-
 
159456
        this.success = new EbayOrder(other.success);
-
 
159457
      }
-
 
159458
    }
-
 
159459
 
-
 
159460
    public getEbayOrderByOrderId_result deepCopy() {
-
 
159461
      return new getEbayOrderByOrderId_result(this);
-
 
159462
    }
-
 
159463
 
-
 
159464
    @Override
-
 
159465
    public void clear() {
-
 
159466
      this.success = null;
-
 
159467
    }
-
 
159468
 
-
 
159469
    public EbayOrder getSuccess() {
-
 
159470
      return this.success;
-
 
159471
    }
-
 
159472
 
-
 
159473
    public void setSuccess(EbayOrder success) {
-
 
159474
      this.success = success;
-
 
159475
    }
-
 
159476
 
-
 
159477
    public void unsetSuccess() {
-
 
159478
      this.success = null;
-
 
159479
    }
-
 
159480
 
-
 
159481
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
159482
    public boolean isSetSuccess() {
-
 
159483
      return this.success != null;
-
 
159484
    }
-
 
159485
 
-
 
159486
    public void setSuccessIsSet(boolean value) {
-
 
159487
      if (!value) {
-
 
159488
        this.success = null;
-
 
159489
      }
-
 
159490
    }
-
 
159491
 
-
 
159492
    public void setFieldValue(_Fields field, Object value) {
-
 
159493
      switch (field) {
-
 
159494
      case SUCCESS:
-
 
159495
        if (value == null) {
-
 
159496
          unsetSuccess();
-
 
159497
        } else {
-
 
159498
          setSuccess((EbayOrder)value);
-
 
159499
        }
-
 
159500
        break;
-
 
159501
 
-
 
159502
      }
-
 
159503
    }
-
 
159504
 
-
 
159505
    public Object getFieldValue(_Fields field) {
-
 
159506
      switch (field) {
-
 
159507
      case SUCCESS:
-
 
159508
        return getSuccess();
-
 
159509
 
-
 
159510
      }
-
 
159511
      throw new IllegalStateException();
-
 
159512
    }
-
 
159513
 
-
 
159514
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
159515
    public boolean isSet(_Fields field) {
-
 
159516
      if (field == null) {
-
 
159517
        throw new IllegalArgumentException();
-
 
159518
      }
-
 
159519
 
-
 
159520
      switch (field) {
-
 
159521
      case SUCCESS:
-
 
159522
        return isSetSuccess();
-
 
159523
      }
-
 
159524
      throw new IllegalStateException();
-
 
159525
    }
-
 
159526
 
-
 
159527
    @Override
-
 
159528
    public boolean equals(Object that) {
-
 
159529
      if (that == null)
-
 
159530
        return false;
-
 
159531
      if (that instanceof getEbayOrderByOrderId_result)
-
 
159532
        return this.equals((getEbayOrderByOrderId_result)that);
-
 
159533
      return false;
-
 
159534
    }
-
 
159535
 
-
 
159536
    public boolean equals(getEbayOrderByOrderId_result that) {
-
 
159537
      if (that == null)
-
 
159538
        return false;
-
 
159539
 
-
 
159540
      boolean this_present_success = true && this.isSetSuccess();
-
 
159541
      boolean that_present_success = true && that.isSetSuccess();
-
 
159542
      if (this_present_success || that_present_success) {
-
 
159543
        if (!(this_present_success && that_present_success))
-
 
159544
          return false;
-
 
159545
        if (!this.success.equals(that.success))
-
 
159546
          return false;
-
 
159547
      }
-
 
159548
 
-
 
159549
      return true;
-
 
159550
    }
-
 
159551
 
-
 
159552
    @Override
-
 
159553
    public int hashCode() {
-
 
159554
      return 0;
-
 
159555
    }
-
 
159556
 
-
 
159557
    public int compareTo(getEbayOrderByOrderId_result other) {
-
 
159558
      if (!getClass().equals(other.getClass())) {
-
 
159559
        return getClass().getName().compareTo(other.getClass().getName());
-
 
159560
      }
-
 
159561
 
-
 
159562
      int lastComparison = 0;
-
 
159563
      getEbayOrderByOrderId_result typedOther = (getEbayOrderByOrderId_result)other;
-
 
159564
 
-
 
159565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
159566
      if (lastComparison != 0) {
-
 
159567
        return lastComparison;
-
 
159568
      }
-
 
159569
      if (isSetSuccess()) {
-
 
159570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
159571
        if (lastComparison != 0) {
-
 
159572
          return lastComparison;
-
 
159573
        }
-
 
159574
      }
-
 
159575
      return 0;
-
 
159576
    }
-
 
159577
 
-
 
159578
    public _Fields fieldForId(int fieldId) {
-
 
159579
      return _Fields.findByThriftId(fieldId);
-
 
159580
    }
-
 
159581
 
-
 
159582
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
159583
      org.apache.thrift.protocol.TField field;
-
 
159584
      iprot.readStructBegin();
-
 
159585
      while (true)
-
 
159586
      {
-
 
159587
        field = iprot.readFieldBegin();
-
 
159588
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
159589
          break;
-
 
159590
        }
-
 
159591
        switch (field.id) {
-
 
159592
          case 0: // SUCCESS
-
 
159593
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
159594
              this.success = new EbayOrder();
-
 
159595
              this.success.read(iprot);
-
 
159596
            } else { 
-
 
159597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159598
            }
-
 
159599
            break;
-
 
159600
          default:
-
 
159601
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159602
        }
-
 
159603
        iprot.readFieldEnd();
-
 
159604
      }
-
 
159605
      iprot.readStructEnd();
-
 
159606
      validate();
-
 
159607
    }
-
 
159608
 
-
 
159609
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
159610
      oprot.writeStructBegin(STRUCT_DESC);
-
 
159611
 
-
 
159612
      if (this.isSetSuccess()) {
-
 
159613
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
159614
        this.success.write(oprot);
-
 
159615
        oprot.writeFieldEnd();
-
 
159616
      }
-
 
159617
      oprot.writeFieldStop();
-
 
159618
      oprot.writeStructEnd();
-
 
159619
    }
-
 
159620
 
-
 
159621
    @Override
-
 
159622
    public String toString() {
-
 
159623
      StringBuilder sb = new StringBuilder("getEbayOrderByOrderId_result(");
-
 
159624
      boolean first = true;
-
 
159625
 
-
 
159626
      sb.append("success:");
-
 
159627
      if (this.success == null) {
-
 
159628
        sb.append("null");
-
 
159629
      } else {
-
 
159630
        sb.append(this.success);
-
 
159631
      }
-
 
159632
      first = false;
-
 
159633
      sb.append(")");
-
 
159634
      return sb.toString();
-
 
159635
    }
-
 
159636
 
-
 
159637
    public void validate() throws org.apache.thrift.TException {
-
 
159638
      // check for required fields
-
 
159639
    }
-
 
159640
 
-
 
159641
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
159642
      try {
-
 
159643
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
159644
      } catch (org.apache.thrift.TException te) {
-
 
159645
        throw new java.io.IOException(te);
-
 
159646
      }
-
 
159647
    }
-
 
159648
 
-
 
159649
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
159650
      try {
-
 
159651
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
159652
      } catch (org.apache.thrift.TException te) {
-
 
159653
        throw new java.io.IOException(te);
-
 
159654
      }
-
 
159655
    }
-
 
159656
 
-
 
159657
  }
-
 
159658
 
-
 
159659
  public static class getEbayOrderBySalesRecNumber_args implements org.apache.thrift.TBase<getEbayOrderBySalesRecNumber_args, getEbayOrderBySalesRecNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
159660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayOrderBySalesRecNumber_args");
-
 
159661
 
-
 
159662
    private static final org.apache.thrift.protocol.TField SALES_RECORD_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("salesRecordNumber", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
159663
 
-
 
159664
    private long salesRecordNumber; // required
-
 
159665
 
-
 
159666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
159667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
159668
      SALES_RECORD_NUMBER((short)1, "salesRecordNumber");
-
 
159669
 
-
 
159670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
159671
 
-
 
159672
      static {
-
 
159673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
159674
          byName.put(field.getFieldName(), field);
-
 
159675
        }
-
 
159676
      }
-
 
159677
 
-
 
159678
      /**
-
 
159679
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
159680
       */
-
 
159681
      public static _Fields findByThriftId(int fieldId) {
-
 
159682
        switch(fieldId) {
-
 
159683
          case 1: // SALES_RECORD_NUMBER
-
 
159684
            return SALES_RECORD_NUMBER;
-
 
159685
          default:
-
 
159686
            return null;
-
 
159687
        }
-
 
159688
      }
-
 
159689
 
-
 
159690
      /**
-
 
159691
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
159692
       * if it is not found.
-
 
159693
       */
-
 
159694
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
159695
        _Fields fields = findByThriftId(fieldId);
-
 
159696
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
159697
        return fields;
-
 
159698
      }
-
 
159699
 
-
 
159700
      /**
-
 
159701
       * Find the _Fields constant that matches name, or null if its not found.
-
 
159702
       */
-
 
159703
      public static _Fields findByName(String name) {
-
 
159704
        return byName.get(name);
-
 
159705
      }
-
 
159706
 
-
 
159707
      private final short _thriftId;
-
 
159708
      private final String _fieldName;
-
 
159709
 
-
 
159710
      _Fields(short thriftId, String fieldName) {
-
 
159711
        _thriftId = thriftId;
-
 
159712
        _fieldName = fieldName;
-
 
159713
      }
-
 
159714
 
-
 
159715
      public short getThriftFieldId() {
-
 
159716
        return _thriftId;
-
 
159717
      }
-
 
159718
 
-
 
159719
      public String getFieldName() {
-
 
159720
        return _fieldName;
-
 
159721
      }
-
 
159722
    }
-
 
159723
 
-
 
159724
    // isset id assignments
-
 
159725
    private static final int __SALESRECORDNUMBER_ISSET_ID = 0;
-
 
159726
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
159727
 
-
 
159728
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
159729
    static {
-
 
159730
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
159731
      tmpMap.put(_Fields.SALES_RECORD_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("salesRecordNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
159732
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
159733
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
159734
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayOrderBySalesRecNumber_args.class, metaDataMap);
-
 
159735
    }
-
 
159736
 
-
 
159737
    public getEbayOrderBySalesRecNumber_args() {
-
 
159738
    }
-
 
159739
 
-
 
159740
    public getEbayOrderBySalesRecNumber_args(
-
 
159741
      long salesRecordNumber)
-
 
159742
    {
-
 
159743
      this();
-
 
159744
      this.salesRecordNumber = salesRecordNumber;
-
 
159745
      setSalesRecordNumberIsSet(true);
-
 
159746
    }
-
 
159747
 
-
 
159748
    /**
-
 
159749
     * Performs a deep copy on <i>other</i>.
-
 
159750
     */
-
 
159751
    public getEbayOrderBySalesRecNumber_args(getEbayOrderBySalesRecNumber_args other) {
-
 
159752
      __isset_bit_vector.clear();
-
 
159753
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
159754
      this.salesRecordNumber = other.salesRecordNumber;
-
 
159755
    }
-
 
159756
 
-
 
159757
    public getEbayOrderBySalesRecNumber_args deepCopy() {
-
 
159758
      return new getEbayOrderBySalesRecNumber_args(this);
-
 
159759
    }
-
 
159760
 
-
 
159761
    @Override
-
 
159762
    public void clear() {
-
 
159763
      setSalesRecordNumberIsSet(false);
-
 
159764
      this.salesRecordNumber = 0;
-
 
159765
    }
-
 
159766
 
-
 
159767
    public long getSalesRecordNumber() {
-
 
159768
      return this.salesRecordNumber;
-
 
159769
    }
-
 
159770
 
-
 
159771
    public void setSalesRecordNumber(long salesRecordNumber) {
-
 
159772
      this.salesRecordNumber = salesRecordNumber;
-
 
159773
      setSalesRecordNumberIsSet(true);
-
 
159774
    }
-
 
159775
 
-
 
159776
    public void unsetSalesRecordNumber() {
-
 
159777
      __isset_bit_vector.clear(__SALESRECORDNUMBER_ISSET_ID);
-
 
159778
    }
-
 
159779
 
-
 
159780
    /** Returns true if field salesRecordNumber is set (has been assigned a value) and false otherwise */
-
 
159781
    public boolean isSetSalesRecordNumber() {
-
 
159782
      return __isset_bit_vector.get(__SALESRECORDNUMBER_ISSET_ID);
-
 
159783
    }
-
 
159784
 
-
 
159785
    public void setSalesRecordNumberIsSet(boolean value) {
-
 
159786
      __isset_bit_vector.set(__SALESRECORDNUMBER_ISSET_ID, value);
-
 
159787
    }
-
 
159788
 
-
 
159789
    public void setFieldValue(_Fields field, Object value) {
-
 
159790
      switch (field) {
-
 
159791
      case SALES_RECORD_NUMBER:
-
 
159792
        if (value == null) {
-
 
159793
          unsetSalesRecordNumber();
-
 
159794
        } else {
-
 
159795
          setSalesRecordNumber((Long)value);
-
 
159796
        }
-
 
159797
        break;
-
 
159798
 
-
 
159799
      }
-
 
159800
    }
-
 
159801
 
-
 
159802
    public Object getFieldValue(_Fields field) {
-
 
159803
      switch (field) {
-
 
159804
      case SALES_RECORD_NUMBER:
-
 
159805
        return Long.valueOf(getSalesRecordNumber());
-
 
159806
 
-
 
159807
      }
-
 
159808
      throw new IllegalStateException();
-
 
159809
    }
-
 
159810
 
-
 
159811
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
159812
    public boolean isSet(_Fields field) {
-
 
159813
      if (field == null) {
-
 
159814
        throw new IllegalArgumentException();
-
 
159815
      }
-
 
159816
 
-
 
159817
      switch (field) {
-
 
159818
      case SALES_RECORD_NUMBER:
-
 
159819
        return isSetSalesRecordNumber();
-
 
159820
      }
-
 
159821
      throw new IllegalStateException();
-
 
159822
    }
-
 
159823
 
-
 
159824
    @Override
-
 
159825
    public boolean equals(Object that) {
-
 
159826
      if (that == null)
-
 
159827
        return false;
-
 
159828
      if (that instanceof getEbayOrderBySalesRecNumber_args)
-
 
159829
        return this.equals((getEbayOrderBySalesRecNumber_args)that);
-
 
159830
      return false;
-
 
159831
    }
-
 
159832
 
-
 
159833
    public boolean equals(getEbayOrderBySalesRecNumber_args that) {
-
 
159834
      if (that == null)
-
 
159835
        return false;
-
 
159836
 
-
 
159837
      boolean this_present_salesRecordNumber = true;
-
 
159838
      boolean that_present_salesRecordNumber = true;
-
 
159839
      if (this_present_salesRecordNumber || that_present_salesRecordNumber) {
-
 
159840
        if (!(this_present_salesRecordNumber && that_present_salesRecordNumber))
-
 
159841
          return false;
-
 
159842
        if (this.salesRecordNumber != that.salesRecordNumber)
-
 
159843
          return false;
-
 
159844
      }
-
 
159845
 
-
 
159846
      return true;
-
 
159847
    }
-
 
159848
 
-
 
159849
    @Override
-
 
159850
    public int hashCode() {
-
 
159851
      return 0;
-
 
159852
    }
-
 
159853
 
-
 
159854
    public int compareTo(getEbayOrderBySalesRecNumber_args other) {
-
 
159855
      if (!getClass().equals(other.getClass())) {
-
 
159856
        return getClass().getName().compareTo(other.getClass().getName());
-
 
159857
      }
-
 
159858
 
-
 
159859
      int lastComparison = 0;
-
 
159860
      getEbayOrderBySalesRecNumber_args typedOther = (getEbayOrderBySalesRecNumber_args)other;
-
 
159861
 
-
 
159862
      lastComparison = Boolean.valueOf(isSetSalesRecordNumber()).compareTo(typedOther.isSetSalesRecordNumber());
-
 
159863
      if (lastComparison != 0) {
-
 
159864
        return lastComparison;
-
 
159865
      }
-
 
159866
      if (isSetSalesRecordNumber()) {
-
 
159867
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salesRecordNumber, typedOther.salesRecordNumber);
-
 
159868
        if (lastComparison != 0) {
-
 
159869
          return lastComparison;
-
 
159870
        }
-
 
159871
      }
-
 
159872
      return 0;
-
 
159873
    }
-
 
159874
 
-
 
159875
    public _Fields fieldForId(int fieldId) {
-
 
159876
      return _Fields.findByThriftId(fieldId);
-
 
159877
    }
-
 
159878
 
-
 
159879
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
159880
      org.apache.thrift.protocol.TField field;
-
 
159881
      iprot.readStructBegin();
-
 
159882
      while (true)
-
 
159883
      {
-
 
159884
        field = iprot.readFieldBegin();
-
 
159885
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
159886
          break;
-
 
159887
        }
-
 
159888
        switch (field.id) {
-
 
159889
          case 1: // SALES_RECORD_NUMBER
-
 
159890
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
159891
              this.salesRecordNumber = iprot.readI64();
-
 
159892
              setSalesRecordNumberIsSet(true);
-
 
159893
            } else { 
-
 
159894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159895
            }
-
 
159896
            break;
-
 
159897
          default:
-
 
159898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
159899
        }
-
 
159900
        iprot.readFieldEnd();
-
 
159901
      }
-
 
159902
      iprot.readStructEnd();
-
 
159903
      validate();
-
 
159904
    }
-
 
159905
 
-
 
159906
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
159907
      validate();
-
 
159908
 
-
 
159909
      oprot.writeStructBegin(STRUCT_DESC);
-
 
159910
      oprot.writeFieldBegin(SALES_RECORD_NUMBER_FIELD_DESC);
-
 
159911
      oprot.writeI64(this.salesRecordNumber);
-
 
159912
      oprot.writeFieldEnd();
-
 
159913
      oprot.writeFieldStop();
-
 
159914
      oprot.writeStructEnd();
-
 
159915
    }
-
 
159916
 
-
 
159917
    @Override
-
 
159918
    public String toString() {
-
 
159919
      StringBuilder sb = new StringBuilder("getEbayOrderBySalesRecNumber_args(");
-
 
159920
      boolean first = true;
-
 
159921
 
-
 
159922
      sb.append("salesRecordNumber:");
-
 
159923
      sb.append(this.salesRecordNumber);
-
 
159924
      first = false;
-
 
159925
      sb.append(")");
-
 
159926
      return sb.toString();
-
 
159927
    }
-
 
159928
 
-
 
159929
    public void validate() throws org.apache.thrift.TException {
-
 
159930
      // check for required fields
-
 
159931
    }
-
 
159932
 
-
 
159933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
159934
      try {
-
 
159935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
159936
      } catch (org.apache.thrift.TException te) {
-
 
159937
        throw new java.io.IOException(te);
-
 
159938
      }
-
 
159939
    }
-
 
159940
 
-
 
159941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
159942
      try {
-
 
159943
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
159944
        __isset_bit_vector = new BitSet(1);
-
 
159945
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
159946
      } catch (org.apache.thrift.TException te) {
-
 
159947
        throw new java.io.IOException(te);
-
 
159948
      }
-
 
159949
    }
-
 
159950
 
-
 
159951
  }
-
 
159952
 
-
 
159953
  public static class getEbayOrderBySalesRecNumber_result implements org.apache.thrift.TBase<getEbayOrderBySalesRecNumber_result, getEbayOrderBySalesRecNumber_result._Fields>, java.io.Serializable, Cloneable   {
-
 
159954
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayOrderBySalesRecNumber_result");
-
 
159955
 
-
 
159956
    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);
-
 
159957
 
-
 
159958
    private EbayOrder success; // required
-
 
159959
 
-
 
159960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
159961
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
159962
      SUCCESS((short)0, "success");
-
 
159963
 
-
 
159964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
159965
 
-
 
159966
      static {
-
 
159967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
159968
          byName.put(field.getFieldName(), field);
-
 
159969
        }
-
 
159970
      }
-
 
159971
 
-
 
159972
      /**
-
 
159973
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
159974
       */
-
 
159975
      public static _Fields findByThriftId(int fieldId) {
-
 
159976
        switch(fieldId) {
-
 
159977
          case 0: // SUCCESS
-
 
159978
            return SUCCESS;
-
 
159979
          default:
-
 
159980
            return null;
-
 
159981
        }
-
 
159982
      }
-
 
159983
 
-
 
159984
      /**
-
 
159985
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
159986
       * if it is not found.
-
 
159987
       */
-
 
159988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
159989
        _Fields fields = findByThriftId(fieldId);
-
 
159990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
159991
        return fields;
-
 
159992
      }
-
 
159993
 
-
 
159994
      /**
-
 
159995
       * Find the _Fields constant that matches name, or null if its not found.
-
 
159996
       */
-
 
159997
      public static _Fields findByName(String name) {
-
 
159998
        return byName.get(name);
-
 
159999
      }
-
 
160000
 
-
 
160001
      private final short _thriftId;
-
 
160002
      private final String _fieldName;
-
 
160003
 
-
 
160004
      _Fields(short thriftId, String fieldName) {
-
 
160005
        _thriftId = thriftId;
-
 
160006
        _fieldName = fieldName;
-
 
160007
      }
-
 
160008
 
-
 
160009
      public short getThriftFieldId() {
-
 
160010
        return _thriftId;
-
 
160011
      }
-
 
160012
 
-
 
160013
      public String getFieldName() {
-
 
160014
        return _fieldName;
-
 
160015
      }
-
 
160016
    }
-
 
160017
 
-
 
160018
    // isset id assignments
-
 
160019
 
-
 
160020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
160021
    static {
-
 
160022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
160023
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160024
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayOrder.class)));
-
 
160025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
160026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayOrderBySalesRecNumber_result.class, metaDataMap);
-
 
160027
    }
-
 
160028
 
-
 
160029
    public getEbayOrderBySalesRecNumber_result() {
-
 
160030
    }
-
 
160031
 
-
 
160032
    public getEbayOrderBySalesRecNumber_result(
-
 
160033
      EbayOrder success)
-
 
160034
    {
-
 
160035
      this();
-
 
160036
      this.success = success;
-
 
160037
    }
-
 
160038
 
-
 
160039
    /**
-
 
160040
     * Performs a deep copy on <i>other</i>.
-
 
160041
     */
-
 
160042
    public getEbayOrderBySalesRecNumber_result(getEbayOrderBySalesRecNumber_result other) {
-
 
160043
      if (other.isSetSuccess()) {
-
 
160044
        this.success = new EbayOrder(other.success);
-
 
160045
      }
-
 
160046
    }
-
 
160047
 
-
 
160048
    public getEbayOrderBySalesRecNumber_result deepCopy() {
-
 
160049
      return new getEbayOrderBySalesRecNumber_result(this);
-
 
160050
    }
-
 
160051
 
-
 
160052
    @Override
-
 
160053
    public void clear() {
-
 
160054
      this.success = null;
-
 
160055
    }
-
 
160056
 
-
 
160057
    public EbayOrder getSuccess() {
-
 
160058
      return this.success;
-
 
160059
    }
-
 
160060
 
-
 
160061
    public void setSuccess(EbayOrder success) {
-
 
160062
      this.success = success;
-
 
160063
    }
-
 
160064
 
-
 
160065
    public void unsetSuccess() {
-
 
160066
      this.success = null;
-
 
160067
    }
-
 
160068
 
-
 
160069
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
160070
    public boolean isSetSuccess() {
-
 
160071
      return this.success != null;
-
 
160072
    }
-
 
160073
 
-
 
160074
    public void setSuccessIsSet(boolean value) {
-
 
160075
      if (!value) {
-
 
160076
        this.success = null;
-
 
160077
      }
-
 
160078
    }
-
 
160079
 
-
 
160080
    public void setFieldValue(_Fields field, Object value) {
-
 
160081
      switch (field) {
-
 
160082
      case SUCCESS:
-
 
160083
        if (value == null) {
-
 
160084
          unsetSuccess();
-
 
160085
        } else {
-
 
160086
          setSuccess((EbayOrder)value);
-
 
160087
        }
-
 
160088
        break;
-
 
160089
 
-
 
160090
      }
-
 
160091
    }
-
 
160092
 
-
 
160093
    public Object getFieldValue(_Fields field) {
-
 
160094
      switch (field) {
-
 
160095
      case SUCCESS:
-
 
160096
        return getSuccess();
-
 
160097
 
-
 
160098
      }
-
 
160099
      throw new IllegalStateException();
-
 
160100
    }
-
 
160101
 
-
 
160102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
160103
    public boolean isSet(_Fields field) {
-
 
160104
      if (field == null) {
-
 
160105
        throw new IllegalArgumentException();
-
 
160106
      }
-
 
160107
 
-
 
160108
      switch (field) {
-
 
160109
      case SUCCESS:
-
 
160110
        return isSetSuccess();
-
 
160111
      }
-
 
160112
      throw new IllegalStateException();
-
 
160113
    }
-
 
160114
 
-
 
160115
    @Override
-
 
160116
    public boolean equals(Object that) {
-
 
160117
      if (that == null)
-
 
160118
        return false;
-
 
160119
      if (that instanceof getEbayOrderBySalesRecNumber_result)
-
 
160120
        return this.equals((getEbayOrderBySalesRecNumber_result)that);
-
 
160121
      return false;
-
 
160122
    }
-
 
160123
 
-
 
160124
    public boolean equals(getEbayOrderBySalesRecNumber_result that) {
-
 
160125
      if (that == null)
-
 
160126
        return false;
-
 
160127
 
-
 
160128
      boolean this_present_success = true && this.isSetSuccess();
-
 
160129
      boolean that_present_success = true && that.isSetSuccess();
-
 
160130
      if (this_present_success || that_present_success) {
-
 
160131
        if (!(this_present_success && that_present_success))
-
 
160132
          return false;
-
 
160133
        if (!this.success.equals(that.success))
-
 
160134
          return false;
-
 
160135
      }
-
 
160136
 
-
 
160137
      return true;
-
 
160138
    }
-
 
160139
 
-
 
160140
    @Override
-
 
160141
    public int hashCode() {
-
 
160142
      return 0;
-
 
160143
    }
-
 
160144
 
-
 
160145
    public int compareTo(getEbayOrderBySalesRecNumber_result other) {
-
 
160146
      if (!getClass().equals(other.getClass())) {
-
 
160147
        return getClass().getName().compareTo(other.getClass().getName());
-
 
160148
      }
-
 
160149
 
-
 
160150
      int lastComparison = 0;
-
 
160151
      getEbayOrderBySalesRecNumber_result typedOther = (getEbayOrderBySalesRecNumber_result)other;
-
 
160152
 
-
 
160153
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
160154
      if (lastComparison != 0) {
-
 
160155
        return lastComparison;
-
 
160156
      }
-
 
160157
      if (isSetSuccess()) {
-
 
160158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
160159
        if (lastComparison != 0) {
-
 
160160
          return lastComparison;
-
 
160161
        }
-
 
160162
      }
-
 
160163
      return 0;
-
 
160164
    }
-
 
160165
 
-
 
160166
    public _Fields fieldForId(int fieldId) {
-
 
160167
      return _Fields.findByThriftId(fieldId);
-
 
160168
    }
-
 
160169
 
-
 
160170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
160171
      org.apache.thrift.protocol.TField field;
-
 
160172
      iprot.readStructBegin();
-
 
160173
      while (true)
-
 
160174
      {
-
 
160175
        field = iprot.readFieldBegin();
-
 
160176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
160177
          break;
-
 
160178
        }
-
 
160179
        switch (field.id) {
-
 
160180
          case 0: // SUCCESS
-
 
160181
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
160182
              this.success = new EbayOrder();
-
 
160183
              this.success.read(iprot);
-
 
160184
            } else { 
-
 
160185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160186
            }
-
 
160187
            break;
-
 
160188
          default:
-
 
160189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160190
        }
-
 
160191
        iprot.readFieldEnd();
-
 
160192
      }
-
 
160193
      iprot.readStructEnd();
-
 
160194
      validate();
-
 
160195
    }
-
 
160196
 
-
 
160197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
160198
      oprot.writeStructBegin(STRUCT_DESC);
-
 
160199
 
-
 
160200
      if (this.isSetSuccess()) {
-
 
160201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
160202
        this.success.write(oprot);
-
 
160203
        oprot.writeFieldEnd();
-
 
160204
      }
-
 
160205
      oprot.writeFieldStop();
-
 
160206
      oprot.writeStructEnd();
-
 
160207
    }
-
 
160208
 
-
 
160209
    @Override
-
 
160210
    public String toString() {
-
 
160211
      StringBuilder sb = new StringBuilder("getEbayOrderBySalesRecNumber_result(");
-
 
160212
      boolean first = true;
-
 
160213
 
-
 
160214
      sb.append("success:");
-
 
160215
      if (this.success == null) {
-
 
160216
        sb.append("null");
-
 
160217
      } else {
-
 
160218
        sb.append(this.success);
-
 
160219
      }
-
 
160220
      first = false;
-
 
160221
      sb.append(")");
-
 
160222
      return sb.toString();
-
 
160223
    }
-
 
160224
 
-
 
160225
    public void validate() throws org.apache.thrift.TException {
-
 
160226
      // check for required fields
-
 
160227
    }
-
 
160228
 
-
 
160229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
160230
      try {
-
 
160231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
160232
      } catch (org.apache.thrift.TException te) {
-
 
160233
        throw new java.io.IOException(te);
-
 
160234
      }
-
 
160235
    }
-
 
160236
 
-
 
160237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
160238
      try {
-
 
160239
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
160240
      } catch (org.apache.thrift.TException te) {
-
 
160241
        throw new java.io.IOException(te);
-
 
160242
      }
-
 
160243
    }
-
 
160244
 
-
 
160245
  }
-
 
160246
 
-
 
160247
  public static class getEbayOrder_args implements org.apache.thrift.TBase<getEbayOrder_args, getEbayOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
160248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayOrder_args");
-
 
160249
 
-
 
160250
    private static final org.apache.thrift.protocol.TField SALES_RECORD_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("salesRecordNumber", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
160251
    private static final org.apache.thrift.protocol.TField LISTING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("listingId", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
160252
 
-
 
160253
    private long salesRecordNumber; // required
-
 
160254
    private String listingId; // required
-
 
160255
 
-
 
160256
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
160257
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
160258
      SALES_RECORD_NUMBER((short)1, "salesRecordNumber"),
-
 
160259
      LISTING_ID((short)2, "listingId");
-
 
160260
 
-
 
160261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
160262
 
-
 
160263
      static {
-
 
160264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
160265
          byName.put(field.getFieldName(), field);
-
 
160266
        }
-
 
160267
      }
-
 
160268
 
-
 
160269
      /**
-
 
160270
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
160271
       */
-
 
160272
      public static _Fields findByThriftId(int fieldId) {
-
 
160273
        switch(fieldId) {
-
 
160274
          case 1: // SALES_RECORD_NUMBER
-
 
160275
            return SALES_RECORD_NUMBER;
-
 
160276
          case 2: // LISTING_ID
-
 
160277
            return LISTING_ID;
-
 
160278
          default:
-
 
160279
            return null;
-
 
160280
        }
-
 
160281
      }
-
 
160282
 
-
 
160283
      /**
-
 
160284
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
160285
       * if it is not found.
-
 
160286
       */
-
 
160287
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
160288
        _Fields fields = findByThriftId(fieldId);
-
 
160289
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
160290
        return fields;
-
 
160291
      }
-
 
160292
 
-
 
160293
      /**
-
 
160294
       * Find the _Fields constant that matches name, or null if its not found.
-
 
160295
       */
-
 
160296
      public static _Fields findByName(String name) {
-
 
160297
        return byName.get(name);
-
 
160298
      }
-
 
160299
 
-
 
160300
      private final short _thriftId;
-
 
160301
      private final String _fieldName;
-
 
160302
 
-
 
160303
      _Fields(short thriftId, String fieldName) {
-
 
160304
        _thriftId = thriftId;
-
 
160305
        _fieldName = fieldName;
-
 
160306
      }
-
 
160307
 
-
 
160308
      public short getThriftFieldId() {
-
 
160309
        return _thriftId;
-
 
160310
      }
-
 
160311
 
-
 
160312
      public String getFieldName() {
-
 
160313
        return _fieldName;
-
 
160314
      }
-
 
160315
    }
-
 
160316
 
-
 
160317
    // isset id assignments
-
 
160318
    private static final int __SALESRECORDNUMBER_ISSET_ID = 0;
-
 
160319
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
160320
 
-
 
160321
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
160322
    static {
-
 
160323
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
160324
      tmpMap.put(_Fields.SALES_RECORD_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("salesRecordNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
160326
      tmpMap.put(_Fields.LISTING_ID, new org.apache.thrift.meta_data.FieldMetaData("listingId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
160328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
160329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayOrder_args.class, metaDataMap);
-
 
160330
    }
-
 
160331
 
-
 
160332
    public getEbayOrder_args() {
-
 
160333
    }
-
 
160334
 
-
 
160335
    public getEbayOrder_args(
-
 
160336
      long salesRecordNumber,
-
 
160337
      String listingId)
-
 
160338
    {
-
 
160339
      this();
-
 
160340
      this.salesRecordNumber = salesRecordNumber;
-
 
160341
      setSalesRecordNumberIsSet(true);
-
 
160342
      this.listingId = listingId;
-
 
160343
    }
-
 
160344
 
-
 
160345
    /**
-
 
160346
     * Performs a deep copy on <i>other</i>.
-
 
160347
     */
-
 
160348
    public getEbayOrder_args(getEbayOrder_args other) {
-
 
160349
      __isset_bit_vector.clear();
-
 
160350
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
160351
      this.salesRecordNumber = other.salesRecordNumber;
-
 
160352
      if (other.isSetListingId()) {
-
 
160353
        this.listingId = other.listingId;
-
 
160354
      }
-
 
160355
    }
-
 
160356
 
-
 
160357
    public getEbayOrder_args deepCopy() {
-
 
160358
      return new getEbayOrder_args(this);
-
 
160359
    }
-
 
160360
 
-
 
160361
    @Override
-
 
160362
    public void clear() {
-
 
160363
      setSalesRecordNumberIsSet(false);
-
 
160364
      this.salesRecordNumber = 0;
-
 
160365
      this.listingId = null;
-
 
160366
    }
-
 
160367
 
-
 
160368
    public long getSalesRecordNumber() {
-
 
160369
      return this.salesRecordNumber;
-
 
160370
    }
-
 
160371
 
-
 
160372
    public void setSalesRecordNumber(long salesRecordNumber) {
-
 
160373
      this.salesRecordNumber = salesRecordNumber;
-
 
160374
      setSalesRecordNumberIsSet(true);
-
 
160375
    }
-
 
160376
 
-
 
160377
    public void unsetSalesRecordNumber() {
-
 
160378
      __isset_bit_vector.clear(__SALESRECORDNUMBER_ISSET_ID);
-
 
160379
    }
-
 
160380
 
-
 
160381
    /** Returns true if field salesRecordNumber is set (has been assigned a value) and false otherwise */
-
 
160382
    public boolean isSetSalesRecordNumber() {
-
 
160383
      return __isset_bit_vector.get(__SALESRECORDNUMBER_ISSET_ID);
-
 
160384
    }
-
 
160385
 
-
 
160386
    public void setSalesRecordNumberIsSet(boolean value) {
-
 
160387
      __isset_bit_vector.set(__SALESRECORDNUMBER_ISSET_ID, value);
-
 
160388
    }
-
 
160389
 
-
 
160390
    public String getListingId() {
-
 
160391
      return this.listingId;
-
 
160392
    }
-
 
160393
 
-
 
160394
    public void setListingId(String listingId) {
-
 
160395
      this.listingId = listingId;
-
 
160396
    }
-
 
160397
 
-
 
160398
    public void unsetListingId() {
-
 
160399
      this.listingId = null;
-
 
160400
    }
-
 
160401
 
-
 
160402
    /** Returns true if field listingId is set (has been assigned a value) and false otherwise */
-
 
160403
    public boolean isSetListingId() {
-
 
160404
      return this.listingId != null;
-
 
160405
    }
-
 
160406
 
-
 
160407
    public void setListingIdIsSet(boolean value) {
-
 
160408
      if (!value) {
-
 
160409
        this.listingId = null;
-
 
160410
      }
-
 
160411
    }
-
 
160412
 
-
 
160413
    public void setFieldValue(_Fields field, Object value) {
-
 
160414
      switch (field) {
-
 
160415
      case SALES_RECORD_NUMBER:
-
 
160416
        if (value == null) {
-
 
160417
          unsetSalesRecordNumber();
-
 
160418
        } else {
-
 
160419
          setSalesRecordNumber((Long)value);
-
 
160420
        }
-
 
160421
        break;
-
 
160422
 
-
 
160423
      case LISTING_ID:
-
 
160424
        if (value == null) {
-
 
160425
          unsetListingId();
-
 
160426
        } else {
-
 
160427
          setListingId((String)value);
-
 
160428
        }
-
 
160429
        break;
-
 
160430
 
-
 
160431
      }
-
 
160432
    }
-
 
160433
 
-
 
160434
    public Object getFieldValue(_Fields field) {
-
 
160435
      switch (field) {
-
 
160436
      case SALES_RECORD_NUMBER:
-
 
160437
        return Long.valueOf(getSalesRecordNumber());
-
 
160438
 
-
 
160439
      case LISTING_ID:
-
 
160440
        return getListingId();
-
 
160441
 
-
 
160442
      }
-
 
160443
      throw new IllegalStateException();
-
 
160444
    }
-
 
160445
 
-
 
160446
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
160447
    public boolean isSet(_Fields field) {
-
 
160448
      if (field == null) {
-
 
160449
        throw new IllegalArgumentException();
-
 
160450
      }
-
 
160451
 
-
 
160452
      switch (field) {
-
 
160453
      case SALES_RECORD_NUMBER:
-
 
160454
        return isSetSalesRecordNumber();
-
 
160455
      case LISTING_ID:
-
 
160456
        return isSetListingId();
-
 
160457
      }
-
 
160458
      throw new IllegalStateException();
-
 
160459
    }
-
 
160460
 
-
 
160461
    @Override
-
 
160462
    public boolean equals(Object that) {
-
 
160463
      if (that == null)
-
 
160464
        return false;
-
 
160465
      if (that instanceof getEbayOrder_args)
-
 
160466
        return this.equals((getEbayOrder_args)that);
-
 
160467
      return false;
-
 
160468
    }
-
 
160469
 
-
 
160470
    public boolean equals(getEbayOrder_args that) {
-
 
160471
      if (that == null)
-
 
160472
        return false;
-
 
160473
 
-
 
160474
      boolean this_present_salesRecordNumber = true;
-
 
160475
      boolean that_present_salesRecordNumber = true;
-
 
160476
      if (this_present_salesRecordNumber || that_present_salesRecordNumber) {
-
 
160477
        if (!(this_present_salesRecordNumber && that_present_salesRecordNumber))
-
 
160478
          return false;
-
 
160479
        if (this.salesRecordNumber != that.salesRecordNumber)
-
 
160480
          return false;
-
 
160481
      }
-
 
160482
 
-
 
160483
      boolean this_present_listingId = true && this.isSetListingId();
-
 
160484
      boolean that_present_listingId = true && that.isSetListingId();
-
 
160485
      if (this_present_listingId || that_present_listingId) {
-
 
160486
        if (!(this_present_listingId && that_present_listingId))
-
 
160487
          return false;
-
 
160488
        if (!this.listingId.equals(that.listingId))
-
 
160489
          return false;
-
 
160490
      }
-
 
160491
 
-
 
160492
      return true;
-
 
160493
    }
-
 
160494
 
-
 
160495
    @Override
-
 
160496
    public int hashCode() {
-
 
160497
      return 0;
-
 
160498
    }
-
 
160499
 
-
 
160500
    public int compareTo(getEbayOrder_args other) {
-
 
160501
      if (!getClass().equals(other.getClass())) {
-
 
160502
        return getClass().getName().compareTo(other.getClass().getName());
-
 
160503
      }
-
 
160504
 
-
 
160505
      int lastComparison = 0;
-
 
160506
      getEbayOrder_args typedOther = (getEbayOrder_args)other;
-
 
160507
 
-
 
160508
      lastComparison = Boolean.valueOf(isSetSalesRecordNumber()).compareTo(typedOther.isSetSalesRecordNumber());
-
 
160509
      if (lastComparison != 0) {
-
 
160510
        return lastComparison;
-
 
160511
      }
-
 
160512
      if (isSetSalesRecordNumber()) {
-
 
160513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salesRecordNumber, typedOther.salesRecordNumber);
-
 
160514
        if (lastComparison != 0) {
-
 
160515
          return lastComparison;
-
 
160516
        }
-
 
160517
      }
-
 
160518
      lastComparison = Boolean.valueOf(isSetListingId()).compareTo(typedOther.isSetListingId());
-
 
160519
      if (lastComparison != 0) {
-
 
160520
        return lastComparison;
-
 
160521
      }
-
 
160522
      if (isSetListingId()) {
-
 
160523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingId, typedOther.listingId);
-
 
160524
        if (lastComparison != 0) {
-
 
160525
          return lastComparison;
-
 
160526
        }
-
 
160527
      }
-
 
160528
      return 0;
-
 
160529
    }
-
 
160530
 
-
 
160531
    public _Fields fieldForId(int fieldId) {
-
 
160532
      return _Fields.findByThriftId(fieldId);
-
 
160533
    }
-
 
160534
 
-
 
160535
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
160536
      org.apache.thrift.protocol.TField field;
-
 
160537
      iprot.readStructBegin();
-
 
160538
      while (true)
-
 
160539
      {
-
 
160540
        field = iprot.readFieldBegin();
-
 
160541
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
160542
          break;
-
 
160543
        }
-
 
160544
        switch (field.id) {
-
 
160545
          case 1: // SALES_RECORD_NUMBER
-
 
160546
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
160547
              this.salesRecordNumber = iprot.readI64();
-
 
160548
              setSalesRecordNumberIsSet(true);
-
 
160549
            } else { 
-
 
160550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160551
            }
-
 
160552
            break;
-
 
160553
          case 2: // LISTING_ID
-
 
160554
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
160555
              this.listingId = iprot.readString();
-
 
160556
            } else { 
-
 
160557
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160558
            }
-
 
160559
            break;
-
 
160560
          default:
-
 
160561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160562
        }
-
 
160563
        iprot.readFieldEnd();
-
 
160564
      }
-
 
160565
      iprot.readStructEnd();
-
 
160566
      validate();
-
 
160567
    }
-
 
160568
 
-
 
160569
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
160570
      validate();
-
 
160571
 
-
 
160572
      oprot.writeStructBegin(STRUCT_DESC);
-
 
160573
      oprot.writeFieldBegin(SALES_RECORD_NUMBER_FIELD_DESC);
-
 
160574
      oprot.writeI64(this.salesRecordNumber);
-
 
160575
      oprot.writeFieldEnd();
-
 
160576
      if (this.listingId != null) {
-
 
160577
        oprot.writeFieldBegin(LISTING_ID_FIELD_DESC);
-
 
160578
        oprot.writeString(this.listingId);
-
 
160579
        oprot.writeFieldEnd();
-
 
160580
      }
-
 
160581
      oprot.writeFieldStop();
-
 
160582
      oprot.writeStructEnd();
-
 
160583
    }
-
 
160584
 
-
 
160585
    @Override
-
 
160586
    public String toString() {
-
 
160587
      StringBuilder sb = new StringBuilder("getEbayOrder_args(");
-
 
160588
      boolean first = true;
-
 
160589
 
-
 
160590
      sb.append("salesRecordNumber:");
-
 
160591
      sb.append(this.salesRecordNumber);
-
 
160592
      first = false;
-
 
160593
      if (!first) sb.append(", ");
-
 
160594
      sb.append("listingId:");
-
 
160595
      if (this.listingId == null) {
-
 
160596
        sb.append("null");
-
 
160597
      } else {
-
 
160598
        sb.append(this.listingId);
-
 
160599
      }
-
 
160600
      first = false;
-
 
160601
      sb.append(")");
-
 
160602
      return sb.toString();
-
 
160603
    }
-
 
160604
 
-
 
160605
    public void validate() throws org.apache.thrift.TException {
-
 
160606
      // check for required fields
-
 
160607
    }
-
 
160608
 
-
 
160609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
160610
      try {
-
 
160611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
160612
      } catch (org.apache.thrift.TException te) {
-
 
160613
        throw new java.io.IOException(te);
-
 
160614
      }
-
 
160615
    }
-
 
160616
 
-
 
160617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
160618
      try {
-
 
160619
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
160620
        __isset_bit_vector = new BitSet(1);
-
 
160621
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
160622
      } catch (org.apache.thrift.TException te) {
-
 
160623
        throw new java.io.IOException(te);
-
 
160624
      }
-
 
160625
    }
-
 
160626
 
-
 
160627
  }
-
 
160628
 
-
 
160629
  public static class getEbayOrder_result implements org.apache.thrift.TBase<getEbayOrder_result, getEbayOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
160630
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEbayOrder_result");
-
 
160631
 
-
 
160632
    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);
-
 
160633
 
-
 
160634
    private EbayOrder success; // required
-
 
160635
 
-
 
160636
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
160637
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
160638
      SUCCESS((short)0, "success");
-
 
160639
 
-
 
160640
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
160641
 
-
 
160642
      static {
-
 
160643
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
160644
          byName.put(field.getFieldName(), field);
-
 
160645
        }
-
 
160646
      }
-
 
160647
 
-
 
160648
      /**
-
 
160649
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
160650
       */
-
 
160651
      public static _Fields findByThriftId(int fieldId) {
-
 
160652
        switch(fieldId) {
-
 
160653
          case 0: // SUCCESS
-
 
160654
            return SUCCESS;
-
 
160655
          default:
-
 
160656
            return null;
-
 
160657
        }
-
 
160658
      }
-
 
160659
 
-
 
160660
      /**
-
 
160661
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
160662
       * if it is not found.
-
 
160663
       */
-
 
160664
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
160665
        _Fields fields = findByThriftId(fieldId);
-
 
160666
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
160667
        return fields;
-
 
160668
      }
-
 
160669
 
-
 
160670
      /**
-
 
160671
       * Find the _Fields constant that matches name, or null if its not found.
-
 
160672
       */
-
 
160673
      public static _Fields findByName(String name) {
-
 
160674
        return byName.get(name);
-
 
160675
      }
-
 
160676
 
-
 
160677
      private final short _thriftId;
-
 
160678
      private final String _fieldName;
-
 
160679
 
-
 
160680
      _Fields(short thriftId, String fieldName) {
-
 
160681
        _thriftId = thriftId;
-
 
160682
        _fieldName = fieldName;
-
 
160683
      }
-
 
160684
 
-
 
160685
      public short getThriftFieldId() {
-
 
160686
        return _thriftId;
-
 
160687
      }
-
 
160688
 
-
 
160689
      public String getFieldName() {
-
 
160690
        return _fieldName;
-
 
160691
      }
-
 
160692
    }
-
 
160693
 
-
 
160694
    // isset id assignments
-
 
160695
 
-
 
160696
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
160697
    static {
-
 
160698
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
160699
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160700
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayOrder.class)));
-
 
160701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
160702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEbayOrder_result.class, metaDataMap);
-
 
160703
    }
-
 
160704
 
-
 
160705
    public getEbayOrder_result() {
-
 
160706
    }
-
 
160707
 
-
 
160708
    public getEbayOrder_result(
-
 
160709
      EbayOrder success)
-
 
160710
    {
-
 
160711
      this();
-
 
160712
      this.success = success;
-
 
160713
    }
-
 
160714
 
-
 
160715
    /**
-
 
160716
     * Performs a deep copy on <i>other</i>.
-
 
160717
     */
-
 
160718
    public getEbayOrder_result(getEbayOrder_result other) {
-
 
160719
      if (other.isSetSuccess()) {
-
 
160720
        this.success = new EbayOrder(other.success);
-
 
160721
      }
-
 
160722
    }
-
 
160723
 
-
 
160724
    public getEbayOrder_result deepCopy() {
-
 
160725
      return new getEbayOrder_result(this);
-
 
160726
    }
-
 
160727
 
-
 
160728
    @Override
-
 
160729
    public void clear() {
-
 
160730
      this.success = null;
-
 
160731
    }
-
 
160732
 
-
 
160733
    public EbayOrder getSuccess() {
-
 
160734
      return this.success;
-
 
160735
    }
-
 
160736
 
-
 
160737
    public void setSuccess(EbayOrder success) {
-
 
160738
      this.success = success;
-
 
160739
    }
-
 
160740
 
-
 
160741
    public void unsetSuccess() {
-
 
160742
      this.success = null;
-
 
160743
    }
-
 
160744
 
-
 
160745
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
160746
    public boolean isSetSuccess() {
-
 
160747
      return this.success != null;
-
 
160748
    }
-
 
160749
 
-
 
160750
    public void setSuccessIsSet(boolean value) {
-
 
160751
      if (!value) {
-
 
160752
        this.success = null;
-
 
160753
      }
-
 
160754
    }
-
 
160755
 
-
 
160756
    public void setFieldValue(_Fields field, Object value) {
-
 
160757
      switch (field) {
-
 
160758
      case SUCCESS:
-
 
160759
        if (value == null) {
-
 
160760
          unsetSuccess();
-
 
160761
        } else {
-
 
160762
          setSuccess((EbayOrder)value);
-
 
160763
        }
-
 
160764
        break;
-
 
160765
 
-
 
160766
      }
-
 
160767
    }
-
 
160768
 
-
 
160769
    public Object getFieldValue(_Fields field) {
-
 
160770
      switch (field) {
-
 
160771
      case SUCCESS:
-
 
160772
        return getSuccess();
-
 
160773
 
-
 
160774
      }
-
 
160775
      throw new IllegalStateException();
-
 
160776
    }
-
 
160777
 
-
 
160778
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
160779
    public boolean isSet(_Fields field) {
-
 
160780
      if (field == null) {
-
 
160781
        throw new IllegalArgumentException();
-
 
160782
      }
-
 
160783
 
-
 
160784
      switch (field) {
-
 
160785
      case SUCCESS:
-
 
160786
        return isSetSuccess();
-
 
160787
      }
-
 
160788
      throw new IllegalStateException();
-
 
160789
    }
-
 
160790
 
-
 
160791
    @Override
-
 
160792
    public boolean equals(Object that) {
-
 
160793
      if (that == null)
-
 
160794
        return false;
-
 
160795
      if (that instanceof getEbayOrder_result)
-
 
160796
        return this.equals((getEbayOrder_result)that);
-
 
160797
      return false;
-
 
160798
    }
-
 
160799
 
-
 
160800
    public boolean equals(getEbayOrder_result that) {
-
 
160801
      if (that == null)
-
 
160802
        return false;
-
 
160803
 
-
 
160804
      boolean this_present_success = true && this.isSetSuccess();
-
 
160805
      boolean that_present_success = true && that.isSetSuccess();
-
 
160806
      if (this_present_success || that_present_success) {
-
 
160807
        if (!(this_present_success && that_present_success))
-
 
160808
          return false;
-
 
160809
        if (!this.success.equals(that.success))
-
 
160810
          return false;
-
 
160811
      }
-
 
160812
 
-
 
160813
      return true;
-
 
160814
    }
-
 
160815
 
-
 
160816
    @Override
-
 
160817
    public int hashCode() {
-
 
160818
      return 0;
-
 
160819
    }
-
 
160820
 
-
 
160821
    public int compareTo(getEbayOrder_result other) {
-
 
160822
      if (!getClass().equals(other.getClass())) {
-
 
160823
        return getClass().getName().compareTo(other.getClass().getName());
-
 
160824
      }
-
 
160825
 
-
 
160826
      int lastComparison = 0;
-
 
160827
      getEbayOrder_result typedOther = (getEbayOrder_result)other;
-
 
160828
 
-
 
160829
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
160830
      if (lastComparison != 0) {
-
 
160831
        return lastComparison;
-
 
160832
      }
-
 
160833
      if (isSetSuccess()) {
-
 
160834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
160835
        if (lastComparison != 0) {
-
 
160836
          return lastComparison;
-
 
160837
        }
-
 
160838
      }
-
 
160839
      return 0;
-
 
160840
    }
-
 
160841
 
-
 
160842
    public _Fields fieldForId(int fieldId) {
-
 
160843
      return _Fields.findByThriftId(fieldId);
-
 
160844
    }
-
 
160845
 
-
 
160846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
160847
      org.apache.thrift.protocol.TField field;
-
 
160848
      iprot.readStructBegin();
-
 
160849
      while (true)
-
 
160850
      {
-
 
160851
        field = iprot.readFieldBegin();
-
 
160852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
160853
          break;
-
 
160854
        }
-
 
160855
        switch (field.id) {
-
 
160856
          case 0: // SUCCESS
-
 
160857
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
160858
              this.success = new EbayOrder();
-
 
160859
              this.success.read(iprot);
-
 
160860
            } else { 
-
 
160861
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160862
            }
-
 
160863
            break;
-
 
160864
          default:
-
 
160865
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
160866
        }
-
 
160867
        iprot.readFieldEnd();
-
 
160868
      }
-
 
160869
      iprot.readStructEnd();
-
 
160870
      validate();
-
 
160871
    }
-
 
160872
 
-
 
160873
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
160874
      oprot.writeStructBegin(STRUCT_DESC);
-
 
160875
 
-
 
160876
      if (this.isSetSuccess()) {
-
 
160877
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
160878
        this.success.write(oprot);
-
 
160879
        oprot.writeFieldEnd();
-
 
160880
      }
-
 
160881
      oprot.writeFieldStop();
-
 
160882
      oprot.writeStructEnd();
-
 
160883
    }
-
 
160884
 
-
 
160885
    @Override
-
 
160886
    public String toString() {
-
 
160887
      StringBuilder sb = new StringBuilder("getEbayOrder_result(");
-
 
160888
      boolean first = true;
-
 
160889
 
-
 
160890
      sb.append("success:");
-
 
160891
      if (this.success == null) {
-
 
160892
        sb.append("null");
-
 
160893
      } else {
-
 
160894
        sb.append(this.success);
-
 
160895
      }
-
 
160896
      first = false;
-
 
160897
      sb.append(")");
-
 
160898
      return sb.toString();
-
 
160899
    }
-
 
160900
 
-
 
160901
    public void validate() throws org.apache.thrift.TException {
-
 
160902
      // check for required fields
-
 
160903
    }
-
 
160904
 
-
 
160905
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
160906
      try {
-
 
160907
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
160908
      } catch (org.apache.thrift.TException te) {
-
 
160909
        throw new java.io.IOException(te);
-
 
160910
      }
-
 
160911
    }
-
 
160912
 
-
 
160913
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
160914
      try {
-
 
160915
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
160916
      } catch (org.apache.thrift.TException te) {
-
 
160917
        throw new java.io.IOException(te);
-
 
160918
      }
-
 
160919
    }
-
 
160920
 
-
 
160921
  }
-
 
160922
 
-
 
160923
  public static class updateEbayOrder_args implements org.apache.thrift.TBase<updateEbayOrder_args, updateEbayOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
160924
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateEbayOrder_args");
-
 
160925
 
-
 
160926
    private static final org.apache.thrift.protocol.TField EBAY_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
160927
 
-
 
160928
    private EbayOrder ebayOrder; // required
-
 
160929
 
-
 
160930
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
160931
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
160932
      EBAY_ORDER((short)1, "ebayOrder");
-
 
160933
 
-
 
160934
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
160935
 
-
 
160936
      static {
-
 
160937
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
160938
          byName.put(field.getFieldName(), field);
-
 
160939
        }
-
 
160940
      }
-
 
160941
 
-
 
160942
      /**
-
 
160943
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
160944
       */
-
 
160945
      public static _Fields findByThriftId(int fieldId) {
-
 
160946
        switch(fieldId) {
-
 
160947
          case 1: // EBAY_ORDER
-
 
160948
            return EBAY_ORDER;
-
 
160949
          default:
-
 
160950
            return null;
-
 
160951
        }
-
 
160952
      }
-
 
160953
 
-
 
160954
      /**
-
 
160955
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
160956
       * if it is not found.
-
 
160957
       */
-
 
160958
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
160959
        _Fields fields = findByThriftId(fieldId);
-
 
160960
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
160961
        return fields;
-
 
160962
      }
-
 
160963
 
-
 
160964
      /**
-
 
160965
       * Find the _Fields constant that matches name, or null if its not found.
-
 
160966
       */
-
 
160967
      public static _Fields findByName(String name) {
-
 
160968
        return byName.get(name);
-
 
160969
      }
-
 
160970
 
-
 
160971
      private final short _thriftId;
-
 
160972
      private final String _fieldName;
-
 
160973
 
-
 
160974
      _Fields(short thriftId, String fieldName) {
-
 
160975
        _thriftId = thriftId;
-
 
160976
        _fieldName = fieldName;
-
 
160977
      }
-
 
160978
 
-
 
160979
      public short getThriftFieldId() {
-
 
160980
        return _thriftId;
-
 
160981
      }
-
 
160982
 
-
 
160983
      public String getFieldName() {
-
 
160984
        return _fieldName;
-
 
160985
      }
-
 
160986
    }
-
 
160987
 
-
 
160988
    // isset id assignments
-
 
160989
 
-
 
160990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
160991
    static {
-
 
160992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
160993
      tmpMap.put(_Fields.EBAY_ORDER, new org.apache.thrift.meta_data.FieldMetaData("ebayOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160994
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EbayOrder.class)));
-
 
160995
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
160996
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateEbayOrder_args.class, metaDataMap);
-
 
160997
    }
-
 
160998
 
-
 
160999
    public updateEbayOrder_args() {
-
 
161000
    }
-
 
161001
 
-
 
161002
    public updateEbayOrder_args(
-
 
161003
      EbayOrder ebayOrder)
-
 
161004
    {
-
 
161005
      this();
-
 
161006
      this.ebayOrder = ebayOrder;
-
 
161007
    }
-
 
161008
 
-
 
161009
    /**
-
 
161010
     * Performs a deep copy on <i>other</i>.
-
 
161011
     */
-
 
161012
    public updateEbayOrder_args(updateEbayOrder_args other) {
-
 
161013
      if (other.isSetEbayOrder()) {
-
 
161014
        this.ebayOrder = new EbayOrder(other.ebayOrder);
-
 
161015
      }
-
 
161016
    }
-
 
161017
 
-
 
161018
    public updateEbayOrder_args deepCopy() {
-
 
161019
      return new updateEbayOrder_args(this);
-
 
161020
    }
-
 
161021
 
-
 
161022
    @Override
-
 
161023
    public void clear() {
-
 
161024
      this.ebayOrder = null;
-
 
161025
    }
-
 
161026
 
-
 
161027
    public EbayOrder getEbayOrder() {
-
 
161028
      return this.ebayOrder;
-
 
161029
    }
-
 
161030
 
-
 
161031
    public void setEbayOrder(EbayOrder ebayOrder) {
-
 
161032
      this.ebayOrder = ebayOrder;
-
 
161033
    }
-
 
161034
 
-
 
161035
    public void unsetEbayOrder() {
-
 
161036
      this.ebayOrder = null;
-
 
161037
    }
-
 
161038
 
-
 
161039
    /** Returns true if field ebayOrder is set (has been assigned a value) and false otherwise */
-
 
161040
    public boolean isSetEbayOrder() {
-
 
161041
      return this.ebayOrder != null;
-
 
161042
    }
-
 
161043
 
-
 
161044
    public void setEbayOrderIsSet(boolean value) {
-
 
161045
      if (!value) {
-
 
161046
        this.ebayOrder = null;
-
 
161047
      }
-
 
161048
    }
-
 
161049
 
-
 
161050
    public void setFieldValue(_Fields field, Object value) {
-
 
161051
      switch (field) {
-
 
161052
      case EBAY_ORDER:
-
 
161053
        if (value == null) {
-
 
161054
          unsetEbayOrder();
-
 
161055
        } else {
-
 
161056
          setEbayOrder((EbayOrder)value);
-
 
161057
        }
-
 
161058
        break;
-
 
161059
 
-
 
161060
      }
-
 
161061
    }
-
 
161062
 
-
 
161063
    public Object getFieldValue(_Fields field) {
-
 
161064
      switch (field) {
-
 
161065
      case EBAY_ORDER:
-
 
161066
        return getEbayOrder();
-
 
161067
 
-
 
161068
      }
-
 
161069
      throw new IllegalStateException();
-
 
161070
    }
-
 
161071
 
-
 
161072
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
161073
    public boolean isSet(_Fields field) {
-
 
161074
      if (field == null) {
-
 
161075
        throw new IllegalArgumentException();
-
 
161076
      }
-
 
161077
 
-
 
161078
      switch (field) {
-
 
161079
      case EBAY_ORDER:
-
 
161080
        return isSetEbayOrder();
-
 
161081
      }
-
 
161082
      throw new IllegalStateException();
-
 
161083
    }
-
 
161084
 
-
 
161085
    @Override
-
 
161086
    public boolean equals(Object that) {
-
 
161087
      if (that == null)
-
 
161088
        return false;
-
 
161089
      if (that instanceof updateEbayOrder_args)
-
 
161090
        return this.equals((updateEbayOrder_args)that);
-
 
161091
      return false;
-
 
161092
    }
-
 
161093
 
-
 
161094
    public boolean equals(updateEbayOrder_args that) {
-
 
161095
      if (that == null)
-
 
161096
        return false;
-
 
161097
 
-
 
161098
      boolean this_present_ebayOrder = true && this.isSetEbayOrder();
-
 
161099
      boolean that_present_ebayOrder = true && that.isSetEbayOrder();
-
 
161100
      if (this_present_ebayOrder || that_present_ebayOrder) {
-
 
161101
        if (!(this_present_ebayOrder && that_present_ebayOrder))
-
 
161102
          return false;
-
 
161103
        if (!this.ebayOrder.equals(that.ebayOrder))
-
 
161104
          return false;
-
 
161105
      }
-
 
161106
 
-
 
161107
      return true;
-
 
161108
    }
-
 
161109
 
-
 
161110
    @Override
-
 
161111
    public int hashCode() {
-
 
161112
      return 0;
-
 
161113
    }
-
 
161114
 
-
 
161115
    public int compareTo(updateEbayOrder_args other) {
-
 
161116
      if (!getClass().equals(other.getClass())) {
-
 
161117
        return getClass().getName().compareTo(other.getClass().getName());
-
 
161118
      }
-
 
161119
 
-
 
161120
      int lastComparison = 0;
-
 
161121
      updateEbayOrder_args typedOther = (updateEbayOrder_args)other;
-
 
161122
 
-
 
161123
      lastComparison = Boolean.valueOf(isSetEbayOrder()).compareTo(typedOther.isSetEbayOrder());
-
 
161124
      if (lastComparison != 0) {
-
 
161125
        return lastComparison;
-
 
161126
      }
-
 
161127
      if (isSetEbayOrder()) {
-
 
161128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayOrder, typedOther.ebayOrder);
-
 
161129
        if (lastComparison != 0) {
-
 
161130
          return lastComparison;
-
 
161131
        }
-
 
161132
      }
-
 
161133
      return 0;
-
 
161134
    }
-
 
161135
 
-
 
161136
    public _Fields fieldForId(int fieldId) {
-
 
161137
      return _Fields.findByThriftId(fieldId);
-
 
161138
    }
-
 
161139
 
-
 
161140
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
161141
      org.apache.thrift.protocol.TField field;
-
 
161142
      iprot.readStructBegin();
-
 
161143
      while (true)
-
 
161144
      {
-
 
161145
        field = iprot.readFieldBegin();
-
 
161146
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
161147
          break;
-
 
161148
        }
-
 
161149
        switch (field.id) {
-
 
161150
          case 1: // EBAY_ORDER
-
 
161151
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
161152
              this.ebayOrder = new EbayOrder();
-
 
161153
              this.ebayOrder.read(iprot);
-
 
161154
            } else { 
-
 
161155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
161156
            }
-
 
161157
            break;
-
 
161158
          default:
-
 
161159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
161160
        }
-
 
161161
        iprot.readFieldEnd();
-
 
161162
      }
-
 
161163
      iprot.readStructEnd();
-
 
161164
      validate();
-
 
161165
    }
-
 
161166
 
-
 
161167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
161168
      validate();
-
 
161169
 
-
 
161170
      oprot.writeStructBegin(STRUCT_DESC);
-
 
161171
      if (this.ebayOrder != null) {
-
 
161172
        oprot.writeFieldBegin(EBAY_ORDER_FIELD_DESC);
-
 
161173
        this.ebayOrder.write(oprot);
-
 
161174
        oprot.writeFieldEnd();
-
 
161175
      }
-
 
161176
      oprot.writeFieldStop();
-
 
161177
      oprot.writeStructEnd();
-
 
161178
    }
-
 
161179
 
-
 
161180
    @Override
-
 
161181
    public String toString() {
-
 
161182
      StringBuilder sb = new StringBuilder("updateEbayOrder_args(");
-
 
161183
      boolean first = true;
-
 
161184
 
-
 
161185
      sb.append("ebayOrder:");
-
 
161186
      if (this.ebayOrder == null) {
-
 
161187
        sb.append("null");
-
 
161188
      } else {
-
 
161189
        sb.append(this.ebayOrder);
-
 
161190
      }
-
 
161191
      first = false;
-
 
161192
      sb.append(")");
-
 
161193
      return sb.toString();
-
 
161194
    }
-
 
161195
 
-
 
161196
    public void validate() throws org.apache.thrift.TException {
-
 
161197
      // check for required fields
-
 
161198
    }
-
 
161199
 
-
 
161200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
161201
      try {
-
 
161202
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
161203
      } catch (org.apache.thrift.TException te) {
-
 
161204
        throw new java.io.IOException(te);
-
 
161205
      }
-
 
161206
    }
-
 
161207
 
-
 
161208
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
161209
      try {
-
 
161210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
161211
      } catch (org.apache.thrift.TException te) {
-
 
161212
        throw new java.io.IOException(te);
-
 
161213
      }
-
 
161214
    }
-
 
161215
 
-
 
161216
  }
-
 
161217
 
-
 
161218
  public static class updateEbayOrder_result implements org.apache.thrift.TBase<updateEbayOrder_result, updateEbayOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
161219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateEbayOrder_result");
-
 
161220
 
-
 
161221
 
-
 
161222
 
-
 
161223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
161224
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
161225
;
-
 
161226
 
-
 
161227
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
161228
 
-
 
161229
      static {
-
 
161230
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
161231
          byName.put(field.getFieldName(), field);
-
 
161232
        }
-
 
161233
      }
-
 
161234
 
-
 
161235
      /**
-
 
161236
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
161237
       */
-
 
161238
      public static _Fields findByThriftId(int fieldId) {
-
 
161239
        switch(fieldId) {
-
 
161240
          default:
-
 
161241
            return null;
-
 
161242
        }
-
 
161243
      }
-
 
161244
 
-
 
161245
      /**
-
 
161246
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
161247
       * if it is not found.
-
 
161248
       */
-
 
161249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
161250
        _Fields fields = findByThriftId(fieldId);
-
 
161251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
161252
        return fields;
-
 
161253
      }
-
 
161254
 
-
 
161255
      /**
-
 
161256
       * Find the _Fields constant that matches name, or null if its not found.
-
 
161257
       */
-
 
161258
      public static _Fields findByName(String name) {
-
 
161259
        return byName.get(name);
-
 
161260
      }
-
 
161261
 
-
 
161262
      private final short _thriftId;
-
 
161263
      private final String _fieldName;
-
 
161264
 
-
 
161265
      _Fields(short thriftId, String fieldName) {
-
 
161266
        _thriftId = thriftId;
-
 
161267
        _fieldName = fieldName;
-
 
161268
      }
-
 
161269
 
-
 
161270
      public short getThriftFieldId() {
-
 
161271
        return _thriftId;
-
 
161272
      }
-
 
161273
 
-
 
161274
      public String getFieldName() {
-
 
161275
        return _fieldName;
-
 
161276
      }
-
 
161277
    }
-
 
161278
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
161279
    static {
-
 
161280
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
161281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
161282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateEbayOrder_result.class, metaDataMap);
-
 
161283
    }
-
 
161284
 
-
 
161285
    public updateEbayOrder_result() {
-
 
161286
    }
-
 
161287
 
-
 
161288
    /**
-
 
161289
     * Performs a deep copy on <i>other</i>.
-
 
161290
     */
-
 
161291
    public updateEbayOrder_result(updateEbayOrder_result other) {
-
 
161292
    }
-
 
161293
 
-
 
161294
    public updateEbayOrder_result deepCopy() {
-
 
161295
      return new updateEbayOrder_result(this);
-
 
161296
    }
-
 
161297
 
-
 
161298
    @Override
-
 
161299
    public void clear() {
-
 
161300
    }
-
 
161301
 
-
 
161302
    public void setFieldValue(_Fields field, Object value) {
-
 
161303
      switch (field) {
-
 
161304
      }
-
 
161305
    }
-
 
161306
 
-
 
161307
    public Object getFieldValue(_Fields field) {
-
 
161308
      switch (field) {
-
 
161309
      }
-
 
161310
      throw new IllegalStateException();
-
 
161311
    }
-
 
161312
 
-
 
161313
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
161314
    public boolean isSet(_Fields field) {
-
 
161315
      if (field == null) {
-
 
161316
        throw new IllegalArgumentException();
-
 
161317
      }
-
 
161318
 
-
 
161319
      switch (field) {
-
 
161320
      }
-
 
161321
      throw new IllegalStateException();
-
 
161322
    }
-
 
161323
 
-
 
161324
    @Override
-
 
161325
    public boolean equals(Object that) {
-
 
161326
      if (that == null)
-
 
161327
        return false;
-
 
161328
      if (that instanceof updateEbayOrder_result)
-
 
161329
        return this.equals((updateEbayOrder_result)that);
-
 
161330
      return false;
-
 
161331
    }
-
 
161332
 
-
 
161333
    public boolean equals(updateEbayOrder_result that) {
-
 
161334
      if (that == null)
-
 
161335
        return false;
-
 
161336
 
-
 
161337
      return true;
-
 
161338
    }
-
 
161339
 
-
 
161340
    @Override
-
 
161341
    public int hashCode() {
-
 
161342
      return 0;
-
 
161343
    }
-
 
161344
 
-
 
161345
    public int compareTo(updateEbayOrder_result other) {
-
 
161346
      if (!getClass().equals(other.getClass())) {
-
 
161347
        return getClass().getName().compareTo(other.getClass().getName());
-
 
161348
      }
-
 
161349
 
-
 
161350
      int lastComparison = 0;
-
 
161351
      updateEbayOrder_result typedOther = (updateEbayOrder_result)other;
-
 
161352
 
-
 
161353
      return 0;
-
 
161354
    }
-
 
161355
 
-
 
161356
    public _Fields fieldForId(int fieldId) {
-
 
161357
      return _Fields.findByThriftId(fieldId);
-
 
161358
    }
-
 
161359
 
-
 
161360
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
161361
      org.apache.thrift.protocol.TField field;
-
 
161362
      iprot.readStructBegin();
-
 
161363
      while (true)
-
 
161364
      {
-
 
161365
        field = iprot.readFieldBegin();
-
 
161366
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
161367
          break;
-
 
161368
        }
-
 
161369
        switch (field.id) {
-
 
161370
          default:
-
 
161371
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
161372
        }
-
 
161373
        iprot.readFieldEnd();
-
 
161374
      }
-
 
161375
      iprot.readStructEnd();
-
 
161376
      validate();
-
 
161377
    }
-
 
161378
 
-
 
161379
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
161380
      oprot.writeStructBegin(STRUCT_DESC);
-
 
161381
 
-
 
161382
      oprot.writeFieldStop();
-
 
161383
      oprot.writeStructEnd();
-
 
161384
    }
-
 
161385
 
-
 
161386
    @Override
-
 
161387
    public String toString() {
-
 
161388
      StringBuilder sb = new StringBuilder("updateEbayOrder_result(");
-
 
161389
      boolean first = true;
-
 
161390
 
-
 
161391
      sb.append(")");
-
 
161392
      return sb.toString();
-
 
161393
    }
-
 
161394
 
-
 
161395
    public void validate() throws org.apache.thrift.TException {
-
 
161396
      // check for required fields
-
 
161397
    }
-
 
161398
 
-
 
161399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
161400
      try {
-
 
161401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
161402
      } catch (org.apache.thrift.TException te) {
-
 
161403
        throw new java.io.IOException(te);
-
 
161404
      }
-
 
161405
    }
-
 
161406
 
-
 
161407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
161408
      try {
-
 
161409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
161410
      } catch (org.apache.thrift.TException te) {
-
 
161411
        throw new java.io.IOException(te);
-
 
161412
      }
-
 
161413
    }
-
 
161414
 
-
 
161415
  }
-
 
161416
 
-
 
161417
  public static class ebayOrderExists_args implements org.apache.thrift.TBase<ebayOrderExists_args, ebayOrderExists_args._Fields>, java.io.Serializable, Cloneable   {
-
 
161418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ebayOrderExists_args");
-
 
161419
 
-
 
161420
    private static final org.apache.thrift.protocol.TField SALES_REC_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("salesRecNumber", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
161421
    private static final org.apache.thrift.protocol.TField EBAY_LISTING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayListingId", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
161422
 
-
 
161423
    private long salesRecNumber; // required
-
 
161424
    private String ebayListingId; // required
-
 
161425
 
-
 
161426
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
161427
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
161428
      SALES_REC_NUMBER((short)1, "salesRecNumber"),
-
 
161429
      EBAY_LISTING_ID((short)2, "ebayListingId");
-
 
161430
 
-
 
161431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
161432
 
-
 
161433
      static {
-
 
161434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
161435
          byName.put(field.getFieldName(), field);
-
 
161436
        }
-
 
161437
      }
-
 
161438
 
-
 
161439
      /**
-
 
161440
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
161441
       */
-
 
161442
      public static _Fields findByThriftId(int fieldId) {
-
 
161443
        switch(fieldId) {
-
 
161444
          case 1: // SALES_REC_NUMBER
-
 
161445
            return SALES_REC_NUMBER;
-
 
161446
          case 2: // EBAY_LISTING_ID
-
 
161447
            return EBAY_LISTING_ID;
-
 
161448
          default:
-
 
161449
            return null;
-
 
161450
        }
-
 
161451
      }
-
 
161452
 
-
 
161453
      /**
-
 
161454
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
161455
       * if it is not found.
-
 
161456
       */
-
 
161457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
161458
        _Fields fields = findByThriftId(fieldId);
-
 
161459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
161460
        return fields;
-
 
161461
      }
-
 
161462
 
-
 
161463
      /**
-
 
161464
       * Find the _Fields constant that matches name, or null if its not found.
-
 
161465
       */
-
 
161466
      public static _Fields findByName(String name) {
-
 
161467
        return byName.get(name);
-
 
161468
      }
-
 
161469
 
-
 
161470
      private final short _thriftId;
-
 
161471
      private final String _fieldName;
-
 
161472
 
-
 
161473
      _Fields(short thriftId, String fieldName) {
-
 
161474
        _thriftId = thriftId;
-
 
161475
        _fieldName = fieldName;
-
 
161476
      }
-
 
161477
 
-
 
161478
      public short getThriftFieldId() {
-
 
161479
        return _thriftId;
-
 
161480
      }
-
 
161481
 
-
 
161482
      public String getFieldName() {
-
 
161483
        return _fieldName;
-
 
161484
      }
-
 
161485
    }
-
 
161486
 
-
 
161487
    // isset id assignments
-
 
161488
    private static final int __SALESRECNUMBER_ISSET_ID = 0;
-
 
161489
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
161490
 
-
 
161491
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
161492
    static {
-
 
161493
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
161494
      tmpMap.put(_Fields.SALES_REC_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("salesRecNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
161495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
161496
      tmpMap.put(_Fields.EBAY_LISTING_ID, new org.apache.thrift.meta_data.FieldMetaData("ebayListingId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
161497
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
161498
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
161499
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ebayOrderExists_args.class, metaDataMap);
-
 
161500
    }
-
 
161501
 
-
 
161502
    public ebayOrderExists_args() {
-
 
161503
    }
-
 
161504
 
-
 
161505
    public ebayOrderExists_args(
-
 
161506
      long salesRecNumber,
-
 
161507
      String ebayListingId)
-
 
161508
    {
-
 
161509
      this();
-
 
161510
      this.salesRecNumber = salesRecNumber;
-
 
161511
      setSalesRecNumberIsSet(true);
-
 
161512
      this.ebayListingId = ebayListingId;
-
 
161513
    }
-
 
161514
 
-
 
161515
    /**
-
 
161516
     * Performs a deep copy on <i>other</i>.
-
 
161517
     */
-
 
161518
    public ebayOrderExists_args(ebayOrderExists_args other) {
-
 
161519
      __isset_bit_vector.clear();
-
 
161520
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
161521
      this.salesRecNumber = other.salesRecNumber;
-
 
161522
      if (other.isSetEbayListingId()) {
-
 
161523
        this.ebayListingId = other.ebayListingId;
-
 
161524
      }
-
 
161525
    }
-
 
161526
 
-
 
161527
    public ebayOrderExists_args deepCopy() {
-
 
161528
      return new ebayOrderExists_args(this);
-
 
161529
    }
-
 
161530
 
-
 
161531
    @Override
-
 
161532
    public void clear() {
-
 
161533
      setSalesRecNumberIsSet(false);
-
 
161534
      this.salesRecNumber = 0;
-
 
161535
      this.ebayListingId = null;
-
 
161536
    }
-
 
161537
 
-
 
161538
    public long getSalesRecNumber() {
-
 
161539
      return this.salesRecNumber;
-
 
161540
    }
-
 
161541
 
-
 
161542
    public void setSalesRecNumber(long salesRecNumber) {
-
 
161543
      this.salesRecNumber = salesRecNumber;
-
 
161544
      setSalesRecNumberIsSet(true);
-
 
161545
    }
-
 
161546
 
-
 
161547
    public void unsetSalesRecNumber() {
-
 
161548
      __isset_bit_vector.clear(__SALESRECNUMBER_ISSET_ID);
-
 
161549
    }
-
 
161550
 
-
 
161551
    /** Returns true if field salesRecNumber is set (has been assigned a value) and false otherwise */
-
 
161552
    public boolean isSetSalesRecNumber() {
-
 
161553
      return __isset_bit_vector.get(__SALESRECNUMBER_ISSET_ID);
-
 
161554
    }
-
 
161555
 
-
 
161556
    public void setSalesRecNumberIsSet(boolean value) {
-
 
161557
      __isset_bit_vector.set(__SALESRECNUMBER_ISSET_ID, value);
-
 
161558
    }
-
 
161559
 
-
 
161560
    public String getEbayListingId() {
-
 
161561
      return this.ebayListingId;
-
 
161562
    }
-
 
161563
 
-
 
161564
    public void setEbayListingId(String ebayListingId) {
-
 
161565
      this.ebayListingId = ebayListingId;
-
 
161566
    }
-
 
161567
 
-
 
161568
    public void unsetEbayListingId() {
-
 
161569
      this.ebayListingId = null;
-
 
161570
    }
-
 
161571
 
-
 
161572
    /** Returns true if field ebayListingId is set (has been assigned a value) and false otherwise */
-
 
161573
    public boolean isSetEbayListingId() {
-
 
161574
      return this.ebayListingId != null;
-
 
161575
    }
-
 
161576
 
-
 
161577
    public void setEbayListingIdIsSet(boolean value) {
-
 
161578
      if (!value) {
-
 
161579
        this.ebayListingId = null;
-
 
161580
      }
-
 
161581
    }
-
 
161582
 
-
 
161583
    public void setFieldValue(_Fields field, Object value) {
-
 
161584
      switch (field) {
-
 
161585
      case SALES_REC_NUMBER:
-
 
161586
        if (value == null) {
-
 
161587
          unsetSalesRecNumber();
-
 
161588
        } else {
-
 
161589
          setSalesRecNumber((Long)value);
-
 
161590
        }
-
 
161591
        break;
-
 
161592
 
-
 
161593
      case EBAY_LISTING_ID:
-
 
161594
        if (value == null) {
-
 
161595
          unsetEbayListingId();
-
 
161596
        } else {
-
 
161597
          setEbayListingId((String)value);
-
 
161598
        }
-
 
161599
        break;
-
 
161600
 
-
 
161601
      }
-
 
161602
    }
-
 
161603
 
-
 
161604
    public Object getFieldValue(_Fields field) {
-
 
161605
      switch (field) {
-
 
161606
      case SALES_REC_NUMBER:
-
 
161607
        return Long.valueOf(getSalesRecNumber());
-
 
161608
 
-
 
161609
      case EBAY_LISTING_ID:
-
 
161610
        return getEbayListingId();
-
 
161611
 
-
 
161612
      }
-
 
161613
      throw new IllegalStateException();
-
 
161614
    }
-
 
161615
 
-
 
161616
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
161617
    public boolean isSet(_Fields field) {
-
 
161618
      if (field == null) {
-
 
161619
        throw new IllegalArgumentException();
-
 
161620
      }
-
 
161621
 
-
 
161622
      switch (field) {
-
 
161623
      case SALES_REC_NUMBER:
-
 
161624
        return isSetSalesRecNumber();
-
 
161625
      case EBAY_LISTING_ID:
-
 
161626
        return isSetEbayListingId();
-
 
161627
      }
-
 
161628
      throw new IllegalStateException();
-
 
161629
    }
-
 
161630
 
-
 
161631
    @Override
-
 
161632
    public boolean equals(Object that) {
-
 
161633
      if (that == null)
-
 
161634
        return false;
-
 
161635
      if (that instanceof ebayOrderExists_args)
-
 
161636
        return this.equals((ebayOrderExists_args)that);
-
 
161637
      return false;
-
 
161638
    }
-
 
161639
 
-
 
161640
    public boolean equals(ebayOrderExists_args that) {
-
 
161641
      if (that == null)
-
 
161642
        return false;
-
 
161643
 
-
 
161644
      boolean this_present_salesRecNumber = true;
-
 
161645
      boolean that_present_salesRecNumber = true;
-
 
161646
      if (this_present_salesRecNumber || that_present_salesRecNumber) {
-
 
161647
        if (!(this_present_salesRecNumber && that_present_salesRecNumber))
-
 
161648
          return false;
-
 
161649
        if (this.salesRecNumber != that.salesRecNumber)
-
 
161650
          return false;
-
 
161651
      }
-
 
161652
 
-
 
161653
      boolean this_present_ebayListingId = true && this.isSetEbayListingId();
-
 
161654
      boolean that_present_ebayListingId = true && that.isSetEbayListingId();
-
 
161655
      if (this_present_ebayListingId || that_present_ebayListingId) {
-
 
161656
        if (!(this_present_ebayListingId && that_present_ebayListingId))
-
 
161657
          return false;
-
 
161658
        if (!this.ebayListingId.equals(that.ebayListingId))
-
 
161659
          return false;
-
 
161660
      }
-
 
161661
 
-
 
161662
      return true;
-
 
161663
    }
-
 
161664
 
-
 
161665
    @Override
-
 
161666
    public int hashCode() {
-
 
161667
      return 0;
-
 
161668
    }
-
 
161669
 
-
 
161670
    public int compareTo(ebayOrderExists_args other) {
-
 
161671
      if (!getClass().equals(other.getClass())) {
-
 
161672
        return getClass().getName().compareTo(other.getClass().getName());
-
 
161673
      }
-
 
161674
 
-
 
161675
      int lastComparison = 0;
-
 
161676
      ebayOrderExists_args typedOther = (ebayOrderExists_args)other;
-
 
161677
 
-
 
161678
      lastComparison = Boolean.valueOf(isSetSalesRecNumber()).compareTo(typedOther.isSetSalesRecNumber());
-
 
161679
      if (lastComparison != 0) {
-
 
161680
        return lastComparison;
-
 
161681
      }
-
 
161682
      if (isSetSalesRecNumber()) {
-
 
161683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salesRecNumber, typedOther.salesRecNumber);
-
 
161684
        if (lastComparison != 0) {
-
 
161685
          return lastComparison;
-
 
161686
        }
-
 
161687
      }
-
 
161688
      lastComparison = Boolean.valueOf(isSetEbayListingId()).compareTo(typedOther.isSetEbayListingId());
-
 
161689
      if (lastComparison != 0) {
-
 
161690
        return lastComparison;
-
 
161691
      }
-
 
161692
      if (isSetEbayListingId()) {
-
 
161693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayListingId, typedOther.ebayListingId);
-
 
161694
        if (lastComparison != 0) {
-
 
161695
          return lastComparison;
-
 
161696
        }
-
 
161697
      }
-
 
161698
      return 0;
-
 
161699
    }
-
 
161700
 
-
 
161701
    public _Fields fieldForId(int fieldId) {
-
 
161702
      return _Fields.findByThriftId(fieldId);
-
 
161703
    }
-
 
161704
 
-
 
161705
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
161706
      org.apache.thrift.protocol.TField field;
-
 
161707
      iprot.readStructBegin();
-
 
161708
      while (true)
-
 
161709
      {
-
 
161710
        field = iprot.readFieldBegin();
-
 
161711
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
161712
          break;
-
 
161713
        }
-
 
161714
        switch (field.id) {
-
 
161715
          case 1: // SALES_REC_NUMBER
-
 
161716
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
161717
              this.salesRecNumber = iprot.readI64();
-
 
161718
              setSalesRecNumberIsSet(true);
-
 
161719
            } else { 
-
 
161720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
161721
            }
-
 
161722
            break;
-
 
161723
          case 2: // EBAY_LISTING_ID
-
 
161724
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
161725
              this.ebayListingId = iprot.readString();
-
 
161726
            } else { 
-
 
161727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
161728
            }
-
 
161729
            break;
-
 
161730
          default:
-
 
161731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
161732
        }
-
 
161733
        iprot.readFieldEnd();
-
 
161734
      }
-
 
161735
      iprot.readStructEnd();
-
 
161736
      validate();
-
 
161737
    }
-
 
161738
 
-
 
161739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
161740
      validate();
-
 
161741
 
-
 
161742
      oprot.writeStructBegin(STRUCT_DESC);
-
 
161743
      oprot.writeFieldBegin(SALES_REC_NUMBER_FIELD_DESC);
-
 
161744
      oprot.writeI64(this.salesRecNumber);
-
 
161745
      oprot.writeFieldEnd();
-
 
161746
      if (this.ebayListingId != null) {
-
 
161747
        oprot.writeFieldBegin(EBAY_LISTING_ID_FIELD_DESC);
-
 
161748
        oprot.writeString(this.ebayListingId);
-
 
161749
        oprot.writeFieldEnd();
-
 
161750
      }
-
 
161751
      oprot.writeFieldStop();
-
 
161752
      oprot.writeStructEnd();
-
 
161753
    }
-
 
161754
 
-
 
161755
    @Override
-
 
161756
    public String toString() {
-
 
161757
      StringBuilder sb = new StringBuilder("ebayOrderExists_args(");
-
 
161758
      boolean first = true;
-
 
161759
 
-
 
161760
      sb.append("salesRecNumber:");
-
 
161761
      sb.append(this.salesRecNumber);
-
 
161762
      first = false;
-
 
161763
      if (!first) sb.append(", ");
-
 
161764
      sb.append("ebayListingId:");
-
 
161765
      if (this.ebayListingId == null) {
-
 
161766
        sb.append("null");
-
 
161767
      } else {
-
 
161768
        sb.append(this.ebayListingId);
-
 
161769
      }
-
 
161770
      first = false;
-
 
161771
      sb.append(")");
-
 
161772
      return sb.toString();
-
 
161773
    }
-
 
161774
 
-
 
161775
    public void validate() throws org.apache.thrift.TException {
-
 
161776
      // check for required fields
-
 
161777
    }
-
 
161778
 
-
 
161779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
161780
      try {
-
 
161781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
161782
      } catch (org.apache.thrift.TException te) {
-
 
161783
        throw new java.io.IOException(te);
-
 
161784
      }
-
 
161785
    }
-
 
161786
 
-
 
161787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
161788
      try {
-
 
161789
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
161790
        __isset_bit_vector = new BitSet(1);
-
 
161791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
161792
      } catch (org.apache.thrift.TException te) {
-
 
161793
        throw new java.io.IOException(te);
-
 
161794
      }
-
 
161795
    }
-
 
161796
 
-
 
161797
  }
-
 
161798
 
-
 
161799
  public static class ebayOrderExists_result implements org.apache.thrift.TBase<ebayOrderExists_result, ebayOrderExists_result._Fields>, java.io.Serializable, Cloneable   {
-
 
161800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ebayOrderExists_result");
-
 
161801
 
-
 
161802
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
161803
 
-
 
161804
    private boolean success; // required
-
 
161805
 
-
 
161806
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
161807
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
161808
      SUCCESS((short)0, "success");
-
 
161809
 
-
 
161810
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
161811
 
-
 
161812
      static {
-
 
161813
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
161814
          byName.put(field.getFieldName(), field);
-
 
161815
        }
-
 
161816
      }
-
 
161817
 
-
 
161818
      /**
-
 
161819
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
161820
       */
-
 
161821
      public static _Fields findByThriftId(int fieldId) {
-
 
161822
        switch(fieldId) {
-
 
161823
          case 0: // SUCCESS
-
 
161824
            return SUCCESS;
-
 
161825
          default:
-
 
161826
            return null;
-
 
161827
        }
-
 
161828
      }
-
 
161829
 
-
 
161830
      /**
-
 
161831
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
161832
       * if it is not found.
-
 
161833
       */
-
 
161834
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
161835
        _Fields fields = findByThriftId(fieldId);
-
 
161836
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
161837
        return fields;
-
 
161838
      }
-
 
161839
 
-
 
161840
      /**
-
 
161841
       * Find the _Fields constant that matches name, or null if its not found.
-
 
161842
       */
-
 
161843
      public static _Fields findByName(String name) {
-
 
161844
        return byName.get(name);
-
 
161845
      }
-
 
161846
 
-
 
161847
      private final short _thriftId;
-
 
161848
      private final String _fieldName;
-
 
161849
 
-
 
161850
      _Fields(short thriftId, String fieldName) {
-
 
161851
        _thriftId = thriftId;
-
 
161852
        _fieldName = fieldName;
-
 
161853
      }
-
 
161854
 
-
 
161855
      public short getThriftFieldId() {
-
 
161856
        return _thriftId;
-
 
161857
      }
-
 
161858
 
-
 
161859
      public String getFieldName() {
-
 
161860
        return _fieldName;
-
 
161861
      }
-
 
161862
    }
-
 
161863
 
-
 
161864
    // isset id assignments
-
 
161865
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
161866
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
161867
 
-
 
161868
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
161869
    static {
-
 
161870
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
161871
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
161872
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
161873
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
161874
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ebayOrderExists_result.class, metaDataMap);
-
 
161875
    }
-
 
161876
 
-
 
161877
    public ebayOrderExists_result() {
-
 
161878
    }
-
 
161879
 
-
 
161880
    public ebayOrderExists_result(
-
 
161881
      boolean success)
-
 
161882
    {
-
 
161883
      this();
-
 
161884
      this.success = success;
-
 
161885
      setSuccessIsSet(true);
-
 
161886
    }
-
 
161887
 
-
 
161888
    /**
-
 
161889
     * Performs a deep copy on <i>other</i>.
-
 
161890
     */
-
 
161891
    public ebayOrderExists_result(ebayOrderExists_result other) {
-
 
161892
      __isset_bit_vector.clear();
-
 
161893
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
161894
      this.success = other.success;
-
 
161895
    }
-
 
161896
 
-
 
161897
    public ebayOrderExists_result deepCopy() {
-
 
161898
      return new ebayOrderExists_result(this);
-
 
161899
    }
-
 
161900
 
-
 
161901
    @Override
-
 
161902
    public void clear() {
-
 
161903
      setSuccessIsSet(false);
-
 
161904
      this.success = false;
-
 
161905
    }
-
 
161906
 
-
 
161907
    public boolean isSuccess() {
-
 
161908
      return this.success;
-
 
161909
    }
-
 
161910
 
-
 
161911
    public void setSuccess(boolean success) {
-
 
161912
      this.success = success;
-
 
161913
      setSuccessIsSet(true);
-
 
161914
    }
-
 
161915
 
-
 
161916
    public void unsetSuccess() {
-
 
161917
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
161918
    }
-
 
161919
 
-
 
161920
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
161921
    public boolean isSetSuccess() {
-
 
161922
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
161923
    }
-
 
161924
 
-
 
161925
    public void setSuccessIsSet(boolean value) {
-
 
161926
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
161927
    }
-
 
161928
 
-
 
161929
    public void setFieldValue(_Fields field, Object value) {
-
 
161930
      switch (field) {
-
 
161931
      case SUCCESS:
-
 
161932
        if (value == null) {
-
 
161933
          unsetSuccess();
-
 
161934
        } else {
-
 
161935
          setSuccess((Boolean)value);
-
 
161936
        }
-
 
161937
        break;
-
 
161938
 
-
 
161939
      }
-
 
161940
    }
-
 
161941
 
-
 
161942
    public Object getFieldValue(_Fields field) {
-
 
161943
      switch (field) {
-
 
161944
      case SUCCESS:
-
 
161945
        return Boolean.valueOf(isSuccess());
-
 
161946
 
-
 
161947
      }
-
 
161948
      throw new IllegalStateException();
-
 
161949
    }
-
 
161950
 
-
 
161951
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
161952
    public boolean isSet(_Fields field) {
-
 
161953
      if (field == null) {
-
 
161954
        throw new IllegalArgumentException();
-
 
161955
      }
-
 
161956
 
-
 
161957
      switch (field) {
-
 
161958
      case SUCCESS:
-
 
161959
        return isSetSuccess();
-
 
161960
      }
-
 
161961
      throw new IllegalStateException();
-
 
161962
    }
-
 
161963
 
-
 
161964
    @Override
-
 
161965
    public boolean equals(Object that) {
-
 
161966
      if (that == null)
-
 
161967
        return false;
-
 
161968
      if (that instanceof ebayOrderExists_result)
-
 
161969
        return this.equals((ebayOrderExists_result)that);
-
 
161970
      return false;
-
 
161971
    }
-
 
161972
 
-
 
161973
    public boolean equals(ebayOrderExists_result that) {
-
 
161974
      if (that == null)
-
 
161975
        return false;
-
 
161976
 
-
 
161977
      boolean this_present_success = true;
-
 
161978
      boolean that_present_success = true;
-
 
161979
      if (this_present_success || that_present_success) {
-
 
161980
        if (!(this_present_success && that_present_success))
-
 
161981
          return false;
-
 
161982
        if (this.success != that.success)
-
 
161983
          return false;
-
 
161984
      }
-
 
161985
 
-
 
161986
      return true;
-
 
161987
    }
-
 
161988
 
-
 
161989
    @Override
-
 
161990
    public int hashCode() {
-
 
161991
      return 0;
-
 
161992
    }
-
 
161993
 
-
 
161994
    public int compareTo(ebayOrderExists_result other) {
-
 
161995
      if (!getClass().equals(other.getClass())) {
-
 
161996
        return getClass().getName().compareTo(other.getClass().getName());
-
 
161997
      }
-
 
161998
 
-
 
161999
      int lastComparison = 0;
-
 
162000
      ebayOrderExists_result typedOther = (ebayOrderExists_result)other;
-
 
162001
 
-
 
162002
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
162003
      if (lastComparison != 0) {
-
 
162004
        return lastComparison;
-
 
162005
      }
-
 
162006
      if (isSetSuccess()) {
-
 
162007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
162008
        if (lastComparison != 0) {
-
 
162009
          return lastComparison;
-
 
162010
        }
-
 
162011
      }
-
 
162012
      return 0;
-
 
162013
    }
-
 
162014
 
-
 
162015
    public _Fields fieldForId(int fieldId) {
-
 
162016
      return _Fields.findByThriftId(fieldId);
-
 
162017
    }
-
 
162018
 
-
 
162019
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
162020
      org.apache.thrift.protocol.TField field;
-
 
162021
      iprot.readStructBegin();
-
 
162022
      while (true)
-
 
162023
      {
-
 
162024
        field = iprot.readFieldBegin();
-
 
162025
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
162026
          break;
-
 
162027
        }
-
 
162028
        switch (field.id) {
-
 
162029
          case 0: // SUCCESS
-
 
162030
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
162031
              this.success = iprot.readBool();
-
 
162032
              setSuccessIsSet(true);
-
 
162033
            } else { 
-
 
162034
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
162035
            }
-
 
162036
            break;
-
 
162037
          default:
-
 
162038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
162039
        }
-
 
162040
        iprot.readFieldEnd();
-
 
162041
      }
-
 
162042
      iprot.readStructEnd();
-
 
162043
      validate();
-
 
162044
    }
-
 
162045
 
-
 
162046
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
162047
      oprot.writeStructBegin(STRUCT_DESC);
-
 
162048
 
-
 
162049
      if (this.isSetSuccess()) {
-
 
162050
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
162051
        oprot.writeBool(this.success);
-
 
162052
        oprot.writeFieldEnd();
-
 
162053
      }
-
 
162054
      oprot.writeFieldStop();
-
 
162055
      oprot.writeStructEnd();
-
 
162056
    }
-
 
162057
 
-
 
162058
    @Override
-
 
162059
    public String toString() {
-
 
162060
      StringBuilder sb = new StringBuilder("ebayOrderExists_result(");
-
 
162061
      boolean first = true;
-
 
162062
 
-
 
162063
      sb.append("success:");
-
 
162064
      sb.append(this.success);
-
 
162065
      first = false;
-
 
162066
      sb.append(")");
-
 
162067
      return sb.toString();
-
 
162068
    }
-
 
162069
 
-
 
162070
    public void validate() throws org.apache.thrift.TException {
-
 
162071
      // check for required fields
-
 
162072
    }
-
 
162073
 
-
 
162074
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
162075
      try {
-
 
162076
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
162077
      } catch (org.apache.thrift.TException te) {
-
 
162078
        throw new java.io.IOException(te);
-
 
162079
      }
-
 
162080
    }
-
 
162081
 
-
 
162082
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
162083
      try {
-
 
162084
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
162085
      } catch (org.apache.thrift.TException te) {
-
 
162086
        throw new java.io.IOException(te);
-
 
162087
      }
-
 
162088
    }
-
 
162089
 
-
 
162090
  }
-
 
162091
 
-
 
162092
  public static class updateOrderForEbay_args implements org.apache.thrift.TBase<updateOrderForEbay_args, updateOrderForEbay_args._Fields>, java.io.Serializable, Cloneable   {
-
 
162093
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderForEbay_args");
-
 
162094
 
-
 
162095
    private static final org.apache.thrift.protocol.TField ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("order", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
162096
 
-
 
162097
    private Order order; // required
-
 
162098
 
-
 
162099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
162100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
162101
      ORDER((short)1, "order");
-
 
162102
 
-
 
162103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
162104
 
-
 
162105
      static {
-
 
162106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
162107
          byName.put(field.getFieldName(), field);
-
 
162108
        }
-
 
162109
      }
-
 
162110
 
-
 
162111
      /**
-
 
162112
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
162113
       */
-
 
162114
      public static _Fields findByThriftId(int fieldId) {
-
 
162115
        switch(fieldId) {
-
 
162116
          case 1: // ORDER
-
 
162117
            return ORDER;
-
 
162118
          default:
-
 
162119
            return null;
-
 
162120
        }
-
 
162121
      }
-
 
162122
 
-
 
162123
      /**
-
 
162124
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
162125
       * if it is not found.
-
 
162126
       */
-
 
162127
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
162128
        _Fields fields = findByThriftId(fieldId);
-
 
162129
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
162130
        return fields;
-
 
162131
      }
-
 
162132
 
-
 
162133
      /**
-
 
162134
       * Find the _Fields constant that matches name, or null if its not found.
-
 
162135
       */
-
 
162136
      public static _Fields findByName(String name) {
-
 
162137
        return byName.get(name);
-
 
162138
      }
-
 
162139
 
-
 
162140
      private final short _thriftId;
-
 
162141
      private final String _fieldName;
-
 
162142
 
-
 
162143
      _Fields(short thriftId, String fieldName) {
-
 
162144
        _thriftId = thriftId;
-
 
162145
        _fieldName = fieldName;
-
 
162146
      }
-
 
162147
 
-
 
162148
      public short getThriftFieldId() {
-
 
162149
        return _thriftId;
-
 
162150
      }
-
 
162151
 
-
 
162152
      public String getFieldName() {
-
 
162153
        return _fieldName;
-
 
162154
      }
-
 
162155
    }
-
 
162156
 
-
 
162157
    // isset id assignments
-
 
162158
 
-
 
162159
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
162160
    static {
-
 
162161
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
162162
      tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162163
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
162164
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
162165
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderForEbay_args.class, metaDataMap);
-
 
162166
    }
-
 
162167
 
-
 
162168
    public updateOrderForEbay_args() {
-
 
162169
    }
-
 
162170
 
-
 
162171
    public updateOrderForEbay_args(
-
 
162172
      Order order)
-
 
162173
    {
-
 
162174
      this();
-
 
162175
      this.order = order;
-
 
162176
    }
-
 
162177
 
-
 
162178
    /**
-
 
162179
     * Performs a deep copy on <i>other</i>.
-
 
162180
     */
-
 
162181
    public updateOrderForEbay_args(updateOrderForEbay_args other) {
-
 
162182
      if (other.isSetOrder()) {
-
 
162183
        this.order = new Order(other.order);
-
 
162184
      }
-
 
162185
    }
-
 
162186
 
-
 
162187
    public updateOrderForEbay_args deepCopy() {
-
 
162188
      return new updateOrderForEbay_args(this);
-
 
162189
    }
-
 
162190
 
-
 
162191
    @Override
-
 
162192
    public void clear() {
-
 
162193
      this.order = null;
-
 
162194
    }
-
 
162195
 
-
 
162196
    public Order getOrder() {
-
 
162197
      return this.order;
-
 
162198
    }
-
 
162199
 
-
 
162200
    public void setOrder(Order order) {
-
 
162201
      this.order = order;
-
 
162202
    }
-
 
162203
 
-
 
162204
    public void unsetOrder() {
-
 
162205
      this.order = null;
-
 
162206
    }
-
 
162207
 
-
 
162208
    /** Returns true if field order is set (has been assigned a value) and false otherwise */
-
 
162209
    public boolean isSetOrder() {
-
 
162210
      return this.order != null;
-
 
162211
    }
-
 
162212
 
-
 
162213
    public void setOrderIsSet(boolean value) {
-
 
162214
      if (!value) {
-
 
162215
        this.order = null;
-
 
162216
      }
-
 
162217
    }
-
 
162218
 
-
 
162219
    public void setFieldValue(_Fields field, Object value) {
-
 
162220
      switch (field) {
-
 
162221
      case ORDER:
-
 
162222
        if (value == null) {
-
 
162223
          unsetOrder();
-
 
162224
        } else {
-
 
162225
          setOrder((Order)value);
-
 
162226
        }
-
 
162227
        break;
-
 
162228
 
-
 
162229
      }
-
 
162230
    }
-
 
162231
 
-
 
162232
    public Object getFieldValue(_Fields field) {
-
 
162233
      switch (field) {
-
 
162234
      case ORDER:
-
 
162235
        return getOrder();
-
 
162236
 
-
 
162237
      }
-
 
162238
      throw new IllegalStateException();
-
 
162239
    }
-
 
162240
 
-
 
162241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
162242
    public boolean isSet(_Fields field) {
-
 
162243
      if (field == null) {
-
 
162244
        throw new IllegalArgumentException();
-
 
162245
      }
-
 
162246
 
-
 
162247
      switch (field) {
-
 
162248
      case ORDER:
-
 
162249
        return isSetOrder();
-
 
162250
      }
-
 
162251
      throw new IllegalStateException();
-
 
162252
    }
-
 
162253
 
-
 
162254
    @Override
-
 
162255
    public boolean equals(Object that) {
-
 
162256
      if (that == null)
-
 
162257
        return false;
-
 
162258
      if (that instanceof updateOrderForEbay_args)
-
 
162259
        return this.equals((updateOrderForEbay_args)that);
-
 
162260
      return false;
-
 
162261
    }
-
 
162262
 
-
 
162263
    public boolean equals(updateOrderForEbay_args that) {
-
 
162264
      if (that == null)
-
 
162265
        return false;
-
 
162266
 
-
 
162267
      boolean this_present_order = true && this.isSetOrder();
-
 
162268
      boolean that_present_order = true && that.isSetOrder();
-
 
162269
      if (this_present_order || that_present_order) {
-
 
162270
        if (!(this_present_order && that_present_order))
-
 
162271
          return false;
-
 
162272
        if (!this.order.equals(that.order))
-
 
162273
          return false;
-
 
162274
      }
-
 
162275
 
-
 
162276
      return true;
-
 
162277
    }
-
 
162278
 
-
 
162279
    @Override
-
 
162280
    public int hashCode() {
-
 
162281
      return 0;
-
 
162282
    }
-
 
162283
 
-
 
162284
    public int compareTo(updateOrderForEbay_args other) {
-
 
162285
      if (!getClass().equals(other.getClass())) {
-
 
162286
        return getClass().getName().compareTo(other.getClass().getName());
-
 
162287
      }
-
 
162288
 
-
 
162289
      int lastComparison = 0;
-
 
162290
      updateOrderForEbay_args typedOther = (updateOrderForEbay_args)other;
-
 
162291
 
-
 
162292
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder());
-
 
162293
      if (lastComparison != 0) {
-
 
162294
        return lastComparison;
-
 
162295
      }
-
 
162296
      if (isSetOrder()) {
-
 
162297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order);
-
 
162298
        if (lastComparison != 0) {
-
 
162299
          return lastComparison;
-
 
162300
        }
-
 
162301
      }
-
 
162302
      return 0;
-
 
162303
    }
-
 
162304
 
-
 
162305
    public _Fields fieldForId(int fieldId) {
-
 
162306
      return _Fields.findByThriftId(fieldId);
-
 
162307
    }
-
 
162308
 
-
 
162309
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
162310
      org.apache.thrift.protocol.TField field;
-
 
162311
      iprot.readStructBegin();
-
 
162312
      while (true)
-
 
162313
      {
-
 
162314
        field = iprot.readFieldBegin();
-
 
162315
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
162316
          break;
-
 
162317
        }
-
 
162318
        switch (field.id) {
-
 
162319
          case 1: // ORDER
-
 
162320
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
162321
              this.order = new Order();
-
 
162322
              this.order.read(iprot);
-
 
162323
            } else { 
-
 
162324
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
162325
            }
-
 
162326
            break;
-
 
162327
          default:
-
 
162328
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
162329
        }
-
 
162330
        iprot.readFieldEnd();
-
 
162331
      }
-
 
162332
      iprot.readStructEnd();
-
 
162333
      validate();
-
 
162334
    }
-
 
162335
 
-
 
162336
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
162337
      validate();
-
 
162338
 
-
 
162339
      oprot.writeStructBegin(STRUCT_DESC);
-
 
162340
      if (this.order != null) {
-
 
162341
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
-
 
162342
        this.order.write(oprot);
-
 
162343
        oprot.writeFieldEnd();
-
 
162344
      }
-
 
162345
      oprot.writeFieldStop();
-
 
162346
      oprot.writeStructEnd();
-
 
162347
    }
-
 
162348
 
-
 
162349
    @Override
-
 
162350
    public String toString() {
-
 
162351
      StringBuilder sb = new StringBuilder("updateOrderForEbay_args(");
-
 
162352
      boolean first = true;
-
 
162353
 
-
 
162354
      sb.append("order:");
-
 
162355
      if (this.order == null) {
-
 
162356
        sb.append("null");
-
 
162357
      } else {
-
 
162358
        sb.append(this.order);
-
 
162359
      }
-
 
162360
      first = false;
-
 
162361
      sb.append(")");
-
 
162362
      return sb.toString();
-
 
162363
    }
-
 
162364
 
-
 
162365
    public void validate() throws org.apache.thrift.TException {
-
 
162366
      // check for required fields
-
 
162367
    }
-
 
162368
 
-
 
162369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
162370
      try {
-
 
162371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
162372
      } catch (org.apache.thrift.TException te) {
-
 
162373
        throw new java.io.IOException(te);
-
 
162374
      }
-
 
162375
    }
-
 
162376
 
-
 
162377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
162378
      try {
-
 
162379
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
162380
      } catch (org.apache.thrift.TException te) {
-
 
162381
        throw new java.io.IOException(te);
-
 
162382
      }
-
 
162383
    }
-
 
162384
 
-
 
162385
  }
-
 
162386
 
-
 
162387
  public static class updateOrderForEbay_result implements org.apache.thrift.TBase<updateOrderForEbay_result, updateOrderForEbay_result._Fields>, java.io.Serializable, Cloneable   {
-
 
162388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderForEbay_result");
-
 
162389
 
-
 
162390
 
-
 
162391
 
-
 
162392
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
162393
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
162394
;
-
 
162395
 
-
 
162396
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
162397
 
-
 
162398
      static {
-
 
162399
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
162400
          byName.put(field.getFieldName(), field);
-
 
162401
        }
-
 
162402
      }
-
 
162403
 
-
 
162404
      /**
-
 
162405
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
162406
       */
-
 
162407
      public static _Fields findByThriftId(int fieldId) {
-
 
162408
        switch(fieldId) {
-
 
162409
          default:
-
 
162410
            return null;
-
 
162411
        }
-
 
162412
      }
-
 
162413
 
-
 
162414
      /**
-
 
162415
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
162416
       * if it is not found.
-
 
162417
       */
-
 
162418
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
162419
        _Fields fields = findByThriftId(fieldId);
-
 
162420
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
162421
        return fields;
-
 
162422
      }
-
 
162423
 
-
 
162424
      /**
-
 
162425
       * Find the _Fields constant that matches name, or null if its not found.
-
 
162426
       */
-
 
162427
      public static _Fields findByName(String name) {
-
 
162428
        return byName.get(name);
-
 
162429
      }
-
 
162430
 
-
 
162431
      private final short _thriftId;
-
 
162432
      private final String _fieldName;
-
 
162433
 
-
 
162434
      _Fields(short thriftId, String fieldName) {
-
 
162435
        _thriftId = thriftId;
-
 
162436
        _fieldName = fieldName;
-
 
162437
      }
-
 
162438
 
-
 
162439
      public short getThriftFieldId() {
-
 
162440
        return _thriftId;
-
 
162441
      }
-
 
162442
 
-
 
162443
      public String getFieldName() {
-
 
162444
        return _fieldName;
-
 
162445
      }
-
 
162446
    }
-
 
162447
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
162448
    static {
-
 
162449
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
162450
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
162451
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderForEbay_result.class, metaDataMap);
-
 
162452
    }
-
 
162453
 
-
 
162454
    public updateOrderForEbay_result() {
-
 
162455
    }
-
 
162456
 
-
 
162457
    /**
-
 
162458
     * Performs a deep copy on <i>other</i>.
-
 
162459
     */
-
 
162460
    public updateOrderForEbay_result(updateOrderForEbay_result other) {
-
 
162461
    }
-
 
162462
 
-
 
162463
    public updateOrderForEbay_result deepCopy() {
-
 
162464
      return new updateOrderForEbay_result(this);
-
 
162465
    }
-
 
162466
 
-
 
162467
    @Override
-
 
162468
    public void clear() {
-
 
162469
    }
-
 
162470
 
-
 
162471
    public void setFieldValue(_Fields field, Object value) {
-
 
162472
      switch (field) {
-
 
162473
      }
-
 
162474
    }
-
 
162475
 
-
 
162476
    public Object getFieldValue(_Fields field) {
-
 
162477
      switch (field) {
-
 
162478
      }
-
 
162479
      throw new IllegalStateException();
-
 
162480
    }
-
 
162481
 
-
 
162482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
162483
    public boolean isSet(_Fields field) {
-
 
162484
      if (field == null) {
-
 
162485
        throw new IllegalArgumentException();
-
 
162486
      }
-
 
162487
 
-
 
162488
      switch (field) {
-
 
162489
      }
-
 
162490
      throw new IllegalStateException();
-
 
162491
    }
-
 
162492
 
-
 
162493
    @Override
-
 
162494
    public boolean equals(Object that) {
-
 
162495
      if (that == null)
-
 
162496
        return false;
-
 
162497
      if (that instanceof updateOrderForEbay_result)
-
 
162498
        return this.equals((updateOrderForEbay_result)that);
-
 
162499
      return false;
-
 
162500
    }
-
 
162501
 
-
 
162502
    public boolean equals(updateOrderForEbay_result that) {
-
 
162503
      if (that == null)
-
 
162504
        return false;
-
 
162505
 
-
 
162506
      return true;
-
 
162507
    }
-
 
162508
 
-
 
162509
    @Override
-
 
162510
    public int hashCode() {
-
 
162511
      return 0;
-
 
162512
    }
-
 
162513
 
-
 
162514
    public int compareTo(updateOrderForEbay_result other) {
-
 
162515
      if (!getClass().equals(other.getClass())) {
-
 
162516
        return getClass().getName().compareTo(other.getClass().getName());
-
 
162517
      }
-
 
162518
 
-
 
162519
      int lastComparison = 0;
-
 
162520
      updateOrderForEbay_result typedOther = (updateOrderForEbay_result)other;
-
 
162521
 
-
 
162522
      return 0;
-
 
162523
    }
-
 
162524
 
-
 
162525
    public _Fields fieldForId(int fieldId) {
-
 
162526
      return _Fields.findByThriftId(fieldId);
-
 
162527
    }
-
 
162528
 
-
 
162529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
162530
      org.apache.thrift.protocol.TField field;
-
 
162531
      iprot.readStructBegin();
-
 
162532
      while (true)
-
 
162533
      {
-
 
162534
        field = iprot.readFieldBegin();
-
 
162535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
162536
          break;
-
 
162537
        }
-
 
162538
        switch (field.id) {
-
 
162539
          default:
-
 
162540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
162541
        }
-
 
162542
        iprot.readFieldEnd();
-
 
162543
      }
-
 
162544
      iprot.readStructEnd();
-
 
162545
      validate();
-
 
162546
    }
-
 
162547
 
-
 
162548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
162549
      oprot.writeStructBegin(STRUCT_DESC);
-
 
162550
 
-
 
162551
      oprot.writeFieldStop();
-
 
162552
      oprot.writeStructEnd();
-
 
162553
    }
-
 
162554
 
-
 
162555
    @Override
-
 
162556
    public String toString() {
-
 
162557
      StringBuilder sb = new StringBuilder("updateOrderForEbay_result(");
-
 
162558
      boolean first = true;
-
 
162559
 
-
 
162560
      sb.append(")");
-
 
162561
      return sb.toString();
-
 
162562
    }
-
 
162563
 
-
 
162564
    public void validate() throws org.apache.thrift.TException {
-
 
162565
      // check for required fields
-
 
162566
    }
-
 
162567
 
-
 
162568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
162569
      try {
-
 
162570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
162571
      } catch (org.apache.thrift.TException te) {
-
 
162572
        throw new java.io.IOException(te);
-
 
162573
      }
-
 
162574
    }
-
 
162575
 
-
 
162576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
162577
      try {
-
 
162578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
162579
      } catch (org.apache.thrift.TException te) {
-
 
162580
        throw new java.io.IOException(te);
-
 
162581
      }
-
 
162582
    }
-
 
162583
 
-
 
162584
  }
-
 
162585
 
-
 
162586
  public static class splitEbayOrder_args implements org.apache.thrift.TBase<splitEbayOrder_args, splitEbayOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
162587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("splitEbayOrder_args");
-
 
162588
 
-
 
162589
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
162590
    private static final org.apache.thrift.protocol.TField SPLIT_ORDER_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("splitOrderQty", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
162591
    private static final org.apache.thrift.protocol.TField SPLIT_ORDER_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("splitOrderItemId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
162592
    private static final org.apache.thrift.protocol.TField USE_POWER_SHIP_FIELD_DESC = new org.apache.thrift.protocol.TField("usePowerShip", org.apache.thrift.protocol.TType.BOOL, (short)4);
-
 
162593
 
-
 
162594
    private long orderId; // required
-
 
162595
    private long splitOrderQty; // required
-
 
162596
    private long splitOrderItemId; // required
-
 
162597
    private boolean usePowerShip; // required
-
 
162598
 
-
 
162599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
162600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
162601
      ORDER_ID((short)1, "orderId"),
-
 
162602
      SPLIT_ORDER_QTY((short)2, "splitOrderQty"),
-
 
162603
      SPLIT_ORDER_ITEM_ID((short)3, "splitOrderItemId"),
-
 
162604
      USE_POWER_SHIP((short)4, "usePowerShip");
-
 
162605
 
-
 
162606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
162607
 
-
 
162608
      static {
-
 
162609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
162610
          byName.put(field.getFieldName(), field);
-
 
162611
        }
-
 
162612
      }
-
 
162613
 
-
 
162614
      /**
-
 
162615
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
162616
       */
-
 
162617
      public static _Fields findByThriftId(int fieldId) {
-
 
162618
        switch(fieldId) {
-
 
162619
          case 1: // ORDER_ID
-
 
162620
            return ORDER_ID;
-
 
162621
          case 2: // SPLIT_ORDER_QTY
-
 
162622
            return SPLIT_ORDER_QTY;
-
 
162623
          case 3: // SPLIT_ORDER_ITEM_ID
-
 
162624
            return SPLIT_ORDER_ITEM_ID;
-
 
162625
          case 4: // USE_POWER_SHIP
-
 
162626
            return USE_POWER_SHIP;
-
 
162627
          default:
-
 
162628
            return null;
-
 
162629
        }
-
 
162630
      }
-
 
162631
 
-
 
162632
      /**
-
 
162633
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
162634
       * if it is not found.
-
 
162635
       */
-
 
162636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
162637
        _Fields fields = findByThriftId(fieldId);
-
 
162638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
162639
        return fields;
-
 
162640
      }
-
 
162641
 
-
 
162642
      /**
-
 
162643
       * Find the _Fields constant that matches name, or null if its not found.
-
 
162644
       */
-
 
162645
      public static _Fields findByName(String name) {
-
 
162646
        return byName.get(name);
-
 
162647
      }
-
 
162648
 
-
 
162649
      private final short _thriftId;
-
 
162650
      private final String _fieldName;
-
 
162651
 
-
 
162652
      _Fields(short thriftId, String fieldName) {
-
 
162653
        _thriftId = thriftId;
-
 
162654
        _fieldName = fieldName;
-
 
162655
      }
-
 
162656
 
-
 
162657
      public short getThriftFieldId() {
-
 
162658
        return _thriftId;
-
 
162659
      }
-
 
162660
 
-
 
162661
      public String getFieldName() {
-
 
162662
        return _fieldName;
-
 
162663
      }
-
 
162664
    }
-
 
162665
 
-
 
162666
    // isset id assignments
-
 
162667
    private static final int __ORDERID_ISSET_ID = 0;
-
 
162668
    private static final int __SPLITORDERQTY_ISSET_ID = 1;
-
 
162669
    private static final int __SPLITORDERITEMID_ISSET_ID = 2;
-
 
162670
    private static final int __USEPOWERSHIP_ISSET_ID = 3;
-
 
162671
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
162672
 
-
 
162673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
162674
    static {
-
 
162675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
162676
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
162678
      tmpMap.put(_Fields.SPLIT_ORDER_QTY, new org.apache.thrift.meta_data.FieldMetaData("splitOrderQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162679
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
162680
      tmpMap.put(_Fields.SPLIT_ORDER_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("splitOrderItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162681
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
162682
      tmpMap.put(_Fields.USE_POWER_SHIP, new org.apache.thrift.meta_data.FieldMetaData("usePowerShip", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
162684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
162685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(splitEbayOrder_args.class, metaDataMap);
-
 
162686
    }
-
 
162687
 
-
 
162688
    public splitEbayOrder_args() {
-
 
162689
    }
-
 
162690
 
-
 
162691
    public splitEbayOrder_args(
-
 
162692
      long orderId,
-
 
162693
      long splitOrderQty,
-
 
162694
      long splitOrderItemId,
-
 
162695
      boolean usePowerShip)
-
 
162696
    {
-
 
162697
      this();
-
 
162698
      this.orderId = orderId;
-
 
162699
      setOrderIdIsSet(true);
-
 
162700
      this.splitOrderQty = splitOrderQty;
-
 
162701
      setSplitOrderQtyIsSet(true);
-
 
162702
      this.splitOrderItemId = splitOrderItemId;
-
 
162703
      setSplitOrderItemIdIsSet(true);
-
 
162704
      this.usePowerShip = usePowerShip;
-
 
162705
      setUsePowerShipIsSet(true);
-
 
162706
    }
-
 
162707
 
-
 
162708
    /**
-
 
162709
     * Performs a deep copy on <i>other</i>.
-
 
162710
     */
-
 
162711
    public splitEbayOrder_args(splitEbayOrder_args other) {
-
 
162712
      __isset_bit_vector.clear();
-
 
162713
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
162714
      this.orderId = other.orderId;
-
 
162715
      this.splitOrderQty = other.splitOrderQty;
-
 
162716
      this.splitOrderItemId = other.splitOrderItemId;
-
 
162717
      this.usePowerShip = other.usePowerShip;
-
 
162718
    }
-
 
162719
 
-
 
162720
    public splitEbayOrder_args deepCopy() {
-
 
162721
      return new splitEbayOrder_args(this);
-
 
162722
    }
-
 
162723
 
-
 
162724
    @Override
-
 
162725
    public void clear() {
-
 
162726
      setOrderIdIsSet(false);
-
 
162727
      this.orderId = 0;
-
 
162728
      setSplitOrderQtyIsSet(false);
-
 
162729
      this.splitOrderQty = 0;
-
 
162730
      setSplitOrderItemIdIsSet(false);
-
 
162731
      this.splitOrderItemId = 0;
-
 
162732
      setUsePowerShipIsSet(false);
-
 
162733
      this.usePowerShip = false;
-
 
162734
    }
-
 
162735
 
-
 
162736
    public long getOrderId() {
-
 
162737
      return this.orderId;
-
 
162738
    }
-
 
162739
 
-
 
162740
    public void setOrderId(long orderId) {
-
 
162741
      this.orderId = orderId;
-
 
162742
      setOrderIdIsSet(true);
-
 
162743
    }
-
 
162744
 
-
 
162745
    public void unsetOrderId() {
-
 
162746
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
162747
    }
-
 
162748
 
-
 
162749
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
162750
    public boolean isSetOrderId() {
-
 
162751
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
162752
    }
-
 
162753
 
-
 
162754
    public void setOrderIdIsSet(boolean value) {
-
 
162755
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
162756
    }
-
 
162757
 
-
 
162758
    public long getSplitOrderQty() {
-
 
162759
      return this.splitOrderQty;
-
 
162760
    }
-
 
162761
 
-
 
162762
    public void setSplitOrderQty(long splitOrderQty) {
-
 
162763
      this.splitOrderQty = splitOrderQty;
-
 
162764
      setSplitOrderQtyIsSet(true);
-
 
162765
    }
-
 
162766
 
-
 
162767
    public void unsetSplitOrderQty() {
-
 
162768
      __isset_bit_vector.clear(__SPLITORDERQTY_ISSET_ID);
-
 
162769
    }
-
 
162770
 
-
 
162771
    /** Returns true if field splitOrderQty is set (has been assigned a value) and false otherwise */
-
 
162772
    public boolean isSetSplitOrderQty() {
-
 
162773
      return __isset_bit_vector.get(__SPLITORDERQTY_ISSET_ID);
-
 
162774
    }
-
 
162775
 
-
 
162776
    public void setSplitOrderQtyIsSet(boolean value) {
-
 
162777
      __isset_bit_vector.set(__SPLITORDERQTY_ISSET_ID, value);
-
 
162778
    }
-
 
162779
 
-
 
162780
    public long getSplitOrderItemId() {
-
 
162781
      return this.splitOrderItemId;
-
 
162782
    }
-
 
162783
 
-
 
162784
    public void setSplitOrderItemId(long splitOrderItemId) {
-
 
162785
      this.splitOrderItemId = splitOrderItemId;
-
 
162786
      setSplitOrderItemIdIsSet(true);
-
 
162787
    }
-
 
162788
 
-
 
162789
    public void unsetSplitOrderItemId() {
-
 
162790
      __isset_bit_vector.clear(__SPLITORDERITEMID_ISSET_ID);
-
 
162791
    }
-
 
162792
 
-
 
162793
    /** Returns true if field splitOrderItemId is set (has been assigned a value) and false otherwise */
-
 
162794
    public boolean isSetSplitOrderItemId() {
-
 
162795
      return __isset_bit_vector.get(__SPLITORDERITEMID_ISSET_ID);
-
 
162796
    }
-
 
162797
 
-
 
162798
    public void setSplitOrderItemIdIsSet(boolean value) {
-
 
162799
      __isset_bit_vector.set(__SPLITORDERITEMID_ISSET_ID, value);
-
 
162800
    }
-
 
162801
 
-
 
162802
    public boolean isUsePowerShip() {
-
 
162803
      return this.usePowerShip;
-
 
162804
    }
-
 
162805
 
-
 
162806
    public void setUsePowerShip(boolean usePowerShip) {
-
 
162807
      this.usePowerShip = usePowerShip;
-
 
162808
      setUsePowerShipIsSet(true);
-
 
162809
    }
-
 
162810
 
-
 
162811
    public void unsetUsePowerShip() {
-
 
162812
      __isset_bit_vector.clear(__USEPOWERSHIP_ISSET_ID);
-
 
162813
    }
-
 
162814
 
-
 
162815
    /** Returns true if field usePowerShip is set (has been assigned a value) and false otherwise */
-
 
162816
    public boolean isSetUsePowerShip() {
-
 
162817
      return __isset_bit_vector.get(__USEPOWERSHIP_ISSET_ID);
-
 
162818
    }
-
 
162819
 
-
 
162820
    public void setUsePowerShipIsSet(boolean value) {
-
 
162821
      __isset_bit_vector.set(__USEPOWERSHIP_ISSET_ID, value);
-
 
162822
    }
-
 
162823
 
-
 
162824
    public void setFieldValue(_Fields field, Object value) {
-
 
162825
      switch (field) {
-
 
162826
      case ORDER_ID:
-
 
162827
        if (value == null) {
-
 
162828
          unsetOrderId();
-
 
162829
        } else {
-
 
162830
          setOrderId((Long)value);
-
 
162831
        }
-
 
162832
        break;
-
 
162833
 
-
 
162834
      case SPLIT_ORDER_QTY:
-
 
162835
        if (value == null) {
-
 
162836
          unsetSplitOrderQty();
-
 
162837
        } else {
-
 
162838
          setSplitOrderQty((Long)value);
-
 
162839
        }
-
 
162840
        break;
-
 
162841
 
-
 
162842
      case SPLIT_ORDER_ITEM_ID:
-
 
162843
        if (value == null) {
-
 
162844
          unsetSplitOrderItemId();
-
 
162845
        } else {
-
 
162846
          setSplitOrderItemId((Long)value);
-
 
162847
        }
-
 
162848
        break;
-
 
162849
 
-
 
162850
      case USE_POWER_SHIP:
-
 
162851
        if (value == null) {
-
 
162852
          unsetUsePowerShip();
-
 
162853
        } else {
-
 
162854
          setUsePowerShip((Boolean)value);
-
 
162855
        }
-
 
162856
        break;
-
 
162857
 
-
 
162858
      }
-
 
162859
    }
-
 
162860
 
-
 
162861
    public Object getFieldValue(_Fields field) {
-
 
162862
      switch (field) {
-
 
162863
      case ORDER_ID:
-
 
162864
        return Long.valueOf(getOrderId());
-
 
162865
 
-
 
162866
      case SPLIT_ORDER_QTY:
-
 
162867
        return Long.valueOf(getSplitOrderQty());
-
 
162868
 
-
 
162869
      case SPLIT_ORDER_ITEM_ID:
-
 
162870
        return Long.valueOf(getSplitOrderItemId());
-
 
162871
 
-
 
162872
      case USE_POWER_SHIP:
-
 
162873
        return Boolean.valueOf(isUsePowerShip());
-
 
162874
 
-
 
162875
      }
-
 
162876
      throw new IllegalStateException();
-
 
162877
    }
-
 
162878
 
-
 
162879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
162880
    public boolean isSet(_Fields field) {
-
 
162881
      if (field == null) {
-
 
162882
        throw new IllegalArgumentException();
-
 
162883
      }
-
 
162884
 
-
 
162885
      switch (field) {
-
 
162886
      case ORDER_ID:
-
 
162887
        return isSetOrderId();
-
 
162888
      case SPLIT_ORDER_QTY:
-
 
162889
        return isSetSplitOrderQty();
-
 
162890
      case SPLIT_ORDER_ITEM_ID:
-
 
162891
        return isSetSplitOrderItemId();
-
 
162892
      case USE_POWER_SHIP:
-
 
162893
        return isSetUsePowerShip();
-
 
162894
      }
-
 
162895
      throw new IllegalStateException();
-
 
162896
    }
-
 
162897
 
-
 
162898
    @Override
-
 
162899
    public boolean equals(Object that) {
-
 
162900
      if (that == null)
-
 
162901
        return false;
-
 
162902
      if (that instanceof splitEbayOrder_args)
-
 
162903
        return this.equals((splitEbayOrder_args)that);
-
 
162904
      return false;
-
 
162905
    }
-
 
162906
 
-
 
162907
    public boolean equals(splitEbayOrder_args that) {
-
 
162908
      if (that == null)
-
 
162909
        return false;
-
 
162910
 
-
 
162911
      boolean this_present_orderId = true;
-
 
162912
      boolean that_present_orderId = true;
-
 
162913
      if (this_present_orderId || that_present_orderId) {
-
 
162914
        if (!(this_present_orderId && that_present_orderId))
-
 
162915
          return false;
-
 
162916
        if (this.orderId != that.orderId)
-
 
162917
          return false;
-
 
162918
      }
-
 
162919
 
-
 
162920
      boolean this_present_splitOrderQty = true;
-
 
162921
      boolean that_present_splitOrderQty = true;
-
 
162922
      if (this_present_splitOrderQty || that_present_splitOrderQty) {
-
 
162923
        if (!(this_present_splitOrderQty && that_present_splitOrderQty))
-
 
162924
          return false;
-
 
162925
        if (this.splitOrderQty != that.splitOrderQty)
-
 
162926
          return false;
-
 
162927
      }
-
 
162928
 
-
 
162929
      boolean this_present_splitOrderItemId = true;
-
 
162930
      boolean that_present_splitOrderItemId = true;
-
 
162931
      if (this_present_splitOrderItemId || that_present_splitOrderItemId) {
-
 
162932
        if (!(this_present_splitOrderItemId && that_present_splitOrderItemId))
-
 
162933
          return false;
-
 
162934
        if (this.splitOrderItemId != that.splitOrderItemId)
-
 
162935
          return false;
-
 
162936
      }
-
 
162937
 
-
 
162938
      boolean this_present_usePowerShip = true;
-
 
162939
      boolean that_present_usePowerShip = true;
-
 
162940
      if (this_present_usePowerShip || that_present_usePowerShip) {
-
 
162941
        if (!(this_present_usePowerShip && that_present_usePowerShip))
-
 
162942
          return false;
-
 
162943
        if (this.usePowerShip != that.usePowerShip)
-
 
162944
          return false;
-
 
162945
      }
-
 
162946
 
-
 
162947
      return true;
-
 
162948
    }
-
 
162949
 
-
 
162950
    @Override
-
 
162951
    public int hashCode() {
-
 
162952
      return 0;
-
 
162953
    }
-
 
162954
 
-
 
162955
    public int compareTo(splitEbayOrder_args other) {
-
 
162956
      if (!getClass().equals(other.getClass())) {
-
 
162957
        return getClass().getName().compareTo(other.getClass().getName());
-
 
162958
      }
-
 
162959
 
-
 
162960
      int lastComparison = 0;
-
 
162961
      splitEbayOrder_args typedOther = (splitEbayOrder_args)other;
-
 
162962
 
-
 
162963
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
162964
      if (lastComparison != 0) {
-
 
162965
        return lastComparison;
-
 
162966
      }
-
 
162967
      if (isSetOrderId()) {
-
 
162968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
162969
        if (lastComparison != 0) {
-
 
162970
          return lastComparison;
-
 
162971
        }
-
 
162972
      }
-
 
162973
      lastComparison = Boolean.valueOf(isSetSplitOrderQty()).compareTo(typedOther.isSetSplitOrderQty());
-
 
162974
      if (lastComparison != 0) {
-
 
162975
        return lastComparison;
-
 
162976
      }
-
 
162977
      if (isSetSplitOrderQty()) {
-
 
162978
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.splitOrderQty, typedOther.splitOrderQty);
-
 
162979
        if (lastComparison != 0) {
-
 
162980
          return lastComparison;
-
 
162981
        }
-
 
162982
      }
-
 
162983
      lastComparison = Boolean.valueOf(isSetSplitOrderItemId()).compareTo(typedOther.isSetSplitOrderItemId());
-
 
162984
      if (lastComparison != 0) {
-
 
162985
        return lastComparison;
-
 
162986
      }
-
 
162987
      if (isSetSplitOrderItemId()) {
-
 
162988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.splitOrderItemId, typedOther.splitOrderItemId);
-
 
162989
        if (lastComparison != 0) {
-
 
162990
          return lastComparison;
-
 
162991
        }
-
 
162992
      }
-
 
162993
      lastComparison = Boolean.valueOf(isSetUsePowerShip()).compareTo(typedOther.isSetUsePowerShip());
-
 
162994
      if (lastComparison != 0) {
-
 
162995
        return lastComparison;
-
 
162996
      }
-
 
162997
      if (isSetUsePowerShip()) {
-
 
162998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.usePowerShip, typedOther.usePowerShip);
-
 
162999
        if (lastComparison != 0) {
-
 
163000
          return lastComparison;
-
 
163001
        }
-
 
163002
      }
-
 
163003
      return 0;
-
 
163004
    }
-
 
163005
 
-
 
163006
    public _Fields fieldForId(int fieldId) {
-
 
163007
      return _Fields.findByThriftId(fieldId);
-
 
163008
    }
-
 
163009
 
-
 
163010
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
163011
      org.apache.thrift.protocol.TField field;
-
 
163012
      iprot.readStructBegin();
-
 
163013
      while (true)
-
 
163014
      {
-
 
163015
        field = iprot.readFieldBegin();
-
 
163016
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
163017
          break;
-
 
163018
        }
-
 
163019
        switch (field.id) {
-
 
163020
          case 1: // ORDER_ID
-
 
163021
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
163022
              this.orderId = iprot.readI64();
-
 
163023
              setOrderIdIsSet(true);
-
 
163024
            } else { 
-
 
163025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163026
            }
-
 
163027
            break;
-
 
163028
          case 2: // SPLIT_ORDER_QTY
-
 
163029
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
163030
              this.splitOrderQty = iprot.readI64();
-
 
163031
              setSplitOrderQtyIsSet(true);
-
 
163032
            } else { 
-
 
163033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163034
            }
-
 
163035
            break;
-
 
163036
          case 3: // SPLIT_ORDER_ITEM_ID
-
 
163037
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
163038
              this.splitOrderItemId = iprot.readI64();
-
 
163039
              setSplitOrderItemIdIsSet(true);
-
 
163040
            } else { 
-
 
163041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163042
            }
-
 
163043
            break;
-
 
163044
          case 4: // USE_POWER_SHIP
-
 
163045
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
163046
              this.usePowerShip = iprot.readBool();
-
 
163047
              setUsePowerShipIsSet(true);
-
 
163048
            } else { 
-
 
163049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163050
            }
-
 
163051
            break;
-
 
163052
          default:
-
 
163053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163054
        }
-
 
163055
        iprot.readFieldEnd();
-
 
163056
      }
-
 
163057
      iprot.readStructEnd();
-
 
163058
      validate();
-
 
163059
    }
-
 
163060
 
-
 
163061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
163062
      validate();
-
 
163063
 
-
 
163064
      oprot.writeStructBegin(STRUCT_DESC);
-
 
163065
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
163066
      oprot.writeI64(this.orderId);
-
 
163067
      oprot.writeFieldEnd();
-
 
163068
      oprot.writeFieldBegin(SPLIT_ORDER_QTY_FIELD_DESC);
-
 
163069
      oprot.writeI64(this.splitOrderQty);
-
 
163070
      oprot.writeFieldEnd();
-
 
163071
      oprot.writeFieldBegin(SPLIT_ORDER_ITEM_ID_FIELD_DESC);
-
 
163072
      oprot.writeI64(this.splitOrderItemId);
-
 
163073
      oprot.writeFieldEnd();
-
 
163074
      oprot.writeFieldBegin(USE_POWER_SHIP_FIELD_DESC);
-
 
163075
      oprot.writeBool(this.usePowerShip);
-
 
163076
      oprot.writeFieldEnd();
-
 
163077
      oprot.writeFieldStop();
-
 
163078
      oprot.writeStructEnd();
-
 
163079
    }
-
 
163080
 
-
 
163081
    @Override
-
 
163082
    public String toString() {
-
 
163083
      StringBuilder sb = new StringBuilder("splitEbayOrder_args(");
-
 
163084
      boolean first = true;
-
 
163085
 
-
 
163086
      sb.append("orderId:");
-
 
163087
      sb.append(this.orderId);
-
 
163088
      first = false;
-
 
163089
      if (!first) sb.append(", ");
-
 
163090
      sb.append("splitOrderQty:");
-
 
163091
      sb.append(this.splitOrderQty);
-
 
163092
      first = false;
-
 
163093
      if (!first) sb.append(", ");
-
 
163094
      sb.append("splitOrderItemId:");
-
 
163095
      sb.append(this.splitOrderItemId);
-
 
163096
      first = false;
-
 
163097
      if (!first) sb.append(", ");
-
 
163098
      sb.append("usePowerShip:");
-
 
163099
      sb.append(this.usePowerShip);
-
 
163100
      first = false;
-
 
163101
      sb.append(")");
-
 
163102
      return sb.toString();
-
 
163103
    }
-
 
163104
 
-
 
163105
    public void validate() throws org.apache.thrift.TException {
-
 
163106
      // check for required fields
-
 
163107
    }
-
 
163108
 
-
 
163109
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
163110
      try {
-
 
163111
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
163112
      } catch (org.apache.thrift.TException te) {
-
 
163113
        throw new java.io.IOException(te);
-
 
163114
      }
-
 
163115
    }
-
 
163116
 
-
 
163117
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
163118
      try {
-
 
163119
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
163120
        __isset_bit_vector = new BitSet(1);
-
 
163121
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
163122
      } catch (org.apache.thrift.TException te) {
-
 
163123
        throw new java.io.IOException(te);
-
 
163124
      }
-
 
163125
    }
-
 
163126
 
-
 
163127
  }
-
 
163128
 
-
 
163129
  public static class splitEbayOrder_result implements org.apache.thrift.TBase<splitEbayOrder_result, splitEbayOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
163130
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("splitEbayOrder_result");
-
 
163131
 
-
 
163132
    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);
-
 
163133
 
-
 
163134
    private Order success; // required
-
 
163135
 
-
 
163136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
163137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
163138
      SUCCESS((short)0, "success");
-
 
163139
 
-
 
163140
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
163141
 
-
 
163142
      static {
-
 
163143
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
163144
          byName.put(field.getFieldName(), field);
-
 
163145
        }
-
 
163146
      }
-
 
163147
 
-
 
163148
      /**
-
 
163149
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
163150
       */
-
 
163151
      public static _Fields findByThriftId(int fieldId) {
-
 
163152
        switch(fieldId) {
-
 
163153
          case 0: // SUCCESS
-
 
163154
            return SUCCESS;
-
 
163155
          default:
-
 
163156
            return null;
-
 
163157
        }
-
 
163158
      }
-
 
163159
 
-
 
163160
      /**
-
 
163161
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
163162
       * if it is not found.
-
 
163163
       */
-
 
163164
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
163165
        _Fields fields = findByThriftId(fieldId);
-
 
163166
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
163167
        return fields;
-
 
163168
      }
-
 
163169
 
-
 
163170
      /**
-
 
163171
       * Find the _Fields constant that matches name, or null if its not found.
-
 
163172
       */
-
 
163173
      public static _Fields findByName(String name) {
-
 
163174
        return byName.get(name);
-
 
163175
      }
-
 
163176
 
-
 
163177
      private final short _thriftId;
-
 
163178
      private final String _fieldName;
-
 
163179
 
-
 
163180
      _Fields(short thriftId, String fieldName) {
-
 
163181
        _thriftId = thriftId;
-
 
163182
        _fieldName = fieldName;
-
 
163183
      }
-
 
163184
 
-
 
163185
      public short getThriftFieldId() {
-
 
163186
        return _thriftId;
-
 
163187
      }
-
 
163188
 
-
 
163189
      public String getFieldName() {
-
 
163190
        return _fieldName;
-
 
163191
      }
-
 
163192
    }
-
 
163193
 
-
 
163194
    // isset id assignments
-
 
163195
 
-
 
163196
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
163197
    static {
-
 
163198
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
163199
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
163200
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
163201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
163202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(splitEbayOrder_result.class, metaDataMap);
-
 
163203
    }
-
 
163204
 
-
 
163205
    public splitEbayOrder_result() {
-
 
163206
    }
-
 
163207
 
-
 
163208
    public splitEbayOrder_result(
-
 
163209
      Order success)
-
 
163210
    {
-
 
163211
      this();
-
 
163212
      this.success = success;
-
 
163213
    }
-
 
163214
 
-
 
163215
    /**
-
 
163216
     * Performs a deep copy on <i>other</i>.
-
 
163217
     */
-
 
163218
    public splitEbayOrder_result(splitEbayOrder_result other) {
-
 
163219
      if (other.isSetSuccess()) {
-
 
163220
        this.success = new Order(other.success);
-
 
163221
      }
-
 
163222
    }
-
 
163223
 
-
 
163224
    public splitEbayOrder_result deepCopy() {
-
 
163225
      return new splitEbayOrder_result(this);
-
 
163226
    }
-
 
163227
 
-
 
163228
    @Override
-
 
163229
    public void clear() {
-
 
163230
      this.success = null;
-
 
163231
    }
-
 
163232
 
-
 
163233
    public Order getSuccess() {
-
 
163234
      return this.success;
-
 
163235
    }
-
 
163236
 
-
 
163237
    public void setSuccess(Order success) {
-
 
163238
      this.success = success;
-
 
163239
    }
-
 
163240
 
-
 
163241
    public void unsetSuccess() {
-
 
163242
      this.success = null;
-
 
163243
    }
-
 
163244
 
-
 
163245
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
163246
    public boolean isSetSuccess() {
-
 
163247
      return this.success != null;
-
 
163248
    }
-
 
163249
 
-
 
163250
    public void setSuccessIsSet(boolean value) {
-
 
163251
      if (!value) {
-
 
163252
        this.success = null;
-
 
163253
      }
-
 
163254
    }
-
 
163255
 
-
 
163256
    public void setFieldValue(_Fields field, Object value) {
-
 
163257
      switch (field) {
-
 
163258
      case SUCCESS:
-
 
163259
        if (value == null) {
-
 
163260
          unsetSuccess();
-
 
163261
        } else {
-
 
163262
          setSuccess((Order)value);
-
 
163263
        }
-
 
163264
        break;
-
 
163265
 
-
 
163266
      }
-
 
163267
    }
-
 
163268
 
-
 
163269
    public Object getFieldValue(_Fields field) {
-
 
163270
      switch (field) {
-
 
163271
      case SUCCESS:
-
 
163272
        return getSuccess();
-
 
163273
 
-
 
163274
      }
-
 
163275
      throw new IllegalStateException();
-
 
163276
    }
-
 
163277
 
-
 
163278
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
163279
    public boolean isSet(_Fields field) {
-
 
163280
      if (field == null) {
-
 
163281
        throw new IllegalArgumentException();
-
 
163282
      }
-
 
163283
 
-
 
163284
      switch (field) {
-
 
163285
      case SUCCESS:
-
 
163286
        return isSetSuccess();
-
 
163287
      }
-
 
163288
      throw new IllegalStateException();
-
 
163289
    }
-
 
163290
 
-
 
163291
    @Override
-
 
163292
    public boolean equals(Object that) {
-
 
163293
      if (that == null)
-
 
163294
        return false;
-
 
163295
      if (that instanceof splitEbayOrder_result)
-
 
163296
        return this.equals((splitEbayOrder_result)that);
-
 
163297
      return false;
-
 
163298
    }
-
 
163299
 
-
 
163300
    public boolean equals(splitEbayOrder_result that) {
-
 
163301
      if (that == null)
-
 
163302
        return false;
-
 
163303
 
-
 
163304
      boolean this_present_success = true && this.isSetSuccess();
-
 
163305
      boolean that_present_success = true && that.isSetSuccess();
-
 
163306
      if (this_present_success || that_present_success) {
-
 
163307
        if (!(this_present_success && that_present_success))
-
 
163308
          return false;
-
 
163309
        if (!this.success.equals(that.success))
-
 
163310
          return false;
-
 
163311
      }
-
 
163312
 
-
 
163313
      return true;
-
 
163314
    }
-
 
163315
 
-
 
163316
    @Override
-
 
163317
    public int hashCode() {
-
 
163318
      return 0;
-
 
163319
    }
-
 
163320
 
-
 
163321
    public int compareTo(splitEbayOrder_result other) {
-
 
163322
      if (!getClass().equals(other.getClass())) {
-
 
163323
        return getClass().getName().compareTo(other.getClass().getName());
-
 
163324
      }
-
 
163325
 
-
 
163326
      int lastComparison = 0;
-
 
163327
      splitEbayOrder_result typedOther = (splitEbayOrder_result)other;
-
 
163328
 
-
 
163329
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
163330
      if (lastComparison != 0) {
-
 
163331
        return lastComparison;
-
 
163332
      }
-
 
163333
      if (isSetSuccess()) {
-
 
163334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
163335
        if (lastComparison != 0) {
-
 
163336
          return lastComparison;
-
 
163337
        }
-
 
163338
      }
-
 
163339
      return 0;
-
 
163340
    }
-
 
163341
 
-
 
163342
    public _Fields fieldForId(int fieldId) {
-
 
163343
      return _Fields.findByThriftId(fieldId);
-
 
163344
    }
-
 
163345
 
-
 
163346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
163347
      org.apache.thrift.protocol.TField field;
-
 
163348
      iprot.readStructBegin();
-
 
163349
      while (true)
-
 
163350
      {
-
 
163351
        field = iprot.readFieldBegin();
-
 
163352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
163353
          break;
-
 
163354
        }
-
 
163355
        switch (field.id) {
-
 
163356
          case 0: // SUCCESS
-
 
163357
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
163358
              this.success = new Order();
-
 
163359
              this.success.read(iprot);
-
 
163360
            } else { 
-
 
163361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163362
            }
-
 
163363
            break;
-
 
163364
          default:
-
 
163365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
163366
        }
-
 
163367
        iprot.readFieldEnd();
-
 
163368
      }
-
 
163369
      iprot.readStructEnd();
-
 
163370
      validate();
-
 
163371
    }
-
 
163372
 
-
 
163373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
163374
      oprot.writeStructBegin(STRUCT_DESC);
-
 
163375
 
-
 
163376
      if (this.isSetSuccess()) {
-
 
163377
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
163378
        this.success.write(oprot);
-
 
163379
        oprot.writeFieldEnd();
-
 
163380
      }
-
 
163381
      oprot.writeFieldStop();
-
 
163382
      oprot.writeStructEnd();
-
 
163383
    }
-
 
163384
 
-
 
163385
    @Override
-
 
163386
    public String toString() {
-
 
163387
      StringBuilder sb = new StringBuilder("splitEbayOrder_result(");
-
 
163388
      boolean first = true;
-
 
163389
 
-
 
163390
      sb.append("success:");
-
 
163391
      if (this.success == null) {
-
 
163392
        sb.append("null");
156965
      } else {
163393
      } else {
156966
        sb.append(this.success);
163394
        sb.append(this.success);
156967
      }
163395
      }
156968
      first = false;
163396
      first = false;
156969
      sb.append(")");
163397
      sb.append(")");